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