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