]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* MAINTAINERS: Add myself as a vax port maintainer.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
6df5a5c7
MM
12003-11-19 Mark Mitchell <mark@codesourcery.com>
2
3 * cp-demangle.c (demangle_type): Correct thinko in substitution
4 processing.
5
a9b571f2
ILT
62003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
7
820555e6
ILT
8 * cp-demangle.c (demangle_operator_name): Remove space before
9 "sizeof".
10 (demangle_type_ptr): Put qualifiers in the right place. Handle
11 qualifiers in pointer to member specially.
12 (demangle_type): Handle qualifiers for pointer or reference
13 specially. Handle function type.
14 (demangle_local_name): Save and restore caret around demangling of
15 initial encoding.
16
c4328d32
ILT
17 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
18 cplus_demangle.
19
a9b571f2
ILT
20 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
21
ad37274a
AJ
222003-10-31 Andreas Jaeger <aj@suse.de>
23
24 * floatformat.c (floatformat_always_valid): Add unused attribute.
25
27eb8ab1
JZ
262003-10-30 Josef Zlomek <zlomekj@suse.cz>
27
28 Jan Hubicka <jh@suse.cz>
29 * vasprintf.c (int_vasprintf): Pass va_list by value.
30 Use va_copy for copying va_list.
31 (vasprintf): Pass va_list by value.
32
e0432c1c
JZ
332003-10-30 Josef Zlomek <zlomekj@suse.cz>
34
35 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
36 instead of increasing n_elements when inserting to deleted slot.
37
08c5b96d
B
382003-10-20 J. Brobecker <brobecker@gnat.com>
39
40 * cplus-dem.c (demangle_template): Register a new Btype only
41 when needed.
42 * testsuite/demangle-expected: Add a new test.
43
968e3f93
L
442003-10-16 H.J. Lu <hongjiu.lu@intel.com>
45
46 * testsuite/demangle-expected: Update the expected output of
47 _GLOBAL__I__Z2fnv.
48
bca48dc6
DJ
492003-10-02 Daniel Jacobowitz <drow@mvista.com>
50
51 * strerror.c: Revert last change. Declare static sys_nerr
52 and sys_errlist using different names.
53
b9e8f4b3
DJ
542003-10-01 Daniel Jacobowitz <drow@mvista.com>
55
56 * strerror.c: Don't provide or reference sys_errlist if
57 strerror is available.
58
c0590bfd
L
592003-10-01 H.J. Lu <hongjiu.lu@intel.com>
60
61 * configure.in: Check if $MAKEINFO is missing.
62 * configure: Regenerated.
63
b033df90
DJ
642003-09-24 Daniel Jacobowitz <drow@mvista.com>
65
66 * configure.in: Use AC_PROG_CPP_WERROR.
67 * configure: Regenerated.
68
83c07342
AC
692003-09-22 Andrew Cagney <cagney@redhat.com>
70
71 * floatformat.c (floatformat_i387_ext_is_valid): New function.
72 (floatformat_always_valid): New function.
73 (floatformat_i387_ext): Initialize new "is_valid" field to
74 "floatformat_i387_ext_is_valid".
75 (floatformat_ieee_single_little): Initialize "is_valid" field to
76 floatformat_always_valid.
77 (floatformat_ieee_double_big): Ditto.
78 (floatformat_ieee_double_little): Ditto.
79 (floatformat_ieee_double_little): Ditto.
80 (floatformat_ieee_double_littlebyte_bigword): Ditto.
81 (floatformat_i960_ext): Ditto.
82 (floatformat_m88110_ext): Ditto.
83 (floatformat_m88110_harris_ext): Ditto.
84 (floatformat_arm_ext_big): Ditto.
85 (floatformat_arm_ext_littlebyte_bigword): Ditto.
86 (floatformat_ia64_spill_big): Ditto.
87 (floatformat_ia64_spill_little): Ditto.
88 (floatformat_ia64_quad_big): Ditto.
89 (floatformat_ia64_quad_little): Ditto.
90 (floatformat_ia64_quad_little): Ditto.
91 (floatformat_is_valid): Call "is_valid".
92
c9fbef12
AC
932003-09-15 Andrew Cagney <cagney@redhat.com>
94
95 * floatformat.c (get_field): Make "data" constant.
96 (floatformat_is_valid, floatformat_to_double): Make "from"
97 constant, fix casts.
98 (floatformat_from_double): Make "from" constant.
99
9c8860c3
DJ
1002003-09-15 Daniel Jacobowitz <drow@mvista.com>
101
102 * floatformat.c (floatformat_is_valid): New function.
103 (get_field, put_field): Correct comments.
104
13f7d3a1
JZ
1052003-09-06 Josef Zlomek <zlomekj@suse.cz>
106
107 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
108 FIBHEAPKEY_T.
109
03eec143 1102003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
111
112 PR bootstrap/12100
113 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
114 * configure: Rebuilt.
115
238235ef
DJ
1162003-08-27 Daniel Jacobowitz <drow@mvista.com>
117
118 * aclocal.m4: Include acx.m4 and no-executables.m4.
119 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
120 (LIB_AC_PROG_CC): Remove.
121 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
122 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
123 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
124 performing link tests.
125 * configure: Regenerated.
126
2b81b2c9
NN
1272003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
128
129 * cp-demangle.c: Clarify what package(s) this is part of.
130
7b96f3e4
DS
1312003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
132
133 * pex-win32.c (pexecute): Mark parameters this_pname and
134 temp_base as unused. Remove unused variables retries,
135 sleep_interval. Initialize org_stdin, org_stdout.
136 (pwait): Mark parameter flags as unused.
137
1382003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
139
140 * pex-win32.c (fix_argv): Ensure that the executable pathname
141 uses Win32 backslashes.
142 (pexecute): Cast away constness when assigning *errmsg_arg.
143
6f8507b1
L
1442003-06-26 H.J. Lu <hongjiu.lu@intel.com>
145
146 * testsuite/demangle-expected: Add more GNU V3 testcases.
147
21299dbd
ZW
1482003-06-22 Zack Weinberg <zack@codesourcery.com>
149
150 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
151 not HC_ASCII and HC_EBCDIC.
152 Add documentation in form expected by gather-docs.
153 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
154 * Makefile.in, functions.texi: Regenerate.
155
7468e0b5
ZW
1562003-06-21 Zack Weinberg <zack@codesourcery.com>
157
158 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
159 for charset determination.
160
cf8e4b78
DH
1612003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
162
163 * configure.in: Add check for malloc.h needed by
164 m68k for function free().
165 * configure: Regenerated.
166 * config.in: Add HAVE_MALLOC_H.
167 * hashtab.c: include malloc.h were available for
168 free().
169
aa9dc53d 1702003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 171
aa9dc53d
ACY
172 PR bootstrap/10974
173 * physmem.c: Update comment.
174 * configure.in: Modify test for _system_configuration for older
175 AIX systems.
176
177 * config.in, configure: Regenerated.
7468e0b5 178
8191fe81
JDA
1792003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
180
181 PR other/10810
182 * test-demangle.c (getline): Fix fence-post error.
183
8d398258
NC
1842003-06-03 Nick Clifton <nickc@redhat.com>
185
186 * asprintf.c: Change comment to note that -1 is returned upon
187 error.
188 * vasprintf.c: Likewise.
189 (vasprintf): Return -1 upon error.
190 * functions.texi: Document changes to asprintf and vasprintf.
191
29ad6d3f
KC
1922003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
193
194 * config.table: Accept i[345867]86 variant.
195
49a19cfd
JB
1962003-05-15 Jim Blandy <jimb@redhat.com>
197
198 * hex.c (_hex_value): Make this unsigned.
199 (hex_value): Update documentation for new return type. hex_value
200 now expands to an unsigned int expression, to avoid unexpected
201 sign extension when we store it in a bfd_vma, which is larger than
202 int on some platforms.
203 * functions.texi: Regenerated.
204
d5d4eae2
JZ
2052003-05-07 Josef Zlomek <zlomekj@suse.cz>
206
207 * splay-tree.c (splay_tree_predecessor): Fix comment.
208 (splay_tree_successor): Fix comment.
209
5cc5a0d0
JM
2102003-05-07 Jason Merrill <jason@redhat.com>
211
9d70d418 212 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
213 * configure.in: Add AC_C_BIGENDIAN_CROSS.
214 * aclocal.m4: Include accross.m4.
215 * configure, config.in: Regenerate.
216
05c30f22
KG
2172003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
218
219 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
220 * configure: Regenerate.
221
41fe9404
CW
2222003-05-03 Carlo Wood <carlo@alinoe.com>
223
224 * cp-demangle.c: Fix typo in "char_traints" string-literal.
225
52dd3224
KG
2262003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
227
228 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
229 (main): Test that we don't write too much data.
230
bd3fbc6b
KG
2312003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
232
233 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
234 vsnprintf.
235 * snprintf.c, vsnprintf.c: New files.
236 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
237 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
238 Regenerate dependencies.
239
240 * functions.texi, configure, config.in: Regenerated.
241
029bcc09
KG
2422003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
243
244 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
245 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
246 and stpncpy.
247 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
248 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
249 Regenerate dependencies.
250
251 * functions.texi, configure, config.in: Regenerated.
252
c9ac9147
KG
2532003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
254
255 * argv.c: Fix comments.
256 * calloc.c: Don't unnecessarily include "libiberty.h".
257 (bzero): Add prototype.
258 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
259 * getcwd.c (getcwd): Use standard definition to avoid conflicts
260 with system headers.
261 * hashtab.c (htab_traverse): Delete unused variables.
262 * rename.c: Include "ansidecl.h".
263 (rename): Use standard definition to avoid conflicts with system
264 headers.
265 * strsignal.c: Rely on ANSI_PROTOTYPES.
266 * strstr.c: Check GNUC >= 2, not GNUC == 2.
267 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
268 * vprintf.c: Include "ansidecl.h" earlier, rely on
269 ANSI_PROTOTYPES.
270 * vsprintf.c: Include "ansidecl.h" earlier, rely on
271 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 272
c9ac9147
KG
273 * Makefile.in: Regenerate dependencies.
274
98475c57
DD
2752003-04-15 DJ Delorie <dj@redhat.com>
276
277 * maint-tool (deps): Scan for headers in $srcdir also.
278
55adc7bd
KG
2792003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
280
281 PR target/10338
282 PR bootstrap/10198
283 PR bootstrap/10140
284 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
285 __mempcpy.
286 * regex.c (regerror): Likewise.
287
0ae0f1b0
RS
2882003-04-14 Roger Sayle <roger@eyesopen.com>
289
290 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
291 * memchr.c: Likewise.
292 * strcasecmp.c: Likewise.
293 * strncasecmp.c: Likewise.
294 * strncmp.c: Likewise.
295 * xatexit.c: Likewise.
296 * xmalloc.c: Likewise.
297
298 * copysign.c: Use traditional function declaration instead of DEFUN.
299 * sigsetmask.c: Likewise.
300
301 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
302 * memset.c: Likewise.
303
304 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
305 * memmove.c: Likewise.
306
88702c45
RS
3072003-04-14 Roger Sayle <roger@eyesopen.com>
308
309 * strdup.c (strdup): Tweak implementation to use memcpy.
310
39e8d049
KG
3112003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
312
313 * configure.in (HAVE_UINTPTR_T): Always define.
314 * configure: Regenerated.
315
9f2e0608
AO
3162003-03-23 Alexandre Oliva <aoliva@redhat.com>
317
318 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
319 instead of $$CC alone.
320 (install_to_tooldir): Use it.
321
dbccdc42
JH
3222003-17-03 Jan Hubicka <jh@suse.cz>
323
324 * hashtab.c (htab_traverse_noresize): Break out from ...
325 * hashtab.c (htab_traverse): ... here.
326
0a8e3de3
JH
3272003-12-03 Jan Hubicka <jh@suse.cz>
328
cd22e4af
JH
329 * hashtab.c (htab_expand): Fix warning.
330
0a8e3de3
JH
331 * hashtab.c (htab_expand): Compute the size of hashtable based
332 on the number of elements actually used.
333 (htab_traverse): Call htab_expand when table is too empty.
334
8fe85775
CW
3352003-03-11 Carlo Wood <carlo@gnu.org>
336
337 * cplus-dem.c (demangle_integral_value): Correction to reflect
338 patch of 2002-01-10 in order to also make negative multi-digits
339 without leading underscore work.
340
3bf27822
MM
3412003-03-03 Mark Mitchell <mark@codesourcery.com>
342
343 * cplus-dem.c: Add license exception to copyright notice.
344
434fa0b8
KG
3452003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
346
347 * physmem.c: Formatting changes from upstream.
348
ed935c35
DS
3492003-02-24 Danny Smith <dannysmith@users.source.forge.net>
350
351 * physmem.c (physmem_total): Add _WIN32 support.
352 (physmem_available): Likewise.
353
7f9fc006
RO
3542003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
355
356 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
357 GSI_PHYSMEM.
358 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
359
d47f75c4
KG
3602003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
361
362 * configure.in: Check for sys/systemcfg.h and
363 _system_configuration.
364 * physmem.c: Add support for AIX. Tweek formatting as per
365 upstream coreutils beta.
366
170230b7
KG
3672003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
368 Richard Earnshaw <rearnsha@arm.com>
369 Geoffrey Keating <geoffk@apple.com>
7468e0b5 370
170230b7
KG
371 * configure.in: Check for sys/sysctl.h and sysctl.
372 * physmem.c: Add support for *bsd and darwin.
373 * Makefile.in: Generate depedency for physmem.o.
374
4a06f7f2
RO
3752003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
376
377 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
378 Tru64 UNIX.
379 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
380 Tru64 UNIX.
381
382 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
383 machine/hal_sysinfo.h, sys/table.h.
384 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
385 * configure, config.in: Regenerate.
386
64c7e556
KG
3872003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
388
389 * configure.in: Check for sys/sysmp.h and sysmp.
390 * physmem.c: Pull upstream copy, add support for irix6.
391
392 * config.in, configure: Regenerated.
393
e9019af6
KG
3942003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
395
396 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
397 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
398 pstat_getdynamic.
7468e0b5 399
a354191e
KG
4002003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
401
402 * Makefile.in (CFILES): Add physmem.c.
403 (REQUIRED_OFILES): Add physmem.o.
404 * configure.in: Check for sys/pstat.h.
405 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
406 * physmem.c: New file, copied from textutils.
407
408 * config.in, configure: Regenerated.
409
4876b2b4
DJ
4102003-02-20 Daniel Jacobowitz <drow@mvista.com>
411
412 * Makefile.in (CFILES): Add lrealpath.c.
413 (REQUIRED_OFILES): Add lrealpath.o.
414 (lrealpath.o): Add rule.
415 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
416 * configure.in: Add realpath and canonicalize_file_name to
417 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
418 for canonicalize_file_name.
419 * lrealpath.c: New file.
420 * make-relative-prefix.c: Update documentation.
421 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
422 * config.in: Regenerated.
423 * configure: Regenerated.
424 * functions.texi: Regenerated.
425
e182f0a3 4262003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
427
428 * cplus_dem.c: Fix typo: intializes -> initializes.
429
3343fdd2
AO
4302003-02-20 Alexandre Oliva <aoliva@redhat.com>
431
432 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
433 config.status.
434 * configure: Rebuilt.
435
902cf50c
DJ
4362003-02-13 Daniel Jacobowitz <drow@mvista.com>
437
438 Fix PR c++/7612.
439 * cplus-dem.c (demangle_signature): Call string_delete.
440 Remove extra string_init.
441 (demangle_arm_hp_template): Call string_delete instead of
442 string_clear. Add missing string_delete call.
443 (demangle_qualified): Add missing string_delete call.
444 (do_type): Remove unused variable btype. Add missing string_delete
445 call. Call string_delete instead of string_clear.
446 (demangle_fund_type): Move variable btype inside of the switch
447 statement. Add missing string_delete call.
448 (do_arg): Call string_delete instead of string_clear. Remove extra
449 string_init.
450 (demangle_nested_args): Free work->previous_argument.
451
7ac27e08
KG
4522003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
453
454 * acconfig.h: New file. Add uintptr_t.
455 * config.in: Regenerated.
456
b3a8389d
JM
4572003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
458
459 * libiberty.texi: Update to GFDL 1.2.
460
d8c22ce7
CC
4612003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
462
463 * Makefile.in (libiberty_topdir): New subst.
464 (mkinstalldirs): Redefine in terms of the above.
465 * configure.in: AC_SUBST it.
466 * configure: Regenerate.
467
4ce1921a
CC
4682003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
469
470 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
471 (info-subdir, install-info-subdir, clean-info-subdir)
472 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
473 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
474 Pass $(FLAGS_TO_PASS).
475
93239fdb
AO
4762003-01-27 Alexandre Oliva <aoliva@redhat.com>
477
478 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
479 /`$$CC -print-multi-os-directory`.
480
74828682
DJ
4812003-01-26 Daniel Jacobowitz <drow@mvista.com>
482
483 * hashtab.c (htab_create_alloc_ex): New function.
484 (hatab_set_functions_ex): New function.
485 (htab_delete, htab_expand): Support alternate allocation functions.
486
ece0e59f
CF
4872003-01-24 Christopher Faylor <cgf@redhat.com>
488
489 * configure.in: Remove special pex-cygwin consideration.
490 * configure: Regenerate.
491 * pex-cygwin.c: Remove.
492 * Makefile.in: Remove pex-cygwin.[co] lines.
493
55d0e5e0
ZW
4942003-01-24 Zack Weinberg <zack@codesourcery.com>
495
496 * Makefile.in (CFILES): Add pex-*.c.
497 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
498 (CONFIGURED_OFILES): Add pex-*.o.
499 (TEXIFILES): Add pexecute.txh.
500 (pexecute.o): Delete rule.
501 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
502 pex-unix.o, pex-win32.o): New rules.
503 * configure.in: Change AC_INIT argument to xmalloc.c.
504 Compute appropriate pexecute implementation and substitute it
505 as @pexecute@.
506
507 * pexecute.c: Split up into...
508 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
509 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
510 new files.
511
512 * functions.texi: Regenerate.
513 * configure: Regenerate.
514
120cdf68
JZ
5152003-01-20 Josef Zlomek <zlomekj@suse.cz>
516
517 * hashtab.c (htab_expand): Fix allocation of new entries.
518
90e5b39f
CC
5192003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
520
521 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
522
d7082cd7
CC
523 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
524 mkinstalldirs command.
525
eaed9290
DS
5262002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
527
528 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
529 Define for hosts with HOST_EXECUTABLE_SUFFIX.
530
ef4e4181
NC
5312002-11-24 Nick Clifton <nickc@redhat.com>
532
533 * make-relative-prefix.c (make_relative_prefix): Ensure return
534 string is empty before using strcat to construct it.
535
42766f8d
DJ
5362002-11-22 Daniel Jacobowitz <drow@mvista.com>
537
538 * Makefile.in: Add make-relative-prefix.c.
539 * make-relative-prefix.c: New file.
540 * functions.texi: Rebuilt.
541
783080ab
JJ
5422002-11-16 Jakub Jelinek <jakub@redhat.com>
543
544 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
545 used with arguments in traditional C' warnings.
546
7da64d7a
JJ
5472002-10-16 Jakub Jelinek <jakub@redhat.com>
548
549 * config.table: Use mh-s390pic for s390x too.
550
de78f58b
AJ
5512002-10-06 Andreas Jaeger <aj@suse.de>
552
553 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
554 variable and of strict-aliasing warning.
555 (grow_vect): Use char as first parameter.
556
6c5d742e
KG
5572002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
558
559 * Makefile.in (all): Fix multilib parallel build.
560
f08b7eee
JDA
5612002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
562
563 * cp-demangle.c (demangling_new): Cast 0 to enum.
564 (demangle_char): Cast return of strdup to char *.
565 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
566 (is_gnu_v3_mangled_dtor): Likewise.
567 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
568 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
569 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
570 * md5.c (md5_process_bytes): Cast results back to const void *.
571 (md5_process_block): Add cast to const md5_uint32 *.
572 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
573 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
574 unsigned short.
575 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
576 to void *.
577 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
578
8d87f295
NC
5792002-09-19 Nick Clifton <nickc@redhat.com>
580
581 * README: Update email addresses for bugs and patches.
582
6eedb9ca
MS
5832002-09-10 Mike Stump <mrs@apple.com>
584
585 * splay-tree.c (splay_tree_successor): Fix comments.
586
3fd9d606
ZW
5872002-09-11 Zack Weinberg <zack@codesourcery.com>
588
b2196e8f 589 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
590 * testsuite/Makefile.in: Adjust for test-demangle.
591 * testsuite/regress-demangle: Deleted.
592 * testsuite/test-demangle.c: New file.
593 * testsuite/demangle-expected: Change \$ to $ throughout, now that
594 this file is not being read by a shell script.
595
70c4e67a
RS
5962002-09-05 Roger Sayle <roger@eyesopen.com>
597
598 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
599
65b91091
DD
6002002-08-07 DJ Delorie <dj@redhat.com>
601
602 * regex.c (re_error_msgid): Just use a simple array of strings.
603 (re_compile_pattern): Compensate.
604 (re_comp): Likewise.
605 (re_comp): Likewise.
606 (regerror): Likewise.
607
437974a9
NB
6082002-07-29 Neil Booth <neil@daikokuya.co.uk>
609
610 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 611
28a34ec1
JM
6122002-07-10 Jason Merrill <jason@redhat.com>
613
614 * cp-demangle.c (demangle_identifier): Support extended Unicode
615 characters.
616
84326592
KG
6172002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
618
619 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 620 !defined IN_GLIBCPP_V3.
84326592 621
5d69ba1f
MM
6222002-07-01 Mark Mitchell <mark@codesourcery.com>
623
624 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
625 Set it for the "st" operator.
626 (demangle_expression): Handle expressions with types as arguments.
627
7fda878c
DR
6282002-06-30 Douglas Rupp <rupp@gnat.com>
629
630 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
631 * Makefile.in (OUTPUT_OPTION): Use.
632
112bae77
PB
6332002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
634
635 * Makefile.in (install_to_libdir): Add $(DESTDIR).
636 (install_to_tooldir): Likewise.
637
53309d5c
DR
6382002-06-17 Douglas Rupp <rupp@gnat.com>
639
640 * lbasename.c: Add 2002 to copyright.
641 (IS_DIR_SEPARATOR): Remove VMS junk.
642
045b3a49
GK
6432002-06-05 Geoffrey Keating <geoffk@redhat.com>
644
645 * hashtab.c (htab_create): New stub function for backward
646 compatibility.
647 (htab_try_create): Likewise.
648
e2500fed
GK
6492002-06-03 Geoffrey Keating <geoffk@redhat.com>
650
651 * hashtab.c (htab_create): Delete.
652 (htab_try_create): Delete.
653 (htab_create_alloc): New.
654 (htab_delete): Support user-specified memory allocation.
655 (htab_expand): Likewise.
656
9f3dbd92
RL
6572002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
658
659 * configure.in: Fix typo in the code checking for sys_errlist.
660 * configure: Regenerated.
661
e4723404
AS
6622002-05-13 Andreas Schwab <schwab@suse.de>
663
664 * config.table: Use mh-x86pic also for x86-64.
665
6706f116
AO
6662002-05-08 Alexandre Oliva <aoliva@redhat.com>
667
668 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
669 script entry, and set LD to it when configuring multilibs.
670 * configure: Rebuilt.
671
deae2ed9
MM
6722002-05-07 Mark Mitchell <mark@codesourcery.com>
673
674 * configure.in (AC_TYPE_PID_T): Use it.
675 * configure: Regenerated.
676 * getruntime.c: Include <sys/types.h>.
677 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
678
4fc4e478
RH
6792002-04-09 Richard Henderson <rth@redhat.com>
680
681 * hashtab.c (higher_prime_number): Use 7 as minimum.
682 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
683 (htab_find_slot_with_hash): Likewise.
684
bd7e6f2d
PE
6852002-04-01 Phil Edwards <pme@gcc.gnu.org>
686
687 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
688 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
689 not compile if IN_GLIBCPP_V3 defined.
690 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
691
a8f55e51
BM
6922002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
693
de78f58b 694 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
695 if it is NULL.
696
96adcacb
DD
6972002-03-27 DJ Delorie <dj@redhat.com>
698
699 * hex.c: Add documentation.
700 (_hex_value): Provide non-ASCII empty table.
701 (hex_init): Initialize the non-ASCII table.
702 * functions.texi: Regenerate.
703
2b613c6a
MM
7042002-03-27 Mark Mitchell <mark@codesourcery.com>
705
706 * dyn-string.c: Add libgcc exception to copyright notice.
707
cd862df8
L
7082002-03-26 H.J. Lu (hjl@gnu.org)
709
710 * config.table: Support --with-build-subdir.
711 * configure.in: Likewise.
712 * configure: Rebuild.
713
ed300793
SG
7142002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
715
716 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
717 seen.
718
b3dd43df
MM
7192002-03-12 Mark Mitchell <mark@codesourcery.com>
720
721 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
722 notice.
723
50c74579
DR
7242002-03-11 Douglas B Rupp <rupp@gnat.com>
725
726 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
727
957978a4
JB
7282002-03-06 Jim Blandy <jimb@redhat.com>
729
730 * splay-tree.c (splay_tree_xmalloc_allocate,
731 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
732 prototyped definitions. Mark `data' arguments as unused.
733
ccc49bed
AC
7342002-03-06 Andrew Cagney <ac131313@redhat.com>
735
736 * floatformat.c (floatformat_arm_ext_big): Delete definition.
737
48d7db63
PE
7382002-03-04 Phil Edwards <pme@gcc.gnu.org>
739
740 * configure.in: Add --enable-install-libiberty option.
741 * Makefile.in (INSTALLED_HEADERS): New variable.
742 (install_to_libdir): Possibly also copy headers.
743 * configure: Regenerated.
744
af18e951
NB
7452002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
746
747 * xmalloc.c (xmalloc_fail): Clarify error message further.
748
d8d7c3c3
NB
7492002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
750
751 * xmalloc.c (xmalloc_fail): Clarify error message.
752
00c2f96f
JB
7532002-02-22 Jim Blandy <jimb@redhat.com>
754
755 * splay-tree.c (splay_tree_xmalloc_allocate,
756 splay_tree_xmalloc_deallocate): New functions.
757 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
758 above functions and a dummy data pointer.
759 (splay_tree_new_with_allocator): New function.
760 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
761 splay_tree_remove): Use the splay tree's allocation and
762 deallocation functions.
763
b1c1a22f
SS
7642002-02-19 Scott Snyder <snyder@fnal.gov>
765
766 * testsuite/demangle-expected: Add test case for infinite loop in
767 demangler.
768 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
769 if do_type() doesn't make any progress --- prevents an infinite
770 loop.
771
336669e7
CW
7722002-02-18 Carlo Wood <carlo@gnu.org>
773
774 PR c++/5390
775 * cplus-dem.c (demangle_integral_value): Accept multi-digit
776 numbers that do not start with an underscore; This is needed
777 for integer template parameters. This doesn't break anything
778 because multi-digit numbers are never followed by a digit.
779 * testsuite/demangle-expected: Corrected all mangled test
780 cases with multi-digit template parameters: g++ 2.95.x does
781 not generate underscores around these parameters.
782
c13db5d1
JM
7832002-02-05 Jason Merrill <jason@redhat.com>
784
785 * cplus-dem.c (flags): Add DMGL_VERBOSE
786 (cplus_demangle_v3_p): Remove.
787 (demangle_it): Add DMGL_TYPES to passed flags.
788 * cp-demangle.c (cplus_demangle_v3_all): Remove.
789 (cplus_demangle_v3_type): Remove.
790 (cplus_demangle_v3): Add options parm.
791
d74697b8
L
7922002-02-02 H.J. Lu (hjl@gnu.org)
793
794 * cp-demangle.c (cp_demangle_type): Do not protect with
795 IN_LIBGCC2.
796 (cplus_demangle_v3_all): New.
797 (cplus_demangle_v3): Call cplus_demangle_v3_all.
798 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
799
800 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
801 Initialized to cplus_demangle_v3.
802 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
803 of cplus_demangle_v3.
804 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
805 command line symbol.
806
807 * testsuite/regress-demangle: Pass the mangled name at the
808 command line.
809
3a441e38
L
8102002-02-01 H.J. Lu <hjl@gnu.org>
811
812 * cp-demangle.c (cp_demangle_type): Call demangling_new with
813 DMGL_GNU_V3.
814
6d747e63
PE
8152002-01-31 Phil Edwards <pme@gcc.gnu.org>
816
817 * cp-demangle.c: Revert yesterday's change.
818
46af757b
AM
8192002-01-31 Adam Megacz <adam@xwt.org>
820
821 * gcc/libiberty/configure.in: Treat mingw the same as cywin
822 wrt HAVE_SYS_ERRLIST.
823
46ab74b1
PE
8242002-01-30 Phil Edwards <pme@gcc.gnu.org>
825
826 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
827 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
828 cp_demangle_type.
829 * testsuite/demangle-expected: New gnu-v3 test.
830
e64d0626
MV
8312002-01-22 Momchil Velikov <velco@fadata.bg>
832
833 * configure.in (variable detection): Use arrays of unspecified
834 size instead of plain integers.
835
9ce3f7e5
DD
8362002-01-18 DJ Delorie <dj@redhat.com>
837
838 * Makefile.in (TESTLIB): New. This library is for future
839 testsuites.
840 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
841 break down by letter.
842 (REQUIRED_OFILES): List long-to-compile files first.
843 (maint-deps): New, target for updating dependencies.
844 (dependencies): Update.
845 * maint-tool: Add dependency-generating option.
846 * configure.in: Check for _doprnt even if we're not providing it.
847 * configure: Regenerate.
848
849 * _doprnt.c: Modifications to allow compiling on any platform.
850 * copysign.c: Likewise.
851 * putenv.c: Likewise.
852 * setenv.c: Likewise.
853 * vsprintf.c: Likewise.
854
0e83ceb1
DR
8552002-01-15 Douglas B Rupp <rupp@gnat.com>
856
857 * mkstemps.c (mkstemps): On VMS, open temp file with option
858 that causes it to be deleted when closed.
859
adddf5bf
KG
8602002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
861
5e65297b
KG
862 * cp-demangle.c (long_options): Const-ify.
863 * cplus-dem.c (long_options): Likewise.
864
adddf5bf
KG
865 * cplus-dem.c (mystrstr): Delete. All callers changed to use
866 strstr instead.
867
a4219437
IR
8682001-12-31 Ira Ruben <ira@apple.com>
869
870 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
871 * configure: Regenerated.
af328d8d
DR
872
8732001-12-24 Douglas B. Rupp <rupp@gnat.com>
874
875 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
876 * configure: Regenerated.
a4219437 877
63de15a4
CR
8782001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
879
880 PR other/2719
881 * cplus-dem.c (consume_count): Treat negative count as an error.
882 * testsuite/demangle-expected: Added testcase.
883
ee262b6f
DR
884Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
885
886 * configure.in: Hardcode that vfork works on VMS host.
887 * configure: Regenerated.
888
d06ba3c7
RH
8892001-12-06 Richard Henderson <rth@redhat.com>
890
891 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
892 (cplus_demangle): Support no_demangling.
893
e490616e
ZW
8942001-11-27 Zack Weinberg <zack@codesourcery.com>
895
896 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
897 in libiberty context. Fix typo in leading comment.
898 * configure.in: Fix various AC_DEFINEs so autoheader works.
899 If any of vprintf, vsprintf, vfprintf is missing from libc,
900 then AC_REPLACE_FUNCS(_doprnt).
901
97e620cf 9022001-11-26 DJ Delorie <dj@redhat.com>
e490616e 903 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
904
905 * Makefile.in (stamp-h): Depend on Makefile for proper
906 serialization.
907 (*-subdir): Depend on config.h for proper serialization.
908
c3bb7df0
DD
9092001-11-26 DJ Delorie <dj@redhat.com>
910
911 * configure.in: Check for alloca.h (for regex.c and putenv.c).
912 * configure: Regenerate.
913 * config.h: Add HAVE_ALLOCA_H.
914
23850d35
KG
9152001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
916
2c47b56b
KG
917 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
918 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
919 is available.
23850d35 920
7ddfb651
JL
921Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
922
d3982b71
JL
923 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
924 * configure.in (HAVE_UINTPTR_T): Test for system defining
925 uintptr_t and define HAVE_UINTPTR_T appropriately.
926 * regex.c (uintptr_t): Do not provide a definition if the
927 system provided one.
928
7ddfb651
JL
929 * regex.c (PREFIX): Provide an alternate definition for
930 non-ANSI/ISO compilers.
931 (ARG_PREFIX): Likewise.
932
2e683037
JM
9332001-11-12 Jim Meyering <meyering@lucent.com>
934
935 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
936 this code would end up calling gettext even in packages built
937 with --disable-nls.
938 * getopt.c (_): Likewise.
939 * regex.c (_): Likewise.
940
f749bd83
AM
9412001-11-03 Alan Modra <amodra@bigpond.net.au>
942
943 * configure.in: Cope with missing makeinfo.
55a10d7c 944 * configure: Regenerate.
f749bd83 945
26ad2982
KG
9462001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
947
e5969ba6
KG
948 * hex.c (hex_init): Provide empty stub.
949
26ad2982
KG
950 * hex.c (hex_init): Delete.
951 (_hex_value): Const-ify and initialize at compile-time.
952
afb649d5
L
9532001-10-19 H.J. Lu <hjl@gnu.org>
954
955 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
956 necessary.
957
5bed56d9
DD
9582001-10-17 DJ Delorie <dj@redhat.com>
959
960 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
961 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 962 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
963 Improve manual formatting.
964 * functions.texi: Regenerate.
965
aac04c15
DD
9662001-10-15 DJ Delorie <dj@redhat.com>
967
968 * Makefile.in (TEXIFILES): Add fnmatch.txh.
969 (maint-undoc): New.
970 maint-tool: Add "undoc" tool.
971 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
972 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
973 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
974 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
975 documentation.
976 * fnmatch.txh: New.
977 * functions.texi: Regenerate.
fae8182a 978
0e4e9e8f
JM
9792001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
980
981 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
982 * strtod.c: Use "ISO C" instead of "ANSI C".
983 * functions.texi: Regenerate.
984
7f8fa05d
JM
9852001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
986
987 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
988 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
989 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
990 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
991 spelling. Give names to function arguments in documentation. Use
992 (void) prototypes in documentation.
993 * functions.texi: Regenerate.
994
0be6abca
KG
9952001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
996
997 * argv.c (buildargv, tests, main): Const-ify.
998 * cp-demangle.c (operator_code): Likewise.
999 * cplus-dem.c (optable, libiberty_demanglers,
1000 cplus_demangle_set_style, cplus_demangle_name_to_style,
1001 print_demangler_list): Likewise.
1002 * hashtab.c (higher_prime_number): Likewise.
1003 * strcasecmp.c (charmap): Likewise.
1004 * strerror.c (error_info, strerror, main): Likewise.
1005 * strncasecmp.c (charmap): Likewise.
1006 * strsignal.c (signal_info): Likewise.
1007
0e30ffc5
DD
10082001-09-29 DJ Delorie <dj@redhat.com>
1009
1010 * configure: Regenerate.
1011
576fb787
KG
10122001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1013
1014 * concat.c: Include stdlib.h.
1015
e922f978
EZ
10162001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1017
1018 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1019 @dircategory and @direntry directives. Add @finalout.
1020 (many nodes): Lose the next,prev,up pointers on the @nide line.
1021 (Using, Supplemental Functions, Replacement Functions): Fix
1022 markup.
1023 (Functions): Move around, to allow makeinfo to build the manual
1024 without next,prev,up pointers in thye node lines.
1025 (Licenses): Fix typos.
1026
1027 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1028 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1029 * functions.texi: Regenerate.
1030
1031 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1032 line.
1033
ae9092da
DD
10342001-09-27 DJ Delorie <dj@redhat.com>
1035
1036 * configure.in: Don't use in-tree texinfo, because libiberty must
1037 be built before it. Check for makeinfo version 4 or higher.
1038 * functions.texi: Regenerate.
fae8182a 1039
aaa5f039
DD
10402001-09-20 DJ Delorie <dj@redhat.com>
1041 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 1042
aaa5f039
DD
1043 * configure.in (MAKEINFO, PERL): Detect these.
1044 (--enable-maintainer-mode): Add.
1045 * configure: Regenerate.
1046 * Makefile.in (MAKEINFO, PERL): Define.
1047 (libiberty.info, libiberty.dvi, libiberty.html): New.
1048 (CFILES): Add bsearch.c.
1049 (CONFIGURED_OFILES): New, list of objects configure might add.
1050 (maint-missing, maint-buildall): New, for maintainers only.
1051 (clean, mostlyclean): Add info/dvi/html files.
1052 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1053 * gather-docs: New, for maintainers.
1054 * maint-tool: New, for maintainers.
1055 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1056 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1057 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1058 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1059 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1060 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1061 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1062 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1063 documentation.
fae8182a 1064
c1766881
KG
10652001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1066
1067 * concat.c (reconcat): Fix for traditional C.
1068
ad43d46f
KG
10692001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1070
1071 * concat.c (reconcat): New function.
1072
c1d49704
KG
10732001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1074
c793eea7
KG
1075 * concat.c (vconcat_length, vconcat_copy, concat_length,
1076 concat_copy, concat_copy2): New functions.
1077 (concat): Use vconcat_length/vconcat_copy.
1078
c1d49704
KG
1079 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1080 Define.
1081
7a98d9b2
KG
10822001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1083
1084 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1085 VA_FIXEDARG & VA_CLOSE.
fae8182a 1086
7a98d9b2
KG
1087 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1088 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1089 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1090
e2dff3f2
KG
10912001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1092
1093 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1094
d0708dc1
UD
10952001-08-23 Ulrich Drepper <drepper@redhat.com>
1096
1097 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1098
10992001-08-23 Ulrich Drepper <drepper@redhat.com>
1100
1101 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1102 instead of mbrtowc.
1103 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1104 wcslen, and __wcscoll instead of wcscoll.
1105
ffb9435b
MK
11062001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1107
de78f58b
AJ
1108 * fibheap.c (fibheap_init, fibnode_init): Remove.
1109 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1110 initialize memory.
1111 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 1112
f379eac3
RH
11132001-08-21 Richard Henderson <rth@redhat.com>
1114
1115 * Makefile.in (fibheap.o): Depend on config.h.
1116 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1117 functions for inlining.
1118
b1c45ae4
CF
1119Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1120
1121 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1122 hosting on cygwin.
1123 * configure: Regenerate.
1124
0310e5ac
AC
11252001-08-20 Andrew Cagney <ac131313@redhat.com>
1126
1127 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1128 HARRIS_FLOAT_FORMAT.
1129 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1130 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1131 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1132 (floatformat_m88110_harris_ext): New float formats.
1133
8c23e0a4
DB
11342001-08-20 Daniel Berlin <dan@cgsoftware.com>
1135
1136 * fibheap.c: New file. Fibonacci heap.
1137
1138 * Makefile.in (CFILES): Add fibheap.c.
1139 (REQUIRED_OFILES): Add fibheap.o.
1140 (fibheap.o): Add dependencies for fibheap.o.
1141
91625004
CF
11422001-08-17 Christopher Faylor <cgf@cygnus.com>
1143
1144 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1145 * configure: Regenerate.
1146
9e0ba685
RH
11472001-08-16 Richard Henderson <rth@redhat.com>
1148
1149 * hashtab.c (htab_hash_string): New.
1150
d80dedbe
AC
11512001-08-13 Andrew Cagney <ac131313@redhat.com>
1152
1153 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1154 name.
1155
ccea0d85
IH
11562001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1157
1158 * regex.c (wcs_regex_compile): Use appropriate string
1159 to compare with collating element.
1160 Fix the padding for the alignment.
1161
b0e9bc8c 11622001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
1163
1164 * lbasename.c (lbasename): Change function definition to return a
1165 const char pointer.
1166
056400f1
JM
11672001-08-07 Jason Merrill <jason_merrill@redhat.com>
1168
1169 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1170 for".
1171
4e627c41
RH
11722001-08-03 Richard Henderson <rth@redhat.com>
1173
1174 * Makefile.in (concat.o): Depend on config.h.
1175
b6a2f884
AJ
11762001-07-30 Andreas Jaeger <aj@suse.de>
1177
1178 * concat.c: Include "config.h".
1179
c4b9cfe0
AJ
11802001-07-30 Andreas Jaeger <aj@suse.de>
1181
1182 * regex.c: Declare wcs functions only if compiling with
1183 MBS_SUPPORT.
1184 Don't use #elif for traditional C.
1185
11862001-07-23 Ulrich Drepper <drepper@redhat.com>
1187
1188 * regex.c: Revamp memory allocation for WCHAR functions to
1189 not use too much stack.
1190
11912001-07-30 Andreas Jaeger <aj@suse.de>
1192
1193 * regex.c: Declare wcs functions only if compiling with
1194 MBS_SUPPORT.
1195 Don't use #elif for traditional C.
1196
2cf50fd3
DJ
11972001-07-25 Daniel Jacobowitz <drow@mvista.com>
1198
1199 * Makefile.in (regex.o): Add dependency on config.h.
1200
27ffc806
DD
12012001-07-18 Andreas Schwab <schwab@suse.de>
1202
1203 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1204 underscore character.
1205
12062001-07-18 Ulrich Drepper <drepper@redhat.com>
1207
1208 * regex.c: Limit string length printed in debug messages to 100
1209 chars.
1210
12112001-07-18 Andreas Jaeger <aj@suse.de>
1212
1213 * regex.c: Place under LGPL version 2.1.
1214
dd771632
JJ
12152001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1216
1217 * Makefile.in: Add support for regex code.
1218 * regex.c: New file.
1219
29650b2b
MK
12202001-07-05 Mark Klein <mklein@dis.com>
1221
1222 * Makefile.in: Add ffs.c dependency.
1223 * configure.in: Add ffs.c.
1224 * ffs.c: New file.
1225
c8b28221
RH
12262001-06-18 Richard Henderson <rth@redhat.com>
1227
1228 * concat.c: Include <sys/types.h>.
1229
473c2d0b
LR
12302001-06-11 Loren J. Rittle <ljrittle@acm.org>
1231
a4c03da2 1232 bootstrap/3106
473c2d0b
LR
1233 * strerror.c (sys_nerr): Hide the OS header version.
1234 * strsignal.c (sys_nsig): Likewise.
1235
0bdcca68
RH
12362001-06-10 Richard Henderson <rth@redhat.com>
1237
1238 * concat.c: Include string.h. Fix int vs size_t usage.
1239 Simplify the iteration loops. Use memcpy.
1240
6de133d3
MK
12412001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1242
1243 * partition.c: Fix misspelling of `implementation'.
1244
8a153288
TS
12452001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1246
1247 * md5.c (md5_init_ctx): Declare constants as unsigned.
1248 (md5_process_block): Likewise.
1249
641b2721
ZW
12502001-05-07 Zack Weinberg <zackw@stanford.edu>
1251
1252 * cp-demangle.c (demangle_v3_with_details,
1253 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1254 function definition.
1255 * ternary.c: Use K+R style function definitions. Use PTR, not
1256 void *. Make arguments constant where possible.
1257
5cdba4ff
MM
12582001-05-07 Mark Mitchell <mark@codesourcery.com>
1259
1260 * splay-tree.h (splay_tree_max): New function.
1261 (splay_tree_min): Likewise.
1262
9dab060e
DB
12632001-04-15 Daniel Berlin <dan@cgsoftware.com>
1264
1265 * ternary.c: New file - Ternary search tree implementation.
1266
1267 * Makefile.in: Add ternary.o, and ternary.c dependencies.
1268
d02af173
ZW
12692001-04-03 Zack Weinberg <zackw@stanford.edu>
1270
1271 * make-temp-file.c (try): Inline.
1272
94b68558
RH
12732001-02-28 Richard Henderson <rth@redhat.com>
1274
1275 * Makefile.in (make-temp-file.o): Depend on config.h.
1276
27f66c0b
KG
12772001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1278
1279 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1280
f1a0345c
JJ
12812001-03-23 Jakub Jelinek <jakub@redhat.com>
1282
1283 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1284 `_' not followed by a digit is invalid.
1285
a519fba6
JB
12862001-03-22 Jim Blandy <jimb@redhat.com>
1287
1288 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1289 instead of free, to free the contents as well as the string
1290 structure.
1291
49ee944b
ZW
12922001-03-21 Zack Weinberg <zackw@stanford.edu>
1293
1294 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1295 Don't default P_tmpdir to anything. Try /var/tmp before
1296 /usr/tmp.
1297
33437dc7
ZW
12982001-03-20 Zack Weinberg <zackw@stanford.edu>
1299
1300 * choose-temp.c: Split off make_temp_file, and the code
1301 duplicated between it and choose_temp_base, into...
1302 * make-temp-file.c: ... here; new file.
1303
1304 * Makefile.in (CFILES): Add make-temp-file.c.
1305 (REQUIRED_OFILES): Add make-temp-file.o.
1306
7dce2eff
JB
13072001-03-20 Jim Blandy <jimb@redhat.com>
1308
1309 * cp-demangle.c (struct demangling_def): New fields:
1310 is_constructor and is_destructor.
1311 (demangling_new): Initialize them.
1312 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1313 or destructor.
1314 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1315 is_gnu_v3_mangled_dtor): New functions.
1316
e03a61f1
JM
13172001-03-20 Jason Merrill <jason@redhat.com>
1318
1319 * cplus-dem.c (main): Skip initial $.
1320
8860ddab
MM
13212001-03-15 Michael Meissner <meissner@redhat.com>
1322
1323 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1324 might be a signed integer under pre-ISO C systems.
1325
2b757d51
NB
13262001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1327 John David Anglin <dave@hiauly1.hia.nrc.ca>
1328
1329 * libiberty/lbasename.c: New file.
1330 * libiberty/Makefile.in: Update for lbasename.
1331
1f50aafb
ZW
13322001-03-06 Zack Weinberg <zackw@stanford.edu>
1333
1334 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1335 * configure.in: Replace all alloca logic with a simple use of
1336 the above new macro.
1337 * config.table: Kill *-*-beos* entry.
1338 * config/mh-beos: Delete.
1339 * configure, config.in: Regenerate.
1340
1341 * Makefile.in (ALLOCA, HFILES): Kill.
1342 (REQUIRED_OFILES): Add alloca.o.
1343 (alloca.o): Depend on libiberty.h.
1344 (argv.o): Don't depend on alloca-conf.h.
1345 * alloca-conf.h: Delete.
1346 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1347 blocks. Provide the C alloca unconditionally. Use PTR where
1348 appropriate. Make i00afunc static.
1349 * argv.c: Don't include alloca-conf.h.
1350
d9fd5aae
JDA
13512001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1352
1353 * cplus-dem.c (main): Cast enum style to int.
1354
4031ed65
LR
13552001-02-16 Loren J. Rittle <ljrittle@acm.org>
1356
1357 * cplus-dem.c (main): Initialize style.
1358
2ca46e8a
PE
13592001-02-02 Phil Edwards <pme@sources.redhat.com>
1360
1361 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1362
3b60dd8e
BM
13632001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1364
1365 Add support for Java demangling under the v3 ABI:
1366 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1367 (struct demangling_def): Add `style' field.
1368 (demangling_new): New parameter `style'. Set it in demangling_t.
1369 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1370 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1371 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1372 (main): Call cp_demangle with extra parameter.
1373 (java_demangle_v3): New function.
1374 (java_builtin_type_names): New. Table of primitive type names used
1375 for Java demangling.
1376 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1377 Java output.
1f50aafb 1378 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
1379 demangling.
1380 (long_options): Remove obsolete `java' option.
1381 (main): Remove explicit handling of `java' option. Instead, pass style
1382 parameter in cplus_demangle flags as gdb does.
1383 * testsuite/demangle.expected: Add some Java test cases.
1384
584932e9
DD
13852000-12-29 DJ Delorie <dj@redhat.com>
1386
1387 * fnmatch.c: Make the note about the origins of this file more
1388 accurate, at least until we can sync with glibc.
1389 * getopt.c: Ditto.
1390 * getopt1.c: Ditto.
1391 * md5.c: Ditto.
1392 * obstack.c: Ditto.
1393
dac45916
MS
13942000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1395
1396 * bsearch.c: New file.
1397 * configure.in (funcs): Add bsearch.
1398 (AC_CHECK_FUNCS): Likewise.
1399 * configure, config.in: Regenerate.
1400
a8e4a997
MS
14012000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1402
1403 * safe-ctype.c: #include "ansidecl.h".
1404 * strtod.c: Likewise.
1405
75444da7
MS
14062000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1407
1408 * strtoul.c: Include safe-ctype.h, not ctype.h.
1409
f6bbde28
ZW
14102000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1411
1412 * safe-ctype.c: New file.
1413 * Makefile.in (CFILES): Add safe-ctype.c.
1414 (REQUIRED_OFILES): Add safe-ctype.o.
1415
1416 * argv.c: Define ISBLANK and use it, not isspace.
1417 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1418 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1419 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1420 before calling TOLOWER(c)/TOUPPER(c).
1421
6c1ce62b 14222000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
1423
1424 * Makefile.in (distclean): When cleaning, remove testsuite.
1425
b5d1497d
JM
14262000-12-05 Jason Merrill <jason@redhat.com>
1427
1428 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1429 name before allocating the dyn_string.
1430
c6e13630
JM
14312000-12-04 Jason Merrill <jason@redhat.com>
1432
1433 * cp-demangle.c: s/new_abi/v3/.
1434 * cplus-dem.c: Likewise.
1435 (current_demangling_style): Now auto_demangling.
1436 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 1437 (main): Use standard symbol chars for auto_demangling.
c6e13630 1438
a4c9b97e
MM
14392000-11-26 Mark Mitchell <mark@codesourcery.com>
1440
1441 * hashtab.c (higher_prime_number): Use a table, rather than a
1442 seive, to find the next prime.
1443
3b3bd9a7
L
14442000-11-22 H.J. Lu <hjl@gnu.org>
1445
1446 * cplus-dem.c (main): Handle gnat_demangling.
1447
d1209685
ZW
14482000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1449
1450 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1451 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1452 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1453 argument form of AC_DEFINE in dummy definitions block. Use
1454 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1455 in dummy block. Preload cache variables instead of bypassing
1456 tests, where possible.
1457 * acconfig.h: Removed.
1458
1459 * xmalloc.c (xmalloc_failed): New function, does error
1460 reporting on failed allocation.
1461 (xmalloc, xcalloc, xrealloc): Use it.
1462
cf183ac2
HPN
14632000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1464
1465 * cplus-dem.c (cplus_demangle): Fix formatting.
1466 (grow_vect): Ditto.
1467 (ada_demangle): Ditto.
1468 (internal_cplus_demangle): Ditto.
1469 (mop_up): Ditto.
1470
14712000-11-21 H.J. Lu <hjl@gnu.org>
1472
1473 * cplus-dem.c (main): Handle java_demangling.
1474
8bcc782c
KG
14752000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1476
1477 * cplus-dem.c (grow_vect): Prototype.
1478 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1479
29120f44
HPN
14802000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1481
1482 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1483 parameter `option'.
1484
0437a5a8
KB
14852000-11-15 Kenneth Block <kenneth.block@compaq.com>
1486
9e038f71 1487 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
1488 be used in GCC.
1489
eab0c1ab 14902000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 1491
29120f44 1492 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
1493 list.
1494
d50d20ec
HPN
14952000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1496
1497 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
1498 xcalloc depending on htab->return_allocation_failure. Return zero
1499 if calloc fails.
d50d20ec
HPN
1500 (htab_create): Update comment to cover memory allocation.
1501 (htab_try_create): New.
1502 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 1503 Update comment to cover this.
d50d20ec 1504
35e9340f
HPN
15052000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1506
1507 * hashtab.c: Change void * to PTR where necessary.
1508 (htab_create, htab_expand): Correct formatting of comment before
1509 function.
1510
ea343d1a 15112000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
1512
1513 * cp-demangle.c (string_list_def): Add caret_position and comments.
1514 (result_caret_pos): New macro.
1515 (result_append_string): Rename to...
1516 (result_add_string): ... this, and insert at caret position.
d1209685 1517 Rename throughout.
0870bfd6
AS
1518 (result_append): Rename to...
1519 (result_add): ... this, and insert at caret position. Rename
d1209685 1520 throughout.
0870bfd6
AS
1521 (result_append_char): Rename to...
1522 (result_add_char): ... this, and insert at caret position. Rename
d1209685 1523 throughout.
0870bfd6
AS
1524 (result_append_space): Remove.
1525 (string_list_new): Initialize caret position.
1526 (result_add_separated_char): Use caret position.
1527 (result_get_caret): New funtion.
1528 (result_set_caret): Likewise.
1529 (result_shift_caret): Likewise.
1530 (result_previous_char_is_space): Likewise.
1531 (substitution_start): Use caret position.
1532 (substitution_add): Likewise.
1533 (demangling_new): Initialize caret position.
1534 (demangle_encoding): Use caret position.
d1209685 1535 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
1536 (demangle_type_ptr): Use switch statement. Handle pointers to
1537 arrays. Don't use result_append_space. Use caret position.
1538 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
1539 call to demangle_array_type.
1540 (demangle_array_type): Add parameter to handle pointers to arrays.
1541
f15b9af9
MM
15422000-10-01 Mark Mitchell <mark@codesourcery.com>
1543
1544 * splay-tree.c (splay_tree_insert): Fix formatting.
1545
8f17b5c5
MM
15462000-09-16 Mark Mitchell <mark@codesourcery.com>
1547
1548 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1549
4eaa189a
MS
15502000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1551
1552 * splay-tree.c: #include <stdio.h>.
1553
29791078
HPN
15542000-09-14 Hans-Peter Nilsson <hp@axis.com>
1555
1556 * testsuite/demangle-expected: Add two tests for anonymous
1557 namespaces.
1558 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1559
2c9f4db7
MM
15602000-09-10 Mark Mitchell <mark@codesourcery.com>
1561
1562 * splay-tree.c (splay_tree_predecessor): New function.
1563 (splay_tree_successor): Likewise.
1564
bb22da4b
HPN
15652000-09-10 Hans-Peter Nilsson <hp@axis.com>
1566
1567 * testsuite/demangle-expected: Add four tests for type_info
1568 mangling.
bb22da4b
HPN
1569 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1570 for a non-template non-qualified type_info function or node.
1571
759e8187
AS
15722000-09-08 Alex Samuel <samuel@codesourcery.com>
1573
1574 * cp-demangle.c: Fix copyright banner.
1575
2ecd81ef
MS
15762000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1577
1578 * md5.c: #include "ansidecl.h".
1579
d93998ec
AS
15802000-09-06 Alex Samuel <samuel@codesourcery.com>
1581
1582 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1583 (demangle_type): Handle substitution candidates correctly in the
1584 face of special substitutions.
1585
1056d228
AS
15862000-09-05 Alex Samuel <samuel@codesourcery.com>
1587
1588 * cp-demangle.c (demangle_encoding): Rename variable.
1589 (demangle_name): Rename parameter. Handle return type
1590 suppression.
1591 (demangle_nested_name): Rename parameter.
1592 (demangle_prefix): Likewise. Change return type suppression.
1593 (demangle_unqualified_name): Add parameter. Flag constructors and
1594 conversion operators.
1595 (demangle_special_name): Fix comment.
1596 (demangle_type): Rename variable.
1597 (demangle_bare_function_type): Check for missing return type and
d1209685 1598 parameter.
1056d228
AS
1599 (demangle_class_enum_type): Rename parameter.
1600 (demangle_discriminator): Fix misspelling in comment.
1601
2f31ed7e
DD
16022000-08-31 DJ Delorie <dj@redhat.com>
1603
1604 * configure.in (Cygwin): special case cygwin only when we're
1605 building cygwin, not when we're hosting cygwin.
1606
02bcb9c6
AS
16072000-09-04 Alex Samuel <samuel@codesourcery.com>
1608
1609 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1610 <expression>.
1611
aee749cf
AS
16122000-09-04 Alex Samuel <samuel@codesourcery.com>
1613
1614 * cp-demangle.c (demangle_type_ptr): Increment position past
1615 pointer and reference characters.
1616
92a16bbe
AS
16172000-09-04 Alex Samuel <samuel@codesourcery.com>
1618
1619 * cp-demangle.c (demangle_nv_offset): New function.
1620 (demangle_v_offset): Likewise.
1621 (demangle_call_offset): Likewise.
1622 (demangle_special_name): Update thunk demangling to comply with
1623 ABI changes.
d1209685 1624
31e0ab1f
AS
16252000-09-03 Alex Samuel <samuel@codesourcery.com>
1626
1627 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1628 (substitution_def): Remove template_parm_number.
1629 (NOT_TEMPLATE_PARM): Remove.
1630 (result_insert_string): New macro.
1631 (result_insert): Likewise.
1632 (result_insert_char): Likewise.
1633 (substitution_add): Remove last parameter. Don't store template
d1209685 1634 parm number.
31e0ab1f
AS
1635 (BFT_NO_RETURN_TYPE): Define as NULL.
1636 (demangle_encoding): Adjust call to demangle_bare_function_type.
1637 (demangle_name): Adjust substitution. Adjust call to
d1209685 1638 substitution_add.
31e0ab1f
AS
1639 (demangle_prefix): Adjust call to substitution_add.
1640 (demangle_identifier): Handle anonymous namespaces.
1641 (demangle_operator_name): Change demangling of vendor-extended
1642 operator to match ABI changes.
1643 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1644 substitutions here.
31e0ab1f
AS
1645 (demangle_type): Adjust calls to demangle_template_param,
1646 substitution_add, and demangle_type_ptr. Fix substitution of
1647 templated types.
1648 (demangle_function_type): Change parameter to a pointer.
1649 (demangle_bare_function_type): Likewise. Adjust insertion point.
1650 (demangle_template_param): Remove last parameter.
1651 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1652 demangle_template_param.
31e0ab1f
AS
1653 (is_mangled_char): Accept `$' and `.'.
1654 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1655 * dyn-string.c (dyn_string_insert_char): New function.
1656
ccbc3eb7
HPN
16572000-08-31 Hans-Peter Nilsson <hp@axis.com>
1658
1659 * testsuite/demangle-expected: Add nine tests for
1660 underscore-after-number followed by five tests for name-signature
1661 delimiter.
1662
53dce582
RH
16632000-08-28 Richard Henderson <rth@cygnus.com>
1664
1665 * Makefile.in (md5.o): Depend on config.h.
1666
881c6935
JM
16672000-08-28 Jason Merrill <jason@redhat.com>
1668
1669 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1670 (CFILES): Add md5.c.
1671 * md5.c: New file.
1672
a440fd19
AS
16732000-08-27 Alex Samuel <samuel@codesourcery.com>
1674
1675 * cp-demangle.c (demangle_name): Initialize template_p in local
1676 name case. Don't re-add substitutions as candidates.
1677 (demangle_nested_name): Use <unqualified-name>.
1678 (demangle_prefix): Likewise. Don't add template names as
1679 substitution candidates twice, or re-add a substitution or the
1680 last prefix component.
1681 (demangle_local_name): Adjust output format.
1682
d01ce591
AS
16832000-08-25 Alex Samuel <samuel@codesourcery.com>
1684
1685 * cp-demangle.c (result_add_separated_char): Change parameter to
1686 int.
1687 (substitution_add): Don't check for duplicates. Check if
1688 previously allocated size is zero.
1689 (demangle_name): Remove duplicate check for std substitution.
1690 Clear template flag appropriately.
1691 (demangle_prefix): Remove argument to demangle_substitution.
1692 Don't check that template flag is already set.
1693 (demangle_operator_name): Add pt operator.
1694 (demangle_type): Don't treat r as built-in type. Remove argument
1695 to demangle_substitution. Fix substitution candidate mechanics.
1696 Handle <template-template-parm>s. Improve comments.
d1209685 1697 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1698 (demangle_substitution): Remove parameter.
1699 (print_usage): Remove extra fprintf option.
1700
2f59c8eb
GM
17012000-08-24 Greg McGary <greg@mcgary.org>
1702
1703 * libiberty/random.c (end_ptr): Revert previous change.
1704
2f26c11d
GM
17052000-08-24 Greg McGary <greg@mcgary.org>
1706
1707 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1708 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1709 * libiberty/random.c (end_ptr): Likewise.
1710
e282c9c9
AS
17112000-08-23 Alex Samuel <samuel@codesourcery.com>
1712
1713 * cp-demangle.c (result_close_template_list): Remove function.
1714 (result_add_separated_char): New function.
1715 (result_open_template_list): New macro.
1716 (result_close_template_list): Likewise.
1717 (demangle_prefix): Don't set template_p if the
1718 prefix ends with a ctor name.
1719 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1720 (demangle_type): Check for template args after substitution.
1721 (demangle_template_args): Use result_open_template_list.
d1209685 1722
c9b6494a
ZW
17232000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1724
1725 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1726
d1209685 17272000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1728
1729 * config/mh-openedition.h: Added -DLE370 definition.
1730
0aab2795
ME
17312000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1732
1733 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1734 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1735 Cast program to 'char *' in errmsg_arg assignment.
1736 (PWAIT_ERROR): Define.
1737 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1738 to DJGPP's WIF* macros.
1739
c2f275e4
RB
17402000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1741 Jeff Law <law@cygnus.com>
1742
73aa9564
RB
1743 * getcwd.c: Include string.h, stdlib.h for prototypes
1744
c2f275e4 1745 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1746 * rename.c: Include config.h, unistd.h
1747 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1748
ccbc3eb7
HPN
17492000-07-24 Hans-Peter Nilsson <hp@axis.com>
1750
1751 * cplus-dem.c (work_stuff_copy_to_from): New.
1752 (delete_non_B_K_work_stuff): New.
1753 (delete_work_stuff): New.
1754 (mop_up): Break out work_stuff partly destruction to
1755 delete_non_B_K_work_stuff.
1756 (iterate_demangle_function): New.
1757 (demangle_prefix): Call iterate_demangle_function instead of
1758 demangle_function_name. Leave handling of name-signature
1759 __-delimiters to iterate_demangle_function.
1760 (demangle_integral_value): Strip an optional
1761 following underscore cautiously. Handle negative numbers.
1762
3388651c
DB
17632000-07-24 Daniel Berlin <dberlin@redhat.com>
1764
d1209685 1765 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1766 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1767
0fac482e
AS
17682000-07-21 Alex Samuel <samuel@codesourcery.com>
1769
1770 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1771 allocating ctor mangling.
1772 (demangle_array_type): Handle empty and non-constant array length.
1773
8502a100 17742000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1775 Jeff Law <law@cygnus.com>
1776
c6451ce1
MS
1777 * configure.in (AC_CHECK_HEADERS): Add time.h.
1778 (AC_HEADER_TIME): Add check.
1779 * configure, config.in: Regenerate.
1780 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1781
cd447360
MS
1782 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1783 * configure, config.in: Regenerate.
1784 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1785 * strtol.c, strtoul.c: #include "config.h". Portably #include
1786 <limits.h> and/or <sys/param.h>.
1787 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1788
3b58c099
MS
1789 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1790 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1791 * configure, config.in: Regenerate.
1792 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1793
8502a100
MS
1794 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1795
da0c7743
MS
17962000-07-21 Mike Stump <mrs@wrs.com>
1797
1798 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1799 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1800
838f8562
KG
18012000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1802
1803 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1804
1805 * setenv.c (setenv): Initialize variable `ep'.
1806
1807 * sigsetmask.c (abort): Prototype.
1808
1809 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1810 __STDC__ for stdarg.h include.
1811 (int_vasprintf): Prototype.
1812 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1813 definition. Cast `global_total_width' in comparison.
1814 (main): Prototype. Return a value.
1815
1816 * vfork.c (fork): Prototype.
1817
1818 * xexit.c: Include config.h.
1819
e9958132
JM
18202000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1821
1822 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1823 and print it with %u.
1824
39a6492f
HPN
18252000-07-17 Hans-Peter Nilsson <hp@axis.com>
1826
1827 * testsuite/regress-demangle (failed test): Show result and
1828 expected output.
1829
6d0be369
AH
18302000-07-07 Andrew Haley <aph@cygnus.com>
1831
1832 * cplus-dem.c (main): fflush() after emitting last char before
1833 waiting for input.
1834
bece74bd
AS
18352000-06-28 Alex Samuel <samuel@codesourcery.com>
1836
1837 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1838 (demangle_name): Handle <substitution> followed by
1839 <unqualified-template-name>.
1840 (demangle_type): Follow special substitutions with
1841 <class-enum-type>
1842 (demangle_subtitution): Set template_p for special substitutions.
1843 (main): Fix typos.
d1209685 1844
229b8ec7
AS
18452000-06-27 Alex Samuel <samuel@codesourcery.com>
1846
1847 * cp-demangle.c (demangle_special_name): Swap base and derived
1848 class when demangling construction vtables.
1849
051664b0
AS
18502000-06-21 Alex Samuel <samuel@codesourcery.com>
1851
1852 * cp-demangle.c: Don't include ctype.h.
1853 (IS_DIGIT): New macro.
1854 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1855 instead of isdigit and isalpanum.
1856 (demangling_def): Make name and next const pointers.
1857 (STATUS_ALLOCATION_FAILED): New status code.
1858 (dyn_string_append_space): Handle failure in
1859 dyn_string_append_char.
1860 (int_to_dyn_string): Likewise. Change return value to status_t.
1861 (string_list_new): Handle failure of dyn_string_init.
1862 (result_close_template_list): Change return type to status_t.
1863 Handle failure in dyn_string_append.
1864 (result_push): Change return value to status_t. Handle failure in
1865 string_list_new. Handle failure of result_push throughout.
1866 (substitution_add): Change return value to status_t. Handle
1867 dyn_string failures. Handle failure of substitution_add
1868 throughout.
1869 (template_arg_list_new): Return NULL on allocation failure.
1870 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1871 Handle error result throughout.
1872 (result_append): Likewise.
1873 (result_append_char): Likewise.
1874 (result_append_space): Likewise.
1875 (demangling_new): Make argument a const pointer. Handle
1876 allocation failures.
1877 (demangle_template_args): Handle failure in template_arg_list_new
1878 and result_close_template_list.
1879 (demangle_discriminator): Return if int_to_dyn_string fails.
1880 (cp_demangle): Likewise.
1881 (cp_demangle_type): New function.
1882 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1883 memory allocation failure.
1884 (main): Likewise.
1885 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1886 IN_LIBGCC2.
1887 (dyn_string_init): Change return value to int. Handle
1888 RETURN_ON_ALLOCATION_FAILURE case.
1889 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1890 (dyn_string_release): Delete the dyn_string.
1891 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1892 (dyn_string_copy): Change return type to int.
1893 (dyn_string_copy_cstr): Likewise.
1894 (dyn_string_prepend): Likewise.
1895 (dyn_string_prepend_cstr): Likewise.
1896 (dyn_string_insert): Likewise.
1897 (dyn_string_insert_cstr): Likewise.
1898 (dyn_string_append): Likewise.
1899 (dyn_string_append_cstr): Likewise.
1900 (dyn_string_append_char): Likewise.
1901 (dyn_string_substring): Likewise.
d1209685 1902
fe06b696
ZW
19032000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1904
1905 * cp-demangle.c (demangle_operator_name): Add spaces before
1906 names beginning with a letter: delete, delete[], new, new[],
1907 sizeof.
1908 (demangle_special_name): Handle TF <type> and TJ <type>.
1909
6223e158
PDM
1910Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1911
1912 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1913
48f3e29b
PDM
1914Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1915
1916 * cp-demangle.c (stdio.h): File included unconditionaly.
1917 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1918 * dyn-string.c (stdio.h): File included.
1919 * partition.c (partition_print): No `&' needed to take the address of
1920 a function.
1921
69197e7e
KG
19222000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1923
1924 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1925
69197e7e
KG
1926 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1927
1928 * cp-demangle.c (demangle_char): Change parameter from char to int.
1929 (demangle_expression, demangle_expr_primary): Remove extra
1930 semi-colon in prototype.
1931
1932 * dyn-string.c (dyn_string_append_char): Change parameter from
1933 char to int.
1934
1935 * memcmp.c (memcmp): Constify.
1936
1937 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1938 __extension__.
1939
1940 * partition.c (elem_compare): Prototype. Don't cast away
1941 const-ness.
1942
1943 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1944
7eb23b1f
KG
19452000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1946
1947 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1948
1949 * cp-demangle.c: Include demangle.h.
1950 (template_arg_list_new): DeANSIfy.
1951 (cp_demangle): Make static and add prototype.
1952 (operator_code, operators): Constify.
1953 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1954
3faa108c
AS
19552000-06-05 Alex Samuel <samuel@codesourcery.com>
1956
1957 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1958 unsigned char.
1959 (demangle_unqualified_name): Likewise.
1960 (demangle_number_literally): Likewise.
1961 (demangle_type): Likewise.
1962 (demangle_substitution): Likewise.
1963 (is_mangled_char): Likewise, for isalnum.
1964
69afa80d
AS
19652000-06-04 Alex Samuel <samuel@codesourcery.com>
1966
1967 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1968 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1969 (cp-demangle.o): New dependency.
1970 (dyn-string.o): Likewise.
1971
1972 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1973
1974 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1975 demangler.
1976 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1977 demangling mode.
1978 (gnu_new_abi_symbol_characters): New function.
1979 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1980 file.
1981 * cp-demangle.c: New file.
d1209685 1982
0b72c3df
AC
1983Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1984
1985 * floatformat.c: Add name to each floatformat field.
1986
270cea06
JL
1987Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1988
1989 * Makefile.in (objalloc.o): Depend on config.h
1990
d11ec6f0
ZW
19912000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1992
1993 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1994 if HAVE_STRING_H.
1995 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1996 * objalloc.c: Include config.h. Include stdlib.h and don't
1997 declare malloc or free if HAVE_STDLIB_H.
1998 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1999 else declare malloc without prototype. Include string.h if
2000 HAVE_STRING_H, else declare memset without prototype. Don't
2001 include stddef.h.
2002
f8e2da56
MS
20032000-05-23 Mike Stump <mrs@wrs.com>
2004
2005 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 2006 -j3.
f8e2da56 2007
650f3068
DA
20082000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2009
2010 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2011
1d2da2e1
HB
20122000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2013
d1209685 2014 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
2015 probably zero, also eliminate a warning on alpha.
2016
47668d0a
DE
20172000-05-15 David Edelsohn <edelsohn@gnu.org>
2018
c7a79a32 2019 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
2020 on $(enable_shared).
2021
36348eab
JJ
20222000-05-10 Jakub Jelinek <jakub@redhat.com>
2023
2024 * config.table: Use mh-sparcpic for sparc*-*-*.
2025
209bbe34
NC
20262000-05-08 Nick Clifton <nickc@cygnus.com>
2027
2028 * Makefile.in (CFILES): Add strncmp.c.
2029 (NEEDED): Add strncmp.
2030
a85a47fb
KG
20312000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2032
2033 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2034 Cast the arguments to `islower' to `unsigned char'.
2035 (print_demangler_list): Prototype.
2036
4aef973c
PDM
2037Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2038
2039 * sort.c (UCHAR_MAX): Provide fallback definition.
2040
3b94497c
AO
20412000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2042
2043 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2044 SUBDIRS.
2045
24eaa47a
KB
20462000-04-28 Kenneth Block <block@zk3.dec.com>
2047 Jason Merrill <jason@casey.cygnus.com>
2048
d1209685
ZW
2049 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2050 (cplus_demangle_set_style): New function for setting style.
2051 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 2052
a9266bfa
KG
20532000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2054
2055 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2056
2057 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2058 (libiberty_AC_FUNC_STRNCMP): Invoke.
2059
2060 * strncmp.c: New file.
2061
8e02c4d0
JH
2062Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2063
2064 * hashtab.c (htab_expand): Add prototype.
2065 (find_empty_slot_for_expand): Likewise.
2066
4feeaae3
KG
20672000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2068
2069 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2070 match prototype.
2071 (htab_expand): Cast the return value of xcalloc.
2072
18a94a2f
MM
20732000-04-24 Mark Mitchell <mark@codesourcery.com>
2074
2075 * hashtab.c (hash_pointer): New function.
2076 (eq_pointer): Likewise.
2077 (htab_hash_pointer): New variable.
2078 (htab_eq_pointer): Likewise.
2079
eeb0656f
MM
20802000-04-23 Mark Mitchell <mark@codesourcery.com>
2081
b51024fc
MM
2082 * sort.c (sort_pointers): Fix endianness bugs.
2083
eeb0656f
MM
2084 * sort.c: New file.
2085 * Makefile.in (CFILES): Add sort.c
2086 (REQUIRED_OFILES): Add sort.o.
2087 (sort.o): New target.
2088
7277f72d
MS
20892000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2090
2091 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2092 4.3BSD systems.
2093
e38992e8
RK
2094Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2095
2096 * hashtab.c: Various minor cleanups.
2097 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2098 (htab_find_slot): Likewise.
2099
498e1ab1
DP
21002000-04-16 Dave Pitts <dpitts@cozx.com>
2101
2102 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 2103
dc17cc7b
RH
21042000-04-05 Richard Henderson <rth@cygnus.com>
2105
2106 * splay-tree.c (splay_tree_remove): New.
2107
b13eb66b
MM
21082000-03-30 Mark Mitchell <mark@codesourcery.com>
2109
2110 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2111 codes.
2112 (htab_find_with_hash): Likewise.
2113 (htab_find_slot_with_hash): Likewise.
d1209685 2114
0194e877
ZW
21152000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2116
2117 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2118 unless it will be used. Rearrange loop for better
2119 optimization.
2120 (higher_prime_number): Add static prototype.
2121
abc61fd4
JL
2122Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2123
2124 * Makefile.in (partition.o): Depend on config.h
2125
8c5d513f
BS
21262000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2127
2128 * hashtab.c (find_empty_slot_for_expand): New function.
2129 (htab_expand): Use it instead of htab_find_slot.
2130 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2131 argument HASH.
2132 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2133 (htab_find): New wrapper function.
2134 (htab_find_slot): Likewise.
2135 (htab_traverse): Pass slot, not entry, to called function.
2136
d9d4fb43
AS
21372000-03-09 Alex Samuel <samuel@codesourcery.com>
2138
2139 * Makefile.in (CFILES): Add partition.c.
2140 (REQUIRED_OFILES): Add partition.o.
2141 (partition.o): New rule.
2142 * partition.c: New file.
d1209685 2143
5dc9cffd
ZW
21442000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2145
2146 * hashtab.c (htab_create): Set del_f.
2147 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2148 Use it.
2149
5194cf08
ZW
21502000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2151
2152 * hashtab.c: Remove debugging variables (all_searches,
2153 all_collisions, all_expansions). Delete
2154 all_hash_table_collisions.
2155 (create_hash_table, delete_hash_table, empty_hash_table,
2156 find_hash_table_entry, remove_element_from_hash_table_entry,
2157 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2158 hash_table_elements_number, hash_table_collisions): Rename to:
2159 htab_create, htab_delete, htab_empty, htab_find_slot,
2160 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2161 htab_elements, htab_collisions.
2162 (htab_find): New function, handles common case where you don't
2163 plan to add or delete an entry.
2164 (htab_expand): Don't create a whole new table, just a new
2165 entry vector.
2166 (htab_find_slot): Simplify logic.
2167
5ad5a984
ILT
21681999-08-03 Ian Lance Taylor <ian@zembu.com>
2169
2170 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2171 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2172
2173 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2174 $(TARGETLIB)n so it works on MSDOS.
2175 (install_to_tooldir): Likewise.
2176
21771999-07-21 Ian Lance Taylor <ian@zembu.com>
2178
2179 From Mark Elbrecht:
2180 * makefile.dos: Remove; obsolete.
2181 * configure.bat: Remove; obsolete.
2182
21831999-07-11 Ian Lance Taylor <ian@zembu.com>
2184
2185 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2186 warning.
2187
aeecce42
MK
21882000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2189
2190 * pexecute.c: Conditionally include string.h.
5194cf08 2191 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 2192
1eaf7d9c
KG
21932000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2194
2195 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2196 we're using gcc.
2197
2198 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2199
0fadedb2
GK
22001999-12-27 Geoff Keating <geoffk@cygnus.com>
2201
2202 * vasprintf.c (int_vasprintf): Don't re-read the format character
2203 as this mishandles strings like '%%s'.
2204
08230f26
MM
22051999-12-05 Mark Mitchell <mark@codesourcery.com>
2206
2207 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2208 rather than struct splay_tree_node.
2209 (splay_tree_insert): Use struct splay_tree_s rather than struct
2210 splay_tree.
2211
6de9b8ff
PDM
2212Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2213
2214 * hashtab.c (sys/types.h): File included.
2215
f3636679
JM
22161999-11-22 Jason Merrill <jason@casey.cygnus.com>
2217
2218 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2219 BSD license, pursuant with
2220
2221 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2222
36dd3a44
JL
2223Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2224
2225 * hashtab.c: Include stdio.h.
2226
6e300472
JL
2227Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2228
2229 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2230
df548dfc
PDM
2231Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2232
2233 * xstrdup (sys/types.h): Include this file.
2234
2c375143
NS
22351999-10-28 Nathan Sidwell <nathan@acm.org>
2236
2237 * Makefile.in (SUBDIRS): New macro.
2238 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2239 avoid multiple subdirectory cleaning.
2240 (*-subdir): Use SUBDIRS.
2241
a82cecda
JK
22421999-10-25 Jim Kingdon <http://developer.redhat.com/>
2243
2244 * cplus-dem.c: Move declarations of standard_symbol_characters and
2245 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2246 warnings.
2247
ed38f5d5
ZW
22481999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2249
2250 * hashtab.c (find_hash_table_entry): When returning a
2251 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2252 (clear_hash_table_slot): New function which deletes an entry
2253 by its position in the table, not its value.
2254 (traverse_hash_table): New function which calls a hook
2255 function for every live entry in the table.
2256
b60fe4a7
MM
22571999-10-19 Mark Mitchell <mark@codesourcery.com>
2258
2259 * cplus-dem.c (INTBUF_SIZE): New macro.
2260 (string_append_template_idx): New function.
2261 (demangle_expression): Likewise.
2262 (demangle_integral_value): Use it.
2263 (demangle_real_value): New function, split out from ...
2264 (demangle_template_value_parm): ... here. Use
2265 string_append_template_idx. Use demangle_real_value.
2266 (demangle_template): Use string_append_template_idx.
2267 (demangle_qualified): Use consume_count_with_underscores.
2268 (get_count): Tweak formatting.
2269 (do_type): Use string_append_template_idx.
5194cf08 2270
3da5522a
KG
22711999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2272
2273 * calloc.c: Add a public domain notice.
2274
d7d36ea8
PDM
2275Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2276
2277 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2278
a2f945c6
VM
2279Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2280
2281 * Makefile.in (CFILES): Add hashtab.c
2282 (REQUIRED_OFILES): Add hashtab.o
2283 (hashtab.o): Add dependencies.
2284 * hashtab.c: New file
2285
7f22ec2e
MK
2286Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2287
2288 * basename.c (DIR_SEPARATOR): New macro.
2289 (DIR_SEPARATOR_2): Likewise.
2290 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2291 (IS_DIR_SEPARATOR): Likewise.
2292 (main): Handle MSDOS style pathname.
2293
7c56a6ce
MM
22941999-10-11 Mark Mitchell <mark@codesourcery.com>
2295
2296 * cplus-dem.c (do_type): Handle pointer to member types whose
2297 enclosing classes have namespace scope.
2298
cd32188b
ME
2299Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2300
2301 * config.table: Provide a backup shell for executing move-if-change.
2302
fc232f7a
MM
23031999-10-02 Mark Mitchell <mark@codesourcery.com>
2304
2305 * xmalloc.c (xmalloc): Fix spelling error.
2306 (xcalloc, xrealloc): Likewise.
2307
2a138827
KG
23081999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2309
2310 * cplus-dem.c (fancy_abort, demangle_integral_value,
2311 demangle_arm_hp_template, recursively_demangle,
2312 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2313 (program_name, program_version, fatal): Constify a char*.
2314 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2315 (main): Call return, not exit.
2316
5a657fc3
KG
23171999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2318
2319 * choose-temp.c: Remove obsolete comment about gcc.
2320 (make_temp_file): Constify a char*.
2321
33c5ddcd
KG
2322Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2323
2324 * xmemdup.c: Include sys/types.h.
2325
b10647f1
JG
23261999-09-07 Jeff Garzik <jgarzik@pobox.com>
2327
2328 * xmemdup.c: New xmemdup function.
2329 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2330
3dd6c3af
LV
2331Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2332
5194cf08 2333 * config.table: Add openedition target.
3dd6c3af
LV
2334 * config/mh-openedition: New file.
2335
19e28e2a
ME
2336Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2337
2338 * pexecute.c (pexecute): Fill in temp_base when needed.
2339
4dfeccf9
RH
23401999-08-31 Richard Henderson <rth@cygnus.com>
2341
2342 * getpwd.c: Check HAVE_GETCWD before defining it away.
2343
4ac3cb83
KG
23441999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2345
2346 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2347 (REQUIRED_OFILES): Add getpwd.o.
2348 (getpwd.o): Add target.
2349
2350 * configure.in (AC_PREREQ): Bump to 2.13.
2351 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2352
2353 * getpwd.c: New file, moved here from gcc.
2354
e797ff70
KG
23551999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2356
2357 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2358 comparing against a signed quantity.
2359 (arm_special): Likewise.
2360 (demangle_fund_type): Likewise.
2361 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 2362 ATTRIBUTE_UNUSED.
e797ff70
KG
2363 (main): Constify variable `valid_symbols'.
2364
55247fce
PDM
2365Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2366
2367 * strtoul.c (strtoul): Add parentheses around && within ||.
2368
76632dd0
DJ
2369Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2370
2371 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2372 libdir, libsubdir and tooldir.
2373
d080bbfa
MM
23741999-08-01 Mark Mitchell <mark@codesourcery.com>
2375
2376 * splay-tree.c (splay_tree_insert): Return the new node.
2377
a81c752a
RH
23781999-07-14 Richard Henderson <rth@cygnus.com>
2379
5194cf08 2380 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
2381 prototyping directly.
2382 * choose-temp.c: Conditionally include string.h.
2383
8f1824d9
JM
23841999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2385
2386 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2387
652374d3
ILT
23881999-07-11 Ian Lance Taylor <ian@zembu.com>
2389
2390 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2391 warning.
2392
a4494286
JM
23931999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2394
2395 * Makefile.in (needed-list): Only include stuff we actually need
2396 for libstdc++.
2397
90e72e20
AS
23981999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2399
2400 * configure.in (checkfuncs): Add gettimeofday.
2401 * config.in, configure: Regenerated.
2402
b569200e
MK
2403Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2404
2405 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2406 the test fails.
2407 * configure: Regenerate.
2408
73919448
MS
24091999-06-10 Mike Stump <mrs@wrs.com>
2410
2411 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2412 parallel builds.
2413
fee9125c
KG
24141999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2415
2416 * putenv.c: Include ansidecl.h to define `const'.
2417 * setenv.c: Likewise.
2418
71cce721
MN
2419Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2420
a7c9637f
JL
2421 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2422 * configure.in (funcs): Add putenv and setenv.
2423 (AC_CHECK_FUNCS): Check for putenv and setenv.
2424 * configure: Rebuilt.
2425 * putenv.c setenv.c: New files.
2426
71cce721
MN
2427 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2428 bytes of space using malloc.
2429
53504016
SG
2430Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2431
2432 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2433 the *mangled pointer beyond the end of the string. Clean up code to
2434 match prevailing coding style.
2435
34842539
MH
24361999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2437
2438 * tmpnam.c (L_tmpnam): Fix typo.
2439
3a08531d
ME
2440Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2441
2442 * cplus-dem.c (standard_symbol_characters): Renamed from
2443 standard_symbol_alphabet. No longer modify TABLE.
2444 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2445 modify TABLE.
2446 (main): Corresponding changes. Use strchr to determine if a
2447 character is valid.
2448
8db9d08b
JB
24491999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2450
2451 * cplus-dem.c (main): Use table lookup to distinguish identifier
2452 characters from non-identifier characters.
2453 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2454
6a071f4a
FF
2455Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2456
2457 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2458 * getruntime.c: Only attempt to include sys/resource.h and
2459 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2460 are defined.
2461
7dd88617
DT
2462Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2463
2464 * configure.in (alloca detection): Handle alloca directly for interix.
2465 * configure: Rebuilt.
2466
7a1528bc
MK
2467Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2468
2469 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2470
76409268
JB
24711999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2472
2473 Fix from Dale Hawkins:
5194cf08 2474 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
2475 reallocated properly if we use it again.
2476
2477 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2478 stricter about syntax. Always null-terminate string.
2479
acbbd80a
MK
2480Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2481
2482 * configure.in (checkfuncs): Check for sbrk.
2483 * config.in: Rebuilt.
2484 * configure: Likewise.
2485 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2486
92523551
JB
24871999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2488
2489 Fix from Marcus Daniels:
2490 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2491 identifier looking for another underscore.
2492
36eb4217
MK
2493Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2494
2495 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2496 * xmalloc.c: Likewise.
2497 (xcalloc): UWIN has sbrk.
2498 (xrealloc): Fix guard macro.
2499
2c45d1a0
RH
25001999-04-11 Richard Henderson <rth@cygnus.com>
2501
2502 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2503 or <alloca.h>.
2504 * clock.c (GNU_HZ): New definition.
2505 (clock): Use it.
2506 * getruntime.c: Likewise.
2507
2508 * config.table: Use mh-beos.
2509 * config/mh-beos: New file.
2510
391cdef0
MM
25111999-04-11 Mark Mitchell <mark@codesourcery.com>
2512
2513 * cplus-dem.c (demangle_template_value_parm): Handle
2514 pointers-to-members.
2515 (do_type): Handle template parameters as qualifiers.
2516
9d229989
JB
25171999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2518
2519 * cplus-dem.c: Attempt to handle overflows in counts with some
2520 semblance of grace.
2521 (consume_count): Detect overflows. Return -1 to indicate errors,
2522 instead of zero.
2523 (demangle_template_value_parm, demangle_template): Handle change
2524 to consume_count's return convention.
2525
7c72138a
TT
25261999-04-05 Tom Tromey <tromey@cygnus.com>
2527
2528 * testsuite/regress-demangle: New file.
2529 * testsuite/demangle-expected: New file.
2530
2531 * Makefile.in (all, check, installcheck, info, install-info,
2532 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2533 distclean, maintainer-clean, realclean): Depend on corresponding
2534 `-subdir' target.
2535 (all-subdir check-subdir installcheck-subdir info-subdir
2536 install-info-subdir clean-info-subdir dvi-subdir
2537 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2538 distclean-subdir maintainer-clean-subdir): New target.
2539 * testsuite/Makefile.in: New file.
2540 * configure: Rebuilt.
2541 * configure.in: Create testsuite/Makefile.
2542
ae7f7270
MM
25431999-04-02 Mark Mitchell <mark@codesourcery.com>
2544
2545 * splay-tree.h (splay_tree_compare_pointers): Define.
2546
30f72379
MM
25471999-03-30 Mark Mitchell <mark@codesourcery.com>
2548
2549 * splay-tree.c (splay_tree_compare_ints): Define.
2550
4cc48683
TT
25511999-03-30 Tom Tromey <tromey@cygnus.com>
2552
2553 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2554 don't advance input pointer.
2555 (demangle_class_name): If consume_count didn't find a count, do
2556 nothing. Don't bother with `strlen' sanity check; consume_count
2557 does it for us.
2558
3510075c
JL
25591999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2560
2561 From Art Haas <ahaas@neosoft.com>:
2562 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2563 when doing arm or hp style.
2564 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 2565
89f602a7
MK
2566Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2567
2568 * pexecute.c (__CYGWIN32__): Rename to
2569 (__CYGWIN__): this.
2570 * xmalloc.c: Likewise.
2571
2572 Changes to support i386-pc-uwin.
2573 * configure.in (*-*-uwin*): Workaround for vfork bug.
2574 * configure: Regenerate.
2575 * pexecute.c (pexecute): Be like standard Unix.
2576 (pwait): Likewise.
2577 * xmalloc.c (first_break): Define.
2578 (xmalloc_set_program_name): Use.
2579 (xmalloc): Use.
2580
9346c824
FS
2581Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2582
2583 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2584
3510075c
JL
2585Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2586
2587 * config.table: Check cygwin*, not cygwin32*.
2588
8ec65f13
DB
2589Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2590
2591 * Makefile.in: Change mkstemp -> mkstemps.
2592
687361c8
ME
2593Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2594
2595 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2596 * configure.in (funcs): Check for and conditionally add mkstemps to
2597 the list of functions libiberty will provide.
2598 * configure: Rebuilt.
5194cf08 2599
b207e09c
MK
2600Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2601
5194cf08 2602 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2603 platforms that don't have HZ.
2604 * getruntime.c (HZ): Likewise.
2605
16b4c15e
RH
2606Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2607
2608 * Makefile.in (xstrdup.o): Depend on config.h.
2609
38beb75c
UD
2610Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2611
2612 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2613 freeing it.
2614
7e4311a3
KG
2615Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2616
2617 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2618
3510075c
JL
2619Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2620
2621 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2622 splay-tree.o.
2623
26241999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2625
2626 * configure.in: Require autoconf 2.12.1 or higher.
2627
fb9939b8
MM
26281998-12-30 Michael Meissner <meissner@cygnus.com>
2629
2630 * random.c (NULL): Don't redefine NULL if it is already defined.
2631
087aa398
KG
2632Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2633
2634 * argv.c (buildargv): Cast the result of alloca in assignment.
2635
2636 * choose-temp.c: Include stdlib.h.
38beb75c 2637
087aa398 2638 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2639 (snarf_numeric_literal): Constify first parameter.
2640 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2641 int, not a char.
087aa398
KG
2642 (demangle_qualifier): Likewise.
2643 (demangle_signature): Cast the argument of a ctype function to
2644 unsigned char.
2645 (arm_pt): Add parens around assignment used as truth value.
2646 (demangle_arm_hp_template): Constify variable `args'.
2647 (do_hpacc_template_const_value): Cast the argument of a ctype
2648 function to unsigned char.
2649 (do_hpacc_template_literal): Remove unused variable `i'.
2650 (snarf_numeric_literal): Constify parameter `args'.
2651 Cast the argument of a ctype function to unsigned char.
2652
2653 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2654 avoid ambiguous `else'.
38beb75c 2655
087aa398 2656 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2657 `cstart' and `cend' to unsigned char. Cast the argument of macro
2658 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2659
2660 * objalloc.c (free): Add prototype.
2661
21f2174d
HPN
2662Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2663
2664 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2665
3510075c
JL
2666Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2667
2668 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2669 doesn't exist.
3510075c 2670 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2671
e8fc8222
AM
2672Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2673
2674 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2675 bumping the pointer we read from. Also prepend these codes,
2676 as we do in other places.
2677
3510075c
JL
26781998-12-18 Nick Clifton <nickc@cygnus.com>
2679
2680 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2681 'const char *' in order to match its usage when calling siblings.
2682 (snarf_numeric_literal): Make first arg 'const char **' in order
2683 to match usage.
11a0bb74 2684
f4f30aa1
JL
2685Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2686
11a0bb74
KG
2687 * choose-temp.c: Don't check IN_GCC anymore.
2688
2689 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2690 * memchr.c (memchr): Likewise.
2691 * memcpy.c (memcpy): Likewise.
2692 * memmove.c (memmove): Likewise.
38beb75c 2693
11a0bb74
KG
2694 * mkstemp.c: Don't check IN_GCC anymore.
2695 * pexecute.c: Likewise.
2696 * splay-tree.c: Likewise.
38beb75c 2697
11a0bb74
KG
2698 * strchr.c (strchr): Use `const', not `CONST'.
2699 * strrchr.c (strrchr): Likewise.
2700 * strtol.c (strtol): Likewise.
2701 * strtoul.c (strtoul): Likewise.
2702
70d5ccef
DT
2703Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2704 Elena Zannoni <ezannoni@cygnus.com>
2705 Stan Shebs <shebs@cygnus.com>
2706 Edith Epstein <eepstein@cygnus.com>
2707 Andres MacLeod <amacleod@cygnus.com>
2708 Satish Pai <pai@apollo.hp.com>
2709
2710 * HP aCC demangling support.
2711 * cplus-dem.c
2712 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2713 demangling correctly when -edg specified; set the demangling style
2714 when user specifies 'edg'. Set strip_underscore to
2715 prepends_underscore, if not HPUXHPPA. Set
2716 current_demangling_style to hp_demangling if HPUXHPPA. Set
2717 current demangling style correctly if the switch is hp. Read
2718 label correctly also in the HP style case.
70d5ccef 2719 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2720 function.
70d5ccef 2721 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2722 style for this case is the same as ARM.
70d5ccef
DT
2723 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2724 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2725 demangle_arm_pt.); check and set value of temp_start field in
2726 multiple places. Also, when ceching for end of template args,
2727 check to see if at end of static member of template class.
70d5ccef 2728 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2729 include template args in string defining class.
70d5ccef
DT
2730 (demangle_class_name): use demangel_arm_hp_template.
2731 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2732 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2733 Handle EDG_DEMANGLING style. Handle constructor and destructor
2734 ops for HP style.
70d5ccef 2735 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2736 styles. global destructor and constructor for HP style are same
2737 as for ARM style. Same for local variables.
70d5ccef
DT
2738 (demangle_qualified): handle EDG_DEMANGLING style.
2739 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2740 cases '1' - '9' : initialize the temp_start field to -1 and handle
2741 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2742 and AUTO_DEMANGLING styles. If expecting a function and managed
2743 to demangle the funct args, then handle the LUCID_DEMANGLING,
2744 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2745 class name after "Lnnn_ in HP style case. HP style too needs to
2746 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2747 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2748 value param for HP/aCC.
70d5ccef 2749 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2750 literal parameter for HP aCC.
70d5ccef
DT
2751 (recursively_demangle): new function
2752 (snarf_numeric_literal): new function.
2753 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2754 to message.
70d5ccef 2755
8d525fa8
CF
2756Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2757
2758 * pexecute.c: Remove obsolete ifdefed cygwin code.
2759
9b1a92d8
KG
2760Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2761
2762 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2763 * cplus-dem.c: Likewise. Conform to libiberty.h.
2764 * pexecute.c: Likewise.
2765 * splay-tree.c: Likewise.
2766
c85c3232
MS
27671998-11-25 Mike Stump <mrs@wrs.com>
2768
2769 * Makefile.in (splay-tree.o): Add config.h dependency.
2770
35a6cd99
KG
2771Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2772
2773 * configure.in: Use AC_PREREQ(2.12.1).
2774
6e6e34b7
BK
27751998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2776
5194cf08 2777 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2778
59b67c11
JL
2779Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2780
2781 * mpw.c (mpw_access): Add missing parens.
2782
a6458d1d
KG
2783Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2784
2785 * configure.in: Call AC_HEADER_SYS_WAIT.
2786
2787 * pexecute.c: Include sys/wait.h when !IN_GCC.
2788
3510075c
JL
2789Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2790
2791 * pexecute.c: revert back to checking old Cygwin
2792 preprocessor symbol until some time has passed.
2793
2794Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2795
2796 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2797 since it will now support similar constructs.
2798
a9acf741
KG
2799Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2800
2801 * configure.in: Check for calloc.
2802
2803 * calloc.c: New file.
2804
2805 * xmalloc.c (xcalloc): New function.
2806
a49fb37a
AM
2807Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2808
2809 *cplus-dem.c (demangle_prefix): Use the last "__"
2810 in the mangled name when looking for the signature. This allows
2811 template names to begin with "__".
2812
0e714131
MM
28131998-11-08 Mark Mitchell <mark@markmitchell.com>
2814
ec2288ff
MM
2815 * cplus-dem.c (type_kind_t): Add tk_reference.
2816 (demangle_template_value_parm): Handle it.
2817 (do_type): Use it for references, instead of tk_pointer.
2818
0e714131
MM
2819 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2820 not internal_cplus_demangle.
2821
2931b6d4
KG
2822Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2823
2824 * choose-temp.c: Don't include gansidecl.h.
2825 * mkstemp.c: Likewise.
2826 * pexecute.c: Likewise.
2827
dd8f3ed5
GN
2828Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2829
5194cf08
ZW
2830 * configure.in: detect cygwin* instead of cygwin32*
2831 * configure: regenerate
dd8f3ed5 2832
c5f7c445
KG
2833Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2834
2835 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2836 whether to include config.h. Possibly include unistd.h in the
2837 !IN_GCC case. Define VFORK_STRING as a printable function call
2838 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2839 defined, include vfork.h. If VMS is defined, define vfork()
2840 appropriately. Remove vfork check on USG, we're using autoconf.
2841 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2842 locally what string to use.
c5f7c445 2843
ad3ef78e
MM
28441998-10-26 Mark Mitchell <mark@markmitchell.com>
2845
2846 * splay-tree.c: Tweak include directives to make sure declarations of
2847 xmalloc and free are available.
2848
224301c1
MM
28491998-10-25 Mark Mitchell <mark@markmitchell.com>
2850
2851 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2852 anonymous namespaces.
38beb75c 2853
d9db46fd
MM
28541998-10-23 Mark Mitchell <mark@markmitchell.com>
2855
2856 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2857 with type_quals.
2858 (TYPE_UNQUALIFIED): New macro.
2859 (TYPE_QUAL_CONST): Likewise.
2860 (TYPE_QUAL_VOLATILE): Likewise.
2861 (TYPE_QUAL_RESTRICT): Likewise.
2862 (code_for_qualifier): New function.
2863 (qualifier_string): Likewise.
2864 (demangle_qualifier): Likewise.
2865 (internal_cplus_demangle): Use them.
2866 (demangle_signature): Likewise.
2867 (demangle_template_value_parm): Likewise.
2868 (do_type): Likewise.
2869 (demangle_fund_type)): Likewise.
224301c1 2870
b056ad1c
KG
2871Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2872
2873 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2874 to match prototype.
2875
ed87f9c8
MM
28761998-10-21 Mark Mitchell <mark@markmitchell.com>
2877
2878 * splay-tree.c: New file.
2879 * Makefile.in (CFILES): Add it.
2880 (REQUIRED_OFILES): Likewise.
2881 (splay-tree.o): Add dependencies.
2882
e0c13971
AS
2883Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2884
2885 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2886 range of 'K' index.
2887
91e0f659
KG
2888Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2889
2890 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2891
2892 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2893 `unsigned char'.
2894 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2895 comparing against one.
2896 (cplus_mangle_opname): Likewise.
2897 (demangle_integral_value): Cast argument of ctype macro to
2898 `unsigned char'.
2899 (demangle_template_value_parm): Likewise.
2900 (demangle_template): Initialize variable `bindex'. Cast the
2901 result of `strlen' to (int) when comparing against one. Remove
2902 unused variable `start_of_value_parm'.
2903 (demangle_class_name): Cast the result of `strlen' to (int) when
2904 comparing against one.
2905 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2906 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2907 when comparing against one.
2908 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2909 (get_count): Likewise.
2910 (do_type): Likewise. Cast the result of `strlen' to (int) when
2911 comparing against one.
2912 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2913 (demangle_function_name): Cast the result of `strlen' to (int)
2914 when comparing against one.
2915
2916 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2917 comparing against one.
2918
73aeb2ff
JL
2919Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2920
5194cf08
ZW
2921 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2922 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2923 * config.in, configure: Rebuilt.
ae76f1be 2924
73aeb2ff
JL
2925 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2926 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2927 * config.in, configure: Rebuilt.
2928
dd8f3ed5
GN
2929Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2930
5194cf08 2931 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2932
f77d8413
MT
2933Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2934
2935 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2936
ca6b370d
JL
2937Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2938
2939 * Merge egcs & devo libiberty.
2940
ab4856b1
ML
2941