*** empty log message ***
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
51948b34
DD
12003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
2
3 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
4 d_demangle.
5
6d95373e
DD
62003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
7
8 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
9 callers.
10 (print_usage): Display new -p option.
11 (long_options): Add --no-params.
12 (main): Accept and handle -p.
13
54a962d9
DD
142003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
15
16 * cp-demangle.c (has_return_type): Skip qualifiers when checking
17 whether we have a template.
18 * testsuite/demangle-expected: Add four new tests.
19
8fe0d347
DD
202003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
21
22 * testsuite/demangle-expected: Minor changes to match output of
23 new demangler: adjust whitespace in four tests, and change order
24 of qualifiers in one test.
25
26 * cp-demangle.c: Complete rewrite.
27
d00edca5
DD
282003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
29
30 * cp-demangle.c: Complete rewrite.
31
dd9d4b48
DD
322003-11-19 Mark Mitchell <mark@codesourcery.com>
33
34 * cp-demangle.c (demangle_type): Correct thinko in substitution
35 processing.
36
0976f6a7
DD
372003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
38
39 * cp-demangle.c (demangle_operator_name): Remove space before
40 "sizeof".
41 (demangle_type_ptr): Put qualifiers in the right place. Handle
42 qualifiers in pointer to member specially.
43 (demangle_type): Handle qualifiers for pointer or reference
44 specially. Handle function type.
45 (demangle_local_name): Save and restore caret around demangling of
46 initial encoding.
47
48 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
49 cplus_demangle.
50
51 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
52
5659daa1
DD
532003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
54
55 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
56 cplus_demangle.
57
58 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
59
e7e6980b
DD
602003-10-31 Andreas Jaeger <aj@suse.de>
61
62 * floatformat.c (floatformat_always_valid): Add unused attribute.
63
686e72d7
DD
642003-10-30 Josef Zlomek <zlomekj@suse.cz>
65
66 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
67 instead of increasing n_elements when inserting to deleted slot.
68
eec65ede
JB
692003-10-20 J. Brobecker <brobecker@gnat.com>
70
71 * cplus-dem.c (demangle_template): Register a new Btype only
72 when needed.
73 * testsuite/demangle-expected: Add a new test.
74
cd275bff
L
752003-10-16 H.J. Lu <hongjiu.lu@intel.com>
76
77 * testsuite/demangle-expected: Update the expected output of
78 _GLOBAL__I__Z2fnv.
79
e3b1168e
DJ
802003-10-02 Daniel Jacobowitz <drow@mvista.com>
81
82 * strerror.c: Revert last change. Declare static sys_nerr
83 and sys_errlist using different names.
84
efb150d5
DJ
852003-10-01 Daniel Jacobowitz <drow@mvista.com>
86
87 * strerror.c: Don't provide or reference sys_errlist if
88 strerror is available.
89
b7ca9213
L
902003-10-01 H.J. Lu <hongjiu.lu@intel.com>
91
92 * configure.in: Check if $MAKEINFO is missing.
93 * configure: Regenerated.
94
8ddbb593
DJ
952003-09-24 Daniel Jacobowitz <drow@mvista.com>
96
97 * configure.in: Use AC_PROG_CPP_WERROR.
98 * configure: Regenerated.
99
5324d185
AC
1002003-09-22 Andrew Cagney <cagney@redhat.com>
101
102 * floatformat.c (floatformat_i387_ext_is_valid): New function.
103 (floatformat_always_valid): New function.
104 (floatformat_i387_ext): Initialize new "is_valid" field to
105 "floatformat_i387_ext_is_valid".
106 (floatformat_ieee_single_little): Initialize "is_valid" field to
107 floatformat_always_valid.
108 (floatformat_ieee_double_big): Ditto.
109 (floatformat_ieee_double_little): Ditto.
110 (floatformat_ieee_double_little): Ditto.
111 (floatformat_ieee_double_littlebyte_bigword): Ditto.
112 (floatformat_i960_ext): Ditto.
113 (floatformat_m88110_ext): Ditto.
114 (floatformat_m88110_harris_ext): Ditto.
115 (floatformat_arm_ext_big): Ditto.
116 (floatformat_arm_ext_littlebyte_bigword): Ditto.
117 (floatformat_ia64_spill_big): Ditto.
118 (floatformat_ia64_spill_little): Ditto.
119 (floatformat_ia64_quad_big): Ditto.
120 (floatformat_ia64_quad_little): Ditto.
121 (floatformat_ia64_quad_little): Ditto.
122 (floatformat_is_valid): Call "is_valid".
123
34f4a113
AC
1242003-09-15 Andrew Cagney <cagney@redhat.com>
125
126 * floatformat.c (get_field): Make "data" constant.
127 (floatformat_is_valid, floatformat_to_double): Make "from"
128 constant, fix casts.
129 (floatformat_from_double): Make "from" constant.
130
3f2aacaf
DJ
1312003-09-15 Daniel Jacobowitz <drow@mvista.com>
132
133 * floatformat.c (floatformat_is_valid): New function.
134 (get_field, put_field): Correct comments.
135
aae66b9f
DD
1362003-09-06 Josef Zlomek <zlomekj@suse.cz>
137
138 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
139 FIBHEAPKEY_T.
140
60b04ee8
DD
1412003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
142
143 PR bootstrap/12100
144 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
145 * configure: Rebuilt.
146
2299a76d
DJ
1472003-08-27 Daniel Jacobowitz <drow@mvista.com>
148
149 * aclocal.m4: Include acx.m4 and no-executables.m4.
150 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
151 (LIB_AC_PROG_CC): Remove.
152 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
153 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
154 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
155 performing link tests.
156 * configure: Regenerated.
157
9ad1aa29
DD
1582003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
159
160 * cp-demangle.c: Clarify what package(s) this is part of.
161
dbb9d0f3
DD
1622003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
163
164 * pex-win32.c (pexecute): Mark parameters this_pname and
165 temp_base as unused. Remove unused variables retries,
166 sleep_interval. Initialize org_stdin, org_stdout.
167 (pwait): Mark parameter flags as unused.
168
1692003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
170
171 * pex-win32.c (fix_argv): Ensure that the executable pathname
172 uses Win32 backslashes.
173 (pexecute): Cast away constness when assigning *errmsg_arg.
174
78c5b0a5
L
1752003-06-26 H.J. Lu <hongjiu.lu@intel.com>
176
177 * testsuite/demangle-expected: Add more GNU V3 testcases.
178
70ecf948
DD
1792003-06-22 Zack Weinberg <zack@codesourcery.com>
180
181 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
182 not HC_ASCII and HC_EBCDIC.
183 Add documentation in form expected by gather-docs.
184 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
185 * Makefile.in, functions.texi: Regenerate.
186
cbc0188b
DD
1872003-06-21 Zack Weinberg <zack@codesourcery.com>
188
189 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
190 for charset determination.
191
5f73c378
DD
1922003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
193
194 * configure.in: Add check for malloc.h needed by
195 m68k for function free().
196 * configure: Regenerated.
197 * config.in: Add HAVE_MALLOC_H.
198 * hashtab.c: include malloc.h were available for
199 free().
200
e69f6c8c 2012003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 202
e69f6c8c
DD
203 PR bootstrap/10974
204 * physmem.c: Update comment.
205 * configure.in: Modify test for _system_configuration for older
206 AIX systems.
207
208 * config.in, configure: Regenerated.
cbc0188b 209
54c60684
DD
2102003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
211
212 PR other/10810
213 * test-demangle.c (getline): Fix fence-post error.
214
5a4e47bd
NC
2152003-06-03 Nick Clifton <nickc@redhat.com>
216
217 * asprintf.c: Change comment to note that -1 is returned upon
218 error.
219 * vasprintf.c: Likewise.
220 (vasprintf): Return -1 upon error.
221 * functions.texi: Document changes to asprintf and vasprintf.
222
916f5d13
DD
2232003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
224
225 * config.table: Accept i[345867]86 variant.
226
e4f79046
JB
2272003-05-15 Jim Blandy <jimb@redhat.com>
228
229 * hex.c (_hex_value): Make this unsigned.
230 (hex_value): Update documentation for new return type. hex_value
231 now expands to an unsigned int expression, to avoid unexpected
232 sign extension when we store it in a bfd_vma, which is larger than
233 int on some platforms.
234 * functions.texi: Regenerated.
235
0f3538e7
DD
2362003-05-07 Josef Zlomek <zlomekj@suse.cz>
237
238 * splay-tree.c (splay_tree_predecessor): Fix comment.
239 (splay_tree_successor): Fix comment.
240
7108c5dc
JM
2412003-05-07 Jason Merrill <jason@redhat.com>
242
eafaf5eb 243 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
244 * configure.in: Add AC_C_BIGENDIAN_CROSS.
245 * aclocal.m4: Include accross.m4.
246 * configure, config.in: Regenerate.
247
0b555173
DD
2482003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
249
250 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
251 * configure: Regenerate.
252
8730135a
DD
2532003-05-03 Carlo Wood <carlo@alinoe.com>
254
255 * cp-demangle.c: Fix typo in "char_traints" string-literal.
256
341eccbc
DD
2572003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
258
259 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
260 (main): Test that we don't write too much data.
261
2ed1e5cc
DD
2622003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
263
264 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
265 vsnprintf.
266 * snprintf.c, vsnprintf.c: New files.
267 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
268 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
269 Regenerate dependencies.
270
271 * functions.texi, configure, config.in: Regenerated.
272
10b57b38
DD
2732003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
274
275 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
276 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
277 and stpncpy.
278 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
279 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
280 Regenerate dependencies.
281
282 * functions.texi, configure, config.in: Regenerated.
283
ff773b85
DD
2842003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
285
286 * argv.c: Fix comments.
287 * calloc.c: Don't unnecessarily include "libiberty.h".
288 (bzero): Add prototype.
289 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
290 * getcwd.c (getcwd): Use standard definition to avoid conflicts
291 with system headers.
292 * hashtab.c (htab_traverse): Delete unused variables.
293 * rename.c: Include "ansidecl.h".
294 (rename): Use standard definition to avoid conflicts with system
295 headers.
296 * strsignal.c: Rely on ANSI_PROTOTYPES.
297 * strstr.c: Check GNUC >= 2, not GNUC == 2.
298 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
299 * vprintf.c: Include "ansidecl.h" earlier, rely on
300 ANSI_PROTOTYPES.
301 * vsprintf.c: Include "ansidecl.h" earlier, rely on
302 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 303
ff773b85
DD
304 * Makefile.in: Regenerate dependencies.
305
bb325820
DD
3062003-04-15 DJ Delorie <dj@redhat.com>
307
308 * maint-tool (deps): Scan for headers in $srcdir also.
309
258a4893
DD
3102003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
311
312 PR target/10338
313 PR bootstrap/10198
314 PR bootstrap/10140
315 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
316 __mempcpy.
317 * regex.c (regerror): Likewise.
318
ff773b85
DD
3192003-04-14 Roger Sayle <roger@eyesopen.com>
320
321 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
322 * memchr.c: Likewise.
323 * strcasecmp.c: Likewise.
324 * strncasecmp.c: Likewise.
325 * strncmp.c: Likewise.
326 * xatexit.c: Likewise.
327 * xmalloc.c: Likewise.
328
329 * copysign.c: Use traditional function declaration instead of DEFUN.
330 * sigsetmask.c: Likewise.
331
332 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
333 * memset.c: Likewise.
334
335 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
336 * memmove.c: Likewise.
337
eec539c7
DD
3382003-04-14 Roger Sayle <roger@eyesopen.com>
339
340 * strdup.c (strdup): Tweak implementation to use memcpy.
341
daf7c4ad
DD
3422003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
343
344 * configure.in (HAVE_UINTPTR_T): Always define.
345 * configure: Regenerated.
346
aa072e59
AO
3472003-03-23 Alexandre Oliva <aoliva@redhat.com>
348
349 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
350 instead of $$CC alone.
351 (install_to_tooldir): Use it.
352
f77ed96c
DD
3532003-17-03 Jan Hubicka <jh@suse.cz>
354
355 * hashtab.c (htab_traverse_noresize): Break out from ...
356 * hashtab.c (htab_traverse): ... here.
357
2336e177
DD
3582003-12-03 Jan Hubicka <jh@suse.cz>
359
360 * hashtab.c (htab_expand): Fix warning.
361
362 * hashtab.c (htab_expand): Compute the size of hashtable based
363 on the number of elements actually used.
364 (htab_traverse): Call htab_expand when table is too empty.
365
d8cbbf95
DD
3662003-03-11 Carlo Wood <carlo@gnu.org>
367
368 * cplus-dem.c (demangle_integral_value): Correction to reflect
369 patch of 2002-01-10 in order to also make negative multi-digits
370 without leading underscore work.
371
a01fefeb
DD
3722003-03-03 Mark Mitchell <mark@codesourcery.com>
373
374 * cplus-dem.c: Add license exception to copyright notice.
375
638ceb1a
DD
3762003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
377
378 * physmem.c: Formatting changes from upstream.
379
ef803806
DD
3802003-02-24 Danny Smith <dannysmith@users.source.forge.net>
381
382 * physmem.c (physmem_total): Add _WIN32 support.
383 (physmem_available): Likewise.
384
181fa229
DD
3852003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
386
387 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
388 GSI_PHYSMEM.
389 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
390
cc529274
DD
3912003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
392
393 * configure.in: Check for sys/systemcfg.h and
394 _system_configuration.
395 * physmem.c: Add support for AIX. Tweek formatting as per
396 upstream coreutils beta.
397
3982003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
399 Richard Earnshaw <rearnsha@arm.com>
400 Geoffrey Keating <geoffk@apple.com>
cbc0188b 401
cc529274
DD
402 * configure.in: Check for sys/sysctl.h and sysctl.
403 * physmem.c: Add support for *bsd and darwin.
404 * Makefile.in: Generate depedency for physmem.o.
405
192cbe66
DD
4062003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
407
408 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
409 Tru64 UNIX.
410 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
411 Tru64 UNIX.
412
413 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
414 machine/hal_sysinfo.h, sys/table.h.
415 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
416 * configure, config.in: Regenerate.
417
ff773b85
DD
4182003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
419
420 * configure.in: Check for sys/sysmp.h and sysmp.
421 * physmem.c: Pull upstream copy, add support for irix6.
422
423 * config.in, configure: Regenerated.
424
900d2082
DD
4252003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
426
427 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
428 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
429 pstat_getdynamic.
cbc0188b 430
4938384a
DD
4312003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
432
433 * Makefile.in (CFILES): Add physmem.c.
434 (REQUIRED_OFILES): Add physmem.o.
435 * configure.in: Check for sys/pstat.h.
436 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
437 * physmem.c: New file, copied from textutils.
438
439 * config.in, configure: Regenerated.
440
ba61a412
DJ
4412003-02-20 Daniel Jacobowitz <drow@mvista.com>
442
443 * Makefile.in (CFILES): Add lrealpath.c.
444 (REQUIRED_OFILES): Add lrealpath.o.
445 (lrealpath.o): Add rule.
446 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
447 * configure.in: Add realpath and canonicalize_file_name to
448 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
449 for canonicalize_file_name.
450 * lrealpath.c: New file.
451 * make-relative-prefix.c: Update documentation.
452 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
453 * config.in: Regenerated.
454 * configure: Regenerated.
455 * functions.texi: Regenerated.
456
25dfe0ac
DD
4572003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
458
459 * cplus_dem.c: Fix typo: intializes -> initializes.
460
8b90eef4
AO
4612003-02-20 Alexandre Oliva <aoliva@redhat.com>
462
463 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
464 config.status.
465 * configure: Rebuilt.
466
fcd7c7c9
DD
4672003-02-13 Daniel Jacobowitz <drow@mvista.com>
468
469 Fix PR c++/7612.
470 * cplus-dem.c (demangle_signature): Call string_delete.
471 Remove extra string_init.
472 (demangle_arm_hp_template): Call string_delete instead of
473 string_clear. Add missing string_delete call.
474 (demangle_qualified): Add missing string_delete call.
475 (do_type): Remove unused variable btype. Add missing string_delete
476 call. Call string_delete instead of string_clear.
477 (demangle_fund_type): Move variable btype inside of the switch
478 statement. Add missing string_delete call.
479 (do_arg): Call string_delete instead of string_clear. Remove extra
480 string_init.
481 (demangle_nested_args): Free work->previous_argument.
482
073c427b
DD
4832003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
484
485 * acconfig.h: New file. Add uintptr_t.
486 * config.in: Regenerated.
487
f8bd3000
DD
4882003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
489
490 * libiberty.texi: Update to GFDL 1.2.
491
85b9a938
DD
4922003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
493
494 * Makefile.in (libiberty_topdir): New subst.
495 (mkinstalldirs): Redefine in terms of the above.
496 * configure.in: AC_SUBST it.
497 * configure: Regenerate.
498
578460f2
AO
4992003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
500
501 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
502 (info-subdir, install-info-subdir, clean-info-subdir)
503 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
504 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
505 Pass $(FLAGS_TO_PASS).
506
7f285245
AO
5072003-01-27 Alexandre Oliva <aoliva@redhat.com>
508
509 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
510 /`$$CC -print-multi-os-directory`.
511
5f9624e3
DJ
5122003-01-26 Daniel Jacobowitz <drow@mvista.com>
513
514 * hashtab.c (htab_create_alloc_ex): New function.
515 (hatab_set_functions_ex): New function.
516 (htab_delete, htab_expand): Support alternate allocation functions.
517
9c2259b8
DD
5182003-01-24 Christopher Faylor <cgf@redhat.com>
519
520 * configure.in: Remove special pex-cygwin consideration.
521 * configure: Regenerate.
522 * pex-cygwin.c: Remove.
523 * Makefile.in: Remove pex-cygwin.[co] lines.
524
5a17353c
DD
5252003-01-24 Zack Weinberg <zack@codesourcery.com>
526
527 * Makefile.in (CFILES): Add pex-*.c.
528 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
529 (CONFIGURED_OFILES): Add pex-*.o.
530 (TEXIFILES): Add pexecute.txh.
531 (pexecute.o): Delete rule.
532 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
533 pex-unix.o, pex-win32.o): New rules.
534 * configure.in: Change AC_INIT argument to xmalloc.c.
535 Compute appropriate pexecute implementation and substitute it
536 as @pexecute@.
537
538 * pexecute.c: Split up into...
539 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
540 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
541 new files.
542
543 * functions.texi: Regenerate.
544 * configure: Regenerate.
545
eed2b28c
DD
5462003-01-20 Josef Zlomek <zlomekj@suse.cz>
547
548 * hashtab.c (htab_expand): Fix allocation of new entries.
549
27a39a5f
DD
5502003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
551
552 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
553
554 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
555 mkinstalldirs command.
556
b51c1553
DD
5572002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
558
559 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
560 Define for hosts with HOST_EXECUTABLE_SUFFIX.
561
756954c3
DD
5622002-11-24 Nick Clifton <nickc@redhat.com>
563
564 * make-relative-prefix.c (make_relative_prefix): Ensure return
565 string is empty before using strcat to construct it.
566
2a80c0a4
DD
5672002-11-22 Daniel Jacobowitz <drow@mvista.com>
568
569 * Makefile.in: Add make-relative-prefix.c.
570 * make-relative-prefix.c: New file.
571 * functions.texi: Rebuilt.
572
768b20d8
JJ
5732002-11-16 Jakub Jelinek <jakub@redhat.com>
574
575 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
576 used with arguments in traditional C' warnings.
577
f52d1d64
JJ
5782002-10-16 Jakub Jelinek <jakub@redhat.com>
579
580 * config.table: Use mh-s390pic for s390x too.
581
0d3deb8d
DD
5822002-10-06 Andreas Jaeger <aj@suse.de>
583
584 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
585 variable and of strict-aliasing warning.
586 (grow_vect): Use char as first parameter.
587
1b67de92
DD
5882002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
589
590 * Makefile.in (all): Fix multilib parallel build.
591
585cc78f
DD
5922002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
593
594 * cp-demangle.c (demangling_new): Cast 0 to enum.
595 (demangle_char): Cast return of strdup to char *.
596 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
597 (is_gnu_v3_mangled_dtor): Likewise.
598 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
599 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
600 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
601 * md5.c (md5_process_bytes): Cast results back to const void *.
602 (md5_process_block): Add cast to const md5_uint32 *.
603 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
604 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
605 unsigned short.
606 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
607 to void *.
608 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
609
e21b0cc1
NC
6102002-09-19 Nick Clifton <nickc@redhat.com>
611
612 * README: Update email addresses for bugs and patches.
613
a54ba43f
DD
6142002-09-10 Mike Stump <mrs@apple.com>
615
616 * splay-tree.c (splay_tree_successor): Fix comments.
617
6182002-09-11 Zack Weinberg <zack@codesourcery.com>
619
620 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
621 * testsuite/Makefile.in: Adjust for test-demangle.
622 * testsuite/regress-demangle: Deleted.
623 * testsuite/test-demangle.c: New file.
624 * testsuite/demangle-expected: Change \$ to $ throughout, now that
625 this file is not being read by a shell script.
626
01cea699
DD
6272002-09-05 Roger Sayle <roger@eyesopen.com>
628
629 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
630
a2832523
DD
6312002-08-07 DJ Delorie <dj@redhat.com>
632
633 * regex.c (re_error_msgid): Just use a simple array of strings.
634 (re_compile_pattern): Compensate.
635 (re_comp): Likewise.
636 (re_comp): Likewise.
637 (regerror): Likewise.
638
1e3f0be0
DD
6392002-07-29 Neil Booth <neil@daikokuya.co.uk>
640
641 * cplus-dem.c (PREPEND_BLANK): Remove.
642
b851d07b
DD
6432002-07-10 Jason Merrill <jason@redhat.com>
644
645 * cp-demangle.c (demangle_identifier): Support extended Unicode
646 characters.
647
2a9dffbf
DD
6482002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
649
650 * cp-demangle.c (demangle_v3_with_details): Wrap in
651 !defined IN_GLIBCPP_V3.
652
793011ca
DD
6532002-07-01 Mark Mitchell <mark@codesourcery.com>
654
655 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
656 Set it for the "st" operator.
657 (demangle_expression): Handle expressions with types as arguments.
658
b39b76b8
DD
6592002-06-30 Douglas Rupp <rupp@gnat.com>
660
661 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
662 * Makefile.in (OUTPUT_OPTION): Use.
663
4748c6d8
DD
6642002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
665
666 * Makefile.in (install_to_libdir): Add $(DESTDIR).
667 (install_to_tooldir): Likewise.
668
f9c3326a
DD
6692002-06-17 Douglas Rupp <rupp@gnat.com>
670
671 * lbasename.c: Add 2002 to copyright.
672 (IS_DIR_SEPARATOR): Remove VMS junk.
673
18893690
DD
6742002-06-05 Geoffrey Keating <geoffk@redhat.com>
675
676 * hashtab.c (htab_create): New stub function for backward
677 compatibility.
678 (htab_try_create): Likewise.
679
6802002-06-03 Geoffrey Keating <geoffk@redhat.com>
681
682 * hashtab.c (htab_create): Delete.
683 (htab_try_create): Delete.
684 (htab_create_alloc): New.
685 (htab_delete): Support user-specified memory allocation.
686 (htab_expand): Likewise.
687
6882002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
689
690 * configure.in: Fix typo in the code checking for sys_errlist.
691 * configure: Regenerated.
692
9296c8b2
DD
6932002-05-13 Andreas Schwab <schwab@suse.de>
694
695 * config.table: Use mh-x86pic also for x86-64.
696
52d98c2d
DD
6972002-05-08 Alexandre Oliva <aoliva@redhat.com>
698
699 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
700 script entry, and set LD to it when configuring multilibs.
701 * configure: Rebuilt.
702
cafa3917
DD
7032002-05-07 Mark Mitchell <mark@codesourcery.com>
704
705 * configure.in (AC_TYPE_PID_T): Use it.
706 * configure: Regenerated.
707 * getruntime.c: Include <sys/types.h>.
708 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
709
b1c933fc
RH
7102002-04-09 Richard Henderson <rth@redhat.com>
711
712 * hashtab.c (higher_prime_number): Use 7 as minimum.
713 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
714 (htab_find_slot_with_hash): Likewise.
715
0c4460bb
DD
7162002-04-01 Phil Edwards <pme@gcc.gnu.org>
717
718 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
719 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
720 not compile if IN_GLIBCPP_V3 defined.
721 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
722
f2160d2b
DD
7232002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
724
3ebf1f59 725 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
726 if it is NULL.
727
7dd4d42a
DD
7282002-03-27 DJ Delorie <dj@redhat.com>
729
730 * hex.c: Add documentation.
731 (_hex_value): Provide non-ASCII empty table.
732 (hex_init): Initialize the non-ASCII table.
733 * functions.texi: Regenerate.
734
38e57a35
DD
7352002-03-27 Mark Mitchell <mark@codesourcery.com>
736
737 * dyn-string.c: Add libgcc exception to copyright notice.
738
cfed0715
DD
7392002-03-26 H.J. Lu (hjl@gnu.org)
740
741 * config.table: Support --with-build-subdir.
742 * configure.in: Likewise.
743 * configure: Rebuild.
744
1504972f
DD
7452002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
746
747 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
748 seen.
749
35efcd67
DD
7502002-03-12 Mark Mitchell <mark@codesourcery.com>
751
752 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
753 notice.
754
dabc64ea
DD
7552002-03-11 Douglas B Rupp <rupp@gnat.com>
756
757 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
758
3ddbd84c
JB
7592002-03-06 Jim Blandy <jimb@redhat.com>
760
761 * splay-tree.c (splay_tree_xmalloc_allocate,
762 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
763 prototyped definitions. Mark `data' arguments as unused.
764
efdab807
AC
7652002-03-06 Andrew Cagney <ac131313@redhat.com>
766
767 * floatformat.c (floatformat_arm_ext_big): Delete definition.
768
50d4562d
DD
7692002-03-04 Phil Edwards <pme@gcc.gnu.org>
770
771 * configure.in: Add --enable-install-libiberty option.
772 * Makefile.in (INSTALLED_HEADERS): New variable.
773 (install_to_libdir): Possibly also copy headers.
774 * configure: Regenerated.
775
7762002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
777
778 * xmalloc.c (xmalloc_fail): Clarify error message further.
779
6e9980f5
DD
7802002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
781
782 * xmalloc.c (xmalloc_fail): Clarify error message.
783
18893690 7842002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
785
786 * splay-tree.c (splay_tree_xmalloc_allocate,
787 splay_tree_xmalloc_deallocate): New functions.
788 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
789 above functions and a dummy data pointer.
790 (splay_tree_new_with_allocator): New function.
791 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
792 splay_tree_remove): Use the splay tree's allocation and
793 deallocation functions.
794
59ea9fe7
DD
7952002-02-19 Scott Snyder <snyder@fnal.gov>
796
797 * testsuite/demangle-expected: Add test case for infinite loop in
798 demangler.
799 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
800 if do_type() doesn't make any progress --- prevents an infinite
801 loop.
802
6f848550
DD
8032002-02-18 Carlo Wood <carlo@gnu.org>
804
805 PR c++/5390
806 * cplus-dem.c (demangle_integral_value): Accept multi-digit
807 numbers that do not start with an underscore; This is needed
808 for integer template parameters. This doesn't break anything
809 because multi-digit numbers are never followed by a digit.
810 * testsuite/demangle-expected: Corrected all mangled test
811 cases with multi-digit template parameters: g++ 2.95.x does
812 not generate underscores around these parameters.
813
44354ae1
DD
8142002-02-05 Jason Merrill <jason@redhat.com>
815
816 * cplus-dem.c (flags): Add DMGL_VERBOSE
817 (cplus_demangle_v3_p): Remove.
818 (demangle_it): Add DMGL_TYPES to passed flags.
819 * cp-demangle.c (cplus_demangle_v3_all): Remove.
820 (cplus_demangle_v3_type): Remove.
821 (cplus_demangle_v3): Add options parm.
822
42da15d6
DD
8232002-02-02 H.J. Lu (hjl@gnu.org)
824
825 * cp-demangle.c (cp_demangle_type): Do not protect with
826 IN_LIBGCC2.
827 (cplus_demangle_v3_all): New.
828 (cplus_demangle_v3): Call cplus_demangle_v3_all.
829 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
830
831 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
832 Initialized to cplus_demangle_v3.
833 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
834 of cplus_demangle_v3.
835 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
836 command line symbol.
837
838 * testsuite/regress-demangle: Pass the mangled name at the
839 command line.
840
b117c158
DD
8412002-02-01 H.J. Lu <hjl@gnu.org>
842
843 * cp-demangle.c (cp_demangle_type): Call demangling_new with
844 DMGL_GNU_V3.
845
c78d91b1
DD
8462002-01-31 Phil Edwards <pme@gcc.gnu.org>
847
848 * cp-demangle.c: Revert yesterday's change.
849
bef8b55d
DD
8502002-01-31 Adam Megacz <adam@xwt.org>
851
852 * gcc/libiberty/configure.in: Treat mingw the same as cywin
853 wrt HAVE_SYS_ERRLIST.
854
2c955b8b
DD
8552002-01-30 Phil Edwards <pme@gcc.gnu.org>
856
857 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
858 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
859 cp_demangle_type.
860 * testsuite/demangle-expected: New gnu-v3 test.
861
58b1717a
RH
8622002-01-22 Momchil Velikov <velco@fadata.bg>
863
864 * configure.in (variable detection): Use arrays of unspecified
865 size instead of plain integers.
866
cc096b71
DD
8672002-01-18 DJ Delorie <dj@redhat.com>
868
869 * Makefile.in (TESTLIB): New. This library is for future
870 testsuites.
871 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
872 break down by letter.
873 (REQUIRED_OFILES): List long-to-compile files first.
874 (maint-deps): New, target for updating dependencies.
875 (dependencies): Update.
876 * maint-tool: Add dependency-generating option.
877 * configure.in: Check for _doprnt even if we're not providing it.
878 * configure: Regenerate.
879
880 * _doprnt.c: Modifications to allow compiling on any platform.
881 * copysign.c: Likewise.
882 * putenv.c: Likewise.
883 * setenv.c: Likewise.
884 * vsprintf.c: Likewise.
885
8862002-01-15 Douglas B Rupp <rupp@gnat.com>
887
888 * mkstemps.c (mkstemps): On VMS, open temp file with option
889 that causes it to be deleted when closed.
890
20d54542
DD
8912002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
892
c23795e2
DD
893 * cp-demangle.c (long_options): Const-ify.
894 * cplus-dem.c (long_options): Likewise.
895
20d54542
DD
896 * cplus-dem.c (mystrstr): Delete. All callers changed to use
897 strstr instead.
898
f348a7b1
DD
8992001-12-31 Ira Ruben <ira@apple.com>
900
901 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
902 * configure: Regenerated.
903
d86cd745
DD
9042001-12-24 Douglas B. Rupp <rupp@gnat.com>
905
906 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
907 * configure: Regenerated.
908
ae533646
DD
9092001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
910
911 PR other/2719
912 * cplus-dem.c (consume_count): Treat negative count as an error.
913 * testsuite/demangle-expected: Added testcase.
914
c0eb281b
DD
915Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
916
917 * configure.in: Hardcode that vfork works on VMS host.
918 * configure: Regenerated.
919
2da4c07f
RH
9202001-12-06 Richard Henderson <rth@redhat.com>
921
922 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
923 (cplus_demangle): Support no_demangling.
924
24acd898
DD
9252001-11-27 Zack Weinberg <zack@codesourcery.com>
926
927 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
928 in libiberty context. Fix typo in leading comment.
929 * configure.in: Fix various AC_DEFINEs so autoheader works.
930 If any of vprintf, vsprintf, vfprintf is missing from libc,
931 then AC_REPLACE_FUNCS(_doprnt).
932
fec50157 9332001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 934 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
935
936 * Makefile.in (stamp-h): Depend on Makefile for proper
937 serialization.
938 (*-subdir): Depend on config.h for proper serialization.
939
5527febf
DD
9402001-11-26 DJ Delorie <dj@redhat.com>
941
942 * configure.in: Check for alloca.h (for regex.c and putenv.c).
943 * configure: Regenerate.
944 * config.h: Add HAVE_ALLOCA_H.
945
941d74a0
DD
9462001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
947
948 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
949 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
950 is available.
951
dc579051
DD
952Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
953
954 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
955 * configure.in (HAVE_UINTPTR_T): Test for system defining
956 uintptr_t and define HAVE_UINTPTR_T appropriately.
957 * regex.c (uintptr_t): Do not provide a definition if the
958 system provided one.
959
960 * regex.c (PREFIX): Provide an alternate definition for
961 non-ANSI/ISO compilers.
962 (ARG_PREFIX): Likewise.
963
1a78a35a
DD
9642001-11-12 Jim Meyering <meyering@lucent.com>
965
966 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
967 this code would end up calling gettext even in packages built
968 with --disable-nls.
969 * getopt.c (_): Likewise.
970 * regex.c (_): Likewise.
971
4e55c4b6
DD
9722001-11-03 Alan Modra <amodra@bigpond.net.au>
973
974 * configure.in: Cope with missing makeinfo.
975 * configure: Regenerate.
976
d311a83a
DD
9772001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
978
979 * hex.c (hex_init): Provide empty stub.
980
981 * hex.c (hex_init): Delete.
982 (_hex_value): Const-ify and initialize at compile-time.
983
3bc62f91
DD
9842001-10-19 H.J. Lu <hjl@gnu.org>
985
986 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
987 necessary.
988
5d852400
DD
9892001-10-17 DJ Delorie <dj@redhat.com>
990
991 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
992 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 993 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
994 Improve manual formatting.
995 * functions.texi: Regenerate.
996
ba19b94f
DD
9972001-10-15 DJ Delorie <dj@redhat.com>
998
999 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1000 (maint-undoc): New.
1001 maint-tool: Add "undoc" tool.
1002 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1003 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1004 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1005 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1006 documentation.
1007 * fnmatch.txh: New.
1008 * functions.texi: Regenerate.
1009
56056af5
DD
10102001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1011
1012 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1013 * strtod.c: Use "ISO C" instead of "ANSI C".
1014 * functions.texi: Regenerate.
1015
99b58139
DD
10162001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1017
1018 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1019 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1020 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1021 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1022 spelling. Give names to function arguments in documentation. Use
1023 (void) prototypes in documentation.
1024 * functions.texi: Regenerate.
1025
e6450fe5
DD
10262001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1027
1028 * argv.c (buildargv, tests, main): Const-ify.
1029 * cp-demangle.c (operator_code): Likewise.
1030 * cplus-dem.c (optable, libiberty_demanglers,
1031 cplus_demangle_set_style, cplus_demangle_name_to_style,
1032 print_demangler_list): Likewise.
1033 * hashtab.c (higher_prime_number): Likewise.
1034 * strcasecmp.c (charmap): Likewise.
1035 * strerror.c (error_info, strerror, main): Likewise.
1036 * strncasecmp.c (charmap): Likewise.
1037 * strsignal.c (signal_info): Likewise.
1038
da191b5b
DD
10392001-09-29 DJ Delorie <dj@redhat.com>
1040
1041 * configure: Regenerate.
1042
916aaa12
DD
10432001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1044
1045 * concat.c: Include stdlib.h.
1046
fa9f0e33
DD
10472001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1048
1049 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1050 @dircategory and @direntry directives. Add @finalout.
1051 (many nodes): Lose the next,prev,up pointers on the @nide line.
1052 (Using, Supplemental Functions, Replacement Functions): Fix
1053 markup.
1054 (Functions): Move around, to allow makeinfo to build the manual
1055 without next,prev,up pointers in thye node lines.
1056 (Licenses): Fix typos.
1057
1058 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1059 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1060 * functions.texi: Regenerate.
1061
1062 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1063 line.
1064
10652001-09-27 DJ Delorie <dj@redhat.com>
1066
1067 * configure.in: Don't use in-tree texinfo, because libiberty must
1068 be built before it. Check for makeinfo version 4 or higher.
1069 * functions.texi: Regenerate.
1070
39423523
DD
10712001-09-20 DJ Delorie <dj@redhat.com>
1072 Phil Edwards <pedwards@disaster.jaj.com>
1073
1074 * configure.in (MAKEINFO, PERL): Detect these.
1075 (--enable-maintainer-mode): Add.
1076 * configure: Regenerate.
1077 * Makefile.in (MAKEINFO, PERL): Define.
1078 (libiberty.info, libiberty.dvi, libiberty.html): New.
1079 (CFILES): Add bsearch.c.
1080 (CONFIGURED_OFILES): New, list of objects configure might add.
1081 (maint-missing, maint-buildall): New, for maintainers only.
1082 (clean, mostlyclean): Add info/dvi/html files.
1083 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1084 * gather-docs: New, for maintainers.
1085 * maint-tool: New, for maintainers.
1086 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1087 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1088 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1089 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1090 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1091 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1092 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1093 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1094 documentation.
1095
66c94e19
DD
10962001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1097
1098 * concat.c (reconcat): Fix for traditional C.
1099
99ee3a8f
DD
11002001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1101
1102 * concat.c (reconcat): New function.
1103
54c20242
DD
11042001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1105
1106 * concat.c (vconcat_length, vconcat_copy, concat_length,
1107 concat_copy, concat_copy2): New functions.
1108 (concat): Use vconcat_length/vconcat_copy.
1109
1110 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1111 Define.
1112
843f21be
DD
11132001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1114
1115 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1116 VA_FIXEDARG & VA_CLOSE.
1117
1118 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1119 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1120 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1121
8a423cb3
DD
11222001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1123
1124 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1125
dc676635
DD
11262001-08-23 Ulrich Drepper <drepper@redhat.com>
1127
1128 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1129
11302001-08-23 Ulrich Drepper <drepper@redhat.com>
1131
1132 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1133 instead of mbrtowc.
1134 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1135 wcslen, and __wcscoll instead of wcscoll.
1136
f080c76d
DD
11372001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1138
3ebf1f59
DD
1139 * fibheap.c (fibheap_init, fibnode_init): Remove.
1140 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1141 initialize memory.
1142 (fibheap_insert): Remove check for node allocation failure.
f080c76d 1143
f01b59ed
DD
11442001-08-21 Richard Henderson <rth@redhat.com>
1145
1146 * Makefile.in (fibheap.o): Depend on config.h.
1147 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1148 functions for inlining.
1149
1150Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1151
1152 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1153 hosting on cygwin.
1154 * configure: Regenerate.
1155
eb828599
AC
11562001-08-20 Andrew Cagney <ac131313@redhat.com>
1157
1158 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1159 HARRIS_FLOAT_FORMAT.
1160 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1161 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1162 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1163 (floatformat_m88110_harris_ext): New float formats.
1164
4e55c4b6
DD
11652001-08-20 Daniel Berlin <dan@cgsoftware.com>
1166
1167 * fibheap.c: New file. Fibonacci heap.
1168
1169 * Makefile.in (CFILES): Add fibheap.c.
1170 (REQUIRED_OFILES): Add fibheap.o.
1171 (fibheap.o): Add dependencies for fibheap.o.
1172
68a41de7
DD
11732001-08-17 Christopher Faylor <cgf@cygnus.com>
1174
1175 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1176 * configure: Regenerate.
1177
8fc34799
DD
11782001-08-16 Richard Henderson <rth@redhat.com>
1179
1180 * hashtab.c (htab_hash_string): New.
1181
16bad250
AC
11822001-08-13 Andrew Cagney <ac131313@redhat.com>
1183
1184 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1185 name.
1186
a9022147
DD
11872001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1188
1189 * regex.c (wcs_regex_compile): Use appropriate string
1190 to compare with collating element.
1191 Fix the padding for the alignment.
1192
8aefe91a 11932001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
1194
1195 * lbasename.c (lbasename): Change function definition to return a
1196 const char pointer.
1197
e7e9b069
DD
11982001-08-07 Jason Merrill <jason_merrill@redhat.com>
1199
1200 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1201 for".
1202
cc5144f8
DD
12032001-08-03 Richard Henderson <rth@redhat.com>
1204
1205 * Makefile.in (concat.o): Depend on config.h.
1206
8aefe91a
DD
12072001-07-30 Andreas Jaeger <aj@suse.de>
1208
1209 * concat.c: Include "config.h".
1210
86710ce2
DD
12112001-07-30 Andreas Jaeger <aj@suse.de>
1212
1213 * regex.c: Declare wcs functions only if compiling with
1214 MBS_SUPPORT.
1215 Don't use #elif for traditional C.
1216
12172001-07-23 Ulrich Drepper <drepper@redhat.com>
1218
1219 * regex.c: Revamp memory allocation for WCHAR functions to
1220 not use too much stack.
1221
12222001-07-30 Andreas Jaeger <aj@suse.de>
1223
1224 * regex.c: Declare wcs functions only if compiling with
1225 MBS_SUPPORT.
1226 Don't use #elif for traditional C.
1227
a5d8f731
DD
12282001-07-25 Daniel Jacobowitz <drow@mvista.com>
1229
1230 * Makefile.in (regex.o): Add dependency on config.h.
1231
6ad8a379
DD
12322001-07-18 Andreas Schwab <schwab@suse.de>
1233
1234 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1235 underscore character.
1236
12372001-07-18 Ulrich Drepper <drepper@redhat.com>
1238
1239 * regex.c: Limit string length printed in debug messages to 100
1240 chars.
1241
12422001-07-18 Andreas Jaeger <aj@suse.de>
1243
1244 * regex.c: Place under LGPL version 2.1.
1245
2a6ef469
DD
12462001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1247
1248 * Makefile.in: Add support for regex code.
1249 * regex.c: New file.
1250
7b78baae
DD
12512001-07-05 Mark Klein <mklein@dis.com>
1252
1253 * Makefile.in: Add ffs.c dependency.
1254 * configure.in: Add ffs.c.
1255 * ffs.c: New file.
1256
926150e2
DD
12572001-06-18 Richard Henderson <rth@redhat.com>
1258
1259 * concat.c: Include <sys/types.h>.
1260
11f6f21d
DD
12612001-06-11 Loren J. Rittle <ljrittle@acm.org>
1262
1263 bootstrap/3106
1264 * strerror.c (sys_nerr): Hide the OS header version.
1265 * strsignal.c (sys_nsig): Likewise.
1266
d42dae6c
DD
12672001-06-10 Richard Henderson <rth@redhat.com>
1268
1269 * concat.c: Include string.h. Fix int vs size_t usage.
1270 Simplify the iteration loops. Use memcpy.
1271
e05c6d27
DD
12722001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1273
1274 * partition.c: Fix misspelling of `implementation'.
1275
b50c4073
DD
12762001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1277
1278 * md5.c (md5_init_ctx): Declare constants as unsigned.
1279 (md5_process_block): Likewise.
1280
457161bf
DD
12812001-05-07 Zack Weinberg <zackw@stanford.edu>
1282
1283 * cp-demangle.c (demangle_v3_with_details,
1284 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1285 function definition.
1286 * ternary.c: Use K+R style function definitions. Use PTR, not
1287 void *. Make arguments constant where possible.
1288
e00bc6a7
DD
12892001-05-07 Mark Mitchell <mark@codesourcery.com>
1290
1291 * splay-tree.h (splay_tree_max): New function.
1292 (splay_tree_min): Likewise.
1293
400ee7e1
DB
12942001-04-15 Daniel Berlin <dan@cgsoftware.com>
1295
1296 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1297
1298 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1299
d9697354
DD
13002001-04-03 Zack Weinberg <zackw@stanford.edu>
1301
1302 * make-temp-file.c (try): Inline.
1303
a7bf099b
DD
13042001-02-28 Richard Henderson <rth@redhat.com>
1305
1306 * Makefile.in (make-temp-file.o): Depend on config.h.
1307
30a1def2
DD
13082001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1309
1310 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1311
079c672a
DD
13122001-03-23 Jakub Jelinek <jakub@redhat.com>
1313
1314 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1315 `_' not followed by a digit is invalid.
1316
a88e356a
JB
13172001-03-22 Jim Blandy <jimb@redhat.com>
1318
1319 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1320 instead of free, to free the contents as well as the string
1321 structure.
1322
1dffcc66
DD
13232001-03-21 Zack Weinberg <zackw@stanford.edu>
1324
1325 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1326 Don't default P_tmpdir to anything. Try /var/tmp before
1327 /usr/tmp.
1328
13292001-03-20 Zack Weinberg <zackw@stanford.edu>
1330
1331 * choose-temp.c: Split off make_temp_file, and the code
1332 duplicated between it and choose_temp_base, into...
1333 * make-temp-file.c: ... here; new file.
1334
1335 * Makefile.in (CFILES): Add make-temp-file.c.
1336 (REQUIRED_OFILES): Add make-temp-file.o.
1337
e61231f1
JB
13382001-03-20 Jim Blandy <jimb@redhat.com>
1339
1340 * cp-demangle.c (struct demangling_def): New fields:
1341 is_constructor and is_destructor.
1342 (demangling_new): Initialize them.
1343 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1344 or destructor.
1345 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1346 is_gnu_v3_mangled_dtor): New functions.
1347
a9cbbe6d
DD
13482001-03-20 Jason Merrill <jason@redhat.com>
1349
1350 * cplus-dem.c (main): Skip initial $.
1351
b1e51b3c
DD
13522001-03-15 Michael Meissner <meissner@redhat.com>
1353
1354 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1355 might be a signed integer under pre-ISO C systems.
1356
8aa30e60 13572001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1358 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1359
8aa30e60
DD
1360 * libiberty/lbasename.c: New file.
1361 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1362
30673bf5
DD
13632001-03-06 Zack Weinberg <zackw@stanford.edu>
1364
1365 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1366 * configure.in: Replace all alloca logic with a simple use of
1367 the above new macro.
1368 * config.table: Kill *-*-beos* entry.
1369 * config/mh-beos: Delete.
1370 * configure, config.in: Regenerate.
fa03f0a7 1371
30673bf5
DD
1372 * Makefile.in (ALLOCA, HFILES): Kill.
1373 (REQUIRED_OFILES): Add alloca.o.
1374 (alloca.o): Depend on libiberty.h.
1375 (argv.o): Don't depend on alloca-conf.h.
1376 * alloca-conf.h: Delete.
1377 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1378 blocks. Provide the C alloca unconditionally. Use PTR where
1379 appropriate. Make i00afunc static.
1380 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1381
5810f394
DD
13822001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1383
1384 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1385
a9db032a
DD
13862001-02-16 Loren J. Rittle <ljrittle@acm.org>
1387
1388 * cplus-dem.c (main): Initialize style.
fa03f0a7 1389
8aefe91a
DD
13902001-02-02 Phil Edwards <pme@sources.redhat.com>
1391
1392 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1393
bc9bf259
DD
13942001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1395
1396 Add support for Java demangling under the v3 ABI:
1397 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1398 (struct demangling_def): Add `style' field.
1399 (demangling_new): New parameter `style'. Set it in demangling_t.
1400 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1401 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1402 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1403 (main): Call cp_demangle with extra parameter.
1404 (java_demangle_v3): New function.
1405 (java_builtin_type_names): New. Table of primitive type names used
1406 for Java demangling.
1407 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1408 Java output.
1409 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1410 demangling.
1411 (long_options): Remove obsolete `java' option.
1412 (main): Remove explicit handling of `java' option. Instead, pass style
1413 parameter in cplus_demangle flags as gdb does.
1414 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 1415
f6528837
DD
14162000-12-29 DJ Delorie <dj@redhat.com>
1417
1418 * fnmatch.c: Make the note about the origins of this file more
1419 accurate, at least until we can sync with glibc.
1420 * getopt.c: Ditto.
1421 * getopt1.c: Ditto.
1422 * md5.c: Ditto.
1423 * obstack.c: Ditto.
9d969b59 1424
c6da642e
DD
14252000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1426
1427 * bsearch.c: New file.
1428 * configure.in (funcs): Add bsearch.
1429 (AC_CHECK_FUNCS): Likewise.
1430 * configure, config.in: Regenerate.
1431
ae7d06ad 14322000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1433
1434 * safe-ctype.c: #include "ansidecl.h".
1435 * strtod.c: Likewise.
1436
ae7d06ad 14372000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1438
1439 * strtoul.c: Include safe-ctype.h, not ctype.h.
1440
ac424eb3
DD
14412000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1442
1443 * safe-ctype.c: New file.
1444 * Makefile.in (CFILES): Add safe-ctype.c.
1445 (REQUIRED_OFILES): Add safe-ctype.o.
1446
1447 * argv.c: Define ISBLANK and use it, not isspace.
1448 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1449 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1450 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1451 before calling TOLOWER(c)/TOUPPER(c).
1452
4415a860
DD
14532000-12-07 Mike Stump <mrs@wrs.com>
1454
1455 * Makefile.in (distclean): When cleaning, remove testsuite.
1456
849ee224
DD
14572000-12-05 Jason Merrill <jason@redhat.com>
1458
1459 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1460 name before allocating the dyn_string.
1461
ae7d06ad 14622000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1463
1464 * cp-demangle.c: s/new_abi/v3/.
1465 * cplus-dem.c: Likewise.
1466 (current_demangling_style): Now auto_demangling.
1467 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1468 (main): Use standard symbol chars for auto_demangling.
e49a569c 1469
ae7d06ad 14702000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1471
1472 * hashtab.c (higher_prime_number): Use a table, rather than a
1473 seive, to find the next prime.
ae7d06ad
NC
1474
14752000-11-22 H.J. Lu <hjl@gnu.org>
1476
1477 * cplus-dem.c (main): Handle gnat_demangling.
1478
14792000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1480
1481 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1482 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1483 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1484 argument form of AC_DEFINE in dummy definitions block. Use
1485 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1486 in dummy block. Preload cache variables instead of bypassing
1487 tests, where possible.
1488 * acconfig.h: Removed.
ae7d06ad 1489
2ea7befd
DD
1490 * xmalloc.c (xmalloc_failed): New function, does error
1491 reporting on failed allocation.
1492 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1493
f1775526
HPN
14942000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1495
1496 * cplus-dem.c (cplus_demangle): Fix formatting.
1497 (grow_vect): Ditto.
1498 (ada_demangle): Ditto.
1499 (internal_cplus_demangle): Ditto.
1500 (mop_up): Ditto.
1501
15022000-11-21 H.J. Lu <hjl@gnu.org>
1503
1504 * cplus-dem.c (main): Handle java_demangling.
1505
ae7d06ad 15062000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1507
1508 * cplus-dem.c (grow_vect): Prototype.
1509 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1510
5dd42ef4
HPN
15112000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1512
1513 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1514 parameter `option'.
1515
296731c1
DD
15162000-11-15 Kenneth Block <kenneth.block@compaq.com>
1517
8944fb9d 1518 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1519 be used in GCC.
1520
6e53a714 15212000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1522
5dd42ef4 1523 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1524 list.
1525
99a4c1bd
HPN
15262000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1527
1528 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1529 xcalloc depending on htab->return_allocation_failure. Return zero
1530 if calloc fails.
99a4c1bd
HPN
1531 (htab_create): Update comment to cover memory allocation.
1532 (htab_try_create): New.
1533 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1534 Update comment to cover this.
99a4c1bd 1535
e0f3df8f
HPN
15362000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1537
1538 * hashtab.c: Change void * to PTR where necessary.
1539 (htab_create, htab_expand): Correct formatting of comment before
1540 function.
1541
ae7d06ad 15422000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1543
1544 * cp-demangle.c (string_list_def): Add caret_position and comments.
1545 (result_caret_pos): New macro.
1546 (result_append_string): Rename to...
1547 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1548 Rename throughout.
59666b35
DD
1549 (result_append): Rename to...
1550 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1551 throughout.
59666b35
DD
1552 (result_append_char): Rename to...
1553 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1554 throughout.
59666b35
DD
1555 (result_append_space): Remove.
1556 (string_list_new): Initialize caret position.
1557 (result_add_separated_char): Use caret position.
1558 (result_get_caret): New funtion.
1559 (result_set_caret): Likewise.
1560 (result_shift_caret): Likewise.
1561 (result_previous_char_is_space): Likewise.
1562 (substitution_start): Use caret position.
1563 (substitution_add): Likewise.
1564 (demangling_new): Initialize caret position.
1565 (demangle_encoding): Use caret position.
ae7d06ad 1566 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1567 (demangle_type_ptr): Use switch statement. Handle pointers to
1568 arrays. Don't use result_append_space. Use caret position.
1569 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1570 call to demangle_array_type.
1571 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1572
ae7d06ad 15732000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1574
1575 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1576
15772000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1578
1579 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1580
15812000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1582
1583 * splay-tree.c: #include <stdio.h>.
1584
15852000-09-14 Hans-Peter Nilsson <hp@axis.com>
1586
1587 * testsuite/demangle-expected: Add two tests for anonymous
1588 namespaces.
1589 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1590
15912000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1592
1593 * splay-tree.c (splay_tree_predecessor): New function.
1594 (splay_tree_successor): Likewise.
ae7d06ad
NC
1595
15962000-09-10 Hans-Peter Nilsson <hp@axis.com>
1597
1598 * testsuite/demangle-expected: Add four tests for type_info
1599 mangling.
1600 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1601 for a non-template non-qualified type_info function or node.
1602
16032000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1604
1605 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1606
16072000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1608
1609 * md5.c: #include "ansidecl.h".
1610
16112000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1612
1613 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1614 (demangle_type): Handle substitution candidates correctly in the
1615 face of special substitutions.
ae7d06ad
NC
1616
16172000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1618
1619 * cp-demangle.c (demangle_encoding): Rename variable.
1620 (demangle_name): Rename parameter. Handle return type
1621 suppression.
1622 (demangle_nested_name): Rename parameter.
1623 (demangle_prefix): Likewise. Change return type suppression.
1624 (demangle_unqualified_name): Add parameter. Flag constructors and
1625 conversion operators.
1626 (demangle_special_name): Fix comment.
1627 (demangle_type): Rename variable.
1628 (demangle_bare_function_type): Check for missing return type and
1629 parameter.
1630 (demangle_class_enum_type): Rename parameter.
1631 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1632
16332000-08-31 DJ Delorie <dj@redhat.com>
1634
1635 * configure.in (Cygwin): special case cygwin only when we're
1636 building cygwin, not when we're hosting cygwin.
1637
16382000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1639
1640 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1641 <expression>.
ae7d06ad
NC
1642
16432000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1644
1645 * cp-demangle.c (demangle_type_ptr): Increment position past
1646 pointer and reference characters.
ae7d06ad
NC
1647
16482000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1649
1650 * cp-demangle.c (demangle_nv_offset): New function.
1651 (demangle_v_offset): Likewise.
1652 (demangle_call_offset): Likewise.
1653 (demangle_special_name): Update thunk demangling to comply with
1654 ABI changes.
ae7d06ad
NC
1655
16562000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1657
1658 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1659 (substitution_def): Remove template_parm_number.
1660 (NOT_TEMPLATE_PARM): Remove.
1661 (result_insert_string): New macro.
1662 (result_insert): Likewise.
1663 (result_insert_char): Likewise.
1664 (substitution_add): Remove last parameter. Don't store template
1665 parm number.
1666 (BFT_NO_RETURN_TYPE): Define as NULL.
1667 (demangle_encoding): Adjust call to demangle_bare_function_type.
1668 (demangle_name): Adjust substitution. Adjust call to
1669 substitution_add.
1670 (demangle_prefix): Adjust call to substitution_add.
1671 (demangle_identifier): Handle anonymous namespaces.
1672 (demangle_operator_name): Change demangling of vendor-extended
1673 operator to match ABI changes.
1674 (demangle_type_ptr): Change parameters. Make recursive. Handle
1675 substitutions here.
1676 (demangle_type): Adjust calls to demangle_template_param,
1677 substitution_add, and demangle_type_ptr. Fix substitution of
1678 templated types.
1679 (demangle_function_type): Change parameter to a pointer.
1680 (demangle_bare_function_type): Likewise. Adjust insertion point.
1681 (demangle_template_param): Remove last parameter.
1682 (demangle_expr_primary): Remove unused variable. Adjust call to
1683 demangle_template_param.
1684 (is_mangled_char): Accept `$' and `.'.
1685 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1686 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1687
16882000-08-31 Hans-Peter Nilsson <hp@axis.com>
1689
1690 * testsuite/demangle-expected: Add nine tests for
1691 underscore-after-number followed by five tests for name-signature
1692 delimiter.
1693
16942000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1695
1696 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1697
16982000-08-28 Jason Merrill <jason@redhat.com>
1699
1700 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1701 (CFILES): Add md5.c.
1702 * md5.c: New file.
1703
17042000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1705
1706 * cp-demangle.c (demangle_name): Initialize template_p in local
1707 name case. Don't re-add substitutions as candidates.
1708 (demangle_nested_name): Use <unqualified-name>.
1709 (demangle_prefix): Likewise. Don't add template names as
1710 substitution candidates twice, or re-add a substitution or the
1711 last prefix component.
1712 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1713
17142000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1715
1716 * cp-demangle.c (result_add_separated_char): Change parameter to
1717 int.
1718 (substitution_add): Don't check for duplicates. Check if
1719 previously allocated size is zero.
1720 (demangle_name): Remove duplicate check for std substitution.
1721 Clear template flag appropriately.
1722 (demangle_prefix): Remove argument to demangle_substitution.
1723 Don't check that template flag is already set.
1724 (demangle_operator_name): Add pt operator.
1725 (demangle_type): Don't treat r as built-in type. Remove argument
1726 to demangle_substitution. Fix substitution candidate mechanics.
1727 Handle <template-template-parm>s. Improve comments.
1728 (demangle_template_param): Don't handle template arg lists here.
1729 (demangle_substitution): Remove parameter.
1730 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1731
17322000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1733
1734 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1735
17362000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1737
1738 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1739 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1740 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1741
17422000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1743
1744 * cp-demangle.c (result_close_template_list): Remove function.
1745 (result_add_separated_char): New function.
1746 (result_open_template_list): New macro.
1747 (result_close_template_list): Likewise.
1748 (demangle_prefix): Don't set template_p if the
1749 prefix ends with a ctor name.
1750 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1751 (demangle_type): Check for template args after substitution.
1752 (demangle_template_args): Use result_open_template_list.
d3e85005 1753
ae7d06ad 17542000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1755
ae7d06ad 1756 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1757
ae7d06ad 17582000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1759
1760 * config/mh-openedition.h: Added -DLE370 definition.
1761
a9f34fb6
JL
17622000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1763
1764 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1765 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1766 Cast program to 'char *' in errmsg_arg assignment.
1767 (PWAIT_ERROR): Define.
1768 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1769 to DJGPP's WIF* macros.
1770
90aaccd1 17712000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1772 Jeff Law <law@cygnus.com>
90aaccd1 1773
ae7d06ad 1774 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1775
90aaccd1 1776 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1777 * rename.c: Include config.h, unistd.h
1778 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1779
6ef554e3
HPN
17802000-07-24 Hans-Peter Nilsson <hp@axis.com>
1781
1782 * cplus-dem.c (work_stuff_copy_to_from): New.
1783 (delete_non_B_K_work_stuff): New.
1784 (delete_work_stuff): New.
1785 (mop_up): Break out work_stuff partly destruction to
1786 delete_non_B_K_work_stuff.
1787 (iterate_demangle_function): New.
1788 (demangle_prefix): Call iterate_demangle_function instead of
1789 demangle_function_name. Leave handling of name-signature
1790 __-delimiters to iterate_demangle_function.
1791 (demangle_integral_value): Strip an optional
1792 following underscore cautiously. Handle negative numbers.
1793
ae7d06ad 17942000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1795
ae7d06ad 1796 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1797 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1798
ae7d06ad
NC
17992000-07-21 Alex Samuel <samuel@codesourcery.com>
1800
1801 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1802 allocating ctor mangling.
1803 (demangle_array_type): Handle empty and non-constant array length.
1804
b1233257 18052000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1806 Jeff Law <law@cygnus.com>
1807
1808 * configure.in (AC_CHECK_HEADERS): Add time.h.
1809 (AC_HEADER_TIME): Add check.
1810 * configure, config.in: Regenerate.
1811 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1812
1813 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1814 * configure, config.in: Regenerate.
1815 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1816 * strtol.c, strtoul.c: #include "config.h". Portably #include
1817 <limits.h> and/or <sys/param.h>.
1818 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 1819
7d3ffcaf
JL
1820 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1821 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1822 * configure, config.in: Regenerate.
1823 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1824
b1233257
JL
1825 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1826
ae7d06ad
NC
18272000-07-21 Mike Stump <mrs@wrs.com>
1828
1829 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1830 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1831
18322000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1833
1834 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1835
1836 * setenv.c (setenv): Initialize variable `ep'.
1837
1838 * sigsetmask.c (abort): Prototype.
1839
1840 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1841 __STDC__ for stdarg.h include.
1842 (int_vasprintf): Prototype.
1843 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1844 definition. Cast `global_total_width' in comparison.
1845 (main): Prototype. Return a value.
1846
1847 * vfork.c (fork): Prototype.
1848
1849 * xexit.c: Include config.h.
1850
9adf30b2
JL
18512000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1852
1853 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1854 and print it with %u.
1855
2ed78d1b
HPN
18562000-07-17 Hans-Peter Nilsson <hp@axis.com>
1857
1858 * testsuite/regress-demangle (failed test): Show result and
1859 expected output.
1860
0473bdf7
AH
18612000-07-07 Andrew Haley <aph@cygnus.com>
1862
1863 * cplus-dem.c (main): fflush() after emitting last char before
1864 waiting for input.
1865
03d5f569
JM
18662000-06-28 Alex Samuel <samuel@codesourcery.com>
1867
1868 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1869 (demangle_name): Handle <substitution> followed by
1870 <unqualified-template-name>.
1871 (demangle_type): Follow special substitutions with
1872 <class-enum-type>
1873 (demangle_subtitution): Set template_p for special substitutions.
1874 (main): Fix typos.
ae7d06ad 1875
03d5f569
JM
18762000-06-27 Alex Samuel <samuel@codesourcery.com>
1877
1878 * cp-demangle.c (demangle_special_name): Swap base and derived
1879 class when demangling construction vtables.
1880
18812000-06-21 Alex Samuel <samuel@codesourcery.com>
1882
1883 * cp-demangle.c: Don't include ctype.h.
1884 (IS_DIGIT): New macro.
1885 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1886 instead of isdigit and isalpanum.
1887 (demangling_def): Make name and next const pointers.
1888 (STATUS_ALLOCATION_FAILED): New status code.
1889 (dyn_string_append_space): Handle failure in
1890 dyn_string_append_char.
1891 (int_to_dyn_string): Likewise. Change return value to status_t.
1892 (string_list_new): Handle failure of dyn_string_init.
1893 (result_close_template_list): Change return type to status_t.
1894 Handle failure in dyn_string_append.
1895 (result_push): Change return value to status_t. Handle failure in
1896 string_list_new. Handle failure of result_push throughout.
1897 (substitution_add): Change return value to status_t. Handle
1898 dyn_string failures. Handle failure of substitution_add
1899 throughout.
1900 (template_arg_list_new): Return NULL on allocation failure.
1901 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1902 Handle error result throughout.
1903 (result_append): Likewise.
1904 (result_append_char): Likewise.
1905 (result_append_space): Likewise.
1906 (demangling_new): Make argument a const pointer. Handle
1907 allocation failures.
1908 (demangle_template_args): Handle failure in template_arg_list_new
1909 and result_close_template_list.
1910 (demangle_discriminator): Return if int_to_dyn_string fails.
1911 (cp_demangle): Likewise.
1912 (cp_demangle_type): New function.
1913 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1914 memory allocation failure.
1915 (main): Likewise.
1916 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1917 IN_LIBGCC2.
1918 (dyn_string_init): Change return value to int. Handle
1919 RETURN_ON_ALLOCATION_FAILURE case.
1920 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1921 (dyn_string_release): Delete the dyn_string.
1922 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1923 (dyn_string_copy): Change return type to int.
1924 (dyn_string_copy_cstr): Likewise.
1925 (dyn_string_prepend): Likewise.
1926 (dyn_string_prepend_cstr): Likewise.
1927 (dyn_string_insert): Likewise.
1928 (dyn_string_insert_cstr): Likewise.
1929 (dyn_string_append): Likewise.
1930 (dyn_string_append_cstr): Likewise.
1931 (dyn_string_append_char): Likewise.
1932 (dyn_string_substring): Likewise.
ae7d06ad 1933
eb383413 19342000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1935
eb383413
L
1936 * cp-demangle.c (demangle_operator_name): Add spaces before
1937 names beginning with a letter: delete, delete[], new, new[],
1938 sizeof.
1939 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1940
eb383413
L
1941Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1942
1943 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1944
1945Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1946
1947 * cp-demangle.c (stdio.h): File included unconditionaly.
1948 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1949 * dyn-string.c (stdio.h): File included.
1950 * partition.c (partition_print): No `&' needed to take the address of
1951 a function.
1952
19532000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1954
1955 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1956
eb383413
L
1957 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1958
1959 * cp-demangle.c (demangle_char): Change parameter from char to int.
1960 (demangle_expression, demangle_expr_primary): Remove extra
1961 semi-colon in prototype.
1962
1963 * dyn-string.c (dyn_string_append_char): Change parameter from
1964 char to int.
1965
1966 * memcmp.c (memcmp): Constify.
1967
1968 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1969 __extension__.
1970
1971 * partition.c (elem_compare): Prototype. Don't cast away
1972 const-ness.
1973
1974 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1975
eb383413
L
19762000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1977
1978 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1979
1980 * cp-demangle.c: Include demangle.h.
1981 (template_arg_list_new): DeANSIfy.
1982 (cp_demangle): Make static and add prototype.
1983 (operator_code, operators): Constify.
1984 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1985
19862000-06-05 Alex Samuel <samuel@codesourcery.com>
1987
1988 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1989 unsigned char.
1990 (demangle_unqualified_name): Likewise.
1991 (demangle_number_literally): Likewise.
1992 (demangle_type): Likewise.
1993 (demangle_substitution): Likewise.
1994 (is_mangled_char): Likewise, for isalnum.
1995
19962000-06-04 Alex Samuel <samuel@codesourcery.com>
1997
1998 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1999 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2000 (cp-demangle.o): New dependency.
2001 (dyn-string.o): Likewise.
2002
2003 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2004
2005 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2006 demangler.
2007 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2008 demangling mode.
2009 (gnu_new_abi_symbol_characters): New function.
2010 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2011 file.
2012 * cp-demangle.c: New file.
ae7d06ad 2013
f03aa80d
AC
2014Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2015
2016 * floatformat.c: Add name to each floatformat field.
2017
77bfb694
JL
2018Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2019
2020 * Makefile.in (objalloc.o): Depend on config.h
2021
5c82d20a
ZW
20222000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2023
eb383413 2024 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
2025 if HAVE_STRING_H.
2026 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2027 * objalloc.c: Include config.h. Include stdlib.h and don't
2028 declare malloc or free if HAVE_STDLIB_H.
2029 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
2030 else declare malloc without prototype. Include string.h if
2031 HAVE_STRING_H, else declare memset without prototype. Don't
2032 include stddef.h.
2033
eb383413
L
20342000-05-23 Mike Stump <mrs@wrs.com>
2035
2036 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 2037 -j3.
eb383413
L
2038
20392000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2040
2041 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2042
20432000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2044
ae7d06ad 2045 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
2046 probably zero, also eliminate a warning on alpha.
2047
20482000-05-15 David Edelsohn <edelsohn@gnu.org>
2049
2050 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
2051 on $(enable_shared).
2052
20532000-05-10 Jakub Jelinek <jakub@redhat.com>
2054
2055 * config.table: Use mh-sparcpic for sparc*-*-*.
2056
20572000-05-08 Nick Clifton <nickc@cygnus.com>
2058
2059 * Makefile.in (CFILES): Add strncmp.c.
2060 (NEEDED): Add strncmp.
2061
20622000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 2063
eb383413
L
2064 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2065 Cast the arguments to `islower' to `unsigned char'.
2066 (print_demangler_list): Prototype.
2067
2068Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2069
2070 * sort.c (UCHAR_MAX): Provide fallback definition.
2071
20722000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
2073
2074 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2075 SUBDIRS.
2076
eb383413
L
20772000-04-28 Kenneth Block <block@zk3.dec.com>
2078 Jason Merrill <jason@casey.cygnus.com>
2079
ae7d06ad
NC
2080 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2081 (cplus_demangle_set_style): New function for setting style.
2082 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
2083
20842000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2085
2086 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2087
2088 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2089 (libiberty_AC_FUNC_STRNCMP): Invoke.
2090
2091 * strncmp.c: New file.
2092
2093Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2094
2095 * hashtab.c (htab_expand): Add prototype.
2096 (find_empty_slot_for_expand): Likewise.
2097
20982000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2099
2100 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2101 match prototype.
2102 (htab_expand): Cast the return value of xcalloc.
2103
21042000-04-24 Mark Mitchell <mark@codesourcery.com>
2105
2106 * hashtab.c (hash_pointer): New function.
2107 (eq_pointer): Likewise.
2108 (htab_hash_pointer): New variable.
2109 (htab_eq_pointer): Likewise.
2110
21112000-04-23 Mark Mitchell <mark@codesourcery.com>
2112
2113 * sort.c (sort_pointers): Fix endianness bugs.
2114
2115 * sort.c: New file.
2116 * Makefile.in (CFILES): Add sort.c
2117 (REQUIRED_OFILES): Add sort.o.
2118 (sort.o): New target.
2119
19be4303
JL
21202000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2121
2122 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2123 4.3BSD systems.
2124
eb383413
L
2125Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2126
2127 * hashtab.c: Various minor cleanups.
2128 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2129 (htab_find_slot): Likewise.
2130
21312000-04-16 Dave Pitts <dpitts@cozx.com>
2132
2133 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 2134
afe36a78
RH
21352000-04-05 Richard Henderson <rth@cygnus.com>
2136
2137 * splay-tree.c (splay_tree_remove): New.
2138
eb383413
L
21392000-03-30 Mark Mitchell <mark@codesourcery.com>
2140
2141 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2142 codes.
2143 (htab_find_with_hash): Likewise.
2144 (htab_find_slot_with_hash): Likewise.
ae7d06ad 2145
eb383413
L
21462000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2147
2148 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2149 unless it will be used. Rearrange loop for better
2150 optimization.
2151 (higher_prime_number): Add static prototype.
2152
b4fe2683
JM
2153Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2154
2155 * Makefile.in (partition.o): Depend on config.h
2156
21572000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2158
2159 * hashtab.c (find_empty_slot_for_expand): New function.
2160 (htab_expand): Use it instead of htab_find_slot.
2161 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2162 argument HASH.
2163 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2164 (htab_find): New wrapper function.
2165 (htab_find_slot): Likewise.
2166 (htab_traverse): Pass slot, not entry, to called function.
2167
21682000-03-09 Alex Samuel <samuel@codesourcery.com>
2169
2170 * Makefile.in (CFILES): Add partition.c.
2171 (REQUIRED_OFILES): Add partition.o.
2172 (partition.o): New rule.
2173 * partition.c: New file.
ae7d06ad 2174
b4fe2683
JM
21752000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2176
2177 * hashtab.c (htab_create): Set del_f.
2178 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2179 Use it.
2180
21812000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2182
2183 * hashtab.c: Remove debugging variables (all_searches,
2184 all_collisions, all_expansions). Delete
2185 all_hash_table_collisions.
2186 (create_hash_table, delete_hash_table, empty_hash_table,
2187 find_hash_table_entry, remove_element_from_hash_table_entry,
2188 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2189 hash_table_elements_number, hash_table_collisions): Rename to:
2190 htab_create, htab_delete, htab_empty, htab_find_slot,
2191 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2192 htab_elements, htab_collisions.
2193 (htab_find): New function, handles common case where you don't
2194 plan to add or delete an entry.
2195 (htab_expand): Don't create a whole new table, just a new
2196 entry vector.
2197 (htab_find_slot): Simplify logic.
2198
08372f14
ILT
21991999-08-03 Ian Lance Taylor <ian@zembu.com>
2200
2201 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2202 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2203
2204 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2205 $(TARGETLIB)n so it works on MSDOS.
2206 (install_to_tooldir): Likewise.
2207
9c8ac5a9
ILT
22081999-07-21 Ian Lance Taylor <ian@zembu.com>
2209
2210 From Mark Elbrecht:
2211 * makefile.dos: Remove; obsolete.
8f36e47c 2212 * configure.bat: Remove; obsolete.
9c8ac5a9 2213
0c0a36a4
ILT
22141999-07-11 Ian Lance Taylor <ian@zembu.com>
2215
2216 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2217 warning.
2218
22192000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2220
2221 * pexecute.c: Conditionally include string.h.
b4fe2683 2222 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
2223
22242000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2225
2226 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2227 we're using gcc.
2228
2229 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2230
22311999-12-27 Geoff Keating <geoffk@cygnus.com>
2232
2233 * vasprintf.c (int_vasprintf): Don't re-read the format character
2234 as this mishandles strings like '%%s'.
2235
22361999-12-05 Mark Mitchell <mark@codesourcery.com>
2237
2238 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2239 rather than struct splay_tree_node.
2240 (splay_tree_insert): Use struct splay_tree_s rather than struct
2241 splay_tree.
2242
2243Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2244
2245 * hashtab.c (sys/types.h): File included.
2246
22471999-11-22 Jason Merrill <jason@casey.cygnus.com>
2248
2249 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2250 BSD license, pursuant with
2251
2252 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2253
2254Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2255
2256 * hashtab.c: Include stdio.h.
2257
2258Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2259
2260 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2261
2262Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2263
2264 * xstrdup (sys/types.h): Include this file.
2265
22661999-10-28 Nathan Sidwell <nathan@acm.org>
2267
2268 * Makefile.in (SUBDIRS): New macro.
2269 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2270 avoid multiple subdirectory cleaning.
2271 (*-subdir): Use SUBDIRS.
2272
22731999-10-25 Jim Kingdon <http://developer.redhat.com/>
2274
2275 * cplus-dem.c: Move declarations of standard_symbol_characters and
2276 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2277 warnings.
2278
22791999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2280
2281 * hashtab.c (find_hash_table_entry): When returning a
2282 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2283 (clear_hash_table_slot): New function which deletes an entry
2284 by its position in the table, not its value.
2285 (traverse_hash_table): New function which calls a hook
2286 function for every live entry in the table.
2287
22881999-10-19 Mark Mitchell <mark@codesourcery.com>
2289
2290 * cplus-dem.c (INTBUF_SIZE): New macro.
2291 (string_append_template_idx): New function.
2292 (demangle_expression): Likewise.
2293 (demangle_integral_value): Use it.
2294 (demangle_real_value): New function, split out from ...
2295 (demangle_template_value_parm): ... here. Use
2296 string_append_template_idx. Use demangle_real_value.
2297 (demangle_template): Use string_append_template_idx.
2298 (demangle_qualified): Use consume_count_with_underscores.
2299 (get_count): Tweak formatting.
2300 (do_type): Use string_append_template_idx.
b4fe2683 2301
0c0a36a4
ILT
23021999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2303
2304 * calloc.c: Add a public domain notice.
2305
2306Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2307
2308 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2309
2310Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2311
2312 * Makefile.in (CFILES): Add hashtab.c
2313 (REQUIRED_OFILES): Add hashtab.o
2314 (hashtab.o): Add dependencies.
2315 * hashtab.c: New file
2316
2317Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2318
2319 * basename.c (DIR_SEPARATOR): New macro.
2320 (DIR_SEPARATOR_2): Likewise.
2321 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2322 (IS_DIR_SEPARATOR): Likewise.
2323 (main): Handle MSDOS style pathname.
2324
23251999-10-11 Mark Mitchell <mark@codesourcery.com>
2326
2327 * cplus-dem.c (do_type): Handle pointer to member types whose
2328 enclosing classes have namespace scope.
2329
2330Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2331
2332 * config.table: Provide a backup shell for executing move-if-change.
2333
23341999-10-02 Mark Mitchell <mark@codesourcery.com>
2335
2336 * xmalloc.c (xmalloc): Fix spelling error.
2337 (xcalloc, xrealloc): Likewise.
2338
23391999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2340
2341 * cplus-dem.c (fancy_abort, demangle_integral_value,
2342 demangle_arm_hp_template, recursively_demangle,
2343 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2344 (program_name, program_version, fatal): Constify a char*.
2345 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2346 (main): Call return, not exit.
2347
23481999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2349
2350 * choose-temp.c: Remove obsolete comment about gcc.
2351 (make_temp_file): Constify a char*.
2352
2353Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2354
2355 * xmemdup.c: Include sys/types.h.
2356
23571999-09-07 Jeff Garzik <jgarzik@pobox.com>
2358
2359 * xmemdup.c: New xmemdup function.
2360 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2361
2362Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2363
b4fe2683 2364 * config.table: Add openedition target.
0c0a36a4
ILT
2365 * config/mh-openedition: New file.
2366
2367Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2368
2369 * pexecute.c (pexecute): Fill in temp_base when needed.
2370
23711999-08-31 Richard Henderson <rth@cygnus.com>
2372
2373 * getpwd.c: Check HAVE_GETCWD before defining it away.
2374
23751999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2376
2377 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2378 (REQUIRED_OFILES): Add getpwd.o.
2379 (getpwd.o): Add target.
2380
2381 * configure.in (AC_PREREQ): Bump to 2.13.
2382 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2383
2384 * getpwd.c: New file, moved here from gcc.
2385
23861999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2387
2388 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2389 comparing against a signed quantity.
2390 (arm_special): Likewise.
2391 (demangle_fund_type): Likewise.
2392 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2393 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2394 (main): Constify variable `valid_symbols'.
2395
2396Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2397
2398 * strtoul.c (strtoul): Add parentheses around && within ||.
2399
2400Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2401
2402 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2403 libdir, libsubdir and tooldir.
2404
24051999-08-01 Mark Mitchell <mark@codesourcery.com>
2406
2407 * splay-tree.c (splay_tree_insert): Return the new node.
2408
35ca97ea
RH
24091999-07-14 Richard Henderson <rth@cygnus.com>
2410
b4fe2683 2411 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
2412 prototyping directly.
2413 * choose-temp.c: Conditionally include string.h.
2414
0c0a36a4
ILT
24151999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2416
2417 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2418
af32ff69
ILT
24191999-07-11 Ian Lance Taylor <ian@zembu.com>
2420
2421 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2422 warning.
2423
0c0a36a4
ILT
24241999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2425
2426 * Makefile.in (needed-list): Only include stuff we actually need
2427 for libstdc++.
2428
24291999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2430
2431 * configure.in (checkfuncs): Add gettimeofday.
2432 * config.in, configure: Regenerated.
2433
2434Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2435
2436 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2437 the test fails.
2438 * configure: Regenerate.
2439
24401999-06-10 Mike Stump <mrs@wrs.com>
2441
2442 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2443 parallel builds.
2444
24451999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2446
2447 * putenv.c: Include ansidecl.h to define `const'.
2448 * setenv.c: Likewise.
2449
2450Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2451
2452 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2453 * configure.in (funcs): Add putenv and setenv.
2454 (AC_CHECK_FUNCS): Check for putenv and setenv.
2455 * configure: Rebuilt.
2456 * putenv.c setenv.c: New files.
2457
2458 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2459 bytes of space using malloc.
2460
2461Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2462
2463 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2464 the *mangled pointer beyond the end of the string. Clean up code to
2465 match prevailing coding style.
2466
24671999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2468
2469 * tmpnam.c (L_tmpnam): Fix typo.
2470
2471Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2472
2473 * cplus-dem.c (standard_symbol_characters): Renamed from
2474 standard_symbol_alphabet. No longer modify TABLE.
2475 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2476 modify TABLE.
2477 (main): Corresponding changes. Use strchr to determine if a
2478 character is valid.
2479
e9868447
JB
24801999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2481
2482 * cplus-dem.c (main): Use table lookup to distinguish identifier
2483 characters from non-identifier characters.
2484 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2485
33fbbfbc
RH
2486Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2487
2488 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2489 * getruntime.c: Only attempt to include sys/resource.h and
2490 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2491 are defined.
2492
0c0a36a4
ILT
2493Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2494
2495 * configure.in (alloca detection): Handle alloca directly for interix.
2496 * configure: Rebuilt.
2497
2498Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2499
2500 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2501
252b5132
RH
25021999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2503
2504 Fix from Dale Hawkins:
b4fe2683 2505 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2506 reallocated properly if we use it again.
2507
2508 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2509 stricter about syntax. Always null-terminate string.
2510
c1687039
ILT
2511Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2512
2513 * configure.in (checkfuncs): Check for sbrk.
2514 * config.in: Rebuilt.
2515 * configure: Likewise.
2516 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2517
0c0a36a4
ILT
25181999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2519
2520 Fix from Marcus Daniels:
2521 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2522 identifier looking for another underscore.
2523
2524Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2525
2526 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2527 * xmalloc.c: Likewise.
2528 (xcalloc): UWIN has sbrk.
2529 (xrealloc): Fix guard macro.
2530
252b5132
RH
25311999-04-11 Richard Henderson <rth@cygnus.com>
2532
2533 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2534 or <alloca.h>.
2535 * clock.c (GNU_HZ): New definition.
2536 (clock): Use it.
2537 * getruntime.c: Likewise.
2538
2539 * config.table: Use mh-beos.
2540 * config/mh-beos: New file.
2541
0c0a36a4
ILT
25421999-04-11 Mark Mitchell <mark@codesourcery.com>
2543
2544 * cplus-dem.c (demangle_template_value_parm): Handle
2545 pointers-to-members.
2546 (do_type): Handle template parameters as qualifiers.
2547
252b5132
RH
25481999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2549
2550 * cplus-dem.c: Attempt to handle overflows in counts with some
2551 semblance of grace.
2552 (consume_count): Detect overflows. Return -1 to indicate errors,
2553 instead of zero.
2554 (demangle_template_value_parm, demangle_template): Handle change
2555 to consume_count's return convention.
2556
0c0a36a4
ILT
25571999-04-05 Tom Tromey <tromey@cygnus.com>
2558
2559 * testsuite/regress-demangle: New file.
2560 * testsuite/demangle-expected: New file.
252b5132 2561
0c0a36a4
ILT
2562 * Makefile.in (all, check, installcheck, info, install-info,
2563 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2564 distclean, maintainer-clean, realclean): Depend on corresponding
2565 `-subdir' target.
2566 (all-subdir check-subdir installcheck-subdir info-subdir
2567 install-info-subdir clean-info-subdir dvi-subdir
2568 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2569 distclean-subdir maintainer-clean-subdir): New target.
2570 * testsuite/Makefile.in: New file.
2571 * configure: Rebuilt.
2572 * configure.in: Create testsuite/Makefile.
252b5132
RH
2573
25741999-04-02 Mark Mitchell <mark@codesourcery.com>
2575
2576 * splay-tree.h (splay_tree_compare_pointers): Define.
2577
25781999-03-30 Mark Mitchell <mark@codesourcery.com>
2579
2580 * splay-tree.c (splay_tree_compare_ints): Define.
2581
25821999-03-30 Tom Tromey <tromey@cygnus.com>
2583
2584 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2585 don't advance input pointer.
2586 (demangle_class_name): If consume_count didn't find a count, do
2587 nothing. Don't bother with `strlen' sanity check; consume_count
2588 does it for us.
2589
25901999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2591
2592 From Art Haas <ahaas@neosoft.com>:
2593 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2594 when doing arm or hp style.
2595 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2596
252b5132
RH
2597Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2598
2599 * pexecute.c (__CYGWIN32__): Rename to
2600 (__CYGWIN__): this.
2601 * xmalloc.c: Likewise.
2602
2603 Changes to support i386-pc-uwin.
2604 * configure.in (*-*-uwin*): Workaround for vfork bug.
2605 * configure: Regenerate.
2606 * pexecute.c (pexecute): Be like standard Unix.
2607 (pwait): Likewise.
2608 * xmalloc.c (first_break): Define.
2609 (xmalloc_set_program_name): Use.
2610 (xmalloc): Use.
2611
2612Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2613
2614 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2615
2616Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2617
2618 * config.table: Check cygwin*, not cygwin32*.
2619
2620Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2621
2622 * Makefile.in: Change mkstemp -> mkstemps.
2623
2624Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2625
2626 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2627 * configure.in (funcs): Check for and conditionally add mkstemps to
2628 the list of functions libiberty will provide.
2629 * configure: Rebuilt.
b4fe2683 2630
252b5132
RH
2631Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2632
b4fe2683 2633 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2634 platforms that don't have HZ.
2635 * getruntime.c (HZ): Likewise.
2636
2637Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2638
2639 * Makefile.in (xstrdup.o): Depend on config.h.
2640
2641Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2642
2643 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2644 freeing it.
2645
2646Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2647
2648 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2649
2650Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2651
2652 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2653 splay-tree.o.
2654
26551999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2656
2657 * configure.in: Require autoconf 2.12.1 or higher.
2658
26591998-12-30 Michael Meissner <meissner@cygnus.com>
2660
2661 * random.c (NULL): Don't redefine NULL if it is already defined.
2662
2663Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2664
2665 * argv.c (buildargv): Cast the result of alloca in assignment.
2666
2667 * choose-temp.c: Include stdlib.h.
2668
2669 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2670 (snarf_numeric_literal): Constify first parameter.
2671 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2672 int, not a char.
252b5132
RH
2673 (demangle_qualifier): Likewise.
2674 (demangle_signature): Cast the argument of a ctype function to
2675 unsigned char.
2676 (arm_pt): Add parens around assignment used as truth value.
2677 (demangle_arm_hp_template): Constify variable `args'.
2678 (do_hpacc_template_const_value): Cast the argument of a ctype
2679 function to unsigned char.
2680 (do_hpacc_template_literal): Remove unused variable `i'.
2681 (snarf_numeric_literal): Constify parameter `args'.
2682 Cast the argument of a ctype function to unsigned char.
2683
2684 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2685 avoid ambiguous `else'.
252b5132
RH
2686
2687 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2688 `cstart' and `cend' to unsigned char. Cast the argument of macro
2689 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2690
2691 * objalloc.c (free): Add prototype.
2692
2693Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2694
2695 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2696
2697Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2698
2699 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2700 doesn't exist.
252b5132 2701 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2702
252b5132
RH
2703Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2704
2705 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2706 bumping the pointer we read from. Also prepend these codes,
2707 as we do in other places.
2708
27091998-12-18 Nick Clifton <nickc@cygnus.com>
2710
2711 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2712 'const char *' in order to match its usage when calling siblings.
2713 (snarf_numeric_literal): Make first arg 'const char **' in order
2714 to match usage.
2715
2716Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2717
2718 * choose-temp.c: Don't check IN_GCC anymore.
2719
2720 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2721 * memchr.c (memchr): Likewise.
2722 * memcpy.c (memcpy): Likewise.
2723 * memmove.c (memmove): Likewise.
2724
2725 * mkstemp.c: Don't check IN_GCC anymore.
2726 * pexecute.c: Likewise.
2727 * splay-tree.c: Likewise.
2728
2729 * strchr.c (strchr): Use `const', not `CONST'.
2730 * strrchr.c (strrchr): Likewise.
2731 * strtol.c (strtol): Likewise.
2732 * strtoul.c (strtoul): Likewise.
2733
2734Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2735 Elena Zannoni <ezannoni@cygnus.com>
2736 Stan Shebs <shebs@cygnus.com>
2737 Edith Epstein <eepstein@cygnus.com>
2738 Andres MacLeod <amacleod@cygnus.com>
2739 Satish Pai <pai@apollo.hp.com>
2740
2741 * HP aCC demangling support.
2742 * cplus-dem.c
2743 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2744 demangling correctly when -edg specified; set the demangling style
2745 when user specifies 'edg'. Set strip_underscore to
2746 prepends_underscore, if not HPUXHPPA. Set
2747 current_demangling_style to hp_demangling if HPUXHPPA. Set
2748 current demangling style correctly if the switch is hp. Read
2749 label correctly also in the HP style case.
252b5132 2750 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2751 function.
252b5132 2752 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2753 style for this case is the same as ARM.
252b5132
RH
2754 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2755 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2756 demangle_arm_pt.); check and set value of temp_start field in
2757 multiple places. Also, when ceching for end of template args,
2758 check to see if at end of static member of template class.
252b5132 2759 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2760 include template args in string defining class.
252b5132
RH
2761 (demangle_class_name): use demangel_arm_hp_template.
2762 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2763 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2764 Handle EDG_DEMANGLING style. Handle constructor and destructor
2765 ops for HP style.
252b5132 2766 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2767 styles. global destructor and constructor for HP style are same
2768 as for ARM style. Same for local variables.
252b5132
RH
2769 (demangle_qualified): handle EDG_DEMANGLING style.
2770 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
2771 cases '1' - '9' : initialize the temp_start field to -1 and handle
2772 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2773 and AUTO_DEMANGLING styles. If expecting a function and managed
2774 to demangle the funct args, then handle the LUCID_DEMANGLING,
2775 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2776 class name after "Lnnn_ in HP style case. HP style too needs to
2777 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 2778 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2779 value param for HP/aCC.
252b5132 2780 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2781 literal parameter for HP aCC.
252b5132
RH
2782 (recursively_demangle): new function
2783 (snarf_numeric_literal): new function.
2784 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2785 to message.
252b5132
RH
2786
2787Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2788
2789 * pexecute.c: Remove obsolete ifdefed cygwin code.
2790
2791Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2792
2793 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2794 * cplus-dem.c: Likewise. Conform to libiberty.h.
2795 * pexecute.c: Likewise.
2796 * splay-tree.c: Likewise.
2797
27981998-11-25 Mike Stump <mrs@wrs.com>
2799
2800 * Makefile.in (splay-tree.o): Add config.h dependency.
2801
2802Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2803
2804 * configure.in: Use AC_PREREQ(2.12.1).
2805
28061998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2807
b4fe2683 2808 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2809
2810Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2811
2812 * mpw.c (mpw_access): Add missing parens.
2813
2814Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2815
2816 * configure.in: Call AC_HEADER_SYS_WAIT.
2817
2818 * pexecute.c: Include sys/wait.h when !IN_GCC.
2819
2820Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2821
2822 * pexecute.c: revert back to checking old Cygwin
2823 preprocessor symbol until some time has passed.
2824
2825Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2826
2827 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2828 since it will now support similar constructs.
2829
2830Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2831
2832 * configure.in: Check for calloc.
2833
2834 * calloc.c: New file.
2835
2836 * xmalloc.c (xcalloc): New function.
2837
2838Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2839
2840 *cplus-dem.c (demangle_prefix): Use the last "__"
2841 in the mangled name when looking for the signature. This allows
2842 template names to begin with "__".
2843
28441998-11-08 Mark Mitchell <mark@markmitchell.com>
2845
2846 * cplus-dem.c (type_kind_t): Add tk_reference.
2847 (demangle_template_value_parm): Handle it.
2848 (do_type): Use it for references, instead of tk_pointer.
2849
2850 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2851 not internal_cplus_demangle.
2852
2853Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2854
2855 * choose-temp.c: Don't include gansidecl.h.
2856 * mkstemp.c: Likewise.
2857 * pexecute.c: Likewise.
2858
2859Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2860
b4fe2683
JM
2861 * configure.in: detect cygwin* instead of cygwin32*
2862 * configure: regenerate
252b5132
RH
2863
2864Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2865
2866 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
2867 whether to include config.h. Possibly include unistd.h in the
2868 !IN_GCC case. Define VFORK_STRING as a printable function call
2869 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2870 defined, include vfork.h. If VMS is defined, define vfork()
2871 appropriately. Remove vfork check on USG, we're using autoconf.
2872 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2873 locally what string to use.
252b5132
RH
2874
28751998-10-26 Mark Mitchell <mark@markmitchell.com>
2876
2877 * splay-tree.c: Tweak include directives to make sure declarations of
2878 xmalloc and free are available.
2879
28801998-10-25 Mark Mitchell <mark@markmitchell.com>
2881
2882 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2883 anonymous namespaces.
2884
28851998-10-23 Mark Mitchell <mark@markmitchell.com>
2886
2887 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2888 with type_quals.
2889 (TYPE_UNQUALIFIED): New macro.
2890 (TYPE_QUAL_CONST): Likewise.
2891 (TYPE_QUAL_VOLATILE): Likewise.
2892 (TYPE_QUAL_RESTRICT): Likewise.
2893 (code_for_qualifier): New function.
2894 (qualifier_string): Likewise.
2895 (demangle_qualifier): Likewise.
2896 (internal_cplus_demangle): Use them.
2897 (demangle_signature): Likewise.
2898 (demangle_template_value_parm): Likewise.
2899 (do_type): Likewise.
2900 (demangle_fund_type)): Likewise.
2901
2902Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2903
2904 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2905 to match prototype.
2906
29071998-10-21 Mark Mitchell <mark@markmitchell.com>
2908
2909 * splay-tree.c: New file.
2910 * Makefile.in (CFILES): Add it.
2911 (REQUIRED_OFILES): Likewise.
2912 (splay-tree.o): Add dependencies.
2913
2914Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2915
2916 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2917 range of 'K' index.
2918
2919Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2920
2921 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2922
2923 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2924 `unsigned char'.
2925 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2926 comparing against one.
2927 (cplus_mangle_opname): Likewise.
2928 (demangle_integral_value): Cast argument of ctype macro to
2929 `unsigned char'.
2930 (demangle_template_value_parm): Likewise.
2931 (demangle_template): Initialize variable `bindex'. Cast the
2932 result of `strlen' to (int) when comparing against one. Remove
2933 unused variable `start_of_value_parm'.
2934 (demangle_class_name): Cast the result of `strlen' to (int) when
2935 comparing against one.
2936 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2937 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2938 when comparing against one.
2939 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2940 (get_count): Likewise.
2941 (do_type): Likewise. Cast the result of `strlen' to (int) when
2942 comparing against one.
2943 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2944 (demangle_function_name): Cast the result of `strlen' to (int)
2945 when comparing against one.
2946
2947 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2948 comparing against one.
2949
2950Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2951
b4fe2683
JM
2952 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2953 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2954 * config.in, configure: Rebuilt.
252b5132
RH
2955
2956 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2957 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2958 * config.in, configure: Rebuilt.
2959
2960Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2961
b4fe2683 2962 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2963
2964Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2965
2966 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2967
2968Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2969
2970 * Merge egcs & devo libiberty.
2971