2003-05-19 David Carlton <carlton@bactrian.org>
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
e4f79046
JB
12003-05-15 Jim Blandy <jimb@redhat.com>
2
3 * hex.c (_hex_value): Make this unsigned.
4 (hex_value): Update documentation for new return type. hex_value
5 now expands to an unsigned int expression, to avoid unexpected
6 sign extension when we store it in a bfd_vma, which is larger than
7 int on some platforms.
8 * functions.texi: Regenerated.
9
0f3538e7
DD
102003-05-07 Josef Zlomek <zlomekj@suse.cz>
11
12 * splay-tree.c (splay_tree_predecessor): Fix comment.
13 (splay_tree_successor): Fix comment.
14
7108c5dc
JM
152003-05-07 Jason Merrill <jason@redhat.com>
16
eafaf5eb 17 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
18 * configure.in: Add AC_C_BIGENDIAN_CROSS.
19 * aclocal.m4: Include accross.m4.
20 * configure, config.in: Regenerate.
21
0b555173
DD
222003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23
24 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
25 * configure: Regenerate.
26
8730135a
DD
272003-05-03 Carlo Wood <carlo@alinoe.com>
28
29 * cp-demangle.c: Fix typo in "char_traints" string-literal.
30
341eccbc
DD
312003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32
33 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
34 (main): Test that we don't write too much data.
35
2ed1e5cc
DD
362003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37
38 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
39 vsnprintf.
40 * snprintf.c, vsnprintf.c: New files.
41 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
42 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
43 Regenerate dependencies.
44
45 * functions.texi, configure, config.in: Regenerated.
46
10b57b38
DD
472003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
48
49 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
50 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
51 and stpncpy.
52 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
53 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
54 Regenerate dependencies.
55
56 * functions.texi, configure, config.in: Regenerated.
57
ff773b85
DD
582003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
59
60 * argv.c: Fix comments.
61 * calloc.c: Don't unnecessarily include "libiberty.h".
62 (bzero): Add prototype.
63 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
64 * getcwd.c (getcwd): Use standard definition to avoid conflicts
65 with system headers.
66 * hashtab.c (htab_traverse): Delete unused variables.
67 * rename.c: Include "ansidecl.h".
68 (rename): Use standard definition to avoid conflicts with system
69 headers.
70 * strsignal.c: Rely on ANSI_PROTOTYPES.
71 * strstr.c: Check GNUC >= 2, not GNUC == 2.
72 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
73 * vprintf.c: Include "ansidecl.h" earlier, rely on
74 ANSI_PROTOTYPES.
75 * vsprintf.c: Include "ansidecl.h" earlier, rely on
76 ANSI_PROTOTYPES and possibly include <stdarg.h>.
77
78 * Makefile.in: Regenerate dependencies.
79
bb325820
DD
802003-04-15 DJ Delorie <dj@redhat.com>
81
82 * maint-tool (deps): Scan for headers in $srcdir also.
83
258a4893
DD
842003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
85
86 PR target/10338
87 PR bootstrap/10198
88 PR bootstrap/10140
89 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
90 __mempcpy.
91 * regex.c (regerror): Likewise.
92
ff773b85
DD
932003-04-14 Roger Sayle <roger@eyesopen.com>
94
95 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
96 * memchr.c: Likewise.
97 * strcasecmp.c: Likewise.
98 * strncasecmp.c: Likewise.
99 * strncmp.c: Likewise.
100 * xatexit.c: Likewise.
101 * xmalloc.c: Likewise.
102
103 * copysign.c: Use traditional function declaration instead of DEFUN.
104 * sigsetmask.c: Likewise.
105
106 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
107 * memset.c: Likewise.
108
109 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
110 * memmove.c: Likewise.
111
eec539c7
DD
1122003-04-14 Roger Sayle <roger@eyesopen.com>
113
114 * strdup.c (strdup): Tweak implementation to use memcpy.
115
daf7c4ad
DD
1162003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
117
118 * configure.in (HAVE_UINTPTR_T): Always define.
119 * configure: Regenerated.
120
aa072e59
AO
1212003-03-23 Alexandre Oliva <aoliva@redhat.com>
122
123 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
124 instead of $$CC alone.
125 (install_to_tooldir): Use it.
126
f77ed96c
DD
1272003-17-03 Jan Hubicka <jh@suse.cz>
128
129 * hashtab.c (htab_traverse_noresize): Break out from ...
130 * hashtab.c (htab_traverse): ... here.
131
2336e177
DD
1322003-12-03 Jan Hubicka <jh@suse.cz>
133
134 * hashtab.c (htab_expand): Fix warning.
135
136 * hashtab.c (htab_expand): Compute the size of hashtable based
137 on the number of elements actually used.
138 (htab_traverse): Call htab_expand when table is too empty.
139
d8cbbf95
DD
1402003-03-11 Carlo Wood <carlo@gnu.org>
141
142 * cplus-dem.c (demangle_integral_value): Correction to reflect
143 patch of 2002-01-10 in order to also make negative multi-digits
144 without leading underscore work.
145
a01fefeb
DD
1462003-03-03 Mark Mitchell <mark@codesourcery.com>
147
148 * cplus-dem.c: Add license exception to copyright notice.
149
638ceb1a
DD
1502003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
151
152 * physmem.c: Formatting changes from upstream.
153
ef803806
DD
1542003-02-24 Danny Smith <dannysmith@users.source.forge.net>
155
156 * physmem.c (physmem_total): Add _WIN32 support.
157 (physmem_available): Likewise.
158
181fa229
DD
1592003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
160
161 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
162 GSI_PHYSMEM.
163 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
164
cc529274
DD
1652003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
166
167 * configure.in: Check for sys/systemcfg.h and
168 _system_configuration.
169 * physmem.c: Add support for AIX. Tweek formatting as per
170 upstream coreutils beta.
171
1722003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
173 Richard Earnshaw <rearnsha@arm.com>
174 Geoffrey Keating <geoffk@apple.com>
ff773b85 175
cc529274
DD
176 * configure.in: Check for sys/sysctl.h and sysctl.
177 * physmem.c: Add support for *bsd and darwin.
178 * Makefile.in: Generate depedency for physmem.o.
179
192cbe66
DD
1802003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
181
182 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
183 Tru64 UNIX.
184 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
185 Tru64 UNIX.
186
187 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
188 machine/hal_sysinfo.h, sys/table.h.
189 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
190 * configure, config.in: Regenerate.
191
ff773b85
DD
1922003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
193
194 * configure.in: Check for sys/sysmp.h and sysmp.
195 * physmem.c: Pull upstream copy, add support for irix6.
196
197 * config.in, configure: Regenerated.
198
900d2082
DD
1992003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
200
201 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
202 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
203 pstat_getdynamic.
ff773b85 204
4938384a
DD
2052003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
206
207 * Makefile.in (CFILES): Add physmem.c.
208 (REQUIRED_OFILES): Add physmem.o.
209 * configure.in: Check for sys/pstat.h.
210 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
211 * physmem.c: New file, copied from textutils.
212
213 * config.in, configure: Regenerated.
214
ba61a412
DJ
2152003-02-20 Daniel Jacobowitz <drow@mvista.com>
216
217 * Makefile.in (CFILES): Add lrealpath.c.
218 (REQUIRED_OFILES): Add lrealpath.o.
219 (lrealpath.o): Add rule.
220 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
221 * configure.in: Add realpath and canonicalize_file_name to
222 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
223 for canonicalize_file_name.
224 * lrealpath.c: New file.
225 * make-relative-prefix.c: Update documentation.
226 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
227 * config.in: Regenerated.
228 * configure: Regenerated.
229 * functions.texi: Regenerated.
230
25dfe0ac
DD
2312003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
232
233 * cplus_dem.c: Fix typo: intializes -> initializes.
234
8b90eef4
AO
2352003-02-20 Alexandre Oliva <aoliva@redhat.com>
236
237 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
238 config.status.
239 * configure: Rebuilt.
240
fcd7c7c9
DD
2412003-02-13 Daniel Jacobowitz <drow@mvista.com>
242
243 Fix PR c++/7612.
244 * cplus-dem.c (demangle_signature): Call string_delete.
245 Remove extra string_init.
246 (demangle_arm_hp_template): Call string_delete instead of
247 string_clear. Add missing string_delete call.
248 (demangle_qualified): Add missing string_delete call.
249 (do_type): Remove unused variable btype. Add missing string_delete
250 call. Call string_delete instead of string_clear.
251 (demangle_fund_type): Move variable btype inside of the switch
252 statement. Add missing string_delete call.
253 (do_arg): Call string_delete instead of string_clear. Remove extra
254 string_init.
255 (demangle_nested_args): Free work->previous_argument.
256
073c427b
DD
2572003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
258
259 * acconfig.h: New file. Add uintptr_t.
260 * config.in: Regenerated.
261
f8bd3000
DD
2622003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
263
264 * libiberty.texi: Update to GFDL 1.2.
265
85b9a938
DD
2662003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
267
268 * Makefile.in (libiberty_topdir): New subst.
269 (mkinstalldirs): Redefine in terms of the above.
270 * configure.in: AC_SUBST it.
271 * configure: Regenerate.
272
578460f2
AO
2732003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
274
275 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
276 (info-subdir, install-info-subdir, clean-info-subdir)
277 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
278 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
279 Pass $(FLAGS_TO_PASS).
280
7f285245
AO
2812003-01-27 Alexandre Oliva <aoliva@redhat.com>
282
283 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
284 /`$$CC -print-multi-os-directory`.
285
5f9624e3
DJ
2862003-01-26 Daniel Jacobowitz <drow@mvista.com>
287
288 * hashtab.c (htab_create_alloc_ex): New function.
289 (hatab_set_functions_ex): New function.
290 (htab_delete, htab_expand): Support alternate allocation functions.
291
9c2259b8
DD
2922003-01-24 Christopher Faylor <cgf@redhat.com>
293
294 * configure.in: Remove special pex-cygwin consideration.
295 * configure: Regenerate.
296 * pex-cygwin.c: Remove.
297 * Makefile.in: Remove pex-cygwin.[co] lines.
298
5a17353c
DD
2992003-01-24 Zack Weinberg <zack@codesourcery.com>
300
301 * Makefile.in (CFILES): Add pex-*.c.
302 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
303 (CONFIGURED_OFILES): Add pex-*.o.
304 (TEXIFILES): Add pexecute.txh.
305 (pexecute.o): Delete rule.
306 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
307 pex-unix.o, pex-win32.o): New rules.
308 * configure.in: Change AC_INIT argument to xmalloc.c.
309 Compute appropriate pexecute implementation and substitute it
310 as @pexecute@.
311
312 * pexecute.c: Split up into...
313 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
314 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
315 new files.
316
317 * functions.texi: Regenerate.
318 * configure: Regenerate.
319
eed2b28c
DD
3202003-01-20 Josef Zlomek <zlomekj@suse.cz>
321
322 * hashtab.c (htab_expand): Fix allocation of new entries.
323
27a39a5f
DD
3242003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
325
326 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
327
328 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
329 mkinstalldirs command.
330
b51c1553
DD
3312002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
332
333 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
334 Define for hosts with HOST_EXECUTABLE_SUFFIX.
335
756954c3
DD
3362002-11-24 Nick Clifton <nickc@redhat.com>
337
338 * make-relative-prefix.c (make_relative_prefix): Ensure return
339 string is empty before using strcat to construct it.
340
2a80c0a4
DD
3412002-11-22 Daniel Jacobowitz <drow@mvista.com>
342
343 * Makefile.in: Add make-relative-prefix.c.
344 * make-relative-prefix.c: New file.
345 * functions.texi: Rebuilt.
346
768b20d8
JJ
3472002-11-16 Jakub Jelinek <jakub@redhat.com>
348
349 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
350 used with arguments in traditional C' warnings.
351
f52d1d64
JJ
3522002-10-16 Jakub Jelinek <jakub@redhat.com>
353
354 * config.table: Use mh-s390pic for s390x too.
355
0d3deb8d
DD
3562002-10-06 Andreas Jaeger <aj@suse.de>
357
358 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
359 variable and of strict-aliasing warning.
360 (grow_vect): Use char as first parameter.
361
1b67de92
DD
3622002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
363
364 * Makefile.in (all): Fix multilib parallel build.
365
585cc78f
DD
3662002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
367
368 * cp-demangle.c (demangling_new): Cast 0 to enum.
369 (demangle_char): Cast return of strdup to char *.
370 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
371 (is_gnu_v3_mangled_dtor): Likewise.
372 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
373 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
374 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
375 * md5.c (md5_process_bytes): Cast results back to const void *.
376 (md5_process_block): Add cast to const md5_uint32 *.
377 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
378 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
379 unsigned short.
380 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
381 to void *.
382 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
383
e21b0cc1
NC
3842002-09-19 Nick Clifton <nickc@redhat.com>
385
386 * README: Update email addresses for bugs and patches.
387
a54ba43f
DD
3882002-09-10 Mike Stump <mrs@apple.com>
389
390 * splay-tree.c (splay_tree_successor): Fix comments.
391
3922002-09-11 Zack Weinberg <zack@codesourcery.com>
393
394 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
395 * testsuite/Makefile.in: Adjust for test-demangle.
396 * testsuite/regress-demangle: Deleted.
397 * testsuite/test-demangle.c: New file.
398 * testsuite/demangle-expected: Change \$ to $ throughout, now that
399 this file is not being read by a shell script.
400
01cea699
DD
4012002-09-05 Roger Sayle <roger@eyesopen.com>
402
403 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
404
a2832523
DD
4052002-08-07 DJ Delorie <dj@redhat.com>
406
407 * regex.c (re_error_msgid): Just use a simple array of strings.
408 (re_compile_pattern): Compensate.
409 (re_comp): Likewise.
410 (re_comp): Likewise.
411 (regerror): Likewise.
412
1e3f0be0
DD
4132002-07-29 Neil Booth <neil@daikokuya.co.uk>
414
415 * cplus-dem.c (PREPEND_BLANK): Remove.
416
b851d07b
DD
4172002-07-10 Jason Merrill <jason@redhat.com>
418
419 * cp-demangle.c (demangle_identifier): Support extended Unicode
420 characters.
421
2a9dffbf
DD
4222002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
423
424 * cp-demangle.c (demangle_v3_with_details): Wrap in
425 !defined IN_GLIBCPP_V3.
426
793011ca
DD
4272002-07-01 Mark Mitchell <mark@codesourcery.com>
428
429 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
430 Set it for the "st" operator.
431 (demangle_expression): Handle expressions with types as arguments.
432
b39b76b8
DD
4332002-06-30 Douglas Rupp <rupp@gnat.com>
434
435 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
436 * Makefile.in (OUTPUT_OPTION): Use.
437
4748c6d8
DD
4382002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
439
440 * Makefile.in (install_to_libdir): Add $(DESTDIR).
441 (install_to_tooldir): Likewise.
442
f9c3326a
DD
4432002-06-17 Douglas Rupp <rupp@gnat.com>
444
445 * lbasename.c: Add 2002 to copyright.
446 (IS_DIR_SEPARATOR): Remove VMS junk.
447
18893690
DD
4482002-06-05 Geoffrey Keating <geoffk@redhat.com>
449
450 * hashtab.c (htab_create): New stub function for backward
451 compatibility.
452 (htab_try_create): Likewise.
453
4542002-06-03 Geoffrey Keating <geoffk@redhat.com>
455
456 * hashtab.c (htab_create): Delete.
457 (htab_try_create): Delete.
458 (htab_create_alloc): New.
459 (htab_delete): Support user-specified memory allocation.
460 (htab_expand): Likewise.
461
4622002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
463
464 * configure.in: Fix typo in the code checking for sys_errlist.
465 * configure: Regenerated.
466
9296c8b2
DD
4672002-05-13 Andreas Schwab <schwab@suse.de>
468
469 * config.table: Use mh-x86pic also for x86-64.
470
52d98c2d
DD
4712002-05-08 Alexandre Oliva <aoliva@redhat.com>
472
473 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
474 script entry, and set LD to it when configuring multilibs.
475 * configure: Rebuilt.
476
cafa3917
DD
4772002-05-07 Mark Mitchell <mark@codesourcery.com>
478
479 * configure.in (AC_TYPE_PID_T): Use it.
480 * configure: Regenerated.
481 * getruntime.c: Include <sys/types.h>.
482 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
483
b1c933fc
RH
4842002-04-09 Richard Henderson <rth@redhat.com>
485
486 * hashtab.c (higher_prime_number): Use 7 as minimum.
487 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
488 (htab_find_slot_with_hash): Likewise.
489
0c4460bb
DD
4902002-04-01 Phil Edwards <pme@gcc.gnu.org>
491
492 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
493 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
494 not compile if IN_GLIBCPP_V3 defined.
495 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
496
f2160d2b
DD
4972002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
498
3ebf1f59 499 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
500 if it is NULL.
501
7dd4d42a
DD
5022002-03-27 DJ Delorie <dj@redhat.com>
503
504 * hex.c: Add documentation.
505 (_hex_value): Provide non-ASCII empty table.
506 (hex_init): Initialize the non-ASCII table.
507 * functions.texi: Regenerate.
508
38e57a35
DD
5092002-03-27 Mark Mitchell <mark@codesourcery.com>
510
511 * dyn-string.c: Add libgcc exception to copyright notice.
512
cfed0715
DD
5132002-03-26 H.J. Lu (hjl@gnu.org)
514
515 * config.table: Support --with-build-subdir.
516 * configure.in: Likewise.
517 * configure: Rebuild.
518
1504972f
DD
5192002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
520
521 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
522 seen.
523
35efcd67
DD
5242002-03-12 Mark Mitchell <mark@codesourcery.com>
525
526 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
527 notice.
528
dabc64ea
DD
5292002-03-11 Douglas B Rupp <rupp@gnat.com>
530
531 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
532
3ddbd84c
JB
5332002-03-06 Jim Blandy <jimb@redhat.com>
534
535 * splay-tree.c (splay_tree_xmalloc_allocate,
536 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
537 prototyped definitions. Mark `data' arguments as unused.
538
efdab807
AC
5392002-03-06 Andrew Cagney <ac131313@redhat.com>
540
541 * floatformat.c (floatformat_arm_ext_big): Delete definition.
542
50d4562d
DD
5432002-03-04 Phil Edwards <pme@gcc.gnu.org>
544
545 * configure.in: Add --enable-install-libiberty option.
546 * Makefile.in (INSTALLED_HEADERS): New variable.
547 (install_to_libdir): Possibly also copy headers.
548 * configure: Regenerated.
549
5502002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
551
552 * xmalloc.c (xmalloc_fail): Clarify error message further.
553
6e9980f5
DD
5542002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
555
556 * xmalloc.c (xmalloc_fail): Clarify error message.
557
18893690 5582002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
559
560 * splay-tree.c (splay_tree_xmalloc_allocate,
561 splay_tree_xmalloc_deallocate): New functions.
562 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
563 above functions and a dummy data pointer.
564 (splay_tree_new_with_allocator): New function.
565 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
566 splay_tree_remove): Use the splay tree's allocation and
567 deallocation functions.
568
59ea9fe7
DD
5692002-02-19 Scott Snyder <snyder@fnal.gov>
570
571 * testsuite/demangle-expected: Add test case for infinite loop in
572 demangler.
573 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
574 if do_type() doesn't make any progress --- prevents an infinite
575 loop.
576
6f848550
DD
5772002-02-18 Carlo Wood <carlo@gnu.org>
578
579 PR c++/5390
580 * cplus-dem.c (demangle_integral_value): Accept multi-digit
581 numbers that do not start with an underscore; This is needed
582 for integer template parameters. This doesn't break anything
583 because multi-digit numbers are never followed by a digit.
584 * testsuite/demangle-expected: Corrected all mangled test
585 cases with multi-digit template parameters: g++ 2.95.x does
586 not generate underscores around these parameters.
587
44354ae1
DD
5882002-02-05 Jason Merrill <jason@redhat.com>
589
590 * cplus-dem.c (flags): Add DMGL_VERBOSE
591 (cplus_demangle_v3_p): Remove.
592 (demangle_it): Add DMGL_TYPES to passed flags.
593 * cp-demangle.c (cplus_demangle_v3_all): Remove.
594 (cplus_demangle_v3_type): Remove.
595 (cplus_demangle_v3): Add options parm.
596
42da15d6
DD
5972002-02-02 H.J. Lu (hjl@gnu.org)
598
599 * cp-demangle.c (cp_demangle_type): Do not protect with
600 IN_LIBGCC2.
601 (cplus_demangle_v3_all): New.
602 (cplus_demangle_v3): Call cplus_demangle_v3_all.
603 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
604
605 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
606 Initialized to cplus_demangle_v3.
607 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
608 of cplus_demangle_v3.
609 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
610 command line symbol.
611
612 * testsuite/regress-demangle: Pass the mangled name at the
613 command line.
614
b117c158
DD
6152002-02-01 H.J. Lu <hjl@gnu.org>
616
617 * cp-demangle.c (cp_demangle_type): Call demangling_new with
618 DMGL_GNU_V3.
619
c78d91b1
DD
6202002-01-31 Phil Edwards <pme@gcc.gnu.org>
621
622 * cp-demangle.c: Revert yesterday's change.
623
bef8b55d
DD
6242002-01-31 Adam Megacz <adam@xwt.org>
625
626 * gcc/libiberty/configure.in: Treat mingw the same as cywin
627 wrt HAVE_SYS_ERRLIST.
628
2c955b8b
DD
6292002-01-30 Phil Edwards <pme@gcc.gnu.org>
630
631 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
632 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
633 cp_demangle_type.
634 * testsuite/demangle-expected: New gnu-v3 test.
635
58b1717a
RH
6362002-01-22 Momchil Velikov <velco@fadata.bg>
637
638 * configure.in (variable detection): Use arrays of unspecified
639 size instead of plain integers.
640
cc096b71
DD
6412002-01-18 DJ Delorie <dj@redhat.com>
642
643 * Makefile.in (TESTLIB): New. This library is for future
644 testsuites.
645 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
646 break down by letter.
647 (REQUIRED_OFILES): List long-to-compile files first.
648 (maint-deps): New, target for updating dependencies.
649 (dependencies): Update.
650 * maint-tool: Add dependency-generating option.
651 * configure.in: Check for _doprnt even if we're not providing it.
652 * configure: Regenerate.
653
654 * _doprnt.c: Modifications to allow compiling on any platform.
655 * copysign.c: Likewise.
656 * putenv.c: Likewise.
657 * setenv.c: Likewise.
658 * vsprintf.c: Likewise.
659
6602002-01-15 Douglas B Rupp <rupp@gnat.com>
661
662 * mkstemps.c (mkstemps): On VMS, open temp file with option
663 that causes it to be deleted when closed.
664
20d54542
DD
6652002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
666
c23795e2
DD
667 * cp-demangle.c (long_options): Const-ify.
668 * cplus-dem.c (long_options): Likewise.
669
20d54542
DD
670 * cplus-dem.c (mystrstr): Delete. All callers changed to use
671 strstr instead.
672
f348a7b1
DD
6732001-12-31 Ira Ruben <ira@apple.com>
674
675 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
676 * configure: Regenerated.
677
d86cd745
DD
6782001-12-24 Douglas B. Rupp <rupp@gnat.com>
679
680 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
681 * configure: Regenerated.
682
ae533646
DD
6832001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
684
685 PR other/2719
686 * cplus-dem.c (consume_count): Treat negative count as an error.
687 * testsuite/demangle-expected: Added testcase.
688
c0eb281b
DD
689Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
690
691 * configure.in: Hardcode that vfork works on VMS host.
692 * configure: Regenerated.
693
2da4c07f
RH
6942001-12-06 Richard Henderson <rth@redhat.com>
695
696 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
697 (cplus_demangle): Support no_demangling.
698
24acd898
DD
6992001-11-27 Zack Weinberg <zack@codesourcery.com>
700
701 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
702 in libiberty context. Fix typo in leading comment.
703 * configure.in: Fix various AC_DEFINEs so autoheader works.
704 If any of vprintf, vsprintf, vfprintf is missing from libc,
705 then AC_REPLACE_FUNCS(_doprnt).
706
fec50157 7072001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 708 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
709
710 * Makefile.in (stamp-h): Depend on Makefile for proper
711 serialization.
712 (*-subdir): Depend on config.h for proper serialization.
713
5527febf
DD
7142001-11-26 DJ Delorie <dj@redhat.com>
715
716 * configure.in: Check for alloca.h (for regex.c and putenv.c).
717 * configure: Regenerate.
718 * config.h: Add HAVE_ALLOCA_H.
719
941d74a0
DD
7202001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
721
722 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
723 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
724 is available.
725
dc579051
DD
726Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
727
728 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
729 * configure.in (HAVE_UINTPTR_T): Test for system defining
730 uintptr_t and define HAVE_UINTPTR_T appropriately.
731 * regex.c (uintptr_t): Do not provide a definition if the
732 system provided one.
733
734 * regex.c (PREFIX): Provide an alternate definition for
735 non-ANSI/ISO compilers.
736 (ARG_PREFIX): Likewise.
737
1a78a35a
DD
7382001-11-12 Jim Meyering <meyering@lucent.com>
739
740 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
741 this code would end up calling gettext even in packages built
742 with --disable-nls.
743 * getopt.c (_): Likewise.
744 * regex.c (_): Likewise.
745
4e55c4b6
DD
7462001-11-03 Alan Modra <amodra@bigpond.net.au>
747
748 * configure.in: Cope with missing makeinfo.
749 * configure: Regenerate.
750
d311a83a
DD
7512001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
752
753 * hex.c (hex_init): Provide empty stub.
754
755 * hex.c (hex_init): Delete.
756 (_hex_value): Const-ify and initialize at compile-time.
757
3bc62f91
DD
7582001-10-19 H.J. Lu <hjl@gnu.org>
759
760 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
761 necessary.
762
5d852400
DD
7632001-10-17 DJ Delorie <dj@redhat.com>
764
765 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
766 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 767 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
768 Improve manual formatting.
769 * functions.texi: Regenerate.
770
ba19b94f
DD
7712001-10-15 DJ Delorie <dj@redhat.com>
772
773 * Makefile.in (TEXIFILES): Add fnmatch.txh.
774 (maint-undoc): New.
775 maint-tool: Add "undoc" tool.
776 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
777 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
778 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
779 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
780 documentation.
781 * fnmatch.txh: New.
782 * functions.texi: Regenerate.
783
56056af5
DD
7842001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
785
786 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
787 * strtod.c: Use "ISO C" instead of "ANSI C".
788 * functions.texi: Regenerate.
789
99b58139
DD
7902001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
791
792 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
793 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
794 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
795 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
796 spelling. Give names to function arguments in documentation. Use
797 (void) prototypes in documentation.
798 * functions.texi: Regenerate.
799
e6450fe5
DD
8002001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
801
802 * argv.c (buildargv, tests, main): Const-ify.
803 * cp-demangle.c (operator_code): Likewise.
804 * cplus-dem.c (optable, libiberty_demanglers,
805 cplus_demangle_set_style, cplus_demangle_name_to_style,
806 print_demangler_list): Likewise.
807 * hashtab.c (higher_prime_number): Likewise.
808 * strcasecmp.c (charmap): Likewise.
809 * strerror.c (error_info, strerror, main): Likewise.
810 * strncasecmp.c (charmap): Likewise.
811 * strsignal.c (signal_info): Likewise.
812
da191b5b
DD
8132001-09-29 DJ Delorie <dj@redhat.com>
814
815 * configure: Regenerate.
816
916aaa12
DD
8172001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
818
819 * concat.c: Include stdlib.h.
820
fa9f0e33
DD
8212001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
822
823 * libiberty.texi: (Top level): Add syncodeindex pg. Add
824 @dircategory and @direntry directives. Add @finalout.
825 (many nodes): Lose the next,prev,up pointers on the @nide line.
826 (Using, Supplemental Functions, Replacement Functions): Fix
827 markup.
828 (Functions): Move around, to allow makeinfo to build the manual
829 without next,prev,up pointers in thye node lines.
830 (Licenses): Fix typos.
831
832 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
833 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
834 * functions.texi: Regenerate.
835
836 * copying-lib.texi: Lose the next,prev,up pointers on the @node
837 line.
838
8392001-09-27 DJ Delorie <dj@redhat.com>
840
841 * configure.in: Don't use in-tree texinfo, because libiberty must
842 be built before it. Check for makeinfo version 4 or higher.
843 * functions.texi: Regenerate.
844
39423523
DD
8452001-09-20 DJ Delorie <dj@redhat.com>
846 Phil Edwards <pedwards@disaster.jaj.com>
847
848 * configure.in (MAKEINFO, PERL): Detect these.
849 (--enable-maintainer-mode): Add.
850 * configure: Regenerate.
851 * Makefile.in (MAKEINFO, PERL): Define.
852 (libiberty.info, libiberty.dvi, libiberty.html): New.
853 (CFILES): Add bsearch.c.
854 (CONFIGURED_OFILES): New, list of objects configure might add.
855 (maint-missing, maint-buildall): New, for maintainers only.
856 (clean, mostlyclean): Add info/dvi/html files.
857 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
858 * gather-docs: New, for maintainers.
859 * maint-tool: New, for maintainers.
860 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
861 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
862 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
863 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
864 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
865 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
866 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
867 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
868 documentation.
869
66c94e19
DD
8702001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
871
872 * concat.c (reconcat): Fix for traditional C.
873
99ee3a8f
DD
8742001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
875
876 * concat.c (reconcat): New function.
877
54c20242
DD
8782001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
879
880 * concat.c (vconcat_length, vconcat_copy, concat_length,
881 concat_copy, concat_copy2): New functions.
882 (concat): Use vconcat_length/vconcat_copy.
883
884 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
885 Define.
886
843f21be
DD
8872001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
888
889 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
890 VA_FIXEDARG & VA_CLOSE.
891
892 * vasprintf.c: Check HAVE_STRING_H when including string.h.
893 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
894 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
895
8a423cb3
DD
8962001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
897
898 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
899
dc676635
DD
9002001-08-23 Ulrich Drepper <drepper@redhat.com>
901
902 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
903
9042001-08-23 Ulrich Drepper <drepper@redhat.com>
905
906 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
907 instead of mbrtowc.
908 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
909 wcslen, and __wcscoll instead of wcscoll.
910
f080c76d
DD
9112001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
912
3ebf1f59
DD
913 * fibheap.c (fibheap_init, fibnode_init): Remove.
914 (fibheap_new, fibnode_new): Use xcalloc to allocate and
915 initialize memory.
916 (fibheap_insert): Remove check for node allocation failure.
f080c76d 917
f01b59ed
DD
9182001-08-21 Richard Henderson <rth@redhat.com>
919
920 * Makefile.in (fibheap.o): Depend on config.h.
921 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
922 functions for inlining.
923
924Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
925
926 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
927 hosting on cygwin.
928 * configure: Regenerate.
929
eb828599
AC
9302001-08-20 Andrew Cagney <ac131313@redhat.com>
931
932 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
933 HARRIS_FLOAT_FORMAT.
934 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
935 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
936 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
937 (floatformat_m88110_harris_ext): New float formats.
938
4e55c4b6
DD
9392001-08-20 Daniel Berlin <dan@cgsoftware.com>
940
941 * fibheap.c: New file. Fibonacci heap.
942
943 * Makefile.in (CFILES): Add fibheap.c.
944 (REQUIRED_OFILES): Add fibheap.o.
945 (fibheap.o): Add dependencies for fibheap.o.
946
68a41de7
DD
9472001-08-17 Christopher Faylor <cgf@cygnus.com>
948
949 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
950 * configure: Regenerate.
951
8fc34799
DD
9522001-08-16 Richard Henderson <rth@redhat.com>
953
954 * hashtab.c (htab_hash_string): New.
955
16bad250
AC
9562001-08-13 Andrew Cagney <ac131313@redhat.com>
957
958 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
959 name.
960
a9022147
DD
9612001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
962
963 * regex.c (wcs_regex_compile): Use appropriate string
964 to compare with collating element.
965 Fix the padding for the alignment.
966
8aefe91a 9672001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
968
969 * lbasename.c (lbasename): Change function definition to return a
970 const char pointer.
971
e7e9b069
DD
9722001-08-07 Jason Merrill <jason_merrill@redhat.com>
973
974 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
975 for".
976
cc5144f8
DD
9772001-08-03 Richard Henderson <rth@redhat.com>
978
979 * Makefile.in (concat.o): Depend on config.h.
980
8aefe91a
DD
9812001-07-30 Andreas Jaeger <aj@suse.de>
982
983 * concat.c: Include "config.h".
984
86710ce2
DD
9852001-07-30 Andreas Jaeger <aj@suse.de>
986
987 * regex.c: Declare wcs functions only if compiling with
988 MBS_SUPPORT.
989 Don't use #elif for traditional C.
990
9912001-07-23 Ulrich Drepper <drepper@redhat.com>
992
993 * regex.c: Revamp memory allocation for WCHAR functions to
994 not use too much stack.
995
9962001-07-30 Andreas Jaeger <aj@suse.de>
997
998 * regex.c: Declare wcs functions only if compiling with
999 MBS_SUPPORT.
1000 Don't use #elif for traditional C.
1001
a5d8f731
DD
10022001-07-25 Daniel Jacobowitz <drow@mvista.com>
1003
1004 * Makefile.in (regex.o): Add dependency on config.h.
1005
6ad8a379
DD
10062001-07-18 Andreas Schwab <schwab@suse.de>
1007
1008 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1009 underscore character.
1010
10112001-07-18 Ulrich Drepper <drepper@redhat.com>
1012
1013 * regex.c: Limit string length printed in debug messages to 100
1014 chars.
1015
10162001-07-18 Andreas Jaeger <aj@suse.de>
1017
1018 * regex.c: Place under LGPL version 2.1.
1019
2a6ef469
DD
10202001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1021
1022 * Makefile.in: Add support for regex code.
1023 * regex.c: New file.
1024
7b78baae
DD
10252001-07-05 Mark Klein <mklein@dis.com>
1026
1027 * Makefile.in: Add ffs.c dependency.
1028 * configure.in: Add ffs.c.
1029 * ffs.c: New file.
1030
926150e2
DD
10312001-06-18 Richard Henderson <rth@redhat.com>
1032
1033 * concat.c: Include <sys/types.h>.
1034
11f6f21d
DD
10352001-06-11 Loren J. Rittle <ljrittle@acm.org>
1036
1037 bootstrap/3106
1038 * strerror.c (sys_nerr): Hide the OS header version.
1039 * strsignal.c (sys_nsig): Likewise.
1040
d42dae6c
DD
10412001-06-10 Richard Henderson <rth@redhat.com>
1042
1043 * concat.c: Include string.h. Fix int vs size_t usage.
1044 Simplify the iteration loops. Use memcpy.
1045
e05c6d27
DD
10462001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1047
1048 * partition.c: Fix misspelling of `implementation'.
1049
b50c4073
DD
10502001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1051
1052 * md5.c (md5_init_ctx): Declare constants as unsigned.
1053 (md5_process_block): Likewise.
1054
457161bf
DD
10552001-05-07 Zack Weinberg <zackw@stanford.edu>
1056
1057 * cp-demangle.c (demangle_v3_with_details,
1058 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1059 function definition.
1060 * ternary.c: Use K+R style function definitions. Use PTR, not
1061 void *. Make arguments constant where possible.
1062
e00bc6a7
DD
10632001-05-07 Mark Mitchell <mark@codesourcery.com>
1064
1065 * splay-tree.h (splay_tree_max): New function.
1066 (splay_tree_min): Likewise.
1067
400ee7e1
DB
10682001-04-15 Daniel Berlin <dan@cgsoftware.com>
1069
1070 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1071
1072 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1073
d9697354
DD
10742001-04-03 Zack Weinberg <zackw@stanford.edu>
1075
1076 * make-temp-file.c (try): Inline.
1077
a7bf099b
DD
10782001-02-28 Richard Henderson <rth@redhat.com>
1079
1080 * Makefile.in (make-temp-file.o): Depend on config.h.
1081
30a1def2
DD
10822001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1083
1084 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1085
079c672a
DD
10862001-03-23 Jakub Jelinek <jakub@redhat.com>
1087
1088 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1089 `_' not followed by a digit is invalid.
1090
a88e356a
JB
10912001-03-22 Jim Blandy <jimb@redhat.com>
1092
1093 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1094 instead of free, to free the contents as well as the string
1095 structure.
1096
1dffcc66
DD
10972001-03-21 Zack Weinberg <zackw@stanford.edu>
1098
1099 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1100 Don't default P_tmpdir to anything. Try /var/tmp before
1101 /usr/tmp.
1102
11032001-03-20 Zack Weinberg <zackw@stanford.edu>
1104
1105 * choose-temp.c: Split off make_temp_file, and the code
1106 duplicated between it and choose_temp_base, into...
1107 * make-temp-file.c: ... here; new file.
1108
1109 * Makefile.in (CFILES): Add make-temp-file.c.
1110 (REQUIRED_OFILES): Add make-temp-file.o.
1111
e61231f1
JB
11122001-03-20 Jim Blandy <jimb@redhat.com>
1113
1114 * cp-demangle.c (struct demangling_def): New fields:
1115 is_constructor and is_destructor.
1116 (demangling_new): Initialize them.
1117 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1118 or destructor.
1119 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1120 is_gnu_v3_mangled_dtor): New functions.
1121
a9cbbe6d
DD
11222001-03-20 Jason Merrill <jason@redhat.com>
1123
1124 * cplus-dem.c (main): Skip initial $.
1125
b1e51b3c
DD
11262001-03-15 Michael Meissner <meissner@redhat.com>
1127
1128 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1129 might be a signed integer under pre-ISO C systems.
1130
8aa30e60 11312001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1132 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1133
8aa30e60
DD
1134 * libiberty/lbasename.c: New file.
1135 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1136
30673bf5
DD
11372001-03-06 Zack Weinberg <zackw@stanford.edu>
1138
1139 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1140 * configure.in: Replace all alloca logic with a simple use of
1141 the above new macro.
1142 * config.table: Kill *-*-beos* entry.
1143 * config/mh-beos: Delete.
1144 * configure, config.in: Regenerate.
fa03f0a7 1145
30673bf5
DD
1146 * Makefile.in (ALLOCA, HFILES): Kill.
1147 (REQUIRED_OFILES): Add alloca.o.
1148 (alloca.o): Depend on libiberty.h.
1149 (argv.o): Don't depend on alloca-conf.h.
1150 * alloca-conf.h: Delete.
1151 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1152 blocks. Provide the C alloca unconditionally. Use PTR where
1153 appropriate. Make i00afunc static.
1154 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1155
5810f394
DD
11562001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1157
1158 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1159
a9db032a
DD
11602001-02-16 Loren J. Rittle <ljrittle@acm.org>
1161
1162 * cplus-dem.c (main): Initialize style.
fa03f0a7 1163
8aefe91a
DD
11642001-02-02 Phil Edwards <pme@sources.redhat.com>
1165
1166 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1167
bc9bf259
DD
11682001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1169
1170 Add support for Java demangling under the v3 ABI:
1171 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1172 (struct demangling_def): Add `style' field.
1173 (demangling_new): New parameter `style'. Set it in demangling_t.
1174 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1175 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1176 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1177 (main): Call cp_demangle with extra parameter.
1178 (java_demangle_v3): New function.
1179 (java_builtin_type_names): New. Table of primitive type names used
1180 for Java demangling.
1181 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1182 Java output.
1183 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1184 demangling.
1185 (long_options): Remove obsolete `java' option.
1186 (main): Remove explicit handling of `java' option. Instead, pass style
1187 parameter in cplus_demangle flags as gdb does.
1188 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 1189
f6528837
DD
11902000-12-29 DJ Delorie <dj@redhat.com>
1191
1192 * fnmatch.c: Make the note about the origins of this file more
1193 accurate, at least until we can sync with glibc.
1194 * getopt.c: Ditto.
1195 * getopt1.c: Ditto.
1196 * md5.c: Ditto.
1197 * obstack.c: Ditto.
9d969b59 1198
c6da642e
DD
11992000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1200
1201 * bsearch.c: New file.
1202 * configure.in (funcs): Add bsearch.
1203 (AC_CHECK_FUNCS): Likewise.
1204 * configure, config.in: Regenerate.
1205
ae7d06ad 12062000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1207
1208 * safe-ctype.c: #include "ansidecl.h".
1209 * strtod.c: Likewise.
1210
ae7d06ad 12112000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1212
1213 * strtoul.c: Include safe-ctype.h, not ctype.h.
1214
ac424eb3
DD
12152000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1216
1217 * safe-ctype.c: New file.
1218 * Makefile.in (CFILES): Add safe-ctype.c.
1219 (REQUIRED_OFILES): Add safe-ctype.o.
1220
1221 * argv.c: Define ISBLANK and use it, not isspace.
1222 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1223 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1224 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1225 before calling TOLOWER(c)/TOUPPER(c).
1226
4415a860
DD
12272000-12-07 Mike Stump <mrs@wrs.com>
1228
1229 * Makefile.in (distclean): When cleaning, remove testsuite.
1230
849ee224
DD
12312000-12-05 Jason Merrill <jason@redhat.com>
1232
1233 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1234 name before allocating the dyn_string.
1235
ae7d06ad 12362000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1237
1238 * cp-demangle.c: s/new_abi/v3/.
1239 * cplus-dem.c: Likewise.
1240 (current_demangling_style): Now auto_demangling.
1241 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1242 (main): Use standard symbol chars for auto_demangling.
e49a569c 1243
ae7d06ad 12442000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1245
1246 * hashtab.c (higher_prime_number): Use a table, rather than a
1247 seive, to find the next prime.
ae7d06ad
NC
1248
12492000-11-22 H.J. Lu <hjl@gnu.org>
1250
1251 * cplus-dem.c (main): Handle gnat_demangling.
1252
12532000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1254
1255 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1256 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1257 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1258 argument form of AC_DEFINE in dummy definitions block. Use
1259 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1260 in dummy block. Preload cache variables instead of bypassing
1261 tests, where possible.
1262 * acconfig.h: Removed.
ae7d06ad 1263
2ea7befd
DD
1264 * xmalloc.c (xmalloc_failed): New function, does error
1265 reporting on failed allocation.
1266 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1267
f1775526
HPN
12682000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1269
1270 * cplus-dem.c (cplus_demangle): Fix formatting.
1271 (grow_vect): Ditto.
1272 (ada_demangle): Ditto.
1273 (internal_cplus_demangle): Ditto.
1274 (mop_up): Ditto.
1275
12762000-11-21 H.J. Lu <hjl@gnu.org>
1277
1278 * cplus-dem.c (main): Handle java_demangling.
1279
ae7d06ad 12802000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1281
1282 * cplus-dem.c (grow_vect): Prototype.
1283 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1284
5dd42ef4
HPN
12852000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1286
1287 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1288 parameter `option'.
1289
296731c1
DD
12902000-11-15 Kenneth Block <kenneth.block@compaq.com>
1291
8944fb9d 1292 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1293 be used in GCC.
1294
6e53a714 12952000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1296
5dd42ef4 1297 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1298 list.
1299
99a4c1bd
HPN
13002000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1301
1302 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1303 xcalloc depending on htab->return_allocation_failure. Return zero
1304 if calloc fails.
99a4c1bd
HPN
1305 (htab_create): Update comment to cover memory allocation.
1306 (htab_try_create): New.
1307 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1308 Update comment to cover this.
99a4c1bd 1309
e0f3df8f
HPN
13102000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1311
1312 * hashtab.c: Change void * to PTR where necessary.
1313 (htab_create, htab_expand): Correct formatting of comment before
1314 function.
1315
ae7d06ad 13162000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1317
1318 * cp-demangle.c (string_list_def): Add caret_position and comments.
1319 (result_caret_pos): New macro.
1320 (result_append_string): Rename to...
1321 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1322 Rename throughout.
59666b35
DD
1323 (result_append): Rename to...
1324 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1325 throughout.
59666b35
DD
1326 (result_append_char): Rename to...
1327 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1328 throughout.
59666b35
DD
1329 (result_append_space): Remove.
1330 (string_list_new): Initialize caret position.
1331 (result_add_separated_char): Use caret position.
1332 (result_get_caret): New funtion.
1333 (result_set_caret): Likewise.
1334 (result_shift_caret): Likewise.
1335 (result_previous_char_is_space): Likewise.
1336 (substitution_start): Use caret position.
1337 (substitution_add): Likewise.
1338 (demangling_new): Initialize caret position.
1339 (demangle_encoding): Use caret position.
ae7d06ad 1340 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1341 (demangle_type_ptr): Use switch statement. Handle pointers to
1342 arrays. Don't use result_append_space. Use caret position.
1343 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1344 call to demangle_array_type.
1345 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1346
ae7d06ad 13472000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1348
1349 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1350
13512000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1352
1353 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1354
13552000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1356
1357 * splay-tree.c: #include <stdio.h>.
1358
13592000-09-14 Hans-Peter Nilsson <hp@axis.com>
1360
1361 * testsuite/demangle-expected: Add two tests for anonymous
1362 namespaces.
1363 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1364
13652000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1366
1367 * splay-tree.c (splay_tree_predecessor): New function.
1368 (splay_tree_successor): Likewise.
ae7d06ad
NC
1369
13702000-09-10 Hans-Peter Nilsson <hp@axis.com>
1371
1372 * testsuite/demangle-expected: Add four tests for type_info
1373 mangling.
1374 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1375 for a non-template non-qualified type_info function or node.
1376
13772000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1378
1379 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1380
13812000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1382
1383 * md5.c: #include "ansidecl.h".
1384
13852000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1386
1387 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1388 (demangle_type): Handle substitution candidates correctly in the
1389 face of special substitutions.
ae7d06ad
NC
1390
13912000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1392
1393 * cp-demangle.c (demangle_encoding): Rename variable.
1394 (demangle_name): Rename parameter. Handle return type
1395 suppression.
1396 (demangle_nested_name): Rename parameter.
1397 (demangle_prefix): Likewise. Change return type suppression.
1398 (demangle_unqualified_name): Add parameter. Flag constructors and
1399 conversion operators.
1400 (demangle_special_name): Fix comment.
1401 (demangle_type): Rename variable.
1402 (demangle_bare_function_type): Check for missing return type and
1403 parameter.
1404 (demangle_class_enum_type): Rename parameter.
1405 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1406
14072000-08-31 DJ Delorie <dj@redhat.com>
1408
1409 * configure.in (Cygwin): special case cygwin only when we're
1410 building cygwin, not when we're hosting cygwin.
1411
14122000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1413
1414 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1415 <expression>.
ae7d06ad
NC
1416
14172000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1418
1419 * cp-demangle.c (demangle_type_ptr): Increment position past
1420 pointer and reference characters.
ae7d06ad
NC
1421
14222000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1423
1424 * cp-demangle.c (demangle_nv_offset): New function.
1425 (demangle_v_offset): Likewise.
1426 (demangle_call_offset): Likewise.
1427 (demangle_special_name): Update thunk demangling to comply with
1428 ABI changes.
ae7d06ad
NC
1429
14302000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1431
1432 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1433 (substitution_def): Remove template_parm_number.
1434 (NOT_TEMPLATE_PARM): Remove.
1435 (result_insert_string): New macro.
1436 (result_insert): Likewise.
1437 (result_insert_char): Likewise.
1438 (substitution_add): Remove last parameter. Don't store template
1439 parm number.
1440 (BFT_NO_RETURN_TYPE): Define as NULL.
1441 (demangle_encoding): Adjust call to demangle_bare_function_type.
1442 (demangle_name): Adjust substitution. Adjust call to
1443 substitution_add.
1444 (demangle_prefix): Adjust call to substitution_add.
1445 (demangle_identifier): Handle anonymous namespaces.
1446 (demangle_operator_name): Change demangling of vendor-extended
1447 operator to match ABI changes.
1448 (demangle_type_ptr): Change parameters. Make recursive. Handle
1449 substitutions here.
1450 (demangle_type): Adjust calls to demangle_template_param,
1451 substitution_add, and demangle_type_ptr. Fix substitution of
1452 templated types.
1453 (demangle_function_type): Change parameter to a pointer.
1454 (demangle_bare_function_type): Likewise. Adjust insertion point.
1455 (demangle_template_param): Remove last parameter.
1456 (demangle_expr_primary): Remove unused variable. Adjust call to
1457 demangle_template_param.
1458 (is_mangled_char): Accept `$' and `.'.
1459 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1460 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1461
14622000-08-31 Hans-Peter Nilsson <hp@axis.com>
1463
1464 * testsuite/demangle-expected: Add nine tests for
1465 underscore-after-number followed by five tests for name-signature
1466 delimiter.
1467
14682000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1469
1470 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1471
14722000-08-28 Jason Merrill <jason@redhat.com>
1473
1474 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1475 (CFILES): Add md5.c.
1476 * md5.c: New file.
1477
14782000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1479
1480 * cp-demangle.c (demangle_name): Initialize template_p in local
1481 name case. Don't re-add substitutions as candidates.
1482 (demangle_nested_name): Use <unqualified-name>.
1483 (demangle_prefix): Likewise. Don't add template names as
1484 substitution candidates twice, or re-add a substitution or the
1485 last prefix component.
1486 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1487
14882000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1489
1490 * cp-demangle.c (result_add_separated_char): Change parameter to
1491 int.
1492 (substitution_add): Don't check for duplicates. Check if
1493 previously allocated size is zero.
1494 (demangle_name): Remove duplicate check for std substitution.
1495 Clear template flag appropriately.
1496 (demangle_prefix): Remove argument to demangle_substitution.
1497 Don't check that template flag is already set.
1498 (demangle_operator_name): Add pt operator.
1499 (demangle_type): Don't treat r as built-in type. Remove argument
1500 to demangle_substitution. Fix substitution candidate mechanics.
1501 Handle <template-template-parm>s. Improve comments.
1502 (demangle_template_param): Don't handle template arg lists here.
1503 (demangle_substitution): Remove parameter.
1504 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1505
15062000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1507
1508 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1509
15102000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1511
1512 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1513 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1514 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1515
15162000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1517
1518 * cp-demangle.c (result_close_template_list): Remove function.
1519 (result_add_separated_char): New function.
1520 (result_open_template_list): New macro.
1521 (result_close_template_list): Likewise.
1522 (demangle_prefix): Don't set template_p if the
1523 prefix ends with a ctor name.
1524 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1525 (demangle_type): Check for template args after substitution.
1526 (demangle_template_args): Use result_open_template_list.
d3e85005 1527
ae7d06ad 15282000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1529
ae7d06ad 1530 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1531
ae7d06ad 15322000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1533
1534 * config/mh-openedition.h: Added -DLE370 definition.
1535
a9f34fb6
JL
15362000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1537
1538 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1539 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1540 Cast program to 'char *' in errmsg_arg assignment.
1541 (PWAIT_ERROR): Define.
1542 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1543 to DJGPP's WIF* macros.
1544
90aaccd1 15452000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1546 Jeff Law <law@cygnus.com>
90aaccd1 1547
ae7d06ad 1548 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1549
90aaccd1 1550 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1551 * rename.c: Include config.h, unistd.h
1552 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1553
6ef554e3
HPN
15542000-07-24 Hans-Peter Nilsson <hp@axis.com>
1555
1556 * cplus-dem.c (work_stuff_copy_to_from): New.
1557 (delete_non_B_K_work_stuff): New.
1558 (delete_work_stuff): New.
1559 (mop_up): Break out work_stuff partly destruction to
1560 delete_non_B_K_work_stuff.
1561 (iterate_demangle_function): New.
1562 (demangle_prefix): Call iterate_demangle_function instead of
1563 demangle_function_name. Leave handling of name-signature
1564 __-delimiters to iterate_demangle_function.
1565 (demangle_integral_value): Strip an optional
1566 following underscore cautiously. Handle negative numbers.
1567
ae7d06ad 15682000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1569
ae7d06ad 1570 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1571 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1572
ae7d06ad
NC
15732000-07-21 Alex Samuel <samuel@codesourcery.com>
1574
1575 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1576 allocating ctor mangling.
1577 (demangle_array_type): Handle empty and non-constant array length.
1578
b1233257 15792000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1580 Jeff Law <law@cygnus.com>
1581
1582 * configure.in (AC_CHECK_HEADERS): Add time.h.
1583 (AC_HEADER_TIME): Add check.
1584 * configure, config.in: Regenerate.
1585 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1586
1587 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1588 * configure, config.in: Regenerate.
1589 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1590 * strtol.c, strtoul.c: #include "config.h". Portably #include
1591 <limits.h> and/or <sys/param.h>.
1592 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 1593
7d3ffcaf
JL
1594 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1595 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1596 * configure, config.in: Regenerate.
1597 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1598
b1233257
JL
1599 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1600
ae7d06ad
NC
16012000-07-21 Mike Stump <mrs@wrs.com>
1602
1603 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1604 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1605
16062000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1607
1608 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1609
1610 * setenv.c (setenv): Initialize variable `ep'.
1611
1612 * sigsetmask.c (abort): Prototype.
1613
1614 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1615 __STDC__ for stdarg.h include.
1616 (int_vasprintf): Prototype.
1617 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1618 definition. Cast `global_total_width' in comparison.
1619 (main): Prototype. Return a value.
1620
1621 * vfork.c (fork): Prototype.
1622
1623 * xexit.c: Include config.h.
1624
9adf30b2
JL
16252000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1626
1627 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1628 and print it with %u.
1629
2ed78d1b
HPN
16302000-07-17 Hans-Peter Nilsson <hp@axis.com>
1631
1632 * testsuite/regress-demangle (failed test): Show result and
1633 expected output.
1634
0473bdf7
AH
16352000-07-07 Andrew Haley <aph@cygnus.com>
1636
1637 * cplus-dem.c (main): fflush() after emitting last char before
1638 waiting for input.
1639
03d5f569
JM
16402000-06-28 Alex Samuel <samuel@codesourcery.com>
1641
1642 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1643 (demangle_name): Handle <substitution> followed by
1644 <unqualified-template-name>.
1645 (demangle_type): Follow special substitutions with
1646 <class-enum-type>
1647 (demangle_subtitution): Set template_p for special substitutions.
1648 (main): Fix typos.
ae7d06ad 1649
03d5f569
JM
16502000-06-27 Alex Samuel <samuel@codesourcery.com>
1651
1652 * cp-demangle.c (demangle_special_name): Swap base and derived
1653 class when demangling construction vtables.
1654
16552000-06-21 Alex Samuel <samuel@codesourcery.com>
1656
1657 * cp-demangle.c: Don't include ctype.h.
1658 (IS_DIGIT): New macro.
1659 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1660 instead of isdigit and isalpanum.
1661 (demangling_def): Make name and next const pointers.
1662 (STATUS_ALLOCATION_FAILED): New status code.
1663 (dyn_string_append_space): Handle failure in
1664 dyn_string_append_char.
1665 (int_to_dyn_string): Likewise. Change return value to status_t.
1666 (string_list_new): Handle failure of dyn_string_init.
1667 (result_close_template_list): Change return type to status_t.
1668 Handle failure in dyn_string_append.
1669 (result_push): Change return value to status_t. Handle failure in
1670 string_list_new. Handle failure of result_push throughout.
1671 (substitution_add): Change return value to status_t. Handle
1672 dyn_string failures. Handle failure of substitution_add
1673 throughout.
1674 (template_arg_list_new): Return NULL on allocation failure.
1675 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1676 Handle error result throughout.
1677 (result_append): Likewise.
1678 (result_append_char): Likewise.
1679 (result_append_space): Likewise.
1680 (demangling_new): Make argument a const pointer. Handle
1681 allocation failures.
1682 (demangle_template_args): Handle failure in template_arg_list_new
1683 and result_close_template_list.
1684 (demangle_discriminator): Return if int_to_dyn_string fails.
1685 (cp_demangle): Likewise.
1686 (cp_demangle_type): New function.
1687 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1688 memory allocation failure.
1689 (main): Likewise.
1690 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1691 IN_LIBGCC2.
1692 (dyn_string_init): Change return value to int. Handle
1693 RETURN_ON_ALLOCATION_FAILURE case.
1694 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1695 (dyn_string_release): Delete the dyn_string.
1696 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1697 (dyn_string_copy): Change return type to int.
1698 (dyn_string_copy_cstr): Likewise.
1699 (dyn_string_prepend): Likewise.
1700 (dyn_string_prepend_cstr): Likewise.
1701 (dyn_string_insert): Likewise.
1702 (dyn_string_insert_cstr): Likewise.
1703 (dyn_string_append): Likewise.
1704 (dyn_string_append_cstr): Likewise.
1705 (dyn_string_append_char): Likewise.
1706 (dyn_string_substring): Likewise.
ae7d06ad 1707
eb383413 17082000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1709
eb383413
L
1710 * cp-demangle.c (demangle_operator_name): Add spaces before
1711 names beginning with a letter: delete, delete[], new, new[],
1712 sizeof.
1713 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1714
eb383413
L
1715Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1716
1717 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1718
1719Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1720
1721 * cp-demangle.c (stdio.h): File included unconditionaly.
1722 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1723 * dyn-string.c (stdio.h): File included.
1724 * partition.c (partition_print): No `&' needed to take the address of
1725 a function.
1726
17272000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1728
1729 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1730
eb383413
L
1731 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1732
1733 * cp-demangle.c (demangle_char): Change parameter from char to int.
1734 (demangle_expression, demangle_expr_primary): Remove extra
1735 semi-colon in prototype.
1736
1737 * dyn-string.c (dyn_string_append_char): Change parameter from
1738 char to int.
1739
1740 * memcmp.c (memcmp): Constify.
1741
1742 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1743 __extension__.
1744
1745 * partition.c (elem_compare): Prototype. Don't cast away
1746 const-ness.
1747
1748 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1749
eb383413
L
17502000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1751
1752 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1753
1754 * cp-demangle.c: Include demangle.h.
1755 (template_arg_list_new): DeANSIfy.
1756 (cp_demangle): Make static and add prototype.
1757 (operator_code, operators): Constify.
1758 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1759
17602000-06-05 Alex Samuel <samuel@codesourcery.com>
1761
1762 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1763 unsigned char.
1764 (demangle_unqualified_name): Likewise.
1765 (demangle_number_literally): Likewise.
1766 (demangle_type): Likewise.
1767 (demangle_substitution): Likewise.
1768 (is_mangled_char): Likewise, for isalnum.
1769
17702000-06-04 Alex Samuel <samuel@codesourcery.com>
1771
1772 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1773 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1774 (cp-demangle.o): New dependency.
1775 (dyn-string.o): Likewise.
1776
1777 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1778
1779 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1780 demangler.
1781 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1782 demangling mode.
1783 (gnu_new_abi_symbol_characters): New function.
1784 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1785 file.
1786 * cp-demangle.c: New file.
ae7d06ad 1787
f03aa80d
AC
1788Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1789
1790 * floatformat.c: Add name to each floatformat field.
1791
77bfb694
JL
1792Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1793
1794 * Makefile.in (objalloc.o): Depend on config.h
1795
5c82d20a
ZW
17962000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1797
eb383413 1798 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1799 if HAVE_STRING_H.
1800 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1801 * objalloc.c: Include config.h. Include stdlib.h and don't
1802 declare malloc or free if HAVE_STDLIB_H.
1803 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1804 else declare malloc without prototype. Include string.h if
1805 HAVE_STRING_H, else declare memset without prototype. Don't
1806 include stddef.h.
1807
eb383413
L
18082000-05-23 Mike Stump <mrs@wrs.com>
1809
1810 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1811 -j3.
eb383413
L
1812
18132000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1814
1815 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1816
18172000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1818
ae7d06ad 1819 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1820 probably zero, also eliminate a warning on alpha.
1821
18222000-05-15 David Edelsohn <edelsohn@gnu.org>
1823
1824 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1825 on $(enable_shared).
1826
18272000-05-10 Jakub Jelinek <jakub@redhat.com>
1828
1829 * config.table: Use mh-sparcpic for sparc*-*-*.
1830
18312000-05-08 Nick Clifton <nickc@cygnus.com>
1832
1833 * Makefile.in (CFILES): Add strncmp.c.
1834 (NEEDED): Add strncmp.
1835
18362000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1837
eb383413
L
1838 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1839 Cast the arguments to `islower' to `unsigned char'.
1840 (print_demangler_list): Prototype.
1841
1842Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1843
1844 * sort.c (UCHAR_MAX): Provide fallback definition.
1845
18462000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1847
1848 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1849 SUBDIRS.
1850
eb383413
L
18512000-04-28 Kenneth Block <block@zk3.dec.com>
1852 Jason Merrill <jason@casey.cygnus.com>
1853
ae7d06ad
NC
1854 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1855 (cplus_demangle_set_style): New function for setting style.
1856 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1857
18582000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1859
1860 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1861
1862 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1863 (libiberty_AC_FUNC_STRNCMP): Invoke.
1864
1865 * strncmp.c: New file.
1866
1867Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1868
1869 * hashtab.c (htab_expand): Add prototype.
1870 (find_empty_slot_for_expand): Likewise.
1871
18722000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1873
1874 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1875 match prototype.
1876 (htab_expand): Cast the return value of xcalloc.
1877
18782000-04-24 Mark Mitchell <mark@codesourcery.com>
1879
1880 * hashtab.c (hash_pointer): New function.
1881 (eq_pointer): Likewise.
1882 (htab_hash_pointer): New variable.
1883 (htab_eq_pointer): Likewise.
1884
18852000-04-23 Mark Mitchell <mark@codesourcery.com>
1886
1887 * sort.c (sort_pointers): Fix endianness bugs.
1888
1889 * sort.c: New file.
1890 * Makefile.in (CFILES): Add sort.c
1891 (REQUIRED_OFILES): Add sort.o.
1892 (sort.o): New target.
1893
19be4303
JL
18942000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1895
1896 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1897 4.3BSD systems.
1898
eb383413
L
1899Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1900
1901 * hashtab.c: Various minor cleanups.
1902 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1903 (htab_find_slot): Likewise.
1904
19052000-04-16 Dave Pitts <dpitts@cozx.com>
1906
1907 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1908
afe36a78
RH
19092000-04-05 Richard Henderson <rth@cygnus.com>
1910
1911 * splay-tree.c (splay_tree_remove): New.
1912
eb383413
L
19132000-03-30 Mark Mitchell <mark@codesourcery.com>
1914
1915 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1916 codes.
1917 (htab_find_with_hash): Likewise.
1918 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1919
eb383413
L
19202000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1921
1922 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1923 unless it will be used. Rearrange loop for better
1924 optimization.
1925 (higher_prime_number): Add static prototype.
1926
b4fe2683
JM
1927Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1928
1929 * Makefile.in (partition.o): Depend on config.h
1930
19312000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1932
1933 * hashtab.c (find_empty_slot_for_expand): New function.
1934 (htab_expand): Use it instead of htab_find_slot.
1935 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1936 argument HASH.
1937 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1938 (htab_find): New wrapper function.
1939 (htab_find_slot): Likewise.
1940 (htab_traverse): Pass slot, not entry, to called function.
1941
19422000-03-09 Alex Samuel <samuel@codesourcery.com>
1943
1944 * Makefile.in (CFILES): Add partition.c.
1945 (REQUIRED_OFILES): Add partition.o.
1946 (partition.o): New rule.
1947 * partition.c: New file.
ae7d06ad 1948
b4fe2683
JM
19492000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1950
1951 * hashtab.c (htab_create): Set del_f.
1952 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1953 Use it.
1954
19552000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1956
1957 * hashtab.c: Remove debugging variables (all_searches,
1958 all_collisions, all_expansions). Delete
1959 all_hash_table_collisions.
1960 (create_hash_table, delete_hash_table, empty_hash_table,
1961 find_hash_table_entry, remove_element_from_hash_table_entry,
1962 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1963 hash_table_elements_number, hash_table_collisions): Rename to:
1964 htab_create, htab_delete, htab_empty, htab_find_slot,
1965 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1966 htab_elements, htab_collisions.
1967 (htab_find): New function, handles common case where you don't
1968 plan to add or delete an entry.
1969 (htab_expand): Don't create a whole new table, just a new
1970 entry vector.
1971 (htab_find_slot): Simplify logic.
1972
08372f14
ILT
19731999-08-03 Ian Lance Taylor <ian@zembu.com>
1974
1975 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1976 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1977
1978 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1979 $(TARGETLIB)n so it works on MSDOS.
1980 (install_to_tooldir): Likewise.
1981
9c8ac5a9
ILT
19821999-07-21 Ian Lance Taylor <ian@zembu.com>
1983
1984 From Mark Elbrecht:
1985 * makefile.dos: Remove; obsolete.
8f36e47c 1986 * configure.bat: Remove; obsolete.
9c8ac5a9 1987
0c0a36a4
ILT
19881999-07-11 Ian Lance Taylor <ian@zembu.com>
1989
1990 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1991 warning.
1992
19932000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1994
1995 * pexecute.c: Conditionally include string.h.
b4fe2683 1996 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1997
19982000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1999
2000 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2001 we're using gcc.
2002
2003 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2004
20051999-12-27 Geoff Keating <geoffk@cygnus.com>
2006
2007 * vasprintf.c (int_vasprintf): Don't re-read the format character
2008 as this mishandles strings like '%%s'.
2009
20101999-12-05 Mark Mitchell <mark@codesourcery.com>
2011
2012 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2013 rather than struct splay_tree_node.
2014 (splay_tree_insert): Use struct splay_tree_s rather than struct
2015 splay_tree.
2016
2017Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2018
2019 * hashtab.c (sys/types.h): File included.
2020
20211999-11-22 Jason Merrill <jason@casey.cygnus.com>
2022
2023 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2024 BSD license, pursuant with
2025
2026 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2027
2028Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2029
2030 * hashtab.c: Include stdio.h.
2031
2032Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2033
2034 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2035
2036Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2037
2038 * xstrdup (sys/types.h): Include this file.
2039
20401999-10-28 Nathan Sidwell <nathan@acm.org>
2041
2042 * Makefile.in (SUBDIRS): New macro.
2043 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2044 avoid multiple subdirectory cleaning.
2045 (*-subdir): Use SUBDIRS.
2046
20471999-10-25 Jim Kingdon <http://developer.redhat.com/>
2048
2049 * cplus-dem.c: Move declarations of standard_symbol_characters and
2050 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2051 warnings.
2052
20531999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2054
2055 * hashtab.c (find_hash_table_entry): When returning a
2056 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2057 (clear_hash_table_slot): New function which deletes an entry
2058 by its position in the table, not its value.
2059 (traverse_hash_table): New function which calls a hook
2060 function for every live entry in the table.
2061
20621999-10-19 Mark Mitchell <mark@codesourcery.com>
2063
2064 * cplus-dem.c (INTBUF_SIZE): New macro.
2065 (string_append_template_idx): New function.
2066 (demangle_expression): Likewise.
2067 (demangle_integral_value): Use it.
2068 (demangle_real_value): New function, split out from ...
2069 (demangle_template_value_parm): ... here. Use
2070 string_append_template_idx. Use demangle_real_value.
2071 (demangle_template): Use string_append_template_idx.
2072 (demangle_qualified): Use consume_count_with_underscores.
2073 (get_count): Tweak formatting.
2074 (do_type): Use string_append_template_idx.
b4fe2683 2075
0c0a36a4
ILT
20761999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2077
2078 * calloc.c: Add a public domain notice.
2079
2080Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2081
2082 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2083
2084Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2085
2086 * Makefile.in (CFILES): Add hashtab.c
2087 (REQUIRED_OFILES): Add hashtab.o
2088 (hashtab.o): Add dependencies.
2089 * hashtab.c: New file
2090
2091Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2092
2093 * basename.c (DIR_SEPARATOR): New macro.
2094 (DIR_SEPARATOR_2): Likewise.
2095 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2096 (IS_DIR_SEPARATOR): Likewise.
2097 (main): Handle MSDOS style pathname.
2098
20991999-10-11 Mark Mitchell <mark@codesourcery.com>
2100
2101 * cplus-dem.c (do_type): Handle pointer to member types whose
2102 enclosing classes have namespace scope.
2103
2104Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2105
2106 * config.table: Provide a backup shell for executing move-if-change.
2107
21081999-10-02 Mark Mitchell <mark@codesourcery.com>
2109
2110 * xmalloc.c (xmalloc): Fix spelling error.
2111 (xcalloc, xrealloc): Likewise.
2112
21131999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2114
2115 * cplus-dem.c (fancy_abort, demangle_integral_value,
2116 demangle_arm_hp_template, recursively_demangle,
2117 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2118 (program_name, program_version, fatal): Constify a char*.
2119 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2120 (main): Call return, not exit.
2121
21221999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2123
2124 * choose-temp.c: Remove obsolete comment about gcc.
2125 (make_temp_file): Constify a char*.
2126
2127Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2128
2129 * xmemdup.c: Include sys/types.h.
2130
21311999-09-07 Jeff Garzik <jgarzik@pobox.com>
2132
2133 * xmemdup.c: New xmemdup function.
2134 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2135
2136Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2137
b4fe2683 2138 * config.table: Add openedition target.
0c0a36a4
ILT
2139 * config/mh-openedition: New file.
2140
2141Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2142
2143 * pexecute.c (pexecute): Fill in temp_base when needed.
2144
21451999-08-31 Richard Henderson <rth@cygnus.com>
2146
2147 * getpwd.c: Check HAVE_GETCWD before defining it away.
2148
21491999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2150
2151 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2152 (REQUIRED_OFILES): Add getpwd.o.
2153 (getpwd.o): Add target.
2154
2155 * configure.in (AC_PREREQ): Bump to 2.13.
2156 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2157
2158 * getpwd.c: New file, moved here from gcc.
2159
21601999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2161
2162 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2163 comparing against a signed quantity.
2164 (arm_special): Likewise.
2165 (demangle_fund_type): Likewise.
2166 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2167 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2168 (main): Constify variable `valid_symbols'.
2169
2170Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2171
2172 * strtoul.c (strtoul): Add parentheses around && within ||.
2173
2174Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2175
2176 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2177 libdir, libsubdir and tooldir.
2178
21791999-08-01 Mark Mitchell <mark@codesourcery.com>
2180
2181 * splay-tree.c (splay_tree_insert): Return the new node.
2182
35ca97ea
RH
21831999-07-14 Richard Henderson <rth@cygnus.com>
2184
b4fe2683 2185 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
2186 prototyping directly.
2187 * choose-temp.c: Conditionally include string.h.
2188
0c0a36a4
ILT
21891999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2190
2191 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2192
af32ff69
ILT
21931999-07-11 Ian Lance Taylor <ian@zembu.com>
2194
2195 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2196 warning.
2197
0c0a36a4
ILT
21981999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2199
2200 * Makefile.in (needed-list): Only include stuff we actually need
2201 for libstdc++.
2202
22031999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2204
2205 * configure.in (checkfuncs): Add gettimeofday.
2206 * config.in, configure: Regenerated.
2207
2208Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2209
2210 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2211 the test fails.
2212 * configure: Regenerate.
2213
22141999-06-10 Mike Stump <mrs@wrs.com>
2215
2216 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2217 parallel builds.
2218
22191999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2220
2221 * putenv.c: Include ansidecl.h to define `const'.
2222 * setenv.c: Likewise.
2223
2224Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2225
2226 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2227 * configure.in (funcs): Add putenv and setenv.
2228 (AC_CHECK_FUNCS): Check for putenv and setenv.
2229 * configure: Rebuilt.
2230 * putenv.c setenv.c: New files.
2231
2232 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2233 bytes of space using malloc.
2234
2235Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2236
2237 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2238 the *mangled pointer beyond the end of the string. Clean up code to
2239 match prevailing coding style.
2240
22411999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2242
2243 * tmpnam.c (L_tmpnam): Fix typo.
2244
2245Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2246
2247 * cplus-dem.c (standard_symbol_characters): Renamed from
2248 standard_symbol_alphabet. No longer modify TABLE.
2249 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2250 modify TABLE.
2251 (main): Corresponding changes. Use strchr to determine if a
2252 character is valid.
2253
e9868447
JB
22541999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2255
2256 * cplus-dem.c (main): Use table lookup to distinguish identifier
2257 characters from non-identifier characters.
2258 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2259
33fbbfbc
RH
2260Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2261
2262 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2263 * getruntime.c: Only attempt to include sys/resource.h and
2264 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2265 are defined.
2266
0c0a36a4
ILT
2267Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2268
2269 * configure.in (alloca detection): Handle alloca directly for interix.
2270 * configure: Rebuilt.
2271
2272Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2273
2274 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2275
252b5132
RH
22761999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2277
2278 Fix from Dale Hawkins:
b4fe2683 2279 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2280 reallocated properly if we use it again.
2281
2282 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2283 stricter about syntax. Always null-terminate string.
2284
c1687039
ILT
2285Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2286
2287 * configure.in (checkfuncs): Check for sbrk.
2288 * config.in: Rebuilt.
2289 * configure: Likewise.
2290 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2291
0c0a36a4
ILT
22921999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2293
2294 Fix from Marcus Daniels:
2295 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2296 identifier looking for another underscore.
2297
2298Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2299
2300 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2301 * xmalloc.c: Likewise.
2302 (xcalloc): UWIN has sbrk.
2303 (xrealloc): Fix guard macro.
2304
252b5132
RH
23051999-04-11 Richard Henderson <rth@cygnus.com>
2306
2307 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2308 or <alloca.h>.
2309 * clock.c (GNU_HZ): New definition.
2310 (clock): Use it.
2311 * getruntime.c: Likewise.
2312
2313 * config.table: Use mh-beos.
2314 * config/mh-beos: New file.
2315
0c0a36a4
ILT
23161999-04-11 Mark Mitchell <mark@codesourcery.com>
2317
2318 * cplus-dem.c (demangle_template_value_parm): Handle
2319 pointers-to-members.
2320 (do_type): Handle template parameters as qualifiers.
2321
252b5132
RH
23221999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2323
2324 * cplus-dem.c: Attempt to handle overflows in counts with some
2325 semblance of grace.
2326 (consume_count): Detect overflows. Return -1 to indicate errors,
2327 instead of zero.
2328 (demangle_template_value_parm, demangle_template): Handle change
2329 to consume_count's return convention.
2330
0c0a36a4
ILT
23311999-04-05 Tom Tromey <tromey@cygnus.com>
2332
2333 * testsuite/regress-demangle: New file.
2334 * testsuite/demangle-expected: New file.
252b5132 2335
0c0a36a4
ILT
2336 * Makefile.in (all, check, installcheck, info, install-info,
2337 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2338 distclean, maintainer-clean, realclean): Depend on corresponding
2339 `-subdir' target.
2340 (all-subdir check-subdir installcheck-subdir info-subdir
2341 install-info-subdir clean-info-subdir dvi-subdir
2342 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2343 distclean-subdir maintainer-clean-subdir): New target.
2344 * testsuite/Makefile.in: New file.
2345 * configure: Rebuilt.
2346 * configure.in: Create testsuite/Makefile.
252b5132
RH
2347
23481999-04-02 Mark Mitchell <mark@codesourcery.com>
2349
2350 * splay-tree.h (splay_tree_compare_pointers): Define.
2351
23521999-03-30 Mark Mitchell <mark@codesourcery.com>
2353
2354 * splay-tree.c (splay_tree_compare_ints): Define.
2355
23561999-03-30 Tom Tromey <tromey@cygnus.com>
2357
2358 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2359 don't advance input pointer.
2360 (demangle_class_name): If consume_count didn't find a count, do
2361 nothing. Don't bother with `strlen' sanity check; consume_count
2362 does it for us.
2363
23641999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2365
2366 From Art Haas <ahaas@neosoft.com>:
2367 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2368 when doing arm or hp style.
2369 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2370
252b5132
RH
2371Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2372
2373 * pexecute.c (__CYGWIN32__): Rename to
2374 (__CYGWIN__): this.
2375 * xmalloc.c: Likewise.
2376
2377 Changes to support i386-pc-uwin.
2378 * configure.in (*-*-uwin*): Workaround for vfork bug.
2379 * configure: Regenerate.
2380 * pexecute.c (pexecute): Be like standard Unix.
2381 (pwait): Likewise.
2382 * xmalloc.c (first_break): Define.
2383 (xmalloc_set_program_name): Use.
2384 (xmalloc): Use.
2385
2386Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2387
2388 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2389
2390Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2391
2392 * config.table: Check cygwin*, not cygwin32*.
2393
2394Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2395
2396 * Makefile.in: Change mkstemp -> mkstemps.
2397
2398Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2399
2400 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2401 * configure.in (funcs): Check for and conditionally add mkstemps to
2402 the list of functions libiberty will provide.
2403 * configure: Rebuilt.
b4fe2683 2404
252b5132
RH
2405Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2406
b4fe2683 2407 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2408 platforms that don't have HZ.
2409 * getruntime.c (HZ): Likewise.
2410
2411Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2412
2413 * Makefile.in (xstrdup.o): Depend on config.h.
2414
2415Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2416
2417 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2418 freeing it.
2419
2420Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2421
2422 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2423
2424Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2425
2426 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2427 splay-tree.o.
2428
24291999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2430
2431 * configure.in: Require autoconf 2.12.1 or higher.
2432
24331998-12-30 Michael Meissner <meissner@cygnus.com>
2434
2435 * random.c (NULL): Don't redefine NULL if it is already defined.
2436
2437Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2438
2439 * argv.c (buildargv): Cast the result of alloca in assignment.
2440
2441 * choose-temp.c: Include stdlib.h.
2442
2443 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2444 (snarf_numeric_literal): Constify first parameter.
2445 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2446 int, not a char.
252b5132
RH
2447 (demangle_qualifier): Likewise.
2448 (demangle_signature): Cast the argument of a ctype function to
2449 unsigned char.
2450 (arm_pt): Add parens around assignment used as truth value.
2451 (demangle_arm_hp_template): Constify variable `args'.
2452 (do_hpacc_template_const_value): Cast the argument of a ctype
2453 function to unsigned char.
2454 (do_hpacc_template_literal): Remove unused variable `i'.
2455 (snarf_numeric_literal): Constify parameter `args'.
2456 Cast the argument of a ctype function to unsigned char.
2457
2458 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2459 avoid ambiguous `else'.
252b5132
RH
2460
2461 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2462 `cstart' and `cend' to unsigned char. Cast the argument of macro
2463 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2464
2465 * objalloc.c (free): Add prototype.
2466
2467Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2468
2469 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2470
2471Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2472
2473 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2474 doesn't exist.
252b5132 2475 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2476
252b5132
RH
2477Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2478
2479 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2480 bumping the pointer we read from. Also prepend these codes,
2481 as we do in other places.
2482
24831998-12-18 Nick Clifton <nickc@cygnus.com>
2484
2485 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2486 'const char *' in order to match its usage when calling siblings.
2487 (snarf_numeric_literal): Make first arg 'const char **' in order
2488 to match usage.
2489
2490Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2491
2492 * choose-temp.c: Don't check IN_GCC anymore.
2493
2494 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2495 * memchr.c (memchr): Likewise.
2496 * memcpy.c (memcpy): Likewise.
2497 * memmove.c (memmove): Likewise.
2498
2499 * mkstemp.c: Don't check IN_GCC anymore.
2500 * pexecute.c: Likewise.
2501 * splay-tree.c: Likewise.
2502
2503 * strchr.c (strchr): Use `const', not `CONST'.
2504 * strrchr.c (strrchr): Likewise.
2505 * strtol.c (strtol): Likewise.
2506 * strtoul.c (strtoul): Likewise.
2507
2508Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2509 Elena Zannoni <ezannoni@cygnus.com>
2510 Stan Shebs <shebs@cygnus.com>
2511 Edith Epstein <eepstein@cygnus.com>
2512 Andres MacLeod <amacleod@cygnus.com>
2513 Satish Pai <pai@apollo.hp.com>
2514
2515 * HP aCC demangling support.
2516 * cplus-dem.c
2517 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2518 demangling correctly when -edg specified; set the demangling style
2519 when user specifies 'edg'. Set strip_underscore to
2520 prepends_underscore, if not HPUXHPPA. Set
2521 current_demangling_style to hp_demangling if HPUXHPPA. Set
2522 current demangling style correctly if the switch is hp. Read
2523 label correctly also in the HP style case.
252b5132 2524 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2525 function.
252b5132 2526 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2527 style for this case is the same as ARM.
252b5132
RH
2528 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2529 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2530 demangle_arm_pt.); check and set value of temp_start field in
2531 multiple places. Also, when ceching for end of template args,
2532 check to see if at end of static member of template class.
252b5132 2533 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2534 include template args in string defining class.
252b5132
RH
2535 (demangle_class_name): use demangel_arm_hp_template.
2536 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2537 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2538 Handle EDG_DEMANGLING style. Handle constructor and destructor
2539 ops for HP style.
252b5132 2540 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2541 styles. global destructor and constructor for HP style are same
2542 as for ARM style. Same for local variables.
252b5132
RH
2543 (demangle_qualified): handle EDG_DEMANGLING style.
2544 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
2545 cases '1' - '9' : initialize the temp_start field to -1 and handle
2546 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2547 and AUTO_DEMANGLING styles. If expecting a function and managed
2548 to demangle the funct args, then handle the LUCID_DEMANGLING,
2549 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2550 class name after "Lnnn_ in HP style case. HP style too needs to
2551 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 2552 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2553 value param for HP/aCC.
252b5132 2554 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2555 literal parameter for HP aCC.
252b5132
RH
2556 (recursively_demangle): new function
2557 (snarf_numeric_literal): new function.
2558 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2559 to message.
252b5132
RH
2560
2561Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2562
2563 * pexecute.c: Remove obsolete ifdefed cygwin code.
2564
2565Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2566
2567 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2568 * cplus-dem.c: Likewise. Conform to libiberty.h.
2569 * pexecute.c: Likewise.
2570 * splay-tree.c: Likewise.
2571
25721998-11-25 Mike Stump <mrs@wrs.com>
2573
2574 * Makefile.in (splay-tree.o): Add config.h dependency.
2575
2576Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2577
2578 * configure.in: Use AC_PREREQ(2.12.1).
2579
25801998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2581
b4fe2683 2582 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2583
2584Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2585
2586 * mpw.c (mpw_access): Add missing parens.
2587
2588Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2589
2590 * configure.in: Call AC_HEADER_SYS_WAIT.
2591
2592 * pexecute.c: Include sys/wait.h when !IN_GCC.
2593
2594Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2595
2596 * pexecute.c: revert back to checking old Cygwin
2597 preprocessor symbol until some time has passed.
2598
2599Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2600
2601 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2602 since it will now support similar constructs.
2603
2604Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2605
2606 * configure.in: Check for calloc.
2607
2608 * calloc.c: New file.
2609
2610 * xmalloc.c (xcalloc): New function.
2611
2612Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2613
2614 *cplus-dem.c (demangle_prefix): Use the last "__"
2615 in the mangled name when looking for the signature. This allows
2616 template names to begin with "__".
2617
26181998-11-08 Mark Mitchell <mark@markmitchell.com>
2619
2620 * cplus-dem.c (type_kind_t): Add tk_reference.
2621 (demangle_template_value_parm): Handle it.
2622 (do_type): Use it for references, instead of tk_pointer.
2623
2624 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2625 not internal_cplus_demangle.
2626
2627Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2628
2629 * choose-temp.c: Don't include gansidecl.h.
2630 * mkstemp.c: Likewise.
2631 * pexecute.c: Likewise.
2632
2633Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2634
b4fe2683
JM
2635 * configure.in: detect cygwin* instead of cygwin32*
2636 * configure: regenerate
252b5132
RH
2637
2638Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2639
2640 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
2641 whether to include config.h. Possibly include unistd.h in the
2642 !IN_GCC case. Define VFORK_STRING as a printable function call
2643 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2644 defined, include vfork.h. If VMS is defined, define vfork()
2645 appropriately. Remove vfork check on USG, we're using autoconf.
2646 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2647 locally what string to use.
252b5132
RH
2648
26491998-10-26 Mark Mitchell <mark@markmitchell.com>
2650
2651 * splay-tree.c: Tweak include directives to make sure declarations of
2652 xmalloc and free are available.
2653
26541998-10-25 Mark Mitchell <mark@markmitchell.com>
2655
2656 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2657 anonymous namespaces.
2658
26591998-10-23 Mark Mitchell <mark@markmitchell.com>
2660
2661 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2662 with type_quals.
2663 (TYPE_UNQUALIFIED): New macro.
2664 (TYPE_QUAL_CONST): Likewise.
2665 (TYPE_QUAL_VOLATILE): Likewise.
2666 (TYPE_QUAL_RESTRICT): Likewise.
2667 (code_for_qualifier): New function.
2668 (qualifier_string): Likewise.
2669 (demangle_qualifier): Likewise.
2670 (internal_cplus_demangle): Use them.
2671 (demangle_signature): Likewise.
2672 (demangle_template_value_parm): Likewise.
2673 (do_type): Likewise.
2674 (demangle_fund_type)): Likewise.
2675
2676Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2677
2678 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2679 to match prototype.
2680
26811998-10-21 Mark Mitchell <mark@markmitchell.com>
2682
2683 * splay-tree.c: New file.
2684 * Makefile.in (CFILES): Add it.
2685 (REQUIRED_OFILES): Likewise.
2686 (splay-tree.o): Add dependencies.
2687
2688Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2689
2690 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2691 range of 'K' index.
2692
2693Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2694
2695 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2696
2697 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2698 `unsigned char'.
2699 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2700 comparing against one.
2701 (cplus_mangle_opname): Likewise.
2702 (demangle_integral_value): Cast argument of ctype macro to
2703 `unsigned char'.
2704 (demangle_template_value_parm): Likewise.
2705 (demangle_template): Initialize variable `bindex'. Cast the
2706 result of `strlen' to (int) when comparing against one. Remove
2707 unused variable `start_of_value_parm'.
2708 (demangle_class_name): Cast the result of `strlen' to (int) when
2709 comparing against one.
2710 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2711 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2712 when comparing against one.
2713 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2714 (get_count): Likewise.
2715 (do_type): Likewise. Cast the result of `strlen' to (int) when
2716 comparing against one.
2717 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2718 (demangle_function_name): Cast the result of `strlen' to (int)
2719 when comparing against one.
2720
2721 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2722 comparing against one.
2723
2724Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2725
b4fe2683
JM
2726 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2727 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2728 * config.in, configure: Rebuilt.
252b5132
RH
2729
2730 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2731 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2732 * config.in, configure: Rebuilt.
2733
2734Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2735
b4fe2683 2736 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2737
2738Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2739
2740 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2741
2742Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2743
2744 * Merge egcs & devo libiberty.
2745