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