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