2003-02-21 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
4938384a
DD
12003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * Makefile.in (CFILES): Add physmem.c.
4 (REQUIRED_OFILES): Add physmem.o.
5 * configure.in: Check for sys/pstat.h.
6 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
7 * physmem.c: New file, copied from textutils.
8
9 * config.in, configure: Regenerated.
10
ba61a412
DJ
112003-02-20 Daniel Jacobowitz <drow@mvista.com>
12
13 * Makefile.in (CFILES): Add lrealpath.c.
14 (REQUIRED_OFILES): Add lrealpath.o.
15 (lrealpath.o): Add rule.
16 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
17 * configure.in: Add realpath and canonicalize_file_name to
18 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
19 for canonicalize_file_name.
20 * lrealpath.c: New file.
21 * make-relative-prefix.c: Update documentation.
22 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
23 * config.in: Regenerated.
24 * configure: Regenerated.
25 * functions.texi: Regenerated.
26
25dfe0ac
DD
272003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
28
29 * cplus_dem.c: Fix typo: intializes -> initializes.
30
8b90eef4
AO
312003-02-20 Alexandre Oliva <aoliva@redhat.com>
32
33 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
34 config.status.
35 * configure: Rebuilt.
36
fcd7c7c9
DD
372003-02-13 Daniel Jacobowitz <drow@mvista.com>
38
39 Fix PR c++/7612.
40 * cplus-dem.c (demangle_signature): Call string_delete.
41 Remove extra string_init.
42 (demangle_arm_hp_template): Call string_delete instead of
43 string_clear. Add missing string_delete call.
44 (demangle_qualified): Add missing string_delete call.
45 (do_type): Remove unused variable btype. Add missing string_delete
46 call. Call string_delete instead of string_clear.
47 (demangle_fund_type): Move variable btype inside of the switch
48 statement. Add missing string_delete call.
49 (do_arg): Call string_delete instead of string_clear. Remove extra
50 string_init.
51 (demangle_nested_args): Free work->previous_argument.
52
073c427b
DD
532003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
54
55 * acconfig.h: New file. Add uintptr_t.
56 * config.in: Regenerated.
57
f8bd3000
DD
582003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
59
60 * libiberty.texi: Update to GFDL 1.2.
61
85b9a938
DD
622003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
63
64 * Makefile.in (libiberty_topdir): New subst.
65 (mkinstalldirs): Redefine in terms of the above.
66 * configure.in: AC_SUBST it.
67 * configure: Regenerate.
68
578460f2
AO
692003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
70
71 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
72 (info-subdir, install-info-subdir, clean-info-subdir)
73 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
74 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
75 Pass $(FLAGS_TO_PASS).
76
7f285245
AO
772003-01-27 Alexandre Oliva <aoliva@redhat.com>
78
79 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
80 /`$$CC -print-multi-os-directory`.
81
5f9624e3
DJ
822003-01-26 Daniel Jacobowitz <drow@mvista.com>
83
84 * hashtab.c (htab_create_alloc_ex): New function.
85 (hatab_set_functions_ex): New function.
86 (htab_delete, htab_expand): Support alternate allocation functions.
87
9c2259b8
DD
882003-01-24 Christopher Faylor <cgf@redhat.com>
89
90 * configure.in: Remove special pex-cygwin consideration.
91 * configure: Regenerate.
92 * pex-cygwin.c: Remove.
93 * Makefile.in: Remove pex-cygwin.[co] lines.
94
5a17353c
DD
952003-01-24 Zack Weinberg <zack@codesourcery.com>
96
97 * Makefile.in (CFILES): Add pex-*.c.
98 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
99 (CONFIGURED_OFILES): Add pex-*.o.
100 (TEXIFILES): Add pexecute.txh.
101 (pexecute.o): Delete rule.
102 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
103 pex-unix.o, pex-win32.o): New rules.
104 * configure.in: Change AC_INIT argument to xmalloc.c.
105 Compute appropriate pexecute implementation and substitute it
106 as @pexecute@.
107
108 * pexecute.c: Split up into...
109 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
110 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
111 new files.
112
113 * functions.texi: Regenerate.
114 * configure: Regenerate.
115
eed2b28c
DD
1162003-01-20 Josef Zlomek <zlomekj@suse.cz>
117
118 * hashtab.c (htab_expand): Fix allocation of new entries.
119
27a39a5f
DD
1202003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
121
122 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
123
124 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
125 mkinstalldirs command.
126
b51c1553
DD
1272002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
128
129 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
130 Define for hosts with HOST_EXECUTABLE_SUFFIX.
131
756954c3
DD
1322002-11-24 Nick Clifton <nickc@redhat.com>
133
134 * make-relative-prefix.c (make_relative_prefix): Ensure return
135 string is empty before using strcat to construct it.
136
2a80c0a4
DD
1372002-11-22 Daniel Jacobowitz <drow@mvista.com>
138
139 * Makefile.in: Add make-relative-prefix.c.
140 * make-relative-prefix.c: New file.
141 * functions.texi: Rebuilt.
142
768b20d8
JJ
1432002-11-16 Jakub Jelinek <jakub@redhat.com>
144
145 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
146 used with arguments in traditional C' warnings.
147
f52d1d64
JJ
1482002-10-16 Jakub Jelinek <jakub@redhat.com>
149
150 * config.table: Use mh-s390pic for s390x too.
151
0d3deb8d
DD
1522002-10-06 Andreas Jaeger <aj@suse.de>
153
154 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
155 variable and of strict-aliasing warning.
156 (grow_vect): Use char as first parameter.
157
1b67de92
DD
1582002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
159
160 * Makefile.in (all): Fix multilib parallel build.
161
585cc78f
DD
1622002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
163
164 * cp-demangle.c (demangling_new): Cast 0 to enum.
165 (demangle_char): Cast return of strdup to char *.
166 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
167 (is_gnu_v3_mangled_dtor): Likewise.
168 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
169 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
170 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
171 * md5.c (md5_process_bytes): Cast results back to const void *.
172 (md5_process_block): Add cast to const md5_uint32 *.
173 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
174 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
175 unsigned short.
176 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
177 to void *.
178 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
179
e21b0cc1
NC
1802002-09-19 Nick Clifton <nickc@redhat.com>
181
182 * README: Update email addresses for bugs and patches.
183
a54ba43f
DD
1842002-09-10 Mike Stump <mrs@apple.com>
185
186 * splay-tree.c (splay_tree_successor): Fix comments.
187
1882002-09-11 Zack Weinberg <zack@codesourcery.com>
189
190 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
191 * testsuite/Makefile.in: Adjust for test-demangle.
192 * testsuite/regress-demangle: Deleted.
193 * testsuite/test-demangle.c: New file.
194 * testsuite/demangle-expected: Change \$ to $ throughout, now that
195 this file is not being read by a shell script.
196
01cea699
DD
1972002-09-05 Roger Sayle <roger@eyesopen.com>
198
199 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
200
a2832523
DD
2012002-08-07 DJ Delorie <dj@redhat.com>
202
203 * regex.c (re_error_msgid): Just use a simple array of strings.
204 (re_compile_pattern): Compensate.
205 (re_comp): Likewise.
206 (re_comp): Likewise.
207 (regerror): Likewise.
208
1e3f0be0
DD
2092002-07-29 Neil Booth <neil@daikokuya.co.uk>
210
211 * cplus-dem.c (PREPEND_BLANK): Remove.
212
b851d07b
DD
2132002-07-10 Jason Merrill <jason@redhat.com>
214
215 * cp-demangle.c (demangle_identifier): Support extended Unicode
216 characters.
217
2a9dffbf
DD
2182002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
219
220 * cp-demangle.c (demangle_v3_with_details): Wrap in
221 !defined IN_GLIBCPP_V3.
222
793011ca
DD
2232002-07-01 Mark Mitchell <mark@codesourcery.com>
224
225 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
226 Set it for the "st" operator.
227 (demangle_expression): Handle expressions with types as arguments.
228
b39b76b8
DD
2292002-06-30 Douglas Rupp <rupp@gnat.com>
230
231 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
232 * Makefile.in (OUTPUT_OPTION): Use.
233
4748c6d8
DD
2342002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
235
236 * Makefile.in (install_to_libdir): Add $(DESTDIR).
237 (install_to_tooldir): Likewise.
238
f9c3326a
DD
2392002-06-17 Douglas Rupp <rupp@gnat.com>
240
241 * lbasename.c: Add 2002 to copyright.
242 (IS_DIR_SEPARATOR): Remove VMS junk.
243
18893690
DD
2442002-06-05 Geoffrey Keating <geoffk@redhat.com>
245
246 * hashtab.c (htab_create): New stub function for backward
247 compatibility.
248 (htab_try_create): Likewise.
249
2502002-06-03 Geoffrey Keating <geoffk@redhat.com>
251
252 * hashtab.c (htab_create): Delete.
253 (htab_try_create): Delete.
254 (htab_create_alloc): New.
255 (htab_delete): Support user-specified memory allocation.
256 (htab_expand): Likewise.
257
2582002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
259
260 * configure.in: Fix typo in the code checking for sys_errlist.
261 * configure: Regenerated.
262
9296c8b2
DD
2632002-05-13 Andreas Schwab <schwab@suse.de>
264
265 * config.table: Use mh-x86pic also for x86-64.
266
52d98c2d
DD
2672002-05-08 Alexandre Oliva <aoliva@redhat.com>
268
269 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
270 script entry, and set LD to it when configuring multilibs.
271 * configure: Rebuilt.
272
cafa3917
DD
2732002-05-07 Mark Mitchell <mark@codesourcery.com>
274
275 * configure.in (AC_TYPE_PID_T): Use it.
276 * configure: Regenerated.
277 * getruntime.c: Include <sys/types.h>.
278 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
279
b1c933fc
RH
2802002-04-09 Richard Henderson <rth@redhat.com>
281
282 * hashtab.c (higher_prime_number): Use 7 as minimum.
283 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
284 (htab_find_slot_with_hash): Likewise.
285
0c4460bb
DD
2862002-04-01 Phil Edwards <pme@gcc.gnu.org>
287
288 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
289 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
290 not compile if IN_GLIBCPP_V3 defined.
291 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
292
f2160d2b
DD
2932002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
294
3ebf1f59 295 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
296 if it is NULL.
297
7dd4d42a
DD
2982002-03-27 DJ Delorie <dj@redhat.com>
299
300 * hex.c: Add documentation.
301 (_hex_value): Provide non-ASCII empty table.
302 (hex_init): Initialize the non-ASCII table.
303 * functions.texi: Regenerate.
304
38e57a35
DD
3052002-03-27 Mark Mitchell <mark@codesourcery.com>
306
307 * dyn-string.c: Add libgcc exception to copyright notice.
308
cfed0715
DD
3092002-03-26 H.J. Lu (hjl@gnu.org)
310
311 * config.table: Support --with-build-subdir.
312 * configure.in: Likewise.
313 * configure: Rebuild.
314
1504972f
DD
3152002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
316
317 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
318 seen.
319
35efcd67
DD
3202002-03-12 Mark Mitchell <mark@codesourcery.com>
321
322 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
323 notice.
324
dabc64ea
DD
3252002-03-11 Douglas B Rupp <rupp@gnat.com>
326
327 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
328
3ddbd84c
JB
3292002-03-06 Jim Blandy <jimb@redhat.com>
330
331 * splay-tree.c (splay_tree_xmalloc_allocate,
332 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
333 prototyped definitions. Mark `data' arguments as unused.
334
efdab807
AC
3352002-03-06 Andrew Cagney <ac131313@redhat.com>
336
337 * floatformat.c (floatformat_arm_ext_big): Delete definition.
338
50d4562d
DD
3392002-03-04 Phil Edwards <pme@gcc.gnu.org>
340
341 * configure.in: Add --enable-install-libiberty option.
342 * Makefile.in (INSTALLED_HEADERS): New variable.
343 (install_to_libdir): Possibly also copy headers.
344 * configure: Regenerated.
345
3462002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
347
348 * xmalloc.c (xmalloc_fail): Clarify error message further.
349
6e9980f5
DD
3502002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
351
352 * xmalloc.c (xmalloc_fail): Clarify error message.
353
18893690 3542002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
355
356 * splay-tree.c (splay_tree_xmalloc_allocate,
357 splay_tree_xmalloc_deallocate): New functions.
358 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
359 above functions and a dummy data pointer.
360 (splay_tree_new_with_allocator): New function.
361 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
362 splay_tree_remove): Use the splay tree's allocation and
363 deallocation functions.
364
59ea9fe7
DD
3652002-02-19 Scott Snyder <snyder@fnal.gov>
366
367 * testsuite/demangle-expected: Add test case for infinite loop in
368 demangler.
369 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
370 if do_type() doesn't make any progress --- prevents an infinite
371 loop.
372
6f848550
DD
3732002-02-18 Carlo Wood <carlo@gnu.org>
374
375 PR c++/5390
376 * cplus-dem.c (demangle_integral_value): Accept multi-digit
377 numbers that do not start with an underscore; This is needed
378 for integer template parameters. This doesn't break anything
379 because multi-digit numbers are never followed by a digit.
380 * testsuite/demangle-expected: Corrected all mangled test
381 cases with multi-digit template parameters: g++ 2.95.x does
382 not generate underscores around these parameters.
383
44354ae1
DD
3842002-02-05 Jason Merrill <jason@redhat.com>
385
386 * cplus-dem.c (flags): Add DMGL_VERBOSE
387 (cplus_demangle_v3_p): Remove.
388 (demangle_it): Add DMGL_TYPES to passed flags.
389 * cp-demangle.c (cplus_demangle_v3_all): Remove.
390 (cplus_demangle_v3_type): Remove.
391 (cplus_demangle_v3): Add options parm.
392
42da15d6
DD
3932002-02-02 H.J. Lu (hjl@gnu.org)
394
395 * cp-demangle.c (cp_demangle_type): Do not protect with
396 IN_LIBGCC2.
397 (cplus_demangle_v3_all): New.
398 (cplus_demangle_v3): Call cplus_demangle_v3_all.
399 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
400
401 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
402 Initialized to cplus_demangle_v3.
403 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
404 of cplus_demangle_v3.
405 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
406 command line symbol.
407
408 * testsuite/regress-demangle: Pass the mangled name at the
409 command line.
410
b117c158
DD
4112002-02-01 H.J. Lu <hjl@gnu.org>
412
413 * cp-demangle.c (cp_demangle_type): Call demangling_new with
414 DMGL_GNU_V3.
415
c78d91b1
DD
4162002-01-31 Phil Edwards <pme@gcc.gnu.org>
417
418 * cp-demangle.c: Revert yesterday's change.
419
bef8b55d
DD
4202002-01-31 Adam Megacz <adam@xwt.org>
421
422 * gcc/libiberty/configure.in: Treat mingw the same as cywin
423 wrt HAVE_SYS_ERRLIST.
424
2c955b8b
DD
4252002-01-30 Phil Edwards <pme@gcc.gnu.org>
426
427 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
428 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
429 cp_demangle_type.
430 * testsuite/demangle-expected: New gnu-v3 test.
431
58b1717a
RH
4322002-01-22 Momchil Velikov <velco@fadata.bg>
433
434 * configure.in (variable detection): Use arrays of unspecified
435 size instead of plain integers.
436
cc096b71
DD
4372002-01-18 DJ Delorie <dj@redhat.com>
438
439 * Makefile.in (TESTLIB): New. This library is for future
440 testsuites.
441 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
442 break down by letter.
443 (REQUIRED_OFILES): List long-to-compile files first.
444 (maint-deps): New, target for updating dependencies.
445 (dependencies): Update.
446 * maint-tool: Add dependency-generating option.
447 * configure.in: Check for _doprnt even if we're not providing it.
448 * configure: Regenerate.
449
450 * _doprnt.c: Modifications to allow compiling on any platform.
451 * copysign.c: Likewise.
452 * putenv.c: Likewise.
453 * setenv.c: Likewise.
454 * vsprintf.c: Likewise.
455
4562002-01-15 Douglas B Rupp <rupp@gnat.com>
457
458 * mkstemps.c (mkstemps): On VMS, open temp file with option
459 that causes it to be deleted when closed.
460
20d54542
DD
4612002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
462
c23795e2
DD
463 * cp-demangle.c (long_options): Const-ify.
464 * cplus-dem.c (long_options): Likewise.
465
20d54542
DD
466 * cplus-dem.c (mystrstr): Delete. All callers changed to use
467 strstr instead.
468
f348a7b1
DD
4692001-12-31 Ira Ruben <ira@apple.com>
470
471 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
472 * configure: Regenerated.
473
d86cd745
DD
4742001-12-24 Douglas B. Rupp <rupp@gnat.com>
475
476 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
477 * configure: Regenerated.
478
ae533646
DD
4792001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
480
481 PR other/2719
482 * cplus-dem.c (consume_count): Treat negative count as an error.
483 * testsuite/demangle-expected: Added testcase.
484
c0eb281b
DD
485Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
486
487 * configure.in: Hardcode that vfork works on VMS host.
488 * configure: Regenerated.
489
2da4c07f
RH
4902001-12-06 Richard Henderson <rth@redhat.com>
491
492 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
493 (cplus_demangle): Support no_demangling.
494
24acd898
DD
4952001-11-27 Zack Weinberg <zack@codesourcery.com>
496
497 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
498 in libiberty context. Fix typo in leading comment.
499 * configure.in: Fix various AC_DEFINEs so autoheader works.
500 If any of vprintf, vsprintf, vfprintf is missing from libc,
501 then AC_REPLACE_FUNCS(_doprnt).
502
fec50157 5032001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 504 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
505
506 * Makefile.in (stamp-h): Depend on Makefile for proper
507 serialization.
508 (*-subdir): Depend on config.h for proper serialization.
509
5527febf
DD
5102001-11-26 DJ Delorie <dj@redhat.com>
511
512 * configure.in: Check for alloca.h (for regex.c and putenv.c).
513 * configure: Regenerate.
514 * config.h: Add HAVE_ALLOCA_H.
515
941d74a0
DD
5162001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
517
518 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
519 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
520 is available.
521
dc579051
DD
522Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
523
524 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
525 * configure.in (HAVE_UINTPTR_T): Test for system defining
526 uintptr_t and define HAVE_UINTPTR_T appropriately.
527 * regex.c (uintptr_t): Do not provide a definition if the
528 system provided one.
529
530 * regex.c (PREFIX): Provide an alternate definition for
531 non-ANSI/ISO compilers.
532 (ARG_PREFIX): Likewise.
533
1a78a35a
DD
5342001-11-12 Jim Meyering <meyering@lucent.com>
535
536 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
537 this code would end up calling gettext even in packages built
538 with --disable-nls.
539 * getopt.c (_): Likewise.
540 * regex.c (_): Likewise.
541
4e55c4b6
DD
5422001-11-03 Alan Modra <amodra@bigpond.net.au>
543
544 * configure.in: Cope with missing makeinfo.
545 * configure: Regenerate.
546
d311a83a
DD
5472001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
548
549 * hex.c (hex_init): Provide empty stub.
550
551 * hex.c (hex_init): Delete.
552 (_hex_value): Const-ify and initialize at compile-time.
553
3bc62f91
DD
5542001-10-19 H.J. Lu <hjl@gnu.org>
555
556 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
557 necessary.
558
5d852400
DD
5592001-10-17 DJ Delorie <dj@redhat.com>
560
561 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
562 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 563 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
564 Improve manual formatting.
565 * functions.texi: Regenerate.
566
ba19b94f
DD
5672001-10-15 DJ Delorie <dj@redhat.com>
568
569 * Makefile.in (TEXIFILES): Add fnmatch.txh.
570 (maint-undoc): New.
571 maint-tool: Add "undoc" tool.
572 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
573 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
574 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
575 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
576 documentation.
577 * fnmatch.txh: New.
578 * functions.texi: Regenerate.
579
56056af5
DD
5802001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
581
582 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
583 * strtod.c: Use "ISO C" instead of "ANSI C".
584 * functions.texi: Regenerate.
585
99b58139
DD
5862001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
587
588 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
589 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
590 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
591 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
592 spelling. Give names to function arguments in documentation. Use
593 (void) prototypes in documentation.
594 * functions.texi: Regenerate.
595
e6450fe5
DD
5962001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
597
598 * argv.c (buildargv, tests, main): Const-ify.
599 * cp-demangle.c (operator_code): Likewise.
600 * cplus-dem.c (optable, libiberty_demanglers,
601 cplus_demangle_set_style, cplus_demangle_name_to_style,
602 print_demangler_list): Likewise.
603 * hashtab.c (higher_prime_number): Likewise.
604 * strcasecmp.c (charmap): Likewise.
605 * strerror.c (error_info, strerror, main): Likewise.
606 * strncasecmp.c (charmap): Likewise.
607 * strsignal.c (signal_info): Likewise.
608
da191b5b
DD
6092001-09-29 DJ Delorie <dj@redhat.com>
610
611 * configure: Regenerate.
612
916aaa12
DD
6132001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
614
615 * concat.c: Include stdlib.h.
616
fa9f0e33
DD
6172001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
618
619 * libiberty.texi: (Top level): Add syncodeindex pg. Add
620 @dircategory and @direntry directives. Add @finalout.
621 (many nodes): Lose the next,prev,up pointers on the @nide line.
622 (Using, Supplemental Functions, Replacement Functions): Fix
623 markup.
624 (Functions): Move around, to allow makeinfo to build the manual
625 without next,prev,up pointers in thye node lines.
626 (Licenses): Fix typos.
627
628 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
629 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
630 * functions.texi: Regenerate.
631
632 * copying-lib.texi: Lose the next,prev,up pointers on the @node
633 line.
634
6352001-09-27 DJ Delorie <dj@redhat.com>
636
637 * configure.in: Don't use in-tree texinfo, because libiberty must
638 be built before it. Check for makeinfo version 4 or higher.
639 * functions.texi: Regenerate.
640
39423523
DD
6412001-09-20 DJ Delorie <dj@redhat.com>
642 Phil Edwards <pedwards@disaster.jaj.com>
643
644 * configure.in (MAKEINFO, PERL): Detect these.
645 (--enable-maintainer-mode): Add.
646 * configure: Regenerate.
647 * Makefile.in (MAKEINFO, PERL): Define.
648 (libiberty.info, libiberty.dvi, libiberty.html): New.
649 (CFILES): Add bsearch.c.
650 (CONFIGURED_OFILES): New, list of objects configure might add.
651 (maint-missing, maint-buildall): New, for maintainers only.
652 (clean, mostlyclean): Add info/dvi/html files.
653 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
654 * gather-docs: New, for maintainers.
655 * maint-tool: New, for maintainers.
656 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
657 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
658 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
659 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
660 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
661 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
662 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
663 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
664 documentation.
665
66c94e19
DD
6662001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
667
668 * concat.c (reconcat): Fix for traditional C.
669
99ee3a8f
DD
6702001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
671
672 * concat.c (reconcat): New function.
673
54c20242
DD
6742001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
675
676 * concat.c (vconcat_length, vconcat_copy, concat_length,
677 concat_copy, concat_copy2): New functions.
678 (concat): Use vconcat_length/vconcat_copy.
679
680 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
681 Define.
682
843f21be
DD
6832001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
684
685 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
686 VA_FIXEDARG & VA_CLOSE.
687
688 * vasprintf.c: Check HAVE_STRING_H when including string.h.
689 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
690 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
691
8a423cb3
DD
6922001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
693
694 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
695
dc676635
DD
6962001-08-23 Ulrich Drepper <drepper@redhat.com>
697
698 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
699
7002001-08-23 Ulrich Drepper <drepper@redhat.com>
701
702 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
703 instead of mbrtowc.
704 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
705 wcslen, and __wcscoll instead of wcscoll.
706
f080c76d
DD
7072001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
708
3ebf1f59
DD
709 * fibheap.c (fibheap_init, fibnode_init): Remove.
710 (fibheap_new, fibnode_new): Use xcalloc to allocate and
711 initialize memory.
712 (fibheap_insert): Remove check for node allocation failure.
f080c76d 713
f01b59ed
DD
7142001-08-21 Richard Henderson <rth@redhat.com>
715
716 * Makefile.in (fibheap.o): Depend on config.h.
717 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
718 functions for inlining.
719
720Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
721
722 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
723 hosting on cygwin.
724 * configure: Regenerate.
725
eb828599
AC
7262001-08-20 Andrew Cagney <ac131313@redhat.com>
727
728 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
729 HARRIS_FLOAT_FORMAT.
730 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
731 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
732 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
733 (floatformat_m88110_harris_ext): New float formats.
734
4e55c4b6
DD
7352001-08-20 Daniel Berlin <dan@cgsoftware.com>
736
737 * fibheap.c: New file. Fibonacci heap.
738
739 * Makefile.in (CFILES): Add fibheap.c.
740 (REQUIRED_OFILES): Add fibheap.o.
741 (fibheap.o): Add dependencies for fibheap.o.
742
68a41de7
DD
7432001-08-17 Christopher Faylor <cgf@cygnus.com>
744
745 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
746 * configure: Regenerate.
747
8fc34799
DD
7482001-08-16 Richard Henderson <rth@redhat.com>
749
750 * hashtab.c (htab_hash_string): New.
751
16bad250
AC
7522001-08-13 Andrew Cagney <ac131313@redhat.com>
753
754 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
755 name.
756
a9022147
DD
7572001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
758
759 * regex.c (wcs_regex_compile): Use appropriate string
760 to compare with collating element.
761 Fix the padding for the alignment.
762
8aefe91a 7632001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
764
765 * lbasename.c (lbasename): Change function definition to return a
766 const char pointer.
767
e7e9b069
DD
7682001-08-07 Jason Merrill <jason_merrill@redhat.com>
769
770 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
771 for".
772
cc5144f8
DD
7732001-08-03 Richard Henderson <rth@redhat.com>
774
775 * Makefile.in (concat.o): Depend on config.h.
776
8aefe91a
DD
7772001-07-30 Andreas Jaeger <aj@suse.de>
778
779 * concat.c: Include "config.h".
780
86710ce2
DD
7812001-07-30 Andreas Jaeger <aj@suse.de>
782
783 * regex.c: Declare wcs functions only if compiling with
784 MBS_SUPPORT.
785 Don't use #elif for traditional C.
786
7872001-07-23 Ulrich Drepper <drepper@redhat.com>
788
789 * regex.c: Revamp memory allocation for WCHAR functions to
790 not use too much stack.
791
7922001-07-30 Andreas Jaeger <aj@suse.de>
793
794 * regex.c: Declare wcs functions only if compiling with
795 MBS_SUPPORT.
796 Don't use #elif for traditional C.
797
a5d8f731
DD
7982001-07-25 Daniel Jacobowitz <drow@mvista.com>
799
800 * Makefile.in (regex.o): Add dependency on config.h.
801
6ad8a379
DD
8022001-07-18 Andreas Schwab <schwab@suse.de>
803
804 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
805 underscore character.
806
8072001-07-18 Ulrich Drepper <drepper@redhat.com>
808
809 * regex.c: Limit string length printed in debug messages to 100
810 chars.
811
8122001-07-18 Andreas Jaeger <aj@suse.de>
813
814 * regex.c: Place under LGPL version 2.1.
815
2a6ef469
DD
8162001-07-10 Jeff Johnston <jjohnstn@redhat.com>
817
818 * Makefile.in: Add support for regex code.
819 * regex.c: New file.
820
7b78baae
DD
8212001-07-05 Mark Klein <mklein@dis.com>
822
823 * Makefile.in: Add ffs.c dependency.
824 * configure.in: Add ffs.c.
825 * ffs.c: New file.
826
926150e2
DD
8272001-06-18 Richard Henderson <rth@redhat.com>
828
829 * concat.c: Include <sys/types.h>.
830
11f6f21d
DD
8312001-06-11 Loren J. Rittle <ljrittle@acm.org>
832
833 bootstrap/3106
834 * strerror.c (sys_nerr): Hide the OS header version.
835 * strsignal.c (sys_nsig): Likewise.
836
d42dae6c
DD
8372001-06-10 Richard Henderson <rth@redhat.com>
838
839 * concat.c: Include string.h. Fix int vs size_t usage.
840 Simplify the iteration loops. Use memcpy.
841
e05c6d27
DD
8422001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
843
844 * partition.c: Fix misspelling of `implementation'.
845
b50c4073
DD
8462001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
847
848 * md5.c (md5_init_ctx): Declare constants as unsigned.
849 (md5_process_block): Likewise.
850
457161bf
DD
8512001-05-07 Zack Weinberg <zackw@stanford.edu>
852
853 * cp-demangle.c (demangle_v3_with_details,
854 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
855 function definition.
856 * ternary.c: Use K+R style function definitions. Use PTR, not
857 void *. Make arguments constant where possible.
858
e00bc6a7
DD
8592001-05-07 Mark Mitchell <mark@codesourcery.com>
860
861 * splay-tree.h (splay_tree_max): New function.
862 (splay_tree_min): Likewise.
863
400ee7e1
DB
8642001-04-15 Daniel Berlin <dan@cgsoftware.com>
865
866 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
867
868 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 869
d9697354
DD
8702001-04-03 Zack Weinberg <zackw@stanford.edu>
871
872 * make-temp-file.c (try): Inline.
873
a7bf099b
DD
8742001-02-28 Richard Henderson <rth@redhat.com>
875
876 * Makefile.in (make-temp-file.o): Depend on config.h.
877
30a1def2
DD
8782001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
879
880 * memchr.c (memchr): Adjust condition to avoid infinite loop.
881
079c672a
DD
8822001-03-23 Jakub Jelinek <jakub@redhat.com>
883
884 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
885 `_' not followed by a digit is invalid.
886
a88e356a
JB
8872001-03-22 Jim Blandy <jimb@redhat.com>
888
889 * cp-demangle.c (string_list_delete): Use dyn_string_delete
890 instead of free, to free the contents as well as the string
891 structure.
892
1dffcc66
DD
8932001-03-21 Zack Weinberg <zackw@stanford.edu>
894
895 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
896 Don't default P_tmpdir to anything. Try /var/tmp before
897 /usr/tmp.
898
8992001-03-20 Zack Weinberg <zackw@stanford.edu>
900
901 * choose-temp.c: Split off make_temp_file, and the code
902 duplicated between it and choose_temp_base, into...
903 * make-temp-file.c: ... here; new file.
904
905 * Makefile.in (CFILES): Add make-temp-file.c.
906 (REQUIRED_OFILES): Add make-temp-file.o.
907
e61231f1
JB
9082001-03-20 Jim Blandy <jimb@redhat.com>
909
910 * cp-demangle.c (struct demangling_def): New fields:
911 is_constructor and is_destructor.
912 (demangling_new): Initialize them.
913 (demangle_ctor_dtor_name): Set them, if we detect a constructor
914 or destructor.
915 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
916 is_gnu_v3_mangled_dtor): New functions.
917
a9cbbe6d
DD
9182001-03-20 Jason Merrill <jason@redhat.com>
919
920 * cplus-dem.c (main): Skip initial $.
921
b1e51b3c
DD
9222001-03-15 Michael Meissner <meissner@redhat.com>
923
924 * hashtab.c (higher_prime_number): Silence warning that 4294967291
925 might be a signed integer under pre-ISO C systems.
926
8aa30e60 9272001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 928 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 929
8aa30e60
DD
930 * libiberty/lbasename.c: New file.
931 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 932
30673bf5
DD
9332001-03-06 Zack Weinberg <zackw@stanford.edu>
934
935 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
936 * configure.in: Replace all alloca logic with a simple use of
937 the above new macro.
938 * config.table: Kill *-*-beos* entry.
939 * config/mh-beos: Delete.
940 * configure, config.in: Regenerate.
fa03f0a7 941
30673bf5
DD
942 * Makefile.in (ALLOCA, HFILES): Kill.
943 (REQUIRED_OFILES): Add alloca.o.
944 (alloca.o): Depend on libiberty.h.
945 (argv.o): Don't depend on alloca-conf.h.
946 * alloca-conf.h: Delete.
947 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
948 blocks. Provide the C alloca unconditionally. Use PTR where
949 appropriate. Make i00afunc static.
950 * argv.c: Don't include alloca-conf.h.
fa03f0a7 951
5810f394
DD
9522001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
953
954 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 955
a9db032a
DD
9562001-02-16 Loren J. Rittle <ljrittle@acm.org>
957
958 * cplus-dem.c (main): Initialize style.
fa03f0a7 959
8aefe91a
DD
9602001-02-02 Phil Edwards <pme@sources.redhat.com>
961
962 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
963
bc9bf259
DD
9642001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
965
966 Add support for Java demangling under the v3 ABI:
967 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
968 (struct demangling_def): Add `style' field.
969 (demangling_new): New parameter `style'. Set it in demangling_t.
970 (demangle_prefix): Use NAMESPACE_SEPARATOR.
971 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
972 (cp_demangle): New parameter `style'. Pass it to demangling_new().
973 (main): Call cp_demangle with extra parameter.
974 (java_demangle_v3): New function.
975 (java_builtin_type_names): New. Table of primitive type names used
976 for Java demangling.
977 (demangle_builtin_type): Look up in java_builtin_type_names if doing
978 Java output.
979 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
980 demangling.
981 (long_options): Remove obsolete `java' option.
982 (main): Remove explicit handling of `java' option. Instead, pass style
983 parameter in cplus_demangle flags as gdb does.
984 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 985
f6528837
DD
9862000-12-29 DJ Delorie <dj@redhat.com>
987
988 * fnmatch.c: Make the note about the origins of this file more
989 accurate, at least until we can sync with glibc.
990 * getopt.c: Ditto.
991 * getopt1.c: Ditto.
992 * md5.c: Ditto.
993 * obstack.c: Ditto.
9d969b59 994
c6da642e
DD
9952000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
996
997 * bsearch.c: New file.
998 * configure.in (funcs): Add bsearch.
999 (AC_CHECK_FUNCS): Likewise.
1000 * configure, config.in: Regenerate.
1001
ae7d06ad 10022000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1003
1004 * safe-ctype.c: #include "ansidecl.h".
1005 * strtod.c: Likewise.
1006
ae7d06ad 10072000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1008
1009 * strtoul.c: Include safe-ctype.h, not ctype.h.
1010
ac424eb3
DD
10112000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1012
1013 * safe-ctype.c: New file.
1014 * Makefile.in (CFILES): Add safe-ctype.c.
1015 (REQUIRED_OFILES): Add safe-ctype.o.
1016
1017 * argv.c: Define ISBLANK and use it, not isspace.
1018 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1019 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1020 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1021 before calling TOLOWER(c)/TOUPPER(c).
1022
4415a860
DD
10232000-12-07 Mike Stump <mrs@wrs.com>
1024
1025 * Makefile.in (distclean): When cleaning, remove testsuite.
1026
849ee224
DD
10272000-12-05 Jason Merrill <jason@redhat.com>
1028
1029 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1030 name before allocating the dyn_string.
1031
ae7d06ad 10322000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1033
1034 * cp-demangle.c: s/new_abi/v3/.
1035 * cplus-dem.c: Likewise.
1036 (current_demangling_style): Now auto_demangling.
1037 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1038 (main): Use standard symbol chars for auto_demangling.
e49a569c 1039
ae7d06ad 10402000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1041
1042 * hashtab.c (higher_prime_number): Use a table, rather than a
1043 seive, to find the next prime.
ae7d06ad
NC
1044
10452000-11-22 H.J. Lu <hjl@gnu.org>
1046
1047 * cplus-dem.c (main): Handle gnat_demangling.
1048
10492000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1050
1051 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1052 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1053 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1054 argument form of AC_DEFINE in dummy definitions block. Use
1055 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1056 in dummy block. Preload cache variables instead of bypassing
1057 tests, where possible.
1058 * acconfig.h: Removed.
ae7d06ad 1059
2ea7befd
DD
1060 * xmalloc.c (xmalloc_failed): New function, does error
1061 reporting on failed allocation.
1062 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1063
f1775526
HPN
10642000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1065
1066 * cplus-dem.c (cplus_demangle): Fix formatting.
1067 (grow_vect): Ditto.
1068 (ada_demangle): Ditto.
1069 (internal_cplus_demangle): Ditto.
1070 (mop_up): Ditto.
1071
10722000-11-21 H.J. Lu <hjl@gnu.org>
1073
1074 * cplus-dem.c (main): Handle java_demangling.
1075
ae7d06ad 10762000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1077
1078 * cplus-dem.c (grow_vect): Prototype.
1079 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1080
5dd42ef4
HPN
10812000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1082
1083 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1084 parameter `option'.
1085
296731c1
DD
10862000-11-15 Kenneth Block <kenneth.block@compaq.com>
1087
8944fb9d 1088 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1089 be used in GCC.
1090
6e53a714 10912000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1092
5dd42ef4 1093 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1094 list.
1095
99a4c1bd
HPN
10962000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1097
1098 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1099 xcalloc depending on htab->return_allocation_failure. Return zero
1100 if calloc fails.
99a4c1bd
HPN
1101 (htab_create): Update comment to cover memory allocation.
1102 (htab_try_create): New.
1103 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1104 Update comment to cover this.
99a4c1bd 1105
e0f3df8f
HPN
11062000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1107
1108 * hashtab.c: Change void * to PTR where necessary.
1109 (htab_create, htab_expand): Correct formatting of comment before
1110 function.
1111
ae7d06ad 11122000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1113
1114 * cp-demangle.c (string_list_def): Add caret_position and comments.
1115 (result_caret_pos): New macro.
1116 (result_append_string): Rename to...
1117 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1118 Rename throughout.
59666b35
DD
1119 (result_append): Rename to...
1120 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1121 throughout.
59666b35
DD
1122 (result_append_char): Rename to...
1123 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1124 throughout.
59666b35
DD
1125 (result_append_space): Remove.
1126 (string_list_new): Initialize caret position.
1127 (result_add_separated_char): Use caret position.
1128 (result_get_caret): New funtion.
1129 (result_set_caret): Likewise.
1130 (result_shift_caret): Likewise.
1131 (result_previous_char_is_space): Likewise.
1132 (substitution_start): Use caret position.
1133 (substitution_add): Likewise.
1134 (demangling_new): Initialize caret position.
1135 (demangle_encoding): Use caret position.
ae7d06ad 1136 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1137 (demangle_type_ptr): Use switch statement. Handle pointers to
1138 arrays. Don't use result_append_space. Use caret position.
1139 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1140 call to demangle_array_type.
1141 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1142
ae7d06ad 11432000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1144
1145 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1146
11472000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1148
1149 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1150
11512000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1152
1153 * splay-tree.c: #include <stdio.h>.
1154
11552000-09-14 Hans-Peter Nilsson <hp@axis.com>
1156
1157 * testsuite/demangle-expected: Add two tests for anonymous
1158 namespaces.
1159 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1160
11612000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1162
1163 * splay-tree.c (splay_tree_predecessor): New function.
1164 (splay_tree_successor): Likewise.
ae7d06ad
NC
1165
11662000-09-10 Hans-Peter Nilsson <hp@axis.com>
1167
1168 * testsuite/demangle-expected: Add four tests for type_info
1169 mangling.
1170 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1171 for a non-template non-qualified type_info function or node.
1172
11732000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1174
1175 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1176
11772000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1178
1179 * md5.c: #include "ansidecl.h".
1180
11812000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1182
1183 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1184 (demangle_type): Handle substitution candidates correctly in the
1185 face of special substitutions.
ae7d06ad
NC
1186
11872000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1188
1189 * cp-demangle.c (demangle_encoding): Rename variable.
1190 (demangle_name): Rename parameter. Handle return type
1191 suppression.
1192 (demangle_nested_name): Rename parameter.
1193 (demangle_prefix): Likewise. Change return type suppression.
1194 (demangle_unqualified_name): Add parameter. Flag constructors and
1195 conversion operators.
1196 (demangle_special_name): Fix comment.
1197 (demangle_type): Rename variable.
1198 (demangle_bare_function_type): Check for missing return type and
1199 parameter.
1200 (demangle_class_enum_type): Rename parameter.
1201 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1202
12032000-08-31 DJ Delorie <dj@redhat.com>
1204
1205 * configure.in (Cygwin): special case cygwin only when we're
1206 building cygwin, not when we're hosting cygwin.
1207
12082000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1209
1210 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1211 <expression>.
ae7d06ad
NC
1212
12132000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1214
1215 * cp-demangle.c (demangle_type_ptr): Increment position past
1216 pointer and reference characters.
ae7d06ad
NC
1217
12182000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1219
1220 * cp-demangle.c (demangle_nv_offset): New function.
1221 (demangle_v_offset): Likewise.
1222 (demangle_call_offset): Likewise.
1223 (demangle_special_name): Update thunk demangling to comply with
1224 ABI changes.
ae7d06ad
NC
1225
12262000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1227
1228 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1229 (substitution_def): Remove template_parm_number.
1230 (NOT_TEMPLATE_PARM): Remove.
1231 (result_insert_string): New macro.
1232 (result_insert): Likewise.
1233 (result_insert_char): Likewise.
1234 (substitution_add): Remove last parameter. Don't store template
1235 parm number.
1236 (BFT_NO_RETURN_TYPE): Define as NULL.
1237 (demangle_encoding): Adjust call to demangle_bare_function_type.
1238 (demangle_name): Adjust substitution. Adjust call to
1239 substitution_add.
1240 (demangle_prefix): Adjust call to substitution_add.
1241 (demangle_identifier): Handle anonymous namespaces.
1242 (demangle_operator_name): Change demangling of vendor-extended
1243 operator to match ABI changes.
1244 (demangle_type_ptr): Change parameters. Make recursive. Handle
1245 substitutions here.
1246 (demangle_type): Adjust calls to demangle_template_param,
1247 substitution_add, and demangle_type_ptr. Fix substitution of
1248 templated types.
1249 (demangle_function_type): Change parameter to a pointer.
1250 (demangle_bare_function_type): Likewise. Adjust insertion point.
1251 (demangle_template_param): Remove last parameter.
1252 (demangle_expr_primary): Remove unused variable. Adjust call to
1253 demangle_template_param.
1254 (is_mangled_char): Accept `$' and `.'.
1255 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1256 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1257
12582000-08-31 Hans-Peter Nilsson <hp@axis.com>
1259
1260 * testsuite/demangle-expected: Add nine tests for
1261 underscore-after-number followed by five tests for name-signature
1262 delimiter.
1263
12642000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1265
1266 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1267
12682000-08-28 Jason Merrill <jason@redhat.com>
1269
1270 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1271 (CFILES): Add md5.c.
1272 * md5.c: New file.
1273
12742000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1275
1276 * cp-demangle.c (demangle_name): Initialize template_p in local
1277 name case. Don't re-add substitutions as candidates.
1278 (demangle_nested_name): Use <unqualified-name>.
1279 (demangle_prefix): Likewise. Don't add template names as
1280 substitution candidates twice, or re-add a substitution or the
1281 last prefix component.
1282 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1283
12842000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1285
1286 * cp-demangle.c (result_add_separated_char): Change parameter to
1287 int.
1288 (substitution_add): Don't check for duplicates. Check if
1289 previously allocated size is zero.
1290 (demangle_name): Remove duplicate check for std substitution.
1291 Clear template flag appropriately.
1292 (demangle_prefix): Remove argument to demangle_substitution.
1293 Don't check that template flag is already set.
1294 (demangle_operator_name): Add pt operator.
1295 (demangle_type): Don't treat r as built-in type. Remove argument
1296 to demangle_substitution. Fix substitution candidate mechanics.
1297 Handle <template-template-parm>s. Improve comments.
1298 (demangle_template_param): Don't handle template arg lists here.
1299 (demangle_substitution): Remove parameter.
1300 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1301
13022000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1303
1304 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1305
13062000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1307
1308 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1309 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1310 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1311
13122000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1313
1314 * cp-demangle.c (result_close_template_list): Remove function.
1315 (result_add_separated_char): New function.
1316 (result_open_template_list): New macro.
1317 (result_close_template_list): Likewise.
1318 (demangle_prefix): Don't set template_p if the
1319 prefix ends with a ctor name.
1320 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1321 (demangle_type): Check for template args after substitution.
1322 (demangle_template_args): Use result_open_template_list.
d3e85005 1323
ae7d06ad 13242000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1325
ae7d06ad 1326 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1327
ae7d06ad 13282000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1329
1330 * config/mh-openedition.h: Added -DLE370 definition.
1331
a9f34fb6
JL
13322000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1333
1334 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1335 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1336 Cast program to 'char *' in errmsg_arg assignment.
1337 (PWAIT_ERROR): Define.
1338 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1339 to DJGPP's WIF* macros.
1340
90aaccd1 13412000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1342 Jeff Law <law@cygnus.com>
90aaccd1 1343
ae7d06ad 1344 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1345
90aaccd1 1346 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1347 * rename.c: Include config.h, unistd.h
1348 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1349
6ef554e3
HPN
13502000-07-24 Hans-Peter Nilsson <hp@axis.com>
1351
1352 * cplus-dem.c (work_stuff_copy_to_from): New.
1353 (delete_non_B_K_work_stuff): New.
1354 (delete_work_stuff): New.
1355 (mop_up): Break out work_stuff partly destruction to
1356 delete_non_B_K_work_stuff.
1357 (iterate_demangle_function): New.
1358 (demangle_prefix): Call iterate_demangle_function instead of
1359 demangle_function_name. Leave handling of name-signature
1360 __-delimiters to iterate_demangle_function.
1361 (demangle_integral_value): Strip an optional
1362 following underscore cautiously. Handle negative numbers.
1363
ae7d06ad 13642000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1365
ae7d06ad 1366 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1367 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1368
ae7d06ad
NC
13692000-07-21 Alex Samuel <samuel@codesourcery.com>
1370
1371 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1372 allocating ctor mangling.
1373 (demangle_array_type): Handle empty and non-constant array length.
1374
b1233257 13752000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1376 Jeff Law <law@cygnus.com>
1377
1378 * configure.in (AC_CHECK_HEADERS): Add time.h.
1379 (AC_HEADER_TIME): Add check.
1380 * configure, config.in: Regenerate.
1381 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1382
1383 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1384 * configure, config.in: Regenerate.
1385 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1386 * strtol.c, strtoul.c: #include "config.h". Portably #include
1387 <limits.h> and/or <sys/param.h>.
1388 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 1389
7d3ffcaf
JL
1390 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1391 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1392 * configure, config.in: Regenerate.
1393 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1394
b1233257
JL
1395 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1396
ae7d06ad
NC
13972000-07-21 Mike Stump <mrs@wrs.com>
1398
1399 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1400 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1401
14022000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1403
1404 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1405
1406 * setenv.c (setenv): Initialize variable `ep'.
1407
1408 * sigsetmask.c (abort): Prototype.
1409
1410 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1411 __STDC__ for stdarg.h include.
1412 (int_vasprintf): Prototype.
1413 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1414 definition. Cast `global_total_width' in comparison.
1415 (main): Prototype. Return a value.
1416
1417 * vfork.c (fork): Prototype.
1418
1419 * xexit.c: Include config.h.
1420
9adf30b2
JL
14212000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1422
1423 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1424 and print it with %u.
1425
2ed78d1b
HPN
14262000-07-17 Hans-Peter Nilsson <hp@axis.com>
1427
1428 * testsuite/regress-demangle (failed test): Show result and
1429 expected output.
1430
0473bdf7
AH
14312000-07-07 Andrew Haley <aph@cygnus.com>
1432
1433 * cplus-dem.c (main): fflush() after emitting last char before
1434 waiting for input.
1435
03d5f569
JM
14362000-06-28 Alex Samuel <samuel@codesourcery.com>
1437
1438 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1439 (demangle_name): Handle <substitution> followed by
1440 <unqualified-template-name>.
1441 (demangle_type): Follow special substitutions with
1442 <class-enum-type>
1443 (demangle_subtitution): Set template_p for special substitutions.
1444 (main): Fix typos.
ae7d06ad 1445
03d5f569
JM
14462000-06-27 Alex Samuel <samuel@codesourcery.com>
1447
1448 * cp-demangle.c (demangle_special_name): Swap base and derived
1449 class when demangling construction vtables.
1450
14512000-06-21 Alex Samuel <samuel@codesourcery.com>
1452
1453 * cp-demangle.c: Don't include ctype.h.
1454 (IS_DIGIT): New macro.
1455 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1456 instead of isdigit and isalpanum.
1457 (demangling_def): Make name and next const pointers.
1458 (STATUS_ALLOCATION_FAILED): New status code.
1459 (dyn_string_append_space): Handle failure in
1460 dyn_string_append_char.
1461 (int_to_dyn_string): Likewise. Change return value to status_t.
1462 (string_list_new): Handle failure of dyn_string_init.
1463 (result_close_template_list): Change return type to status_t.
1464 Handle failure in dyn_string_append.
1465 (result_push): Change return value to status_t. Handle failure in
1466 string_list_new. Handle failure of result_push throughout.
1467 (substitution_add): Change return value to status_t. Handle
1468 dyn_string failures. Handle failure of substitution_add
1469 throughout.
1470 (template_arg_list_new): Return NULL on allocation failure.
1471 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1472 Handle error result throughout.
1473 (result_append): Likewise.
1474 (result_append_char): Likewise.
1475 (result_append_space): Likewise.
1476 (demangling_new): Make argument a const pointer. Handle
1477 allocation failures.
1478 (demangle_template_args): Handle failure in template_arg_list_new
1479 and result_close_template_list.
1480 (demangle_discriminator): Return if int_to_dyn_string fails.
1481 (cp_demangle): Likewise.
1482 (cp_demangle_type): New function.
1483 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1484 memory allocation failure.
1485 (main): Likewise.
1486 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1487 IN_LIBGCC2.
1488 (dyn_string_init): Change return value to int. Handle
1489 RETURN_ON_ALLOCATION_FAILURE case.
1490 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1491 (dyn_string_release): Delete the dyn_string.
1492 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1493 (dyn_string_copy): Change return type to int.
1494 (dyn_string_copy_cstr): Likewise.
1495 (dyn_string_prepend): Likewise.
1496 (dyn_string_prepend_cstr): Likewise.
1497 (dyn_string_insert): Likewise.
1498 (dyn_string_insert_cstr): Likewise.
1499 (dyn_string_append): Likewise.
1500 (dyn_string_append_cstr): Likewise.
1501 (dyn_string_append_char): Likewise.
1502 (dyn_string_substring): Likewise.
ae7d06ad 1503
eb383413 15042000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1505
eb383413
L
1506 * cp-demangle.c (demangle_operator_name): Add spaces before
1507 names beginning with a letter: delete, delete[], new, new[],
1508 sizeof.
1509 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1510
eb383413
L
1511Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1512
1513 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1514
1515Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1516
1517 * cp-demangle.c (stdio.h): File included unconditionaly.
1518 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1519 * dyn-string.c (stdio.h): File included.
1520 * partition.c (partition_print): No `&' needed to take the address of
1521 a function.
1522
15232000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1524
1525 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1526
eb383413
L
1527 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1528
1529 * cp-demangle.c (demangle_char): Change parameter from char to int.
1530 (demangle_expression, demangle_expr_primary): Remove extra
1531 semi-colon in prototype.
1532
1533 * dyn-string.c (dyn_string_append_char): Change parameter from
1534 char to int.
1535
1536 * memcmp.c (memcmp): Constify.
1537
1538 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1539 __extension__.
1540
1541 * partition.c (elem_compare): Prototype. Don't cast away
1542 const-ness.
1543
1544 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1545
eb383413
L
15462000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1547
1548 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1549
1550 * cp-demangle.c: Include demangle.h.
1551 (template_arg_list_new): DeANSIfy.
1552 (cp_demangle): Make static and add prototype.
1553 (operator_code, operators): Constify.
1554 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1555
15562000-06-05 Alex Samuel <samuel@codesourcery.com>
1557
1558 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1559 unsigned char.
1560 (demangle_unqualified_name): Likewise.
1561 (demangle_number_literally): Likewise.
1562 (demangle_type): Likewise.
1563 (demangle_substitution): Likewise.
1564 (is_mangled_char): Likewise, for isalnum.
1565
15662000-06-04 Alex Samuel <samuel@codesourcery.com>
1567
1568 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1569 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1570 (cp-demangle.o): New dependency.
1571 (dyn-string.o): Likewise.
1572
1573 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1574
1575 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1576 demangler.
1577 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1578 demangling mode.
1579 (gnu_new_abi_symbol_characters): New function.
1580 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1581 file.
1582 * cp-demangle.c: New file.
ae7d06ad 1583
f03aa80d
AC
1584Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1585
1586 * floatformat.c: Add name to each floatformat field.
1587
77bfb694
JL
1588Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1589
1590 * Makefile.in (objalloc.o): Depend on config.h
1591
5c82d20a
ZW
15922000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1593
eb383413 1594 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1595 if HAVE_STRING_H.
1596 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1597 * objalloc.c: Include config.h. Include stdlib.h and don't
1598 declare malloc or free if HAVE_STDLIB_H.
1599 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1600 else declare malloc without prototype. Include string.h if
1601 HAVE_STRING_H, else declare memset without prototype. Don't
1602 include stddef.h.
1603
eb383413
L
16042000-05-23 Mike Stump <mrs@wrs.com>
1605
1606 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1607 -j3.
eb383413
L
1608
16092000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1610
1611 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1612
16132000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1614
ae7d06ad 1615 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1616 probably zero, also eliminate a warning on alpha.
1617
16182000-05-15 David Edelsohn <edelsohn@gnu.org>
1619
1620 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1621 on $(enable_shared).
1622
16232000-05-10 Jakub Jelinek <jakub@redhat.com>
1624
1625 * config.table: Use mh-sparcpic for sparc*-*-*.
1626
16272000-05-08 Nick Clifton <nickc@cygnus.com>
1628
1629 * Makefile.in (CFILES): Add strncmp.c.
1630 (NEEDED): Add strncmp.
1631
16322000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1633
eb383413
L
1634 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1635 Cast the arguments to `islower' to `unsigned char'.
1636 (print_demangler_list): Prototype.
1637
1638Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1639
1640 * sort.c (UCHAR_MAX): Provide fallback definition.
1641
16422000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1643
1644 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1645 SUBDIRS.
1646
eb383413
L
16472000-04-28 Kenneth Block <block@zk3.dec.com>
1648 Jason Merrill <jason@casey.cygnus.com>
1649
ae7d06ad
NC
1650 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1651 (cplus_demangle_set_style): New function for setting style.
1652 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1653
16542000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1655
1656 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1657
1658 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1659 (libiberty_AC_FUNC_STRNCMP): Invoke.
1660
1661 * strncmp.c: New file.
1662
1663Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1664
1665 * hashtab.c (htab_expand): Add prototype.
1666 (find_empty_slot_for_expand): Likewise.
1667
16682000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1669
1670 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1671 match prototype.
1672 (htab_expand): Cast the return value of xcalloc.
1673
16742000-04-24 Mark Mitchell <mark@codesourcery.com>
1675
1676 * hashtab.c (hash_pointer): New function.
1677 (eq_pointer): Likewise.
1678 (htab_hash_pointer): New variable.
1679 (htab_eq_pointer): Likewise.
1680
16812000-04-23 Mark Mitchell <mark@codesourcery.com>
1682
1683 * sort.c (sort_pointers): Fix endianness bugs.
1684
1685 * sort.c: New file.
1686 * Makefile.in (CFILES): Add sort.c
1687 (REQUIRED_OFILES): Add sort.o.
1688 (sort.o): New target.
1689
19be4303
JL
16902000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1691
1692 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1693 4.3BSD systems.
1694
eb383413
L
1695Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1696
1697 * hashtab.c: Various minor cleanups.
1698 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1699 (htab_find_slot): Likewise.
1700
17012000-04-16 Dave Pitts <dpitts@cozx.com>
1702
1703 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1704
afe36a78
RH
17052000-04-05 Richard Henderson <rth@cygnus.com>
1706
1707 * splay-tree.c (splay_tree_remove): New.
1708
eb383413
L
17092000-03-30 Mark Mitchell <mark@codesourcery.com>
1710
1711 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1712 codes.
1713 (htab_find_with_hash): Likewise.
1714 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1715
eb383413
L
17162000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1717
1718 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1719 unless it will be used. Rearrange loop for better
1720 optimization.
1721 (higher_prime_number): Add static prototype.
1722
b4fe2683
JM
1723Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1724
1725 * Makefile.in (partition.o): Depend on config.h
1726
17272000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1728
1729 * hashtab.c (find_empty_slot_for_expand): New function.
1730 (htab_expand): Use it instead of htab_find_slot.
1731 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1732 argument HASH.
1733 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1734 (htab_find): New wrapper function.
1735 (htab_find_slot): Likewise.
1736 (htab_traverse): Pass slot, not entry, to called function.
1737
17382000-03-09 Alex Samuel <samuel@codesourcery.com>
1739
1740 * Makefile.in (CFILES): Add partition.c.
1741 (REQUIRED_OFILES): Add partition.o.
1742 (partition.o): New rule.
1743 * partition.c: New file.
ae7d06ad 1744
b4fe2683
JM
17452000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1746
1747 * hashtab.c (htab_create): Set del_f.
1748 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1749 Use it.
1750
17512000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1752
1753 * hashtab.c: Remove debugging variables (all_searches,
1754 all_collisions, all_expansions). Delete
1755 all_hash_table_collisions.
1756 (create_hash_table, delete_hash_table, empty_hash_table,
1757 find_hash_table_entry, remove_element_from_hash_table_entry,
1758 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1759 hash_table_elements_number, hash_table_collisions): Rename to:
1760 htab_create, htab_delete, htab_empty, htab_find_slot,
1761 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1762 htab_elements, htab_collisions.
1763 (htab_find): New function, handles common case where you don't
1764 plan to add or delete an entry.
1765 (htab_expand): Don't create a whole new table, just a new
1766 entry vector.
1767 (htab_find_slot): Simplify logic.
1768
08372f14
ILT
17691999-08-03 Ian Lance Taylor <ian@zembu.com>
1770
1771 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1772 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1773
1774 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1775 $(TARGETLIB)n so it works on MSDOS.
1776 (install_to_tooldir): Likewise.
1777
9c8ac5a9
ILT
17781999-07-21 Ian Lance Taylor <ian@zembu.com>
1779
1780 From Mark Elbrecht:
1781 * makefile.dos: Remove; obsolete.
8f36e47c 1782 * configure.bat: Remove; obsolete.
9c8ac5a9 1783
0c0a36a4
ILT
17841999-07-11 Ian Lance Taylor <ian@zembu.com>
1785
1786 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1787 warning.
1788
17892000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1790
1791 * pexecute.c: Conditionally include string.h.
b4fe2683 1792 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1793
17942000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1795
1796 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1797 we're using gcc.
1798
1799 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1800
18011999-12-27 Geoff Keating <geoffk@cygnus.com>
1802
1803 * vasprintf.c (int_vasprintf): Don't re-read the format character
1804 as this mishandles strings like '%%s'.
1805
18061999-12-05 Mark Mitchell <mark@codesourcery.com>
1807
1808 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1809 rather than struct splay_tree_node.
1810 (splay_tree_insert): Use struct splay_tree_s rather than struct
1811 splay_tree.
1812
1813Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1814
1815 * hashtab.c (sys/types.h): File included.
1816
18171999-11-22 Jason Merrill <jason@casey.cygnus.com>
1818
1819 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1820 BSD license, pursuant with
1821
1822 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1823
1824Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1825
1826 * hashtab.c: Include stdio.h.
1827
1828Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1829
1830 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1831
1832Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1833
1834 * xstrdup (sys/types.h): Include this file.
1835
18361999-10-28 Nathan Sidwell <nathan@acm.org>
1837
1838 * Makefile.in (SUBDIRS): New macro.
1839 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1840 avoid multiple subdirectory cleaning.
1841 (*-subdir): Use SUBDIRS.
1842
18431999-10-25 Jim Kingdon <http://developer.redhat.com/>
1844
1845 * cplus-dem.c: Move declarations of standard_symbol_characters and
1846 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1847 warnings.
1848
18491999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1850
1851 * hashtab.c (find_hash_table_entry): When returning a
1852 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1853 (clear_hash_table_slot): New function which deletes an entry
1854 by its position in the table, not its value.
1855 (traverse_hash_table): New function which calls a hook
1856 function for every live entry in the table.
1857
18581999-10-19 Mark Mitchell <mark@codesourcery.com>
1859
1860 * cplus-dem.c (INTBUF_SIZE): New macro.
1861 (string_append_template_idx): New function.
1862 (demangle_expression): Likewise.
1863 (demangle_integral_value): Use it.
1864 (demangle_real_value): New function, split out from ...
1865 (demangle_template_value_parm): ... here. Use
1866 string_append_template_idx. Use demangle_real_value.
1867 (demangle_template): Use string_append_template_idx.
1868 (demangle_qualified): Use consume_count_with_underscores.
1869 (get_count): Tweak formatting.
1870 (do_type): Use string_append_template_idx.
b4fe2683 1871
0c0a36a4
ILT
18721999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1873
1874 * calloc.c: Add a public domain notice.
1875
1876Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1877
1878 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1879
1880Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1881
1882 * Makefile.in (CFILES): Add hashtab.c
1883 (REQUIRED_OFILES): Add hashtab.o
1884 (hashtab.o): Add dependencies.
1885 * hashtab.c: New file
1886
1887Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1888
1889 * basename.c (DIR_SEPARATOR): New macro.
1890 (DIR_SEPARATOR_2): Likewise.
1891 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1892 (IS_DIR_SEPARATOR): Likewise.
1893 (main): Handle MSDOS style pathname.
1894
18951999-10-11 Mark Mitchell <mark@codesourcery.com>
1896
1897 * cplus-dem.c (do_type): Handle pointer to member types whose
1898 enclosing classes have namespace scope.
1899
1900Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1901
1902 * config.table: Provide a backup shell for executing move-if-change.
1903
19041999-10-02 Mark Mitchell <mark@codesourcery.com>
1905
1906 * xmalloc.c (xmalloc): Fix spelling error.
1907 (xcalloc, xrealloc): Likewise.
1908
19091999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1910
1911 * cplus-dem.c (fancy_abort, demangle_integral_value,
1912 demangle_arm_hp_template, recursively_demangle,
1913 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1914 (program_name, program_version, fatal): Constify a char*.
1915 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1916 (main): Call return, not exit.
1917
19181999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1919
1920 * choose-temp.c: Remove obsolete comment about gcc.
1921 (make_temp_file): Constify a char*.
1922
1923Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1924
1925 * xmemdup.c: Include sys/types.h.
1926
19271999-09-07 Jeff Garzik <jgarzik@pobox.com>
1928
1929 * xmemdup.c: New xmemdup function.
1930 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1931
1932Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1933
b4fe2683 1934 * config.table: Add openedition target.
0c0a36a4
ILT
1935 * config/mh-openedition: New file.
1936
1937Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1938
1939 * pexecute.c (pexecute): Fill in temp_base when needed.
1940
19411999-08-31 Richard Henderson <rth@cygnus.com>
1942
1943 * getpwd.c: Check HAVE_GETCWD before defining it away.
1944
19451999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1946
1947 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1948 (REQUIRED_OFILES): Add getpwd.o.
1949 (getpwd.o): Add target.
1950
1951 * configure.in (AC_PREREQ): Bump to 2.13.
1952 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1953
1954 * getpwd.c: New file, moved here from gcc.
1955
19561999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1957
1958 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1959 comparing against a signed quantity.
1960 (arm_special): Likewise.
1961 (demangle_fund_type): Likewise.
1962 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1963 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1964 (main): Constify variable `valid_symbols'.
1965
1966Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1967
1968 * strtoul.c (strtoul): Add parentheses around && within ||.
1969
1970Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1971
1972 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1973 libdir, libsubdir and tooldir.
1974
19751999-08-01 Mark Mitchell <mark@codesourcery.com>
1976
1977 * splay-tree.c (splay_tree_insert): Return the new node.
1978
35ca97ea
RH
19791999-07-14 Richard Henderson <rth@cygnus.com>
1980
b4fe2683 1981 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1982 prototyping directly.
1983 * choose-temp.c: Conditionally include string.h.
1984
0c0a36a4
ILT
19851999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1986
1987 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1988
af32ff69
ILT
19891999-07-11 Ian Lance Taylor <ian@zembu.com>
1990
1991 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1992 warning.
1993
0c0a36a4
ILT
19941999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1995
1996 * Makefile.in (needed-list): Only include stuff we actually need
1997 for libstdc++.
1998
19991999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2000
2001 * configure.in (checkfuncs): Add gettimeofday.
2002 * config.in, configure: Regenerated.
2003
2004Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2005
2006 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2007 the test fails.
2008 * configure: Regenerate.
2009
20101999-06-10 Mike Stump <mrs@wrs.com>
2011
2012 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2013 parallel builds.
2014
20151999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2016
2017 * putenv.c: Include ansidecl.h to define `const'.
2018 * setenv.c: Likewise.
2019
2020Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2021
2022 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2023 * configure.in (funcs): Add putenv and setenv.
2024 (AC_CHECK_FUNCS): Check for putenv and setenv.
2025 * configure: Rebuilt.
2026 * putenv.c setenv.c: New files.
2027
2028 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2029 bytes of space using malloc.
2030
2031Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2032
2033 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2034 the *mangled pointer beyond the end of the string. Clean up code to
2035 match prevailing coding style.
2036
20371999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2038
2039 * tmpnam.c (L_tmpnam): Fix typo.
2040
2041Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2042
2043 * cplus-dem.c (standard_symbol_characters): Renamed from
2044 standard_symbol_alphabet. No longer modify TABLE.
2045 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2046 modify TABLE.
2047 (main): Corresponding changes. Use strchr to determine if a
2048 character is valid.
2049
e9868447
JB
20501999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2051
2052 * cplus-dem.c (main): Use table lookup to distinguish identifier
2053 characters from non-identifier characters.
2054 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2055
33fbbfbc
RH
2056Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2057
2058 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2059 * getruntime.c: Only attempt to include sys/resource.h and
2060 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2061 are defined.
2062
0c0a36a4
ILT
2063Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2064
2065 * configure.in (alloca detection): Handle alloca directly for interix.
2066 * configure: Rebuilt.
2067
2068Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2069
2070 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2071
252b5132
RH
20721999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2073
2074 Fix from Dale Hawkins:
b4fe2683 2075 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2076 reallocated properly if we use it again.
2077
2078 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2079 stricter about syntax. Always null-terminate string.
2080
c1687039
ILT
2081Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2082
2083 * configure.in (checkfuncs): Check for sbrk.
2084 * config.in: Rebuilt.
2085 * configure: Likewise.
2086 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2087
0c0a36a4
ILT
20881999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2089
2090 Fix from Marcus Daniels:
2091 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2092 identifier looking for another underscore.
2093
2094Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2095
2096 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2097 * xmalloc.c: Likewise.
2098 (xcalloc): UWIN has sbrk.
2099 (xrealloc): Fix guard macro.
2100
252b5132
RH
21011999-04-11 Richard Henderson <rth@cygnus.com>
2102
2103 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2104 or <alloca.h>.
2105 * clock.c (GNU_HZ): New definition.
2106 (clock): Use it.
2107 * getruntime.c: Likewise.
2108
2109 * config.table: Use mh-beos.
2110 * config/mh-beos: New file.
2111
0c0a36a4
ILT
21121999-04-11 Mark Mitchell <mark@codesourcery.com>
2113
2114 * cplus-dem.c (demangle_template_value_parm): Handle
2115 pointers-to-members.
2116 (do_type): Handle template parameters as qualifiers.
2117
252b5132
RH
21181999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2119
2120 * cplus-dem.c: Attempt to handle overflows in counts with some
2121 semblance of grace.
2122 (consume_count): Detect overflows. Return -1 to indicate errors,
2123 instead of zero.
2124 (demangle_template_value_parm, demangle_template): Handle change
2125 to consume_count's return convention.
2126
0c0a36a4
ILT
21271999-04-05 Tom Tromey <tromey@cygnus.com>
2128
2129 * testsuite/regress-demangle: New file.
2130 * testsuite/demangle-expected: New file.
252b5132 2131
0c0a36a4
ILT
2132 * Makefile.in (all, check, installcheck, info, install-info,
2133 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2134 distclean, maintainer-clean, realclean): Depend on corresponding
2135 `-subdir' target.
2136 (all-subdir check-subdir installcheck-subdir info-subdir
2137 install-info-subdir clean-info-subdir dvi-subdir
2138 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2139 distclean-subdir maintainer-clean-subdir): New target.
2140 * testsuite/Makefile.in: New file.
2141 * configure: Rebuilt.
2142 * configure.in: Create testsuite/Makefile.
252b5132
RH
2143
21441999-04-02 Mark Mitchell <mark@codesourcery.com>
2145
2146 * splay-tree.h (splay_tree_compare_pointers): Define.
2147
21481999-03-30 Mark Mitchell <mark@codesourcery.com>
2149
2150 * splay-tree.c (splay_tree_compare_ints): Define.
2151
21521999-03-30 Tom Tromey <tromey@cygnus.com>
2153
2154 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2155 don't advance input pointer.
2156 (demangle_class_name): If consume_count didn't find a count, do
2157 nothing. Don't bother with `strlen' sanity check; consume_count
2158 does it for us.
2159
21601999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2161
2162 From Art Haas <ahaas@neosoft.com>:
2163 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2164 when doing arm or hp style.
2165 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2166
252b5132
RH
2167Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2168
2169 * pexecute.c (__CYGWIN32__): Rename to
2170 (__CYGWIN__): this.
2171 * xmalloc.c: Likewise.
2172
2173 Changes to support i386-pc-uwin.
2174 * configure.in (*-*-uwin*): Workaround for vfork bug.
2175 * configure: Regenerate.
2176 * pexecute.c (pexecute): Be like standard Unix.
2177 (pwait): Likewise.
2178 * xmalloc.c (first_break): Define.
2179 (xmalloc_set_program_name): Use.
2180 (xmalloc): Use.
2181
2182Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2183
2184 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2185
2186Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2187
2188 * config.table: Check cygwin*, not cygwin32*.
2189
2190Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2191
2192 * Makefile.in: Change mkstemp -> mkstemps.
2193
2194Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2195
2196 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2197 * configure.in (funcs): Check for and conditionally add mkstemps to
2198 the list of functions libiberty will provide.
2199 * configure: Rebuilt.
b4fe2683 2200
252b5132
RH
2201Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2202
b4fe2683 2203 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2204 platforms that don't have HZ.
2205 * getruntime.c (HZ): Likewise.
2206
2207Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2208
2209 * Makefile.in (xstrdup.o): Depend on config.h.
2210
2211Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2212
2213 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2214 freeing it.
2215
2216Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2217
2218 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2219
2220Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2221
2222 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2223 splay-tree.o.
2224
22251999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2226
2227 * configure.in: Require autoconf 2.12.1 or higher.
2228
22291998-12-30 Michael Meissner <meissner@cygnus.com>
2230
2231 * random.c (NULL): Don't redefine NULL if it is already defined.
2232
2233Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2234
2235 * argv.c (buildargv): Cast the result of alloca in assignment.
2236
2237 * choose-temp.c: Include stdlib.h.
2238
2239 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2240 (snarf_numeric_literal): Constify first parameter.
2241 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2242 int, not a char.
252b5132
RH
2243 (demangle_qualifier): Likewise.
2244 (demangle_signature): Cast the argument of a ctype function to
2245 unsigned char.
2246 (arm_pt): Add parens around assignment used as truth value.
2247 (demangle_arm_hp_template): Constify variable `args'.
2248 (do_hpacc_template_const_value): Cast the argument of a ctype
2249 function to unsigned char.
2250 (do_hpacc_template_literal): Remove unused variable `i'.
2251 (snarf_numeric_literal): Constify parameter `args'.
2252 Cast the argument of a ctype function to unsigned char.
2253
2254 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2255 avoid ambiguous `else'.
252b5132
RH
2256
2257 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2258 `cstart' and `cend' to unsigned char. Cast the argument of macro
2259 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2260
2261 * objalloc.c (free): Add prototype.
2262
2263Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2264
2265 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2266
2267Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2268
2269 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2270 doesn't exist.
252b5132 2271 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2272
252b5132
RH
2273Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2274
2275 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2276 bumping the pointer we read from. Also prepend these codes,
2277 as we do in other places.
2278
22791998-12-18 Nick Clifton <nickc@cygnus.com>
2280
2281 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2282 'const char *' in order to match its usage when calling siblings.
2283 (snarf_numeric_literal): Make first arg 'const char **' in order
2284 to match usage.
2285
2286Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2287
2288 * choose-temp.c: Don't check IN_GCC anymore.
2289
2290 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2291 * memchr.c (memchr): Likewise.
2292 * memcpy.c (memcpy): Likewise.
2293 * memmove.c (memmove): Likewise.
2294
2295 * mkstemp.c: Don't check IN_GCC anymore.
2296 * pexecute.c: Likewise.
2297 * splay-tree.c: Likewise.
2298
2299 * strchr.c (strchr): Use `const', not `CONST'.
2300 * strrchr.c (strrchr): Likewise.
2301 * strtol.c (strtol): Likewise.
2302 * strtoul.c (strtoul): Likewise.
2303
2304Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2305 Elena Zannoni <ezannoni@cygnus.com>
2306 Stan Shebs <shebs@cygnus.com>
2307 Edith Epstein <eepstein@cygnus.com>
2308 Andres MacLeod <amacleod@cygnus.com>
2309 Satish Pai <pai@apollo.hp.com>
2310
2311 * HP aCC demangling support.
2312 * cplus-dem.c
2313 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2314 demangling correctly when -edg specified; set the demangling style
2315 when user specifies 'edg'. Set strip_underscore to
2316 prepends_underscore, if not HPUXHPPA. Set
2317 current_demangling_style to hp_demangling if HPUXHPPA. Set
2318 current demangling style correctly if the switch is hp. Read
2319 label correctly also in the HP style case.
252b5132 2320 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2321 function.
252b5132 2322 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2323 style for this case is the same as ARM.
252b5132
RH
2324 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2325 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2326 demangle_arm_pt.); check and set value of temp_start field in
2327 multiple places. Also, when ceching for end of template args,
2328 check to see if at end of static member of template class.
252b5132 2329 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2330 include template args in string defining class.
252b5132
RH
2331 (demangle_class_name): use demangel_arm_hp_template.
2332 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2333 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2334 Handle EDG_DEMANGLING style. Handle constructor and destructor
2335 ops for HP style.
252b5132 2336 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2337 styles. global destructor and constructor for HP style are same
2338 as for ARM style. Same for local variables.
252b5132
RH
2339 (demangle_qualified): handle EDG_DEMANGLING style.
2340 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
2341 cases '1' - '9' : initialize the temp_start field to -1 and handle
2342 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2343 and AUTO_DEMANGLING styles. If expecting a function and managed
2344 to demangle the funct args, then handle the LUCID_DEMANGLING,
2345 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2346 class name after "Lnnn_ in HP style case. HP style too needs to
2347 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 2348 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2349 value param for HP/aCC.
252b5132 2350 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2351 literal parameter for HP aCC.
252b5132
RH
2352 (recursively_demangle): new function
2353 (snarf_numeric_literal): new function.
2354 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2355 to message.
252b5132
RH
2356
2357Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2358
2359 * pexecute.c: Remove obsolete ifdefed cygwin code.
2360
2361Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2362
2363 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2364 * cplus-dem.c: Likewise. Conform to libiberty.h.
2365 * pexecute.c: Likewise.
2366 * splay-tree.c: Likewise.
2367
23681998-11-25 Mike Stump <mrs@wrs.com>
2369
2370 * Makefile.in (splay-tree.o): Add config.h dependency.
2371
2372Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2373
2374 * configure.in: Use AC_PREREQ(2.12.1).
2375
23761998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2377
b4fe2683 2378 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2379
2380Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2381
2382 * mpw.c (mpw_access): Add missing parens.
2383
2384Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2385
2386 * configure.in: Call AC_HEADER_SYS_WAIT.
2387
2388 * pexecute.c: Include sys/wait.h when !IN_GCC.
2389
2390Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2391
2392 * pexecute.c: revert back to checking old Cygwin
2393 preprocessor symbol until some time has passed.
2394
2395Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2396
2397 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2398 since it will now support similar constructs.
2399
2400Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2401
2402 * configure.in: Check for calloc.
2403
2404 * calloc.c: New file.
2405
2406 * xmalloc.c (xcalloc): New function.
2407
2408Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2409
2410 *cplus-dem.c (demangle_prefix): Use the last "__"
2411 in the mangled name when looking for the signature. This allows
2412 template names to begin with "__".
2413
24141998-11-08 Mark Mitchell <mark@markmitchell.com>
2415
2416 * cplus-dem.c (type_kind_t): Add tk_reference.
2417 (demangle_template_value_parm): Handle it.
2418 (do_type): Use it for references, instead of tk_pointer.
2419
2420 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2421 not internal_cplus_demangle.
2422
2423Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2424
2425 * choose-temp.c: Don't include gansidecl.h.
2426 * mkstemp.c: Likewise.
2427 * pexecute.c: Likewise.
2428
2429Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2430
b4fe2683
JM
2431 * configure.in: detect cygwin* instead of cygwin32*
2432 * configure: regenerate
252b5132
RH
2433
2434Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2435
2436 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
2437 whether to include config.h. Possibly include unistd.h in the
2438 !IN_GCC case. Define VFORK_STRING as a printable function call
2439 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2440 defined, include vfork.h. If VMS is defined, define vfork()
2441 appropriately. Remove vfork check on USG, we're using autoconf.
2442 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2443 locally what string to use.
252b5132
RH
2444
24451998-10-26 Mark Mitchell <mark@markmitchell.com>
2446
2447 * splay-tree.c: Tweak include directives to make sure declarations of
2448 xmalloc and free are available.
2449
24501998-10-25 Mark Mitchell <mark@markmitchell.com>
2451
2452 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2453 anonymous namespaces.
2454
24551998-10-23 Mark Mitchell <mark@markmitchell.com>
2456
2457 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2458 with type_quals.
2459 (TYPE_UNQUALIFIED): New macro.
2460 (TYPE_QUAL_CONST): Likewise.
2461 (TYPE_QUAL_VOLATILE): Likewise.
2462 (TYPE_QUAL_RESTRICT): Likewise.
2463 (code_for_qualifier): New function.
2464 (qualifier_string): Likewise.
2465 (demangle_qualifier): Likewise.
2466 (internal_cplus_demangle): Use them.
2467 (demangle_signature): Likewise.
2468 (demangle_template_value_parm): Likewise.
2469 (do_type): Likewise.
2470 (demangle_fund_type)): Likewise.
2471
2472Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2473
2474 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2475 to match prototype.
2476
24771998-10-21 Mark Mitchell <mark@markmitchell.com>
2478
2479 * splay-tree.c: New file.
2480 * Makefile.in (CFILES): Add it.
2481 (REQUIRED_OFILES): Likewise.
2482 (splay-tree.o): Add dependencies.
2483
2484Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2485
2486 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2487 range of 'K' index.
2488
2489Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2490
2491 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2492
2493 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2494 `unsigned char'.
2495 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2496 comparing against one.
2497 (cplus_mangle_opname): Likewise.
2498 (demangle_integral_value): Cast argument of ctype macro to
2499 `unsigned char'.
2500 (demangle_template_value_parm): Likewise.
2501 (demangle_template): Initialize variable `bindex'. Cast the
2502 result of `strlen' to (int) when comparing against one. Remove
2503 unused variable `start_of_value_parm'.
2504 (demangle_class_name): Cast the result of `strlen' to (int) when
2505 comparing against one.
2506 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2507 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2508 when comparing against one.
2509 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2510 (get_count): Likewise.
2511 (do_type): Likewise. Cast the result of `strlen' to (int) when
2512 comparing against one.
2513 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2514 (demangle_function_name): Cast the result of `strlen' to (int)
2515 when comparing against one.
2516
2517 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2518 comparing against one.
2519
2520Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2521
b4fe2683
JM
2522 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2523 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2524 * config.in, configure: Rebuilt.
252b5132
RH
2525
2526 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2527 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2528 * config.in, configure: Rebuilt.
2529
2530Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2531
b4fe2683 2532 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2533
2534Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2535
2536 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2537
2538Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2539
2540 * Merge egcs & devo libiberty.
2541