]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
mempcpy.c, [...]: New files.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
029bcc09
KG
12003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
4 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
5 and stpncpy.
6 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
7 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
8 Regenerate dependencies.
9
10 * functions.texi, configure, config.in: Regenerated.
11
c9ac9147
KG
122003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13
14 * argv.c: Fix comments.
15 * calloc.c: Don't unnecessarily include "libiberty.h".
16 (bzero): Add prototype.
17 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
18 * getcwd.c (getcwd): Use standard definition to avoid conflicts
19 with system headers.
20 * hashtab.c (htab_traverse): Delete unused variables.
21 * rename.c: Include "ansidecl.h".
22 (rename): Use standard definition to avoid conflicts with system
23 headers.
24 * strsignal.c: Rely on ANSI_PROTOTYPES.
25 * strstr.c: Check GNUC >= 2, not GNUC == 2.
26 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
27 * vprintf.c: Include "ansidecl.h" earlier, rely on
28 ANSI_PROTOTYPES.
29 * vsprintf.c: Include "ansidecl.h" earlier, rely on
30 ANSI_PROTOTYPES and possibly include <stdarg.h>.
31
32 * Makefile.in: Regenerate dependencies.
33
98475c57
DD
342003-04-15 DJ Delorie <dj@redhat.com>
35
36 * maint-tool (deps): Scan for headers in $srcdir also.
37
55adc7bd
KG
382003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39
40 PR target/10338
41 PR bootstrap/10198
42 PR bootstrap/10140
43 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
44 __mempcpy.
45 * regex.c (regerror): Likewise.
46
0ae0f1b0
RS
472003-04-14 Roger Sayle <roger@eyesopen.com>
48
49 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
50 * memchr.c: Likewise.
51 * strcasecmp.c: Likewise.
52 * strncasecmp.c: Likewise.
53 * strncmp.c: Likewise.
54 * xatexit.c: Likewise.
55 * xmalloc.c: Likewise.
56
57 * copysign.c: Use traditional function declaration instead of DEFUN.
58 * sigsetmask.c: Likewise.
59
60 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
61 * memset.c: Likewise.
62
63 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
64 * memmove.c: Likewise.
65
88702c45
RS
662003-04-14 Roger Sayle <roger@eyesopen.com>
67
68 * strdup.c (strdup): Tweak implementation to use memcpy.
69
39e8d049
KG
702003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
71
72 * configure.in (HAVE_UINTPTR_T): Always define.
73 * configure: Regenerated.
74
9f2e0608
AO
752003-03-23 Alexandre Oliva <aoliva@redhat.com>
76
77 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
78 instead of $$CC alone.
79 (install_to_tooldir): Use it.
80
dbccdc42
JH
812003-17-03 Jan Hubicka <jh@suse.cz>
82
83 * hashtab.c (htab_traverse_noresize): Break out from ...
84 * hashtab.c (htab_traverse): ... here.
85
0a8e3de3
JH
862003-12-03 Jan Hubicka <jh@suse.cz>
87
cd22e4af
JH
88 * hashtab.c (htab_expand): Fix warning.
89
0a8e3de3
JH
90 * hashtab.c (htab_expand): Compute the size of hashtable based
91 on the number of elements actually used.
92 (htab_traverse): Call htab_expand when table is too empty.
93
8fe85775
CW
942003-03-11 Carlo Wood <carlo@gnu.org>
95
96 * cplus-dem.c (demangle_integral_value): Correction to reflect
97 patch of 2002-01-10 in order to also make negative multi-digits
98 without leading underscore work.
99
3bf27822
MM
1002003-03-03 Mark Mitchell <mark@codesourcery.com>
101
102 * cplus-dem.c: Add license exception to copyright notice.
103
434fa0b8
KG
1042003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
105
106 * physmem.c: Formatting changes from upstream.
107
ed935c35
DS
1082003-02-24 Danny Smith <dannysmith@users.source.forge.net>
109
110 * physmem.c (physmem_total): Add _WIN32 support.
111 (physmem_available): Likewise.
112
7f9fc006
RO
1132003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
114
115 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
116 GSI_PHYSMEM.
117 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
118
d47f75c4
KG
1192003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
120
121 * configure.in: Check for sys/systemcfg.h and
122 _system_configuration.
123 * physmem.c: Add support for AIX. Tweek formatting as per
124 upstream coreutils beta.
125
170230b7
KG
1262003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
127 Richard Earnshaw <rearnsha@arm.com>
128 Geoffrey Keating <geoffk@apple.com>
129
130 * configure.in: Check for sys/sysctl.h and sysctl.
131 * physmem.c: Add support for *bsd and darwin.
132 * Makefile.in: Generate depedency for physmem.o.
133
4a06f7f2
RO
1342003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
135
136 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
137 Tru64 UNIX.
138 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
139 Tru64 UNIX.
140
141 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
142 machine/hal_sysinfo.h, sys/table.h.
143 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
144 * configure, config.in: Regenerate.
145
64c7e556
KG
1462003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
147
148 * configure.in: Check for sys/sysmp.h and sysmp.
149 * physmem.c: Pull upstream copy, add support for irix6.
150
151 * config.in, configure: Regenerated.
152
e9019af6
KG
1532003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
154
155 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
156 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
157 pstat_getdynamic.
158
a354191e
KG
1592003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
160
161 * Makefile.in (CFILES): Add physmem.c.
162 (REQUIRED_OFILES): Add physmem.o.
163 * configure.in: Check for sys/pstat.h.
164 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
165 * physmem.c: New file, copied from textutils.
166
167 * config.in, configure: Regenerated.
168
4876b2b4
DJ
1692003-02-20 Daniel Jacobowitz <drow@mvista.com>
170
171 * Makefile.in (CFILES): Add lrealpath.c.
172 (REQUIRED_OFILES): Add lrealpath.o.
173 (lrealpath.o): Add rule.
174 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
175 * configure.in: Add realpath and canonicalize_file_name to
176 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
177 for canonicalize_file_name.
178 * lrealpath.c: New file.
179 * make-relative-prefix.c: Update documentation.
180 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
181 * config.in: Regenerated.
182 * configure: Regenerated.
183 * functions.texi: Regenerated.
184
e182f0a3 1852003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
186
187 * cplus_dem.c: Fix typo: intializes -> initializes.
188
3343fdd2
AO
1892003-02-20 Alexandre Oliva <aoliva@redhat.com>
190
191 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
192 config.status.
193 * configure: Rebuilt.
194
902cf50c
DJ
1952003-02-13 Daniel Jacobowitz <drow@mvista.com>
196
197 Fix PR c++/7612.
198 * cplus-dem.c (demangle_signature): Call string_delete.
199 Remove extra string_init.
200 (demangle_arm_hp_template): Call string_delete instead of
201 string_clear. Add missing string_delete call.
202 (demangle_qualified): Add missing string_delete call.
203 (do_type): Remove unused variable btype. Add missing string_delete
204 call. Call string_delete instead of string_clear.
205 (demangle_fund_type): Move variable btype inside of the switch
206 statement. Add missing string_delete call.
207 (do_arg): Call string_delete instead of string_clear. Remove extra
208 string_init.
209 (demangle_nested_args): Free work->previous_argument.
210
7ac27e08
KG
2112003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
212
213 * acconfig.h: New file. Add uintptr_t.
214 * config.in: Regenerated.
215
b3a8389d
JM
2162003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
217
218 * libiberty.texi: Update to GFDL 1.2.
219
d8c22ce7
CC
2202003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
221
222 * Makefile.in (libiberty_topdir): New subst.
223 (mkinstalldirs): Redefine in terms of the above.
224 * configure.in: AC_SUBST it.
225 * configure: Regenerate.
226
4ce1921a
CC
2272003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
228
229 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
230 (info-subdir, install-info-subdir, clean-info-subdir)
231 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
232 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
233 Pass $(FLAGS_TO_PASS).
234
93239fdb
AO
2352003-01-27 Alexandre Oliva <aoliva@redhat.com>
236
237 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
238 /`$$CC -print-multi-os-directory`.
239
74828682
DJ
2402003-01-26 Daniel Jacobowitz <drow@mvista.com>
241
242 * hashtab.c (htab_create_alloc_ex): New function.
243 (hatab_set_functions_ex): New function.
244 (htab_delete, htab_expand): Support alternate allocation functions.
245
ece0e59f
CF
2462003-01-24 Christopher Faylor <cgf@redhat.com>
247
248 * configure.in: Remove special pex-cygwin consideration.
249 * configure: Regenerate.
250 * pex-cygwin.c: Remove.
251 * Makefile.in: Remove pex-cygwin.[co] lines.
252
55d0e5e0
ZW
2532003-01-24 Zack Weinberg <zack@codesourcery.com>
254
255 * Makefile.in (CFILES): Add pex-*.c.
256 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
257 (CONFIGURED_OFILES): Add pex-*.o.
258 (TEXIFILES): Add pexecute.txh.
259 (pexecute.o): Delete rule.
260 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
261 pex-unix.o, pex-win32.o): New rules.
262 * configure.in: Change AC_INIT argument to xmalloc.c.
263 Compute appropriate pexecute implementation and substitute it
264 as @pexecute@.
265
266 * pexecute.c: Split up into...
267 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
268 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
269 new files.
270
271 * functions.texi: Regenerate.
272 * configure: Regenerate.
273
120cdf68
JZ
2742003-01-20 Josef Zlomek <zlomekj@suse.cz>
275
276 * hashtab.c (htab_expand): Fix allocation of new entries.
277
90e5b39f
CC
2782003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
279
280 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
281
d7082cd7
CC
282 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
283 mkinstalldirs command.
284
eaed9290
DS
2852002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
286
287 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
288 Define for hosts with HOST_EXECUTABLE_SUFFIX.
289
ef4e4181
NC
2902002-11-24 Nick Clifton <nickc@redhat.com>
291
292 * make-relative-prefix.c (make_relative_prefix): Ensure return
293 string is empty before using strcat to construct it.
294
42766f8d
DJ
2952002-11-22 Daniel Jacobowitz <drow@mvista.com>
296
297 * Makefile.in: Add make-relative-prefix.c.
298 * make-relative-prefix.c: New file.
299 * functions.texi: Rebuilt.
300
783080ab
JJ
3012002-11-16 Jakub Jelinek <jakub@redhat.com>
302
303 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
304 used with arguments in traditional C' warnings.
305
7da64d7a
JJ
3062002-10-16 Jakub Jelinek <jakub@redhat.com>
307
308 * config.table: Use mh-s390pic for s390x too.
309
de78f58b
AJ
3102002-10-06 Andreas Jaeger <aj@suse.de>
311
312 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
313 variable and of strict-aliasing warning.
314 (grow_vect): Use char as first parameter.
315
6c5d742e
KG
3162002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
317
318 * Makefile.in (all): Fix multilib parallel build.
319
f08b7eee
JDA
3202002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
321
322 * cp-demangle.c (demangling_new): Cast 0 to enum.
323 (demangle_char): Cast return of strdup to char *.
324 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
325 (is_gnu_v3_mangled_dtor): Likewise.
326 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
327 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
328 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
329 * md5.c (md5_process_bytes): Cast results back to const void *.
330 (md5_process_block): Add cast to const md5_uint32 *.
331 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
332 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
333 unsigned short.
334 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
335 to void *.
336 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
337
8d87f295
NC
3382002-09-19 Nick Clifton <nickc@redhat.com>
339
340 * README: Update email addresses for bugs and patches.
341
6eedb9ca
MS
3422002-09-10 Mike Stump <mrs@apple.com>
343
344 * splay-tree.c (splay_tree_successor): Fix comments.
345
3fd9d606
ZW
3462002-09-11 Zack Weinberg <zack@codesourcery.com>
347
b2196e8f 348 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
349 * testsuite/Makefile.in: Adjust for test-demangle.
350 * testsuite/regress-demangle: Deleted.
351 * testsuite/test-demangle.c: New file.
352 * testsuite/demangle-expected: Change \$ to $ throughout, now that
353 this file is not being read by a shell script.
354
70c4e67a
RS
3552002-09-05 Roger Sayle <roger@eyesopen.com>
356
357 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
358
65b91091
DD
3592002-08-07 DJ Delorie <dj@redhat.com>
360
361 * regex.c (re_error_msgid): Just use a simple array of strings.
362 (re_compile_pattern): Compensate.
363 (re_comp): Likewise.
364 (re_comp): Likewise.
365 (regerror): Likewise.
366
437974a9
NB
3672002-07-29 Neil Booth <neil@daikokuya.co.uk>
368
369 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 370
28a34ec1
JM
3712002-07-10 Jason Merrill <jason@redhat.com>
372
373 * cp-demangle.c (demangle_identifier): Support extended Unicode
374 characters.
375
84326592
KG
3762002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
377
378 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 379 !defined IN_GLIBCPP_V3.
84326592 380
5d69ba1f
MM
3812002-07-01 Mark Mitchell <mark@codesourcery.com>
382
383 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
384 Set it for the "st" operator.
385 (demangle_expression): Handle expressions with types as arguments.
386
7fda878c
DR
3872002-06-30 Douglas Rupp <rupp@gnat.com>
388
389 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
390 * Makefile.in (OUTPUT_OPTION): Use.
391
112bae77
PB
3922002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
393
394 * Makefile.in (install_to_libdir): Add $(DESTDIR).
395 (install_to_tooldir): Likewise.
396
53309d5c
DR
3972002-06-17 Douglas Rupp <rupp@gnat.com>
398
399 * lbasename.c: Add 2002 to copyright.
400 (IS_DIR_SEPARATOR): Remove VMS junk.
401
045b3a49
GK
4022002-06-05 Geoffrey Keating <geoffk@redhat.com>
403
404 * hashtab.c (htab_create): New stub function for backward
405 compatibility.
406 (htab_try_create): Likewise.
407
e2500fed
GK
4082002-06-03 Geoffrey Keating <geoffk@redhat.com>
409
410 * hashtab.c (htab_create): Delete.
411 (htab_try_create): Delete.
412 (htab_create_alloc): New.
413 (htab_delete): Support user-specified memory allocation.
414 (htab_expand): Likewise.
415
9f3dbd92
RL
4162002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
417
418 * configure.in: Fix typo in the code checking for sys_errlist.
419 * configure: Regenerated.
420
e4723404
AS
4212002-05-13 Andreas Schwab <schwab@suse.de>
422
423 * config.table: Use mh-x86pic also for x86-64.
424
6706f116
AO
4252002-05-08 Alexandre Oliva <aoliva@redhat.com>
426
427 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
428 script entry, and set LD to it when configuring multilibs.
429 * configure: Rebuilt.
430
deae2ed9
MM
4312002-05-07 Mark Mitchell <mark@codesourcery.com>
432
433 * configure.in (AC_TYPE_PID_T): Use it.
434 * configure: Regenerated.
435 * getruntime.c: Include <sys/types.h>.
436 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
437
4fc4e478
RH
4382002-04-09 Richard Henderson <rth@redhat.com>
439
440 * hashtab.c (higher_prime_number): Use 7 as minimum.
441 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
442 (htab_find_slot_with_hash): Likewise.
443
bd7e6f2d
PE
4442002-04-01 Phil Edwards <pme@gcc.gnu.org>
445
446 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
447 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
448 not compile if IN_GLIBCPP_V3 defined.
449 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
450
a8f55e51
BM
4512002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
452
de78f58b 453 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
454 if it is NULL.
455
96adcacb
DD
4562002-03-27 DJ Delorie <dj@redhat.com>
457
458 * hex.c: Add documentation.
459 (_hex_value): Provide non-ASCII empty table.
460 (hex_init): Initialize the non-ASCII table.
461 * functions.texi: Regenerate.
462
2b613c6a
MM
4632002-03-27 Mark Mitchell <mark@codesourcery.com>
464
465 * dyn-string.c: Add libgcc exception to copyright notice.
466
cd862df8
L
4672002-03-26 H.J. Lu (hjl@gnu.org)
468
469 * config.table: Support --with-build-subdir.
470 * configure.in: Likewise.
471 * configure: Rebuild.
472
ed300793
SG
4732002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
474
475 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
476 seen.
477
b3dd43df
MM
4782002-03-12 Mark Mitchell <mark@codesourcery.com>
479
480 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
481 notice.
482
50c74579
DR
4832002-03-11 Douglas B Rupp <rupp@gnat.com>
484
485 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
486
957978a4
JB
4872002-03-06 Jim Blandy <jimb@redhat.com>
488
489 * splay-tree.c (splay_tree_xmalloc_allocate,
490 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
491 prototyped definitions. Mark `data' arguments as unused.
492
ccc49bed
AC
4932002-03-06 Andrew Cagney <ac131313@redhat.com>
494
495 * floatformat.c (floatformat_arm_ext_big): Delete definition.
496
48d7db63
PE
4972002-03-04 Phil Edwards <pme@gcc.gnu.org>
498
499 * configure.in: Add --enable-install-libiberty option.
500 * Makefile.in (INSTALLED_HEADERS): New variable.
501 (install_to_libdir): Possibly also copy headers.
502 * configure: Regenerated.
503
af18e951
NB
5042002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
505
506 * xmalloc.c (xmalloc_fail): Clarify error message further.
507
d8d7c3c3
NB
5082002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
509
510 * xmalloc.c (xmalloc_fail): Clarify error message.
511
00c2f96f
JB
5122002-02-22 Jim Blandy <jimb@redhat.com>
513
514 * splay-tree.c (splay_tree_xmalloc_allocate,
515 splay_tree_xmalloc_deallocate): New functions.
516 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
517 above functions and a dummy data pointer.
518 (splay_tree_new_with_allocator): New function.
519 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
520 splay_tree_remove): Use the splay tree's allocation and
521 deallocation functions.
522
b1c1a22f
SS
5232002-02-19 Scott Snyder <snyder@fnal.gov>
524
525 * testsuite/demangle-expected: Add test case for infinite loop in
526 demangler.
527 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
528 if do_type() doesn't make any progress --- prevents an infinite
529 loop.
530
336669e7
CW
5312002-02-18 Carlo Wood <carlo@gnu.org>
532
533 PR c++/5390
534 * cplus-dem.c (demangle_integral_value): Accept multi-digit
535 numbers that do not start with an underscore; This is needed
536 for integer template parameters. This doesn't break anything
537 because multi-digit numbers are never followed by a digit.
538 * testsuite/demangle-expected: Corrected all mangled test
539 cases with multi-digit template parameters: g++ 2.95.x does
540 not generate underscores around these parameters.
541
c13db5d1
JM
5422002-02-05 Jason Merrill <jason@redhat.com>
543
544 * cplus-dem.c (flags): Add DMGL_VERBOSE
545 (cplus_demangle_v3_p): Remove.
546 (demangle_it): Add DMGL_TYPES to passed flags.
547 * cp-demangle.c (cplus_demangle_v3_all): Remove.
548 (cplus_demangle_v3_type): Remove.
549 (cplus_demangle_v3): Add options parm.
550
d74697b8
L
5512002-02-02 H.J. Lu (hjl@gnu.org)
552
553 * cp-demangle.c (cp_demangle_type): Do not protect with
554 IN_LIBGCC2.
555 (cplus_demangle_v3_all): New.
556 (cplus_demangle_v3): Call cplus_demangle_v3_all.
557 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
558
559 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
560 Initialized to cplus_demangle_v3.
561 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
562 of cplus_demangle_v3.
563 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
564 command line symbol.
565
566 * testsuite/regress-demangle: Pass the mangled name at the
567 command line.
568
3a441e38
L
5692002-02-01 H.J. Lu <hjl@gnu.org>
570
571 * cp-demangle.c (cp_demangle_type): Call demangling_new with
572 DMGL_GNU_V3.
573
6d747e63
PE
5742002-01-31 Phil Edwards <pme@gcc.gnu.org>
575
576 * cp-demangle.c: Revert yesterday's change.
577
46af757b
AM
5782002-01-31 Adam Megacz <adam@xwt.org>
579
580 * gcc/libiberty/configure.in: Treat mingw the same as cywin
581 wrt HAVE_SYS_ERRLIST.
582
46ab74b1
PE
5832002-01-30 Phil Edwards <pme@gcc.gnu.org>
584
585 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
586 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
587 cp_demangle_type.
588 * testsuite/demangle-expected: New gnu-v3 test.
589
e64d0626
MV
5902002-01-22 Momchil Velikov <velco@fadata.bg>
591
592 * configure.in (variable detection): Use arrays of unspecified
593 size instead of plain integers.
594
9ce3f7e5
DD
5952002-01-18 DJ Delorie <dj@redhat.com>
596
597 * Makefile.in (TESTLIB): New. This library is for future
598 testsuites.
599 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
600 break down by letter.
601 (REQUIRED_OFILES): List long-to-compile files first.
602 (maint-deps): New, target for updating dependencies.
603 (dependencies): Update.
604 * maint-tool: Add dependency-generating option.
605 * configure.in: Check for _doprnt even if we're not providing it.
606 * configure: Regenerate.
607
608 * _doprnt.c: Modifications to allow compiling on any platform.
609 * copysign.c: Likewise.
610 * putenv.c: Likewise.
611 * setenv.c: Likewise.
612 * vsprintf.c: Likewise.
613
0e83ceb1
DR
6142002-01-15 Douglas B Rupp <rupp@gnat.com>
615
616 * mkstemps.c (mkstemps): On VMS, open temp file with option
617 that causes it to be deleted when closed.
618
adddf5bf
KG
6192002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
620
5e65297b
KG
621 * cp-demangle.c (long_options): Const-ify.
622 * cplus-dem.c (long_options): Likewise.
623
adddf5bf
KG
624 * cplus-dem.c (mystrstr): Delete. All callers changed to use
625 strstr instead.
626
a4219437
IR
6272001-12-31 Ira Ruben <ira@apple.com>
628
629 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
630 * configure: Regenerated.
af328d8d
DR
631
6322001-12-24 Douglas B. Rupp <rupp@gnat.com>
633
634 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
635 * configure: Regenerated.
a4219437 636
63de15a4
CR
6372001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
638
639 PR other/2719
640 * cplus-dem.c (consume_count): Treat negative count as an error.
641 * testsuite/demangle-expected: Added testcase.
642
ee262b6f
DR
643Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
644
645 * configure.in: Hardcode that vfork works on VMS host.
646 * configure: Regenerated.
647
d06ba3c7
RH
6482001-12-06 Richard Henderson <rth@redhat.com>
649
650 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
651 (cplus_demangle): Support no_demangling.
652
e490616e
ZW
6532001-11-27 Zack Weinberg <zack@codesourcery.com>
654
655 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
656 in libiberty context. Fix typo in leading comment.
657 * configure.in: Fix various AC_DEFINEs so autoheader works.
658 If any of vprintf, vsprintf, vfprintf is missing from libc,
659 then AC_REPLACE_FUNCS(_doprnt).
660
97e620cf 6612001-11-26 DJ Delorie <dj@redhat.com>
e490616e 662 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
663
664 * Makefile.in (stamp-h): Depend on Makefile for proper
665 serialization.
666 (*-subdir): Depend on config.h for proper serialization.
667
c3bb7df0
DD
6682001-11-26 DJ Delorie <dj@redhat.com>
669
670 * configure.in: Check for alloca.h (for regex.c and putenv.c).
671 * configure: Regenerate.
672 * config.h: Add HAVE_ALLOCA_H.
673
23850d35
KG
6742001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
675
2c47b56b
KG
676 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
677 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
678 is available.
23850d35 679
7ddfb651
JL
680Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
681
d3982b71
JL
682 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
683 * configure.in (HAVE_UINTPTR_T): Test for system defining
684 uintptr_t and define HAVE_UINTPTR_T appropriately.
685 * regex.c (uintptr_t): Do not provide a definition if the
686 system provided one.
687
7ddfb651
JL
688 * regex.c (PREFIX): Provide an alternate definition for
689 non-ANSI/ISO compilers.
690 (ARG_PREFIX): Likewise.
691
2e683037
JM
6922001-11-12 Jim Meyering <meyering@lucent.com>
693
694 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
695 this code would end up calling gettext even in packages built
696 with --disable-nls.
697 * getopt.c (_): Likewise.
698 * regex.c (_): Likewise.
699
f749bd83
AM
7002001-11-03 Alan Modra <amodra@bigpond.net.au>
701
702 * configure.in: Cope with missing makeinfo.
55a10d7c 703 * configure: Regenerate.
f749bd83 704
26ad2982
KG
7052001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
706
e5969ba6
KG
707 * hex.c (hex_init): Provide empty stub.
708
26ad2982
KG
709 * hex.c (hex_init): Delete.
710 (_hex_value): Const-ify and initialize at compile-time.
711
afb649d5
L
7122001-10-19 H.J. Lu <hjl@gnu.org>
713
714 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
715 necessary.
716
5bed56d9
DD
7172001-10-17 DJ Delorie <dj@redhat.com>
718
719 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
720 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 721 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
722 Improve manual formatting.
723 * functions.texi: Regenerate.
724
aac04c15
DD
7252001-10-15 DJ Delorie <dj@redhat.com>
726
727 * Makefile.in (TEXIFILES): Add fnmatch.txh.
728 (maint-undoc): New.
729 maint-tool: Add "undoc" tool.
730 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
731 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
732 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
733 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
734 documentation.
735 * fnmatch.txh: New.
736 * functions.texi: Regenerate.
fae8182a 737
0e4e9e8f
JM
7382001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
739
740 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
741 * strtod.c: Use "ISO C" instead of "ANSI C".
742 * functions.texi: Regenerate.
743
7f8fa05d
JM
7442001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
745
746 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
747 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
748 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
749 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
750 spelling. Give names to function arguments in documentation. Use
751 (void) prototypes in documentation.
752 * functions.texi: Regenerate.
753
0be6abca
KG
7542001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
755
756 * argv.c (buildargv, tests, main): Const-ify.
757 * cp-demangle.c (operator_code): Likewise.
758 * cplus-dem.c (optable, libiberty_demanglers,
759 cplus_demangle_set_style, cplus_demangle_name_to_style,
760 print_demangler_list): Likewise.
761 * hashtab.c (higher_prime_number): Likewise.
762 * strcasecmp.c (charmap): Likewise.
763 * strerror.c (error_info, strerror, main): Likewise.
764 * strncasecmp.c (charmap): Likewise.
765 * strsignal.c (signal_info): Likewise.
766
0e30ffc5
DD
7672001-09-29 DJ Delorie <dj@redhat.com>
768
769 * configure: Regenerate.
770
576fb787
KG
7712001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
772
773 * concat.c: Include stdlib.h.
774
e922f978
EZ
7752001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
776
777 * libiberty.texi: (Top level): Add syncodeindex pg. Add
778 @dircategory and @direntry directives. Add @finalout.
779 (many nodes): Lose the next,prev,up pointers on the @nide line.
780 (Using, Supplemental Functions, Replacement Functions): Fix
781 markup.
782 (Functions): Move around, to allow makeinfo to build the manual
783 without next,prev,up pointers in thye node lines.
784 (Licenses): Fix typos.
785
786 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
787 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
788 * functions.texi: Regenerate.
789
790 * copying-lib.texi: Lose the next,prev,up pointers on the @node
791 line.
792
ae9092da
DD
7932001-09-27 DJ Delorie <dj@redhat.com>
794
795 * configure.in: Don't use in-tree texinfo, because libiberty must
796 be built before it. Check for makeinfo version 4 or higher.
797 * functions.texi: Regenerate.
fae8182a 798
aaa5f039
DD
7992001-09-20 DJ Delorie <dj@redhat.com>
800 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 801
aaa5f039
DD
802 * configure.in (MAKEINFO, PERL): Detect these.
803 (--enable-maintainer-mode): Add.
804 * configure: Regenerate.
805 * Makefile.in (MAKEINFO, PERL): Define.
806 (libiberty.info, libiberty.dvi, libiberty.html): New.
807 (CFILES): Add bsearch.c.
808 (CONFIGURED_OFILES): New, list of objects configure might add.
809 (maint-missing, maint-buildall): New, for maintainers only.
810 (clean, mostlyclean): Add info/dvi/html files.
811 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
812 * gather-docs: New, for maintainers.
813 * maint-tool: New, for maintainers.
814 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
815 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
816 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
817 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
818 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
819 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
820 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
821 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
822 documentation.
fae8182a 823
c1766881
KG
8242001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
825
826 * concat.c (reconcat): Fix for traditional C.
827
ad43d46f
KG
8282001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
829
830 * concat.c (reconcat): New function.
831
c1d49704
KG
8322001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
833
c793eea7
KG
834 * concat.c (vconcat_length, vconcat_copy, concat_length,
835 concat_copy, concat_copy2): New functions.
836 (concat): Use vconcat_length/vconcat_copy.
837
c1d49704
KG
838 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
839 Define.
840
7a98d9b2
KG
8412001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
842
843 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
844 VA_FIXEDARG & VA_CLOSE.
fae8182a 845
7a98d9b2
KG
846 * vasprintf.c: Check HAVE_STRING_H when including string.h.
847 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
848 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
849
e2dff3f2
KG
8502001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
851
852 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
853
d0708dc1
UD
8542001-08-23 Ulrich Drepper <drepper@redhat.com>
855
856 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
857
8582001-08-23 Ulrich Drepper <drepper@redhat.com>
859
860 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
861 instead of mbrtowc.
862 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
863 wcslen, and __wcscoll instead of wcscoll.
864
ffb9435b
MK
8652001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
866
de78f58b
AJ
867 * fibheap.c (fibheap_init, fibnode_init): Remove.
868 (fibheap_new, fibnode_new): Use xcalloc to allocate and
869 initialize memory.
870 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 871
f379eac3
RH
8722001-08-21 Richard Henderson <rth@redhat.com>
873
874 * Makefile.in (fibheap.o): Depend on config.h.
875 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
876 functions for inlining.
877
b1c45ae4
CF
878Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
879
880 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
881 hosting on cygwin.
882 * configure: Regenerate.
883
0310e5ac
AC
8842001-08-20 Andrew Cagney <ac131313@redhat.com>
885
886 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
887 HARRIS_FLOAT_FORMAT.
888 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
889 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
890 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
891 (floatformat_m88110_harris_ext): New float formats.
892
8c23e0a4
DB
8932001-08-20 Daniel Berlin <dan@cgsoftware.com>
894
895 * fibheap.c: New file. Fibonacci heap.
896
897 * Makefile.in (CFILES): Add fibheap.c.
898 (REQUIRED_OFILES): Add fibheap.o.
899 (fibheap.o): Add dependencies for fibheap.o.
900
91625004
CF
9012001-08-17 Christopher Faylor <cgf@cygnus.com>
902
903 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
904 * configure: Regenerate.
905
9e0ba685
RH
9062001-08-16 Richard Henderson <rth@redhat.com>
907
908 * hashtab.c (htab_hash_string): New.
909
d80dedbe
AC
9102001-08-13 Andrew Cagney <ac131313@redhat.com>
911
912 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
913 name.
914
ccea0d85
IH
9152001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
916
917 * regex.c (wcs_regex_compile): Use appropriate string
918 to compare with collating element.
919 Fix the padding for the alignment.
920
b0e9bc8c 9212001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
922
923 * lbasename.c (lbasename): Change function definition to return a
924 const char pointer.
925
056400f1
JM
9262001-08-07 Jason Merrill <jason_merrill@redhat.com>
927
928 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
929 for".
930
4e627c41
RH
9312001-08-03 Richard Henderson <rth@redhat.com>
932
933 * Makefile.in (concat.o): Depend on config.h.
934
b6a2f884
AJ
9352001-07-30 Andreas Jaeger <aj@suse.de>
936
937 * concat.c: Include "config.h".
938
c4b9cfe0
AJ
9392001-07-30 Andreas Jaeger <aj@suse.de>
940
941 * regex.c: Declare wcs functions only if compiling with
942 MBS_SUPPORT.
943 Don't use #elif for traditional C.
944
9452001-07-23 Ulrich Drepper <drepper@redhat.com>
946
947 * regex.c: Revamp memory allocation for WCHAR functions to
948 not use too much stack.
949
9502001-07-30 Andreas Jaeger <aj@suse.de>
951
952 * regex.c: Declare wcs functions only if compiling with
953 MBS_SUPPORT.
954 Don't use #elif for traditional C.
955
2cf50fd3
DJ
9562001-07-25 Daniel Jacobowitz <drow@mvista.com>
957
958 * Makefile.in (regex.o): Add dependency on config.h.
959
27ffc806
DD
9602001-07-18 Andreas Schwab <schwab@suse.de>
961
962 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
963 underscore character.
964
9652001-07-18 Ulrich Drepper <drepper@redhat.com>
966
967 * regex.c: Limit string length printed in debug messages to 100
968 chars.
969
9702001-07-18 Andreas Jaeger <aj@suse.de>
971
972 * regex.c: Place under LGPL version 2.1.
973
dd771632
JJ
9742001-07-10 Jeff Johnston <jjohnstn@redhat.com>
975
976 * Makefile.in: Add support for regex code.
977 * regex.c: New file.
978
29650b2b
MK
9792001-07-05 Mark Klein <mklein@dis.com>
980
981 * Makefile.in: Add ffs.c dependency.
982 * configure.in: Add ffs.c.
983 * ffs.c: New file.
984
c8b28221
RH
9852001-06-18 Richard Henderson <rth@redhat.com>
986
987 * concat.c: Include <sys/types.h>.
988
473c2d0b
LR
9892001-06-11 Loren J. Rittle <ljrittle@acm.org>
990
a4c03da2 991 bootstrap/3106
473c2d0b
LR
992 * strerror.c (sys_nerr): Hide the OS header version.
993 * strsignal.c (sys_nsig): Likewise.
994
0bdcca68
RH
9952001-06-10 Richard Henderson <rth@redhat.com>
996
997 * concat.c: Include string.h. Fix int vs size_t usage.
998 Simplify the iteration loops. Use memcpy.
999
6de133d3
MK
10002001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1001
1002 * partition.c: Fix misspelling of `implementation'.
1003
8a153288
TS
10042001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1005
1006 * md5.c (md5_init_ctx): Declare constants as unsigned.
1007 (md5_process_block): Likewise.
1008
641b2721
ZW
10092001-05-07 Zack Weinberg <zackw@stanford.edu>
1010
1011 * cp-demangle.c (demangle_v3_with_details,
1012 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1013 function definition.
1014 * ternary.c: Use K+R style function definitions. Use PTR, not
1015 void *. Make arguments constant where possible.
1016
5cdba4ff
MM
10172001-05-07 Mark Mitchell <mark@codesourcery.com>
1018
1019 * splay-tree.h (splay_tree_max): New function.
1020 (splay_tree_min): Likewise.
1021
9dab060e
DB
10222001-04-15 Daniel Berlin <dan@cgsoftware.com>
1023
1024 * ternary.c: New file - Ternary search tree implementation.
1025
1026 * Makefile.in: Add ternary.o, and ternary.c dependencies.
1027
d02af173
ZW
10282001-04-03 Zack Weinberg <zackw@stanford.edu>
1029
1030 * make-temp-file.c (try): Inline.
1031
94b68558
RH
10322001-02-28 Richard Henderson <rth@redhat.com>
1033
1034 * Makefile.in (make-temp-file.o): Depend on config.h.
1035
27f66c0b
KG
10362001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1037
1038 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1039
f1a0345c
JJ
10402001-03-23 Jakub Jelinek <jakub@redhat.com>
1041
1042 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1043 `_' not followed by a digit is invalid.
1044
a519fba6
JB
10452001-03-22 Jim Blandy <jimb@redhat.com>
1046
1047 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1048 instead of free, to free the contents as well as the string
1049 structure.
1050
49ee944b
ZW
10512001-03-21 Zack Weinberg <zackw@stanford.edu>
1052
1053 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1054 Don't default P_tmpdir to anything. Try /var/tmp before
1055 /usr/tmp.
1056
33437dc7
ZW
10572001-03-20 Zack Weinberg <zackw@stanford.edu>
1058
1059 * choose-temp.c: Split off make_temp_file, and the code
1060 duplicated between it and choose_temp_base, into...
1061 * make-temp-file.c: ... here; new file.
1062
1063 * Makefile.in (CFILES): Add make-temp-file.c.
1064 (REQUIRED_OFILES): Add make-temp-file.o.
1065
7dce2eff
JB
10662001-03-20 Jim Blandy <jimb@redhat.com>
1067
1068 * cp-demangle.c (struct demangling_def): New fields:
1069 is_constructor and is_destructor.
1070 (demangling_new): Initialize them.
1071 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1072 or destructor.
1073 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1074 is_gnu_v3_mangled_dtor): New functions.
1075
e03a61f1
JM
10762001-03-20 Jason Merrill <jason@redhat.com>
1077
1078 * cplus-dem.c (main): Skip initial $.
1079
8860ddab
MM
10802001-03-15 Michael Meissner <meissner@redhat.com>
1081
1082 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1083 might be a signed integer under pre-ISO C systems.
1084
2b757d51
NB
10852001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1086 John David Anglin <dave@hiauly1.hia.nrc.ca>
1087
1088 * libiberty/lbasename.c: New file.
1089 * libiberty/Makefile.in: Update for lbasename.
1090
1f50aafb
ZW
10912001-03-06 Zack Weinberg <zackw@stanford.edu>
1092
1093 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1094 * configure.in: Replace all alloca logic with a simple use of
1095 the above new macro.
1096 * config.table: Kill *-*-beos* entry.
1097 * config/mh-beos: Delete.
1098 * configure, config.in: Regenerate.
1099
1100 * Makefile.in (ALLOCA, HFILES): Kill.
1101 (REQUIRED_OFILES): Add alloca.o.
1102 (alloca.o): Depend on libiberty.h.
1103 (argv.o): Don't depend on alloca-conf.h.
1104 * alloca-conf.h: Delete.
1105 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1106 blocks. Provide the C alloca unconditionally. Use PTR where
1107 appropriate. Make i00afunc static.
1108 * argv.c: Don't include alloca-conf.h.
1109
d9fd5aae
JDA
11102001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1111
1112 * cplus-dem.c (main): Cast enum style to int.
1113
4031ed65
LR
11142001-02-16 Loren J. Rittle <ljrittle@acm.org>
1115
1116 * cplus-dem.c (main): Initialize style.
1117
2ca46e8a
PE
11182001-02-02 Phil Edwards <pme@sources.redhat.com>
1119
1120 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1121
3b60dd8e
BM
11222001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1123
1124 Add support for Java demangling under the v3 ABI:
1125 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1126 (struct demangling_def): Add `style' field.
1127 (demangling_new): New parameter `style'. Set it in demangling_t.
1128 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1129 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1130 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1131 (main): Call cp_demangle with extra parameter.
1132 (java_demangle_v3): New function.
1133 (java_builtin_type_names): New. Table of primitive type names used
1134 for Java demangling.
1135 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1136 Java output.
1f50aafb 1137 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
1138 demangling.
1139 (long_options): Remove obsolete `java' option.
1140 (main): Remove explicit handling of `java' option. Instead, pass style
1141 parameter in cplus_demangle flags as gdb does.
1142 * testsuite/demangle.expected: Add some Java test cases.
1143
584932e9
DD
11442000-12-29 DJ Delorie <dj@redhat.com>
1145
1146 * fnmatch.c: Make the note about the origins of this file more
1147 accurate, at least until we can sync with glibc.
1148 * getopt.c: Ditto.
1149 * getopt1.c: Ditto.
1150 * md5.c: Ditto.
1151 * obstack.c: Ditto.
1152
dac45916
MS
11532000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1154
1155 * bsearch.c: New file.
1156 * configure.in (funcs): Add bsearch.
1157 (AC_CHECK_FUNCS): Likewise.
1158 * configure, config.in: Regenerate.
1159
a8e4a997
MS
11602000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1161
1162 * safe-ctype.c: #include "ansidecl.h".
1163 * strtod.c: Likewise.
1164
75444da7
MS
11652000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1166
1167 * strtoul.c: Include safe-ctype.h, not ctype.h.
1168
f6bbde28
ZW
11692000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1170
1171 * safe-ctype.c: New file.
1172 * Makefile.in (CFILES): Add safe-ctype.c.
1173 (REQUIRED_OFILES): Add safe-ctype.o.
1174
1175 * argv.c: Define ISBLANK and use it, not isspace.
1176 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1177 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1178 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1179 before calling TOLOWER(c)/TOUPPER(c).
1180
6c1ce62b 11812000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
1182
1183 * Makefile.in (distclean): When cleaning, remove testsuite.
1184
b5d1497d
JM
11852000-12-05 Jason Merrill <jason@redhat.com>
1186
1187 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1188 name before allocating the dyn_string.
1189
c6e13630
JM
11902000-12-04 Jason Merrill <jason@redhat.com>
1191
1192 * cp-demangle.c: s/new_abi/v3/.
1193 * cplus-dem.c: Likewise.
1194 (current_demangling_style): Now auto_demangling.
1195 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 1196 (main): Use standard symbol chars for auto_demangling.
c6e13630 1197
a4c9b97e
MM
11982000-11-26 Mark Mitchell <mark@codesourcery.com>
1199
1200 * hashtab.c (higher_prime_number): Use a table, rather than a
1201 seive, to find the next prime.
1202
3b3bd9a7
L
12032000-11-22 H.J. Lu <hjl@gnu.org>
1204
1205 * cplus-dem.c (main): Handle gnat_demangling.
1206
d1209685
ZW
12072000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1208
1209 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1210 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1211 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1212 argument form of AC_DEFINE in dummy definitions block. Use
1213 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1214 in dummy block. Preload cache variables instead of bypassing
1215 tests, where possible.
1216 * acconfig.h: Removed.
1217
1218 * xmalloc.c (xmalloc_failed): New function, does error
1219 reporting on failed allocation.
1220 (xmalloc, xcalloc, xrealloc): Use it.
1221
cf183ac2
HPN
12222000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1223
1224 * cplus-dem.c (cplus_demangle): Fix formatting.
1225 (grow_vect): Ditto.
1226 (ada_demangle): Ditto.
1227 (internal_cplus_demangle): Ditto.
1228 (mop_up): Ditto.
1229
12302000-11-21 H.J. Lu <hjl@gnu.org>
1231
1232 * cplus-dem.c (main): Handle java_demangling.
1233
8bcc782c
KG
12342000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1235
1236 * cplus-dem.c (grow_vect): Prototype.
1237 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1238
29120f44
HPN
12392000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1240
1241 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1242 parameter `option'.
1243
0437a5a8
KB
12442000-11-15 Kenneth Block <kenneth.block@compaq.com>
1245
9e038f71 1246 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
1247 be used in GCC.
1248
eab0c1ab 12492000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 1250
29120f44 1251 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
1252 list.
1253
d50d20ec
HPN
12542000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1255
1256 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
1257 xcalloc depending on htab->return_allocation_failure. Return zero
1258 if calloc fails.
d50d20ec
HPN
1259 (htab_create): Update comment to cover memory allocation.
1260 (htab_try_create): New.
1261 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 1262 Update comment to cover this.
d50d20ec 1263
35e9340f
HPN
12642000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1265
1266 * hashtab.c: Change void * to PTR where necessary.
1267 (htab_create, htab_expand): Correct formatting of comment before
1268 function.
1269
ea343d1a 12702000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
1271
1272 * cp-demangle.c (string_list_def): Add caret_position and comments.
1273 (result_caret_pos): New macro.
1274 (result_append_string): Rename to...
1275 (result_add_string): ... this, and insert at caret position.
d1209685 1276 Rename throughout.
0870bfd6
AS
1277 (result_append): Rename to...
1278 (result_add): ... this, and insert at caret position. Rename
d1209685 1279 throughout.
0870bfd6
AS
1280 (result_append_char): Rename to...
1281 (result_add_char): ... this, and insert at caret position. Rename
d1209685 1282 throughout.
0870bfd6
AS
1283 (result_append_space): Remove.
1284 (string_list_new): Initialize caret position.
1285 (result_add_separated_char): Use caret position.
1286 (result_get_caret): New funtion.
1287 (result_set_caret): Likewise.
1288 (result_shift_caret): Likewise.
1289 (result_previous_char_is_space): Likewise.
1290 (substitution_start): Use caret position.
1291 (substitution_add): Likewise.
1292 (demangling_new): Initialize caret position.
1293 (demangle_encoding): Use caret position.
d1209685 1294 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
1295 (demangle_type_ptr): Use switch statement. Handle pointers to
1296 arrays. Don't use result_append_space. Use caret position.
1297 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
1298 call to demangle_array_type.
1299 (demangle_array_type): Add parameter to handle pointers to arrays.
1300
f15b9af9
MM
13012000-10-01 Mark Mitchell <mark@codesourcery.com>
1302
1303 * splay-tree.c (splay_tree_insert): Fix formatting.
1304
8f17b5c5
MM
13052000-09-16 Mark Mitchell <mark@codesourcery.com>
1306
1307 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1308
4eaa189a
MS
13092000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1310
1311 * splay-tree.c: #include <stdio.h>.
1312
29791078
HPN
13132000-09-14 Hans-Peter Nilsson <hp@axis.com>
1314
1315 * testsuite/demangle-expected: Add two tests for anonymous
1316 namespaces.
1317 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1318
2c9f4db7
MM
13192000-09-10 Mark Mitchell <mark@codesourcery.com>
1320
1321 * splay-tree.c (splay_tree_predecessor): New function.
1322 (splay_tree_successor): Likewise.
1323
bb22da4b
HPN
13242000-09-10 Hans-Peter Nilsson <hp@axis.com>
1325
1326 * testsuite/demangle-expected: Add four tests for type_info
1327 mangling.
bb22da4b
HPN
1328 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1329 for a non-template non-qualified type_info function or node.
1330
759e8187
AS
13312000-09-08 Alex Samuel <samuel@codesourcery.com>
1332
1333 * cp-demangle.c: Fix copyright banner.
1334
2ecd81ef
MS
13352000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1336
1337 * md5.c: #include "ansidecl.h".
1338
d93998ec
AS
13392000-09-06 Alex Samuel <samuel@codesourcery.com>
1340
1341 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1342 (demangle_type): Handle substitution candidates correctly in the
1343 face of special substitutions.
1344
1056d228
AS
13452000-09-05 Alex Samuel <samuel@codesourcery.com>
1346
1347 * cp-demangle.c (demangle_encoding): Rename variable.
1348 (demangle_name): Rename parameter. Handle return type
1349 suppression.
1350 (demangle_nested_name): Rename parameter.
1351 (demangle_prefix): Likewise. Change return type suppression.
1352 (demangle_unqualified_name): Add parameter. Flag constructors and
1353 conversion operators.
1354 (demangle_special_name): Fix comment.
1355 (demangle_type): Rename variable.
1356 (demangle_bare_function_type): Check for missing return type and
d1209685 1357 parameter.
1056d228
AS
1358 (demangle_class_enum_type): Rename parameter.
1359 (demangle_discriminator): Fix misspelling in comment.
1360
2f31ed7e
DD
13612000-08-31 DJ Delorie <dj@redhat.com>
1362
1363 * configure.in (Cygwin): special case cygwin only when we're
1364 building cygwin, not when we're hosting cygwin.
1365
02bcb9c6
AS
13662000-09-04 Alex Samuel <samuel@codesourcery.com>
1367
1368 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1369 <expression>.
1370
aee749cf
AS
13712000-09-04 Alex Samuel <samuel@codesourcery.com>
1372
1373 * cp-demangle.c (demangle_type_ptr): Increment position past
1374 pointer and reference characters.
1375
92a16bbe
AS
13762000-09-04 Alex Samuel <samuel@codesourcery.com>
1377
1378 * cp-demangle.c (demangle_nv_offset): New function.
1379 (demangle_v_offset): Likewise.
1380 (demangle_call_offset): Likewise.
1381 (demangle_special_name): Update thunk demangling to comply with
1382 ABI changes.
d1209685 1383
31e0ab1f
AS
13842000-09-03 Alex Samuel <samuel@codesourcery.com>
1385
1386 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1387 (substitution_def): Remove template_parm_number.
1388 (NOT_TEMPLATE_PARM): Remove.
1389 (result_insert_string): New macro.
1390 (result_insert): Likewise.
1391 (result_insert_char): Likewise.
1392 (substitution_add): Remove last parameter. Don't store template
d1209685 1393 parm number.
31e0ab1f
AS
1394 (BFT_NO_RETURN_TYPE): Define as NULL.
1395 (demangle_encoding): Adjust call to demangle_bare_function_type.
1396 (demangle_name): Adjust substitution. Adjust call to
d1209685 1397 substitution_add.
31e0ab1f
AS
1398 (demangle_prefix): Adjust call to substitution_add.
1399 (demangle_identifier): Handle anonymous namespaces.
1400 (demangle_operator_name): Change demangling of vendor-extended
1401 operator to match ABI changes.
1402 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1403 substitutions here.
31e0ab1f
AS
1404 (demangle_type): Adjust calls to demangle_template_param,
1405 substitution_add, and demangle_type_ptr. Fix substitution of
1406 templated types.
1407 (demangle_function_type): Change parameter to a pointer.
1408 (demangle_bare_function_type): Likewise. Adjust insertion point.
1409 (demangle_template_param): Remove last parameter.
1410 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1411 demangle_template_param.
31e0ab1f
AS
1412 (is_mangled_char): Accept `$' and `.'.
1413 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1414 * dyn-string.c (dyn_string_insert_char): New function.
1415
ccbc3eb7
HPN
14162000-08-31 Hans-Peter Nilsson <hp@axis.com>
1417
1418 * testsuite/demangle-expected: Add nine tests for
1419 underscore-after-number followed by five tests for name-signature
1420 delimiter.
1421
53dce582
RH
14222000-08-28 Richard Henderson <rth@cygnus.com>
1423
1424 * Makefile.in (md5.o): Depend on config.h.
1425
881c6935
JM
14262000-08-28 Jason Merrill <jason@redhat.com>
1427
1428 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1429 (CFILES): Add md5.c.
1430 * md5.c: New file.
1431
a440fd19
AS
14322000-08-27 Alex Samuel <samuel@codesourcery.com>
1433
1434 * cp-demangle.c (demangle_name): Initialize template_p in local
1435 name case. Don't re-add substitutions as candidates.
1436 (demangle_nested_name): Use <unqualified-name>.
1437 (demangle_prefix): Likewise. Don't add template names as
1438 substitution candidates twice, or re-add a substitution or the
1439 last prefix component.
1440 (demangle_local_name): Adjust output format.
1441
d01ce591
AS
14422000-08-25 Alex Samuel <samuel@codesourcery.com>
1443
1444 * cp-demangle.c (result_add_separated_char): Change parameter to
1445 int.
1446 (substitution_add): Don't check for duplicates. Check if
1447 previously allocated size is zero.
1448 (demangle_name): Remove duplicate check for std substitution.
1449 Clear template flag appropriately.
1450 (demangle_prefix): Remove argument to demangle_substitution.
1451 Don't check that template flag is already set.
1452 (demangle_operator_name): Add pt operator.
1453 (demangle_type): Don't treat r as built-in type. Remove argument
1454 to demangle_substitution. Fix substitution candidate mechanics.
1455 Handle <template-template-parm>s. Improve comments.
d1209685 1456 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1457 (demangle_substitution): Remove parameter.
1458 (print_usage): Remove extra fprintf option.
1459
2f59c8eb
GM
14602000-08-24 Greg McGary <greg@mcgary.org>
1461
1462 * libiberty/random.c (end_ptr): Revert previous change.
1463
2f26c11d
GM
14642000-08-24 Greg McGary <greg@mcgary.org>
1465
1466 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1467 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1468 * libiberty/random.c (end_ptr): Likewise.
1469
e282c9c9
AS
14702000-08-23 Alex Samuel <samuel@codesourcery.com>
1471
1472 * cp-demangle.c (result_close_template_list): Remove function.
1473 (result_add_separated_char): New function.
1474 (result_open_template_list): New macro.
1475 (result_close_template_list): Likewise.
1476 (demangle_prefix): Don't set template_p if the
1477 prefix ends with a ctor name.
1478 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1479 (demangle_type): Check for template args after substitution.
1480 (demangle_template_args): Use result_open_template_list.
d1209685 1481
c9b6494a
ZW
14822000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1483
1484 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1485
d1209685 14862000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1487
1488 * config/mh-openedition.h: Added -DLE370 definition.
1489
0aab2795
ME
14902000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1491
1492 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1493 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1494 Cast program to 'char *' in errmsg_arg assignment.
1495 (PWAIT_ERROR): Define.
1496 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1497 to DJGPP's WIF* macros.
1498
c2f275e4
RB
14992000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1500 Jeff Law <law@cygnus.com>
1501
73aa9564
RB
1502 * getcwd.c: Include string.h, stdlib.h for prototypes
1503
c2f275e4 1504 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1505 * rename.c: Include config.h, unistd.h
1506 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1507
ccbc3eb7
HPN
15082000-07-24 Hans-Peter Nilsson <hp@axis.com>
1509
1510 * cplus-dem.c (work_stuff_copy_to_from): New.
1511 (delete_non_B_K_work_stuff): New.
1512 (delete_work_stuff): New.
1513 (mop_up): Break out work_stuff partly destruction to
1514 delete_non_B_K_work_stuff.
1515 (iterate_demangle_function): New.
1516 (demangle_prefix): Call iterate_demangle_function instead of
1517 demangle_function_name. Leave handling of name-signature
1518 __-delimiters to iterate_demangle_function.
1519 (demangle_integral_value): Strip an optional
1520 following underscore cautiously. Handle negative numbers.
1521
3388651c
DB
15222000-07-24 Daniel Berlin <dberlin@redhat.com>
1523
d1209685 1524 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1525 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1526
0fac482e
AS
15272000-07-21 Alex Samuel <samuel@codesourcery.com>
1528
1529 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1530 allocating ctor mangling.
1531 (demangle_array_type): Handle empty and non-constant array length.
1532
8502a100 15332000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1534 Jeff Law <law@cygnus.com>
1535
c6451ce1
MS
1536 * configure.in (AC_CHECK_HEADERS): Add time.h.
1537 (AC_HEADER_TIME): Add check.
1538 * configure, config.in: Regenerate.
1539 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1540
cd447360
MS
1541 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1542 * configure, config.in: Regenerate.
1543 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1544 * strtol.c, strtoul.c: #include "config.h". Portably #include
1545 <limits.h> and/or <sys/param.h>.
1546 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1547
3b58c099
MS
1548 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1549 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1550 * configure, config.in: Regenerate.
1551 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1552
8502a100
MS
1553 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1554
da0c7743
MS
15552000-07-21 Mike Stump <mrs@wrs.com>
1556
1557 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1558 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1559
838f8562
KG
15602000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1561
1562 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1563
1564 * setenv.c (setenv): Initialize variable `ep'.
1565
1566 * sigsetmask.c (abort): Prototype.
1567
1568 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1569 __STDC__ for stdarg.h include.
1570 (int_vasprintf): Prototype.
1571 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1572 definition. Cast `global_total_width' in comparison.
1573 (main): Prototype. Return a value.
1574
1575 * vfork.c (fork): Prototype.
1576
1577 * xexit.c: Include config.h.
1578
e9958132
JM
15792000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1580
1581 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1582 and print it with %u.
1583
39a6492f
HPN
15842000-07-17 Hans-Peter Nilsson <hp@axis.com>
1585
1586 * testsuite/regress-demangle (failed test): Show result and
1587 expected output.
1588
6d0be369
AH
15892000-07-07 Andrew Haley <aph@cygnus.com>
1590
1591 * cplus-dem.c (main): fflush() after emitting last char before
1592 waiting for input.
1593
bece74bd
AS
15942000-06-28 Alex Samuel <samuel@codesourcery.com>
1595
1596 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1597 (demangle_name): Handle <substitution> followed by
1598 <unqualified-template-name>.
1599 (demangle_type): Follow special substitutions with
1600 <class-enum-type>
1601 (demangle_subtitution): Set template_p for special substitutions.
1602 (main): Fix typos.
d1209685 1603
229b8ec7
AS
16042000-06-27 Alex Samuel <samuel@codesourcery.com>
1605
1606 * cp-demangle.c (demangle_special_name): Swap base and derived
1607 class when demangling construction vtables.
1608
051664b0
AS
16092000-06-21 Alex Samuel <samuel@codesourcery.com>
1610
1611 * cp-demangle.c: Don't include ctype.h.
1612 (IS_DIGIT): New macro.
1613 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1614 instead of isdigit and isalpanum.
1615 (demangling_def): Make name and next const pointers.
1616 (STATUS_ALLOCATION_FAILED): New status code.
1617 (dyn_string_append_space): Handle failure in
1618 dyn_string_append_char.
1619 (int_to_dyn_string): Likewise. Change return value to status_t.
1620 (string_list_new): Handle failure of dyn_string_init.
1621 (result_close_template_list): Change return type to status_t.
1622 Handle failure in dyn_string_append.
1623 (result_push): Change return value to status_t. Handle failure in
1624 string_list_new. Handle failure of result_push throughout.
1625 (substitution_add): Change return value to status_t. Handle
1626 dyn_string failures. Handle failure of substitution_add
1627 throughout.
1628 (template_arg_list_new): Return NULL on allocation failure.
1629 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1630 Handle error result throughout.
1631 (result_append): Likewise.
1632 (result_append_char): Likewise.
1633 (result_append_space): Likewise.
1634 (demangling_new): Make argument a const pointer. Handle
1635 allocation failures.
1636 (demangle_template_args): Handle failure in template_arg_list_new
1637 and result_close_template_list.
1638 (demangle_discriminator): Return if int_to_dyn_string fails.
1639 (cp_demangle): Likewise.
1640 (cp_demangle_type): New function.
1641 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1642 memory allocation failure.
1643 (main): Likewise.
1644 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1645 IN_LIBGCC2.
1646 (dyn_string_init): Change return value to int. Handle
1647 RETURN_ON_ALLOCATION_FAILURE case.
1648 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1649 (dyn_string_release): Delete the dyn_string.
1650 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1651 (dyn_string_copy): Change return type to int.
1652 (dyn_string_copy_cstr): Likewise.
1653 (dyn_string_prepend): Likewise.
1654 (dyn_string_prepend_cstr): Likewise.
1655 (dyn_string_insert): Likewise.
1656 (dyn_string_insert_cstr): Likewise.
1657 (dyn_string_append): Likewise.
1658 (dyn_string_append_cstr): Likewise.
1659 (dyn_string_append_char): Likewise.
1660 (dyn_string_substring): Likewise.
d1209685 1661
fe06b696
ZW
16622000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1663
1664 * cp-demangle.c (demangle_operator_name): Add spaces before
1665 names beginning with a letter: delete, delete[], new, new[],
1666 sizeof.
1667 (demangle_special_name): Handle TF <type> and TJ <type>.
1668
6223e158
PDM
1669Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1670
1671 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1672
48f3e29b
PDM
1673Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1674
1675 * cp-demangle.c (stdio.h): File included unconditionaly.
1676 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1677 * dyn-string.c (stdio.h): File included.
1678 * partition.c (partition_print): No `&' needed to take the address of
1679 a function.
1680
69197e7e
KG
16812000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1682
1683 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1684
69197e7e
KG
1685 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1686
1687 * cp-demangle.c (demangle_char): Change parameter from char to int.
1688 (demangle_expression, demangle_expr_primary): Remove extra
1689 semi-colon in prototype.
1690
1691 * dyn-string.c (dyn_string_append_char): Change parameter from
1692 char to int.
1693
1694 * memcmp.c (memcmp): Constify.
1695
1696 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1697 __extension__.
1698
1699 * partition.c (elem_compare): Prototype. Don't cast away
1700 const-ness.
1701
1702 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1703
7eb23b1f
KG
17042000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1705
1706 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1707
1708 * cp-demangle.c: Include demangle.h.
1709 (template_arg_list_new): DeANSIfy.
1710 (cp_demangle): Make static and add prototype.
1711 (operator_code, operators): Constify.
1712 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1713
3faa108c
AS
17142000-06-05 Alex Samuel <samuel@codesourcery.com>
1715
1716 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1717 unsigned char.
1718 (demangle_unqualified_name): Likewise.
1719 (demangle_number_literally): Likewise.
1720 (demangle_type): Likewise.
1721 (demangle_substitution): Likewise.
1722 (is_mangled_char): Likewise, for isalnum.
1723
69afa80d
AS
17242000-06-04 Alex Samuel <samuel@codesourcery.com>
1725
1726 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1727 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1728 (cp-demangle.o): New dependency.
1729 (dyn-string.o): Likewise.
1730
1731 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1732
1733 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1734 demangler.
1735 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1736 demangling mode.
1737 (gnu_new_abi_symbol_characters): New function.
1738 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1739 file.
1740 * cp-demangle.c: New file.
d1209685 1741
0b72c3df
AC
1742Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1743
1744 * floatformat.c: Add name to each floatformat field.
1745
270cea06
JL
1746Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1747
1748 * Makefile.in (objalloc.o): Depend on config.h
1749
d11ec6f0
ZW
17502000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1751
1752 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1753 if HAVE_STRING_H.
1754 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1755 * objalloc.c: Include config.h. Include stdlib.h and don't
1756 declare malloc or free if HAVE_STDLIB_H.
1757 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1758 else declare malloc without prototype. Include string.h if
1759 HAVE_STRING_H, else declare memset without prototype. Don't
1760 include stddef.h.
1761
f8e2da56
MS
17622000-05-23 Mike Stump <mrs@wrs.com>
1763
1764 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1765 -j3.
f8e2da56 1766
650f3068
DA
17672000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1768
1769 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1770
1d2da2e1
HB
17712000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1772
d1209685 1773 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1774 probably zero, also eliminate a warning on alpha.
1775
47668d0a
DE
17762000-05-15 David Edelsohn <edelsohn@gnu.org>
1777
c7a79a32 1778 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1779 on $(enable_shared).
1780
36348eab
JJ
17812000-05-10 Jakub Jelinek <jakub@redhat.com>
1782
1783 * config.table: Use mh-sparcpic for sparc*-*-*.
1784
209bbe34
NC
17852000-05-08 Nick Clifton <nickc@cygnus.com>
1786
1787 * Makefile.in (CFILES): Add strncmp.c.
1788 (NEEDED): Add strncmp.
1789
a85a47fb
KG
17902000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1791
1792 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1793 Cast the arguments to `islower' to `unsigned char'.
1794 (print_demangler_list): Prototype.
1795
4aef973c
PDM
1796Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1797
1798 * sort.c (UCHAR_MAX): Provide fallback definition.
1799
3b94497c
AO
18002000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1801
1802 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1803 SUBDIRS.
1804
24eaa47a
KB
18052000-04-28 Kenneth Block <block@zk3.dec.com>
1806 Jason Merrill <jason@casey.cygnus.com>
1807
d1209685
ZW
1808 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1809 (cplus_demangle_set_style): New function for setting style.
1810 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1811
a9266bfa
KG
18122000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1813
1814 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1815
1816 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1817 (libiberty_AC_FUNC_STRNCMP): Invoke.
1818
1819 * strncmp.c: New file.
1820
8e02c4d0
JH
1821Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1822
1823 * hashtab.c (htab_expand): Add prototype.
1824 (find_empty_slot_for_expand): Likewise.
1825
4feeaae3
KG
18262000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1827
1828 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1829 match prototype.
1830 (htab_expand): Cast the return value of xcalloc.
1831
18a94a2f
MM
18322000-04-24 Mark Mitchell <mark@codesourcery.com>
1833
1834 * hashtab.c (hash_pointer): New function.
1835 (eq_pointer): Likewise.
1836 (htab_hash_pointer): New variable.
1837 (htab_eq_pointer): Likewise.
1838
eeb0656f
MM
18392000-04-23 Mark Mitchell <mark@codesourcery.com>
1840
b51024fc
MM
1841 * sort.c (sort_pointers): Fix endianness bugs.
1842
eeb0656f
MM
1843 * sort.c: New file.
1844 * Makefile.in (CFILES): Add sort.c
1845 (REQUIRED_OFILES): Add sort.o.
1846 (sort.o): New target.
1847
7277f72d
MS
18482000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1849
1850 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1851 4.3BSD systems.
1852
e38992e8
RK
1853Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1854
1855 * hashtab.c: Various minor cleanups.
1856 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1857 (htab_find_slot): Likewise.
1858
498e1ab1
DP
18592000-04-16 Dave Pitts <dpitts@cozx.com>
1860
1861 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1862
dc17cc7b
RH
18632000-04-05 Richard Henderson <rth@cygnus.com>
1864
1865 * splay-tree.c (splay_tree_remove): New.
1866
b13eb66b
MM
18672000-03-30 Mark Mitchell <mark@codesourcery.com>
1868
1869 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1870 codes.
1871 (htab_find_with_hash): Likewise.
1872 (htab_find_slot_with_hash): Likewise.
d1209685 1873
0194e877
ZW
18742000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1875
1876 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1877 unless it will be used. Rearrange loop for better
1878 optimization.
1879 (higher_prime_number): Add static prototype.
1880
abc61fd4
JL
1881Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1882
1883 * Makefile.in (partition.o): Depend on config.h
1884
8c5d513f
BS
18852000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1886
1887 * hashtab.c (find_empty_slot_for_expand): New function.
1888 (htab_expand): Use it instead of htab_find_slot.
1889 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1890 argument HASH.
1891 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1892 (htab_find): New wrapper function.
1893 (htab_find_slot): Likewise.
1894 (htab_traverse): Pass slot, not entry, to called function.
1895
d9d4fb43
AS
18962000-03-09 Alex Samuel <samuel@codesourcery.com>
1897
1898 * Makefile.in (CFILES): Add partition.c.
1899 (REQUIRED_OFILES): Add partition.o.
1900 (partition.o): New rule.
1901 * partition.c: New file.
d1209685 1902
5dc9cffd
ZW
19032000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1904
1905 * hashtab.c (htab_create): Set del_f.
1906 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1907 Use it.
1908
5194cf08
ZW
19092000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1910
1911 * hashtab.c: Remove debugging variables (all_searches,
1912 all_collisions, all_expansions). Delete
1913 all_hash_table_collisions.
1914 (create_hash_table, delete_hash_table, empty_hash_table,
1915 find_hash_table_entry, remove_element_from_hash_table_entry,
1916 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1917 hash_table_elements_number, hash_table_collisions): Rename to:
1918 htab_create, htab_delete, htab_empty, htab_find_slot,
1919 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1920 htab_elements, htab_collisions.
1921 (htab_find): New function, handles common case where you don't
1922 plan to add or delete an entry.
1923 (htab_expand): Don't create a whole new table, just a new
1924 entry vector.
1925 (htab_find_slot): Simplify logic.
1926
5ad5a984
ILT
19271999-08-03 Ian Lance Taylor <ian@zembu.com>
1928
1929 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1930 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1931
1932 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1933 $(TARGETLIB)n so it works on MSDOS.
1934 (install_to_tooldir): Likewise.
1935
19361999-07-21 Ian Lance Taylor <ian@zembu.com>
1937
1938 From Mark Elbrecht:
1939 * makefile.dos: Remove; obsolete.
1940 * configure.bat: Remove; obsolete.
1941
19421999-07-11 Ian Lance Taylor <ian@zembu.com>
1943
1944 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1945 warning.
1946
aeecce42
MK
19472000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1948
1949 * pexecute.c: Conditionally include string.h.
5194cf08 1950 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1951
1eaf7d9c
KG
19522000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1953
1954 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1955 we're using gcc.
1956
1957 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1958
0fadedb2
GK
19591999-12-27 Geoff Keating <geoffk@cygnus.com>
1960
1961 * vasprintf.c (int_vasprintf): Don't re-read the format character
1962 as this mishandles strings like '%%s'.
1963
08230f26
MM
19641999-12-05 Mark Mitchell <mark@codesourcery.com>
1965
1966 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1967 rather than struct splay_tree_node.
1968 (splay_tree_insert): Use struct splay_tree_s rather than struct
1969 splay_tree.
1970
6de9b8ff
PDM
1971Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1972
1973 * hashtab.c (sys/types.h): File included.
1974
f3636679
JM
19751999-11-22 Jason Merrill <jason@casey.cygnus.com>
1976
1977 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1978 BSD license, pursuant with
1979
1980 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1981
36dd3a44
JL
1982Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1983
1984 * hashtab.c: Include stdio.h.
1985
6e300472
JL
1986Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1987
1988 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1989
df548dfc
PDM
1990Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1991
1992 * xstrdup (sys/types.h): Include this file.
1993
2c375143
NS
19941999-10-28 Nathan Sidwell <nathan@acm.org>
1995
1996 * Makefile.in (SUBDIRS): New macro.
1997 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1998 avoid multiple subdirectory cleaning.
1999 (*-subdir): Use SUBDIRS.
2000
a82cecda
JK
20011999-10-25 Jim Kingdon <http://developer.redhat.com/>
2002
2003 * cplus-dem.c: Move declarations of standard_symbol_characters and
2004 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2005 warnings.
2006
ed38f5d5
ZW
20071999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2008
2009 * hashtab.c (find_hash_table_entry): When returning a
2010 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2011 (clear_hash_table_slot): New function which deletes an entry
2012 by its position in the table, not its value.
2013 (traverse_hash_table): New function which calls a hook
2014 function for every live entry in the table.
2015
b60fe4a7
MM
20161999-10-19 Mark Mitchell <mark@codesourcery.com>
2017
2018 * cplus-dem.c (INTBUF_SIZE): New macro.
2019 (string_append_template_idx): New function.
2020 (demangle_expression): Likewise.
2021 (demangle_integral_value): Use it.
2022 (demangle_real_value): New function, split out from ...
2023 (demangle_template_value_parm): ... here. Use
2024 string_append_template_idx. Use demangle_real_value.
2025 (demangle_template): Use string_append_template_idx.
2026 (demangle_qualified): Use consume_count_with_underscores.
2027 (get_count): Tweak formatting.
2028 (do_type): Use string_append_template_idx.
5194cf08 2029
3da5522a
KG
20301999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2031
2032 * calloc.c: Add a public domain notice.
2033
d7d36ea8
PDM
2034Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2035
2036 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2037
a2f945c6
VM
2038Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2039
2040 * Makefile.in (CFILES): Add hashtab.c
2041 (REQUIRED_OFILES): Add hashtab.o
2042 (hashtab.o): Add dependencies.
2043 * hashtab.c: New file
2044
7f22ec2e
MK
2045Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2046
2047 * basename.c (DIR_SEPARATOR): New macro.
2048 (DIR_SEPARATOR_2): Likewise.
2049 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2050 (IS_DIR_SEPARATOR): Likewise.
2051 (main): Handle MSDOS style pathname.
2052
7c56a6ce
MM
20531999-10-11 Mark Mitchell <mark@codesourcery.com>
2054
2055 * cplus-dem.c (do_type): Handle pointer to member types whose
2056 enclosing classes have namespace scope.
2057
cd32188b
ME
2058Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2059
2060 * config.table: Provide a backup shell for executing move-if-change.
2061
fc232f7a
MM
20621999-10-02 Mark Mitchell <mark@codesourcery.com>
2063
2064 * xmalloc.c (xmalloc): Fix spelling error.
2065 (xcalloc, xrealloc): Likewise.
2066
2a138827
KG
20671999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2068
2069 * cplus-dem.c (fancy_abort, demangle_integral_value,
2070 demangle_arm_hp_template, recursively_demangle,
2071 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2072 (program_name, program_version, fatal): Constify a char*.
2073 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2074 (main): Call return, not exit.
2075
5a657fc3
KG
20761999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2077
2078 * choose-temp.c: Remove obsolete comment about gcc.
2079 (make_temp_file): Constify a char*.
2080
33c5ddcd
KG
2081Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2082
2083 * xmemdup.c: Include sys/types.h.
2084
b10647f1
JG
20851999-09-07 Jeff Garzik <jgarzik@pobox.com>
2086
2087 * xmemdup.c: New xmemdup function.
2088 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2089
3dd6c3af
LV
2090Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2091
5194cf08 2092 * config.table: Add openedition target.
3dd6c3af
LV
2093 * config/mh-openedition: New file.
2094
19e28e2a
ME
2095Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2096
2097 * pexecute.c (pexecute): Fill in temp_base when needed.
2098
4dfeccf9
RH
20991999-08-31 Richard Henderson <rth@cygnus.com>
2100
2101 * getpwd.c: Check HAVE_GETCWD before defining it away.
2102
4ac3cb83
KG
21031999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2104
2105 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2106 (REQUIRED_OFILES): Add getpwd.o.
2107 (getpwd.o): Add target.
2108
2109 * configure.in (AC_PREREQ): Bump to 2.13.
2110 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2111
2112 * getpwd.c: New file, moved here from gcc.
2113
e797ff70
KG
21141999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2115
2116 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2117 comparing against a signed quantity.
2118 (arm_special): Likewise.
2119 (demangle_fund_type): Likewise.
2120 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 2121 ATTRIBUTE_UNUSED.
e797ff70
KG
2122 (main): Constify variable `valid_symbols'.
2123
55247fce
PDM
2124Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2125
2126 * strtoul.c (strtoul): Add parentheses around && within ||.
2127
76632dd0
DJ
2128Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2129
2130 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2131 libdir, libsubdir and tooldir.
2132
d080bbfa
MM
21331999-08-01 Mark Mitchell <mark@codesourcery.com>
2134
2135 * splay-tree.c (splay_tree_insert): Return the new node.
2136
a81c752a
RH
21371999-07-14 Richard Henderson <rth@cygnus.com>
2138
5194cf08 2139 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
2140 prototyping directly.
2141 * choose-temp.c: Conditionally include string.h.
2142
8f1824d9
JM
21431999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2144
2145 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2146
652374d3
ILT
21471999-07-11 Ian Lance Taylor <ian@zembu.com>
2148
2149 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2150 warning.
2151
a4494286
JM
21521999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2153
2154 * Makefile.in (needed-list): Only include stuff we actually need
2155 for libstdc++.
2156
90e72e20
AS
21571999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2158
2159 * configure.in (checkfuncs): Add gettimeofday.
2160 * config.in, configure: Regenerated.
2161
b569200e
MK
2162Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2163
2164 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2165 the test fails.
2166 * configure: Regenerate.
2167
73919448
MS
21681999-06-10 Mike Stump <mrs@wrs.com>
2169
2170 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2171 parallel builds.
2172
fee9125c
KG
21731999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2174
2175 * putenv.c: Include ansidecl.h to define `const'.
2176 * setenv.c: Likewise.
2177
71cce721
MN
2178Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2179
a7c9637f
JL
2180 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2181 * configure.in (funcs): Add putenv and setenv.
2182 (AC_CHECK_FUNCS): Check for putenv and setenv.
2183 * configure: Rebuilt.
2184 * putenv.c setenv.c: New files.
2185
71cce721
MN
2186 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2187 bytes of space using malloc.
2188
53504016
SG
2189Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2190
2191 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2192 the *mangled pointer beyond the end of the string. Clean up code to
2193 match prevailing coding style.
2194
34842539
MH
21951999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2196
2197 * tmpnam.c (L_tmpnam): Fix typo.
2198
3a08531d
ME
2199Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2200
2201 * cplus-dem.c (standard_symbol_characters): Renamed from
2202 standard_symbol_alphabet. No longer modify TABLE.
2203 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2204 modify TABLE.
2205 (main): Corresponding changes. Use strchr to determine if a
2206 character is valid.
2207
8db9d08b
JB
22081999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2209
2210 * cplus-dem.c (main): Use table lookup to distinguish identifier
2211 characters from non-identifier characters.
2212 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2213
6a071f4a
FF
2214Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2215
2216 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2217 * getruntime.c: Only attempt to include sys/resource.h and
2218 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2219 are defined.
2220
7dd88617
DT
2221Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2222
2223 * configure.in (alloca detection): Handle alloca directly for interix.
2224 * configure: Rebuilt.
2225
7a1528bc
MK
2226Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2227
2228 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2229
76409268
JB
22301999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2231
2232 Fix from Dale Hawkins:
5194cf08 2233 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
2234 reallocated properly if we use it again.
2235
2236 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2237 stricter about syntax. Always null-terminate string.
2238
acbbd80a
MK
2239Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2240
2241 * configure.in (checkfuncs): Check for sbrk.
2242 * config.in: Rebuilt.
2243 * configure: Likewise.
2244 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2245
92523551
JB
22461999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2247
2248 Fix from Marcus Daniels:
2249 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2250 identifier looking for another underscore.
2251
36eb4217
MK
2252Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2253
2254 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2255 * xmalloc.c: Likewise.
2256 (xcalloc): UWIN has sbrk.
2257 (xrealloc): Fix guard macro.
2258
2c45d1a0
RH
22591999-04-11 Richard Henderson <rth@cygnus.com>
2260
2261 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2262 or <alloca.h>.
2263 * clock.c (GNU_HZ): New definition.
2264 (clock): Use it.
2265 * getruntime.c: Likewise.
2266
2267 * config.table: Use mh-beos.
2268 * config/mh-beos: New file.
2269
391cdef0
MM
22701999-04-11 Mark Mitchell <mark@codesourcery.com>
2271
2272 * cplus-dem.c (demangle_template_value_parm): Handle
2273 pointers-to-members.
2274 (do_type): Handle template parameters as qualifiers.
2275
9d229989
JB
22761999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2277
2278 * cplus-dem.c: Attempt to handle overflows in counts with some
2279 semblance of grace.
2280 (consume_count): Detect overflows. Return -1 to indicate errors,
2281 instead of zero.
2282 (demangle_template_value_parm, demangle_template): Handle change
2283 to consume_count's return convention.
2284
7c72138a
TT
22851999-04-05 Tom Tromey <tromey@cygnus.com>
2286
2287 * testsuite/regress-demangle: New file.
2288 * testsuite/demangle-expected: New file.
2289
2290 * Makefile.in (all, check, installcheck, info, install-info,
2291 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2292 distclean, maintainer-clean, realclean): Depend on corresponding
2293 `-subdir' target.
2294 (all-subdir check-subdir installcheck-subdir info-subdir
2295 install-info-subdir clean-info-subdir dvi-subdir
2296 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2297 distclean-subdir maintainer-clean-subdir): New target.
2298 * testsuite/Makefile.in: New file.
2299 * configure: Rebuilt.
2300 * configure.in: Create testsuite/Makefile.
2301
ae7f7270
MM
23021999-04-02 Mark Mitchell <mark@codesourcery.com>
2303
2304 * splay-tree.h (splay_tree_compare_pointers): Define.
2305
30f72379
MM
23061999-03-30 Mark Mitchell <mark@codesourcery.com>
2307
2308 * splay-tree.c (splay_tree_compare_ints): Define.
2309
4cc48683
TT
23101999-03-30 Tom Tromey <tromey@cygnus.com>
2311
2312 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2313 don't advance input pointer.
2314 (demangle_class_name): If consume_count didn't find a count, do
2315 nothing. Don't bother with `strlen' sanity check; consume_count
2316 does it for us.
2317
3510075c
JL
23181999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2319
2320 From Art Haas <ahaas@neosoft.com>:
2321 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2322 when doing arm or hp style.
2323 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 2324
89f602a7
MK
2325Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2326
2327 * pexecute.c (__CYGWIN32__): Rename to
2328 (__CYGWIN__): this.
2329 * xmalloc.c: Likewise.
2330
2331 Changes to support i386-pc-uwin.
2332 * configure.in (*-*-uwin*): Workaround for vfork bug.
2333 * configure: Regenerate.
2334 * pexecute.c (pexecute): Be like standard Unix.
2335 (pwait): Likewise.
2336 * xmalloc.c (first_break): Define.
2337 (xmalloc_set_program_name): Use.
2338 (xmalloc): Use.
2339
9346c824
FS
2340Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2341
2342 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2343
3510075c
JL
2344Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2345
2346 * config.table: Check cygwin*, not cygwin32*.
2347
8ec65f13
DB
2348Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2349
2350 * Makefile.in: Change mkstemp -> mkstemps.
2351
687361c8
ME
2352Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2353
2354 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2355 * configure.in (funcs): Check for and conditionally add mkstemps to
2356 the list of functions libiberty will provide.
2357 * configure: Rebuilt.
5194cf08 2358
b207e09c
MK
2359Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2360
5194cf08 2361 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2362 platforms that don't have HZ.
2363 * getruntime.c (HZ): Likewise.
2364
16b4c15e
RH
2365Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2366
2367 * Makefile.in (xstrdup.o): Depend on config.h.
2368
38beb75c
UD
2369Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2370
2371 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2372 freeing it.
2373
7e4311a3
KG
2374Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2375
2376 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2377
3510075c
JL
2378Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2379
2380 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2381 splay-tree.o.
2382
23831999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2384
2385 * configure.in: Require autoconf 2.12.1 or higher.
2386
fb9939b8
MM
23871998-12-30 Michael Meissner <meissner@cygnus.com>
2388
2389 * random.c (NULL): Don't redefine NULL if it is already defined.
2390
087aa398
KG
2391Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2392
2393 * argv.c (buildargv): Cast the result of alloca in assignment.
2394
2395 * choose-temp.c: Include stdlib.h.
38beb75c 2396
087aa398 2397 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2398 (snarf_numeric_literal): Constify first parameter.
2399 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2400 int, not a char.
087aa398
KG
2401 (demangle_qualifier): Likewise.
2402 (demangle_signature): Cast the argument of a ctype function to
2403 unsigned char.
2404 (arm_pt): Add parens around assignment used as truth value.
2405 (demangle_arm_hp_template): Constify variable `args'.
2406 (do_hpacc_template_const_value): Cast the argument of a ctype
2407 function to unsigned char.
2408 (do_hpacc_template_literal): Remove unused variable `i'.
2409 (snarf_numeric_literal): Constify parameter `args'.
2410 Cast the argument of a ctype function to unsigned char.
2411
2412 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2413 avoid ambiguous `else'.
38beb75c 2414
087aa398 2415 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2416 `cstart' and `cend' to unsigned char. Cast the argument of macro
2417 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2418
2419 * objalloc.c (free): Add prototype.
2420
21f2174d
HPN
2421Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2422
2423 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2424
3510075c
JL
2425Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2426
2427 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2428 doesn't exist.
3510075c 2429 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2430
e8fc8222
AM
2431Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2432
2433 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2434 bumping the pointer we read from. Also prepend these codes,
2435 as we do in other places.
2436
3510075c
JL
24371998-12-18 Nick Clifton <nickc@cygnus.com>
2438
2439 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2440 'const char *' in order to match its usage when calling siblings.
2441 (snarf_numeric_literal): Make first arg 'const char **' in order
2442 to match usage.
11a0bb74 2443
f4f30aa1
JL
2444Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2445
11a0bb74
KG
2446 * choose-temp.c: Don't check IN_GCC anymore.
2447
2448 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2449 * memchr.c (memchr): Likewise.
2450 * memcpy.c (memcpy): Likewise.
2451 * memmove.c (memmove): Likewise.
38beb75c 2452
11a0bb74
KG
2453 * mkstemp.c: Don't check IN_GCC anymore.
2454 * pexecute.c: Likewise.
2455 * splay-tree.c: Likewise.
38beb75c 2456
11a0bb74
KG
2457 * strchr.c (strchr): Use `const', not `CONST'.
2458 * strrchr.c (strrchr): Likewise.
2459 * strtol.c (strtol): Likewise.
2460 * strtoul.c (strtoul): Likewise.
2461
70d5ccef
DT
2462Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2463 Elena Zannoni <ezannoni@cygnus.com>
2464 Stan Shebs <shebs@cygnus.com>
2465 Edith Epstein <eepstein@cygnus.com>
2466 Andres MacLeod <amacleod@cygnus.com>
2467 Satish Pai <pai@apollo.hp.com>
2468
2469 * HP aCC demangling support.
2470 * cplus-dem.c
2471 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2472 demangling correctly when -edg specified; set the demangling style
2473 when user specifies 'edg'. Set strip_underscore to
2474 prepends_underscore, if not HPUXHPPA. Set
2475 current_demangling_style to hp_demangling if HPUXHPPA. Set
2476 current demangling style correctly if the switch is hp. Read
2477 label correctly also in the HP style case.
70d5ccef 2478 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2479 function.
70d5ccef 2480 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2481 style for this case is the same as ARM.
70d5ccef
DT
2482 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2483 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2484 demangle_arm_pt.); check and set value of temp_start field in
2485 multiple places. Also, when ceching for end of template args,
2486 check to see if at end of static member of template class.
70d5ccef 2487 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2488 include template args in string defining class.
70d5ccef
DT
2489 (demangle_class_name): use demangel_arm_hp_template.
2490 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2491 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2492 Handle EDG_DEMANGLING style. Handle constructor and destructor
2493 ops for HP style.
70d5ccef 2494 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2495 styles. global destructor and constructor for HP style are same
2496 as for ARM style. Same for local variables.
70d5ccef
DT
2497 (demangle_qualified): handle EDG_DEMANGLING style.
2498 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2499 cases '1' - '9' : initialize the temp_start field to -1 and handle
2500 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2501 and AUTO_DEMANGLING styles. If expecting a function and managed
2502 to demangle the funct args, then handle the LUCID_DEMANGLING,
2503 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2504 class name after "Lnnn_ in HP style case. HP style too needs to
2505 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2506 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2507 value param for HP/aCC.
70d5ccef 2508 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2509 literal parameter for HP aCC.
70d5ccef
DT
2510 (recursively_demangle): new function
2511 (snarf_numeric_literal): new function.
2512 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2513 to message.
70d5ccef 2514
8d525fa8
CF
2515Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2516
2517 * pexecute.c: Remove obsolete ifdefed cygwin code.
2518
9b1a92d8
KG
2519Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2520
2521 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2522 * cplus-dem.c: Likewise. Conform to libiberty.h.
2523 * pexecute.c: Likewise.
2524 * splay-tree.c: Likewise.
2525
c85c3232
MS
25261998-11-25 Mike Stump <mrs@wrs.com>
2527
2528 * Makefile.in (splay-tree.o): Add config.h dependency.
2529
35a6cd99
KG
2530Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2531
2532 * configure.in: Use AC_PREREQ(2.12.1).
2533
6e6e34b7
BK
25341998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2535
5194cf08 2536 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2537
59b67c11
JL
2538Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2539
2540 * mpw.c (mpw_access): Add missing parens.
2541
a6458d1d
KG
2542Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2543
2544 * configure.in: Call AC_HEADER_SYS_WAIT.
2545
2546 * pexecute.c: Include sys/wait.h when !IN_GCC.
2547
3510075c
JL
2548Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2549
2550 * pexecute.c: revert back to checking old Cygwin
2551 preprocessor symbol until some time has passed.
2552
2553Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2554
2555 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2556 since it will now support similar constructs.
2557
a9acf741
KG
2558Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2559
2560 * configure.in: Check for calloc.
2561
2562 * calloc.c: New file.
2563
2564 * xmalloc.c (xcalloc): New function.
2565
a49fb37a
AM
2566Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2567
2568 *cplus-dem.c (demangle_prefix): Use the last "__"
2569 in the mangled name when looking for the signature. This allows
2570 template names to begin with "__".
2571
0e714131
MM
25721998-11-08 Mark Mitchell <mark@markmitchell.com>
2573
ec2288ff
MM
2574 * cplus-dem.c (type_kind_t): Add tk_reference.
2575 (demangle_template_value_parm): Handle it.
2576 (do_type): Use it for references, instead of tk_pointer.
2577
0e714131
MM
2578 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2579 not internal_cplus_demangle.
2580
2931b6d4
KG
2581Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2582
2583 * choose-temp.c: Don't include gansidecl.h.
2584 * mkstemp.c: Likewise.
2585 * pexecute.c: Likewise.
2586
dd8f3ed5
GN
2587Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2588
5194cf08
ZW
2589 * configure.in: detect cygwin* instead of cygwin32*
2590 * configure: regenerate
dd8f3ed5 2591
c5f7c445
KG
2592Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2593
2594 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2595 whether to include config.h. Possibly include unistd.h in the
2596 !IN_GCC case. Define VFORK_STRING as a printable function call
2597 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2598 defined, include vfork.h. If VMS is defined, define vfork()
2599 appropriately. Remove vfork check on USG, we're using autoconf.
2600 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2601 locally what string to use.
c5f7c445 2602
ad3ef78e
MM
26031998-10-26 Mark Mitchell <mark@markmitchell.com>
2604
2605 * splay-tree.c: Tweak include directives to make sure declarations of
2606 xmalloc and free are available.
2607
224301c1
MM
26081998-10-25 Mark Mitchell <mark@markmitchell.com>
2609
2610 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2611 anonymous namespaces.
38beb75c 2612
d9db46fd
MM
26131998-10-23 Mark Mitchell <mark@markmitchell.com>
2614
2615 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2616 with type_quals.
2617 (TYPE_UNQUALIFIED): New macro.
2618 (TYPE_QUAL_CONST): Likewise.
2619 (TYPE_QUAL_VOLATILE): Likewise.
2620 (TYPE_QUAL_RESTRICT): Likewise.
2621 (code_for_qualifier): New function.
2622 (qualifier_string): Likewise.
2623 (demangle_qualifier): Likewise.
2624 (internal_cplus_demangle): Use them.
2625 (demangle_signature): Likewise.
2626 (demangle_template_value_parm): Likewise.
2627 (do_type): Likewise.
2628 (demangle_fund_type)): Likewise.
224301c1 2629
b056ad1c
KG
2630Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2631
2632 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2633 to match prototype.
2634
ed87f9c8
MM
26351998-10-21 Mark Mitchell <mark@markmitchell.com>
2636
2637 * splay-tree.c: New file.
2638 * Makefile.in (CFILES): Add it.
2639 (REQUIRED_OFILES): Likewise.
2640 (splay-tree.o): Add dependencies.
2641
e0c13971
AS
2642Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2643
2644 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2645 range of 'K' index.
2646
91e0f659
KG
2647Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2648
2649 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2650
2651 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2652 `unsigned char'.
2653 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2654 comparing against one.
2655 (cplus_mangle_opname): Likewise.
2656 (demangle_integral_value): Cast argument of ctype macro to
2657 `unsigned char'.
2658 (demangle_template_value_parm): Likewise.
2659 (demangle_template): Initialize variable `bindex'. Cast the
2660 result of `strlen' to (int) when comparing against one. Remove
2661 unused variable `start_of_value_parm'.
2662 (demangle_class_name): Cast the result of `strlen' to (int) when
2663 comparing against one.
2664 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2665 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2666 when comparing against one.
2667 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2668 (get_count): Likewise.
2669 (do_type): Likewise. Cast the result of `strlen' to (int) when
2670 comparing against one.
2671 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2672 (demangle_function_name): Cast the result of `strlen' to (int)
2673 when comparing against one.
2674
2675 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2676 comparing against one.
2677
73aeb2ff
JL
2678Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2679
5194cf08
ZW
2680 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2681 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2682 * config.in, configure: Rebuilt.
ae76f1be 2683
73aeb2ff
JL
2684 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2685 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2686 * config.in, configure: Rebuilt.
2687
dd8f3ed5
GN
2688Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2689
5194cf08 2690 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2691
f77d8413
MT
2692Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2693
2694 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2695
ca6b370d
JL
2696Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2697
2698 * Merge egcs & devo libiberty.
2699
ab4856b1
ML
2700