]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* varray.c (element_size): Remove.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
5533bc76 12003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
2
3 * libiberty.texi: Update to GFDL 1.2.
4
7f13318a 52003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6
7 * Makefile.in (libiberty_topdir): New subst.
8 (mkinstalldirs): Redefine in terms of the above.
9 * configure.in: AC_SUBST it.
10 * configure: Regenerate.
11
9d2299ec 122003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
13
14 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
15 (info-subdir, install-info-subdir, clean-info-subdir)
16 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
17 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
18 Pass $(FLAGS_TO_PASS).
19
49f7db63 202003-01-27 Alexandre Oliva <aoliva@redhat.com>
21
22 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
23 /`$$CC -print-multi-os-directory`.
24
a21acbbb 252003-01-26 Daniel Jacobowitz <drow@mvista.com>
26
27 * hashtab.c (htab_create_alloc_ex): New function.
28 (hatab_set_functions_ex): New function.
29 (htab_delete, htab_expand): Support alternate allocation functions.
30
8c171144 312003-01-24 Christopher Faylor <cgf@redhat.com>
32
33 * configure.in: Remove special pex-cygwin consideration.
34 * configure: Regenerate.
35 * pex-cygwin.c: Remove.
36 * Makefile.in: Remove pex-cygwin.[co] lines.
37
8cb0536d 382003-01-24 Zack Weinberg <zack@codesourcery.com>
39
40 * Makefile.in (CFILES): Add pex-*.c.
41 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
42 (CONFIGURED_OFILES): Add pex-*.o.
43 (TEXIFILES): Add pexecute.txh.
44 (pexecute.o): Delete rule.
45 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
46 pex-unix.o, pex-win32.o): New rules.
47 * configure.in: Change AC_INIT argument to xmalloc.c.
48 Compute appropriate pexecute implementation and substitute it
49 as @pexecute@.
50
51 * pexecute.c: Split up into...
52 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
53 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
54 new files.
55
56 * functions.texi: Regenerate.
57 * configure: Regenerate.
58
aa5761b7 592003-01-20 Josef Zlomek <zlomekj@suse.cz>
60
61 * hashtab.c (htab_expand): Fix allocation of new entries.
62
71aad3b8 632003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
64
65 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
66
2e6a336d 67 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
68 mkinstalldirs command.
69
e162e528 702002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
71
72 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
73 Define for hosts with HOST_EXECUTABLE_SUFFIX.
74
aba68506 752002-11-24 Nick Clifton <nickc@redhat.com>
76
77 * make-relative-prefix.c (make_relative_prefix): Ensure return
78 string is empty before using strcat to construct it.
79
5feeeb38 802002-11-22 Daniel Jacobowitz <drow@mvista.com>
81
82 * Makefile.in: Add make-relative-prefix.c.
83 * make-relative-prefix.c: New file.
84 * functions.texi: Rebuilt.
85
d7022963 862002-11-16 Jakub Jelinek <jakub@redhat.com>
87
88 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
89 used with arguments in traditional C' warnings.
90
dacb9fcc 912002-10-16 Jakub Jelinek <jakub@redhat.com>
92
93 * config.table: Use mh-s390pic for s390x too.
94
ff02de61 952002-10-06 Andreas Jaeger <aj@suse.de>
96
97 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
98 variable and of strict-aliasing warning.
99 (grow_vect): Use char as first parameter.
100
5f7912d8 1012002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
102
103 * Makefile.in (all): Fix multilib parallel build.
104
05455547 1052002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
106
107 * cp-demangle.c (demangling_new): Cast 0 to enum.
108 (demangle_char): Cast return of strdup to char *.
109 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
110 (is_gnu_v3_mangled_dtor): Likewise.
111 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
112 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
113 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
114 * md5.c (md5_process_bytes): Cast results back to const void *.
115 (md5_process_block): Add cast to const md5_uint32 *.
116 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
117 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
118 unsigned short.
119 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
120 to void *.
121 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
122
bd5d1805 1232002-09-19 Nick Clifton <nickc@redhat.com>
124
125 * README: Update email addresses for bugs and patches.
126
0fe3478a 1272002-09-10 Mike Stump <mrs@apple.com>
128
129 * splay-tree.c (splay_tree_successor): Fix comments.
130
65e49ff1 1312002-09-11 Zack Weinberg <zack@codesourcery.com>
132
808b5085 133 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
65e49ff1 134 * testsuite/Makefile.in: Adjust for test-demangle.
135 * testsuite/regress-demangle: Deleted.
136 * testsuite/test-demangle.c: New file.
137 * testsuite/demangle-expected: Change \$ to $ throughout, now that
138 this file is not being read by a shell script.
139
5ca95c55 1402002-09-05 Roger Sayle <roger@eyesopen.com>
141
142 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
143
b251a88a 1442002-08-07 DJ Delorie <dj@redhat.com>
145
146 * regex.c (re_error_msgid): Just use a simple array of strings.
147 (re_compile_pattern): Compensate.
148 (re_comp): Likewise.
149 (re_comp): Likewise.
150 (regerror): Likewise.
151
f4e29b4a 1522002-07-29 Neil Booth <neil@daikokuya.co.uk>
153
154 * cplus-dem.c (PREPEND_BLANK): Remove.
ff02de61 155
abcf0552 1562002-07-10 Jason Merrill <jason@redhat.com>
157
158 * cp-demangle.c (demangle_identifier): Support extended Unicode
159 characters.
160
c62ef5b5 1612002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
162
163 * cp-demangle.c (demangle_v3_with_details): Wrap in
ff02de61 164 !defined IN_GLIBCPP_V3.
c62ef5b5 165
74c75ba5 1662002-07-01 Mark Mitchell <mark@codesourcery.com>
167
168 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
169 Set it for the "st" operator.
170 (demangle_expression): Handle expressions with types as arguments.
171
b2835908 1722002-06-30 Douglas Rupp <rupp@gnat.com>
173
174 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
175 * Makefile.in (OUTPUT_OPTION): Use.
176
c75cb827 1772002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
178
179 * Makefile.in (install_to_libdir): Add $(DESTDIR).
180 (install_to_tooldir): Likewise.
181
55fc5d04 1822002-06-17 Douglas Rupp <rupp@gnat.com>
183
184 * lbasename.c: Add 2002 to copyright.
185 (IS_DIR_SEPARATOR): Remove VMS junk.
186
8d24e548 1872002-06-05 Geoffrey Keating <geoffk@redhat.com>
188
189 * hashtab.c (htab_create): New stub function for backward
190 compatibility.
191 (htab_try_create): Likewise.
192
1f3233d1 1932002-06-03 Geoffrey Keating <geoffk@redhat.com>
194
195 * hashtab.c (htab_create): Delete.
196 (htab_try_create): Delete.
197 (htab_create_alloc): New.
198 (htab_delete): Support user-specified memory allocation.
199 (htab_expand): Likewise.
200
daa2cd64 2012002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
202
203 * configure.in: Fix typo in the code checking for sys_errlist.
204 * configure: Regenerated.
205
70102259 2062002-05-13 Andreas Schwab <schwab@suse.de>
207
208 * config.table: Use mh-x86pic also for x86-64.
209
0b045cf7 2102002-05-08 Alexandre Oliva <aoliva@redhat.com>
211
212 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
213 script entry, and set LD to it when configuring multilibs.
214 * configure: Rebuilt.
215
63e428d5 2162002-05-07 Mark Mitchell <mark@codesourcery.com>
217
218 * configure.in (AC_TYPE_PID_T): Use it.
219 * configure: Regenerated.
220 * getruntime.c: Include <sys/types.h>.
221 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
222
8c8eb750 2232002-04-09 Richard Henderson <rth@redhat.com>
224
225 * hashtab.c (higher_prime_number): Use 7 as minimum.
226 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
227 (htab_find_slot_with_hash): Likewise.
228
5acfe29d 2292002-04-01 Phil Edwards <pme@gcc.gnu.org>
230
231 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
232 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
233 not compile if IN_GLIBCPP_V3 defined.
234 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
235
87591c4a 2362002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
237
ff02de61 238 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
87591c4a 239 if it is NULL.
240
b8327a91 2412002-03-27 DJ Delorie <dj@redhat.com>
242
243 * hex.c: Add documentation.
244 (_hex_value): Provide non-ASCII empty table.
245 (hex_init): Initialize the non-ASCII table.
246 * functions.texi: Regenerate.
247
baf716a5 2482002-03-27 Mark Mitchell <mark@codesourcery.com>
249
250 * dyn-string.c: Add libgcc exception to copyright notice.
251
60d10194 2522002-03-26 H.J. Lu (hjl@gnu.org)
253
254 * config.table: Support --with-build-subdir.
255 * configure.in: Likewise.
256 * configure: Rebuild.
257
8b7d2865 2582002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
259
260 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
261 seen.
262
8916275c 2632002-03-12 Mark Mitchell <mark@codesourcery.com>
264
265 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
266 notice.
267
241f7b9c 2682002-03-11 Douglas B Rupp <rupp@gnat.com>
269
270 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
271
bc95356d 2722002-03-06 Jim Blandy <jimb@redhat.com>
273
274 * splay-tree.c (splay_tree_xmalloc_allocate,
275 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
276 prototyped definitions. Mark `data' arguments as unused.
277
5a3c5094 2782002-03-06 Andrew Cagney <ac131313@redhat.com>
279
280 * floatformat.c (floatformat_arm_ext_big): Delete definition.
281
9123512a 2822002-03-04 Phil Edwards <pme@gcc.gnu.org>
283
284 * configure.in: Add --enable-install-libiberty option.
285 * Makefile.in (INSTALLED_HEADERS): New variable.
286 (install_to_libdir): Possibly also copy headers.
287 * configure: Regenerated.
288
5e571023 2892002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
290
291 * xmalloc.c (xmalloc_fail): Clarify error message further.
292
323c06f5 2932002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
294
295 * xmalloc.c (xmalloc_fail): Clarify error message.
296
a3af3ae8 2972002-02-22 Jim Blandy <jimb@redhat.com>
298
299 * splay-tree.c (splay_tree_xmalloc_allocate,
300 splay_tree_xmalloc_deallocate): New functions.
301 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
302 above functions and a dummy data pointer.
303 (splay_tree_new_with_allocator): New function.
304 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
305 splay_tree_remove): Use the splay tree's allocation and
306 deallocation functions.
307
080f842c 3082002-02-19 Scott Snyder <snyder@fnal.gov>
309
310 * testsuite/demangle-expected: Add test case for infinite loop in
311 demangler.
312 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
313 if do_type() doesn't make any progress --- prevents an infinite
314 loop.
315
a9e05c62 3162002-02-18 Carlo Wood <carlo@gnu.org>
317
318 PR c++/5390
319 * cplus-dem.c (demangle_integral_value): Accept multi-digit
320 numbers that do not start with an underscore; This is needed
321 for integer template parameters. This doesn't break anything
322 because multi-digit numbers are never followed by a digit.
323 * testsuite/demangle-expected: Corrected all mangled test
324 cases with multi-digit template parameters: g++ 2.95.x does
325 not generate underscores around these parameters.
326
c6d86b63 3272002-02-05 Jason Merrill <jason@redhat.com>
328
329 * cplus-dem.c (flags): Add DMGL_VERBOSE
330 (cplus_demangle_v3_p): Remove.
331 (demangle_it): Add DMGL_TYPES to passed flags.
332 * cp-demangle.c (cplus_demangle_v3_all): Remove.
333 (cplus_demangle_v3_type): Remove.
334 (cplus_demangle_v3): Add options parm.
335
9bd54051 3362002-02-02 H.J. Lu (hjl@gnu.org)
337
338 * cp-demangle.c (cp_demangle_type): Do not protect with
339 IN_LIBGCC2.
340 (cplus_demangle_v3_all): New.
341 (cplus_demangle_v3): Call cplus_demangle_v3_all.
342 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
343
344 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
345 Initialized to cplus_demangle_v3.
346 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
347 of cplus_demangle_v3.
348 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
349 command line symbol.
350
351 * testsuite/regress-demangle: Pass the mangled name at the
352 command line.
353
db248273 3542002-02-01 H.J. Lu <hjl@gnu.org>
355
356 * cp-demangle.c (cp_demangle_type): Call demangling_new with
357 DMGL_GNU_V3.
358
89a5385c 3592002-01-31 Phil Edwards <pme@gcc.gnu.org>
360
361 * cp-demangle.c: Revert yesterday's change.
362
da383dd4 3632002-01-31 Adam Megacz <adam@xwt.org>
364
365 * gcc/libiberty/configure.in: Treat mingw the same as cywin
366 wrt HAVE_SYS_ERRLIST.
367
1e72f309 3682002-01-30 Phil Edwards <pme@gcc.gnu.org>
369
370 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
371 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
372 cp_demangle_type.
373 * testsuite/demangle-expected: New gnu-v3 test.
374
2c79f170 3752002-01-22 Momchil Velikov <velco@fadata.bg>
376
377 * configure.in (variable detection): Use arrays of unspecified
378 size instead of plain integers.
379
98b6fc70 3802002-01-18 DJ Delorie <dj@redhat.com>
381
382 * Makefile.in (TESTLIB): New. This library is for future
383 testsuites.
384 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
385 break down by letter.
386 (REQUIRED_OFILES): List long-to-compile files first.
387 (maint-deps): New, target for updating dependencies.
388 (dependencies): Update.
389 * maint-tool: Add dependency-generating option.
390 * configure.in: Check for _doprnt even if we're not providing it.
391 * configure: Regenerate.
392
393 * _doprnt.c: Modifications to allow compiling on any platform.
394 * copysign.c: Likewise.
395 * putenv.c: Likewise.
396 * setenv.c: Likewise.
397 * vsprintf.c: Likewise.
398
b4eac72f 3992002-01-15 Douglas B Rupp <rupp@gnat.com>
400
401 * mkstemps.c (mkstemps): On VMS, open temp file with option
402 that causes it to be deleted when closed.
403
7806d7a4 4042002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
405
c077395f 406 * cp-demangle.c (long_options): Const-ify.
407 * cplus-dem.c (long_options): Likewise.
408
7806d7a4 409 * cplus-dem.c (mystrstr): Delete. All callers changed to use
410 strstr instead.
411
936c37fd 4122001-12-31 Ira Ruben <ira@apple.com>
413
414 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
415 * configure: Regenerated.
e9894157 416
4172001-12-24 Douglas B. Rupp <rupp@gnat.com>
418
419 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
420 * configure: Regenerated.
936c37fd 421
4e3ed534 4222001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
423
424 PR other/2719
425 * cplus-dem.c (consume_count): Treat negative count as an error.
426 * testsuite/demangle-expected: Added testcase.
427
8f966bdb 428Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
429
430 * configure.in: Hardcode that vfork works on VMS host.
431 * configure: Regenerated.
432
8d87ccec 4332001-12-06 Richard Henderson <rth@redhat.com>
434
435 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
436 (cplus_demangle): Support no_demangling.
437
31972771 4382001-11-27 Zack Weinberg <zack@codesourcery.com>
439
440 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
441 in libiberty context. Fix typo in leading comment.
442 * configure.in: Fix various AC_DEFINEs so autoheader works.
443 If any of vprintf, vsprintf, vfprintf is missing from libc,
444 then AC_REPLACE_FUNCS(_doprnt).
445
8e198eb2 4462001-11-26 DJ Delorie <dj@redhat.com>
31972771 447 Daniel Jacobowitz <drow@mvista.com>
8e198eb2 448
449 * Makefile.in (stamp-h): Depend on Makefile for proper
450 serialization.
451 (*-subdir): Depend on config.h for proper serialization.
452
c660fab8 4532001-11-26 DJ Delorie <dj@redhat.com>
454
455 * configure.in: Check for alloca.h (for regex.c and putenv.c).
456 * configure: Regenerate.
457 * config.h: Add HAVE_ALLOCA_H.
458
43eb13f7 4592001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
460
81cea2ab 461 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
462 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
463 is available.
43eb13f7 464
e9fb7b39 465Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
466
7b190504 467 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
468 * configure.in (HAVE_UINTPTR_T): Test for system defining
469 uintptr_t and define HAVE_UINTPTR_T appropriately.
470 * regex.c (uintptr_t): Do not provide a definition if the
471 system provided one.
472
e9fb7b39 473 * regex.c (PREFIX): Provide an alternate definition for
474 non-ANSI/ISO compilers.
475 (ARG_PREFIX): Likewise.
476
448378fc 4772001-11-12 Jim Meyering <meyering@lucent.com>
478
479 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
480 this code would end up calling gettext even in packages built
481 with --disable-nls.
482 * getopt.c (_): Likewise.
483 * regex.c (_): Likewise.
484
7c9e70dd 4852001-11-03 Alan Modra <amodra@bigpond.net.au>
486
487 * configure.in: Cope with missing makeinfo.
ebfeb892 488 * configure: Regenerate.
7c9e70dd 489
a3493641 4902001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
491
e500d428 492 * hex.c (hex_init): Provide empty stub.
493
a3493641 494 * hex.c (hex_init): Delete.
495 (_hex_value): Const-ify and initialize at compile-time.
496
3de15244 4972001-10-19 H.J. Lu <hjl@gnu.org>
498
499 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
500 necessary.
501
f0ed5ac1 5022001-10-17 DJ Delorie <dj@redhat.com>
503
504 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
505 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
0af1044a 506 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
f0ed5ac1 507 Improve manual formatting.
508 * functions.texi: Regenerate.
509
349e8276 5102001-10-15 DJ Delorie <dj@redhat.com>
511
512 * Makefile.in (TEXIFILES): Add fnmatch.txh.
513 (maint-undoc): New.
514 maint-tool: Add "undoc" tool.
515 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
516 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
517 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
518 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
519 documentation.
520 * fnmatch.txh: New.
521 * functions.texi: Regenerate.
8cc9ccc9 522
8a630ee4 5232001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
524
525 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
526 * strtod.c: Use "ISO C" instead of "ANSI C".
527 * functions.texi: Regenerate.
528
a3a8a3df 5292001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
530
531 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
532 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
533 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
534 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
535 spelling. Give names to function arguments in documentation. Use
536 (void) prototypes in documentation.
537 * functions.texi: Regenerate.
538
542e9271 5392001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
540
541 * argv.c (buildargv, tests, main): Const-ify.
542 * cp-demangle.c (operator_code): Likewise.
543 * cplus-dem.c (optable, libiberty_demanglers,
544 cplus_demangle_set_style, cplus_demangle_name_to_style,
545 print_demangler_list): Likewise.
546 * hashtab.c (higher_prime_number): Likewise.
547 * strcasecmp.c (charmap): Likewise.
548 * strerror.c (error_info, strerror, main): Likewise.
549 * strncasecmp.c (charmap): Likewise.
550 * strsignal.c (signal_info): Likewise.
551
5b7836cc 5522001-09-29 DJ Delorie <dj@redhat.com>
553
554 * configure: Regenerate.
555
e7faea46 5562001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
557
558 * concat.c: Include stdlib.h.
559
997fdf4a 5602001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
561
562 * libiberty.texi: (Top level): Add syncodeindex pg. Add
563 @dircategory and @direntry directives. Add @finalout.
564 (many nodes): Lose the next,prev,up pointers on the @nide line.
565 (Using, Supplemental Functions, Replacement Functions): Fix
566 markup.
567 (Functions): Move around, to allow makeinfo to build the manual
568 without next,prev,up pointers in thye node lines.
569 (Licenses): Fix typos.
570
571 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
572 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
573 * functions.texi: Regenerate.
574
575 * copying-lib.texi: Lose the next,prev,up pointers on the @node
576 line.
577
eb765d0c 5782001-09-27 DJ Delorie <dj@redhat.com>
579
580 * configure.in: Don't use in-tree texinfo, because libiberty must
581 be built before it. Check for makeinfo version 4 or higher.
582 * functions.texi: Regenerate.
8cc9ccc9 583
614a23c6 5842001-09-20 DJ Delorie <dj@redhat.com>
585 Phil Edwards <pedwards@disaster.jaj.com>
8cc9ccc9 586
614a23c6 587 * configure.in (MAKEINFO, PERL): Detect these.
588 (--enable-maintainer-mode): Add.
589 * configure: Regenerate.
590 * Makefile.in (MAKEINFO, PERL): Define.
591 (libiberty.info, libiberty.dvi, libiberty.html): New.
592 (CFILES): Add bsearch.c.
593 (CONFIGURED_OFILES): New, list of objects configure might add.
594 (maint-missing, maint-buildall): New, for maintainers only.
595 (clean, mostlyclean): Add info/dvi/html files.
596 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
597 * gather-docs: New, for maintainers.
598 * maint-tool: New, for maintainers.
599 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
600 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
601 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
602 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
603 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
604 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
605 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
606 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
607 documentation.
8cc9ccc9 608
92f03c00 6092001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
610
611 * concat.c (reconcat): Fix for traditional C.
612
0be2ebc7 6132001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
614
615 * concat.c (reconcat): New function.
616
add62f6a 6172001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
618
9659201a 619 * concat.c (vconcat_length, vconcat_copy, concat_length,
620 concat_copy, concat_copy2): New functions.
621 (concat): Use vconcat_length/vconcat_copy.
622
add62f6a 623 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
624 Define.
625
2bfbbd2b 6262001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
627
628 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
629 VA_FIXEDARG & VA_CLOSE.
8cc9ccc9 630
2bfbbd2b 631 * vasprintf.c: Check HAVE_STRING_H when including string.h.
632 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
633 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
634
68036f05 6352001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
636
637 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
638
958cb671 6392001-08-23 Ulrich Drepper <drepper@redhat.com>
640
641 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
642
6432001-08-23 Ulrich Drepper <drepper@redhat.com>
644
645 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
646 instead of mbrtowc.
647 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
648 wcslen, and __wcscoll instead of wcscoll.
649
b266b68b 6502001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
651
ff02de61 652 * fibheap.c (fibheap_init, fibnode_init): Remove.
653 (fibheap_new, fibnode_new): Use xcalloc to allocate and
654 initialize memory.
655 (fibheap_insert): Remove check for node allocation failure.
b266b68b 656
c6028964 6572001-08-21 Richard Henderson <rth@redhat.com>
658
659 * Makefile.in (fibheap.o): Depend on config.h.
660 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
661 functions for inlining.
662
3652f680 663Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
664
665 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
666 hosting on cygwin.
667 * configure: Regenerate.
668
95f0a124 6692001-08-20 Andrew Cagney <ac131313@redhat.com>
670
671 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
672 HARRIS_FLOAT_FORMAT.
673 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
674 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
675 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
676 (floatformat_m88110_harris_ext): New float formats.
677
522a00cd 6782001-08-20 Daniel Berlin <dan@cgsoftware.com>
679
680 * fibheap.c: New file. Fibonacci heap.
681
682 * Makefile.in (CFILES): Add fibheap.c.
683 (REQUIRED_OFILES): Add fibheap.o.
684 (fibheap.o): Add dependencies for fibheap.o.
685
6a51e4c4 6862001-08-17 Christopher Faylor <cgf@cygnus.com>
687
688 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
689 * configure: Regenerate.
690
80f07f6c 6912001-08-16 Richard Henderson <rth@redhat.com>
692
693 * hashtab.c (htab_hash_string): New.
694
e9106811 6952001-08-13 Andrew Cagney <ac131313@redhat.com>
696
697 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
698 name.
699
458e9fd0 7002001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
701
702 * regex.c (wcs_regex_compile): Use appropriate string
703 to compare with collating element.
704 Fix the padding for the alignment.
705
da8a7320 7062001-08-10 Andrew Cagney <ac131313@redhat.com>
2bce2a69 707
708 * lbasename.c (lbasename): Change function definition to return a
709 const char pointer.
710
6539a5d8 7112001-08-07 Jason Merrill <jason_merrill@redhat.com>
712
713 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
714 for".
715
2644ae20 7162001-08-03 Richard Henderson <rth@redhat.com>
717
718 * Makefile.in (concat.o): Depend on config.h.
719
6c9ffcbc 7202001-07-30 Andreas Jaeger <aj@suse.de>
721
722 * concat.c: Include "config.h".
723
9f21bac8 7242001-07-30 Andreas Jaeger <aj@suse.de>
725
726 * regex.c: Declare wcs functions only if compiling with
727 MBS_SUPPORT.
728 Don't use #elif for traditional C.
729
7302001-07-23 Ulrich Drepper <drepper@redhat.com>
731
732 * regex.c: Revamp memory allocation for WCHAR functions to
733 not use too much stack.
734
7352001-07-30 Andreas Jaeger <aj@suse.de>
736
737 * regex.c: Declare wcs functions only if compiling with
738 MBS_SUPPORT.
739 Don't use #elif for traditional C.
740
2bbbdf1a 7412001-07-25 Daniel Jacobowitz <drow@mvista.com>
742
743 * Makefile.in (regex.o): Add dependency on config.h.
744
b92e80db 7452001-07-18 Andreas Schwab <schwab@suse.de>
746
747 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
748 underscore character.
749
7502001-07-18 Ulrich Drepper <drepper@redhat.com>
751
752 * regex.c: Limit string length printed in debug messages to 100
753 chars.
754
7552001-07-18 Andreas Jaeger <aj@suse.de>
756
757 * regex.c: Place under LGPL version 2.1.
758
7703a7de 7592001-07-10 Jeff Johnston <jjohnstn@redhat.com>
760
761 * Makefile.in: Add support for regex code.
762 * regex.c: New file.
763
8568af22 7642001-07-05 Mark Klein <mklein@dis.com>
765
766 * Makefile.in: Add ffs.c dependency.
767 * configure.in: Add ffs.c.
768 * ffs.c: New file.
769
c1a60b7d 7702001-06-18 Richard Henderson <rth@redhat.com>
771
772 * concat.c: Include <sys/types.h>.
773
66806be2 7742001-06-11 Loren J. Rittle <ljrittle@acm.org>
775
2778f1dc 776 bootstrap/3106
66806be2 777 * strerror.c (sys_nerr): Hide the OS header version.
778 * strsignal.c (sys_nsig): Likewise.
779
222ce6b9 7802001-06-10 Richard Henderson <rth@redhat.com>
781
782 * concat.c: Include string.h. Fix int vs size_t usage.
783 Simplify the iteration loops. Use memcpy.
784
cb6758b9 7852001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
786
787 * partition.c: Fix misspelling of `implementation'.
788
091eef96 7892001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
790
791 * md5.c (md5_init_ctx): Declare constants as unsigned.
792 (md5_process_block): Likewise.
793
e5f55ef4 7942001-05-07 Zack Weinberg <zackw@stanford.edu>
795
796 * cp-demangle.c (demangle_v3_with_details,
797 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
798 function definition.
799 * ternary.c: Use K+R style function definitions. Use PTR, not
800 void *. Make arguments constant where possible.
801
c99b4ef9 8022001-05-07 Mark Mitchell <mark@codesourcery.com>
803
804 * splay-tree.h (splay_tree_max): New function.
805 (splay_tree_min): Likewise.
806
eec19420 8072001-04-15 Daniel Berlin <dan@cgsoftware.com>
808
809 * ternary.c: New file - Ternary search tree implementation.
810
811 * Makefile.in: Add ternary.o, and ternary.c dependencies.
812
673b6e5a 8132001-04-03 Zack Weinberg <zackw@stanford.edu>
814
815 * make-temp-file.c (try): Inline.
816
b8f02fb2 8172001-02-28 Richard Henderson <rth@redhat.com>
818
819 * Makefile.in (make-temp-file.o): Depend on config.h.
820
b130ede9 8212001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
822
823 * memchr.c (memchr): Adjust condition to avoid infinite loop.
824
5a4fcef0 8252001-03-23 Jakub Jelinek <jakub@redhat.com>
826
827 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
828 `_' not followed by a digit is invalid.
829
c83c8218 8302001-03-22 Jim Blandy <jimb@redhat.com>
831
832 * cp-demangle.c (string_list_delete): Use dyn_string_delete
833 instead of free, to free the contents as well as the string
834 structure.
835
7e660a1b 8362001-03-21 Zack Weinberg <zackw@stanford.edu>
837
838 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
839 Don't default P_tmpdir to anything. Try /var/tmp before
840 /usr/tmp.
841
e6351181 8422001-03-20 Zack Weinberg <zackw@stanford.edu>
843
844 * choose-temp.c: Split off make_temp_file, and the code
845 duplicated between it and choose_temp_base, into...
846 * make-temp-file.c: ... here; new file.
847
848 * Makefile.in (CFILES): Add make-temp-file.c.
849 (REQUIRED_OFILES): Add make-temp-file.o.
850
3a18c9fc 8512001-03-20 Jim Blandy <jimb@redhat.com>
852
853 * cp-demangle.c (struct demangling_def): New fields:
854 is_constructor and is_destructor.
855 (demangling_new): Initialize them.
856 (demangle_ctor_dtor_name): Set them, if we detect a constructor
857 or destructor.
858 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
859 is_gnu_v3_mangled_dtor): New functions.
860
d219f684 8612001-03-20 Jason Merrill <jason@redhat.com>
862
863 * cplus-dem.c (main): Skip initial $.
864
dfc58e62 8652001-03-15 Michael Meissner <meissner@redhat.com>
866
867 * hashtab.c (higher_prime_number): Silence warning that 4294967291
868 might be a signed integer under pre-ISO C systems.
869
0bce9b89 8702001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
871 John David Anglin <dave@hiauly1.hia.nrc.ca>
872
873 * libiberty/lbasename.c: New file.
874 * libiberty/Makefile.in: Update for lbasename.
875
012f1707 8762001-03-06 Zack Weinberg <zackw@stanford.edu>
877
878 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
879 * configure.in: Replace all alloca logic with a simple use of
880 the above new macro.
881 * config.table: Kill *-*-beos* entry.
882 * config/mh-beos: Delete.
883 * configure, config.in: Regenerate.
884
885 * Makefile.in (ALLOCA, HFILES): Kill.
886 (REQUIRED_OFILES): Add alloca.o.
887 (alloca.o): Depend on libiberty.h.
888 (argv.o): Don't depend on alloca-conf.h.
889 * alloca-conf.h: Delete.
890 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
891 blocks. Provide the C alloca unconditionally. Use PTR where
892 appropriate. Make i00afunc static.
893 * argv.c: Don't include alloca-conf.h.
894
163369e7 8952001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
896
897 * cplus-dem.c (main): Cast enum style to int.
898
39fb1bb6 8992001-02-16 Loren J. Rittle <ljrittle@acm.org>
900
901 * cplus-dem.c (main): Initialize style.
902
bace101a 9032001-02-02 Phil Edwards <pme@sources.redhat.com>
904
905 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
906
1c1033dd 9072001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
908
909 Add support for Java demangling under the v3 ABI:
910 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
911 (struct demangling_def): Add `style' field.
912 (demangling_new): New parameter `style'. Set it in demangling_t.
913 (demangle_prefix): Use NAMESPACE_SEPARATOR.
914 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
915 (cp_demangle): New parameter `style'. Pass it to demangling_new().
916 (main): Call cp_demangle with extra parameter.
917 (java_demangle_v3): New function.
918 (java_builtin_type_names): New. Table of primitive type names used
919 for Java demangling.
920 (demangle_builtin_type): Look up in java_builtin_type_names if doing
921 Java output.
012f1707 922 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1c1033dd 923 demangling.
924 (long_options): Remove obsolete `java' option.
925 (main): Remove explicit handling of `java' option. Instead, pass style
926 parameter in cplus_demangle flags as gdb does.
927 * testsuite/demangle.expected: Add some Java test cases.
928
fec9182b 9292000-12-29 DJ Delorie <dj@redhat.com>
930
931 * fnmatch.c: Make the note about the origins of this file more
932 accurate, at least until we can sync with glibc.
933 * getopt.c: Ditto.
934 * getopt1.c: Ditto.
935 * md5.c: Ditto.
936 * obstack.c: Ditto.
937
5b9c32cc 9382000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
939
940 * bsearch.c: New file.
941 * configure.in (funcs): Add bsearch.
942 (AC_CHECK_FUNCS): Likewise.
943 * configure, config.in: Regenerate.
944
a973e2b1 9452000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
946
947 * safe-ctype.c: #include "ansidecl.h".
948 * strtod.c: Likewise.
949
14282c1a 9502000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
951
952 * strtoul.c: Include safe-ctype.h, not ctype.h.
953
93ce8ce4 9542000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
955
956 * safe-ctype.c: New file.
957 * Makefile.in (CFILES): Add safe-ctype.c.
958 (REQUIRED_OFILES): Add safe-ctype.o.
959
960 * argv.c: Define ISBLANK and use it, not isspace.
961 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
962 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
963 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
964 before calling TOLOWER(c)/TOUPPER(c).
965
be6afa8f 9662000-12-07 Mike Stump <mrs@wrs.com>
e5fb0a98 967
968 * Makefile.in (distclean): When cleaning, remove testsuite.
969
cf0ad6a8 9702000-12-05 Jason Merrill <jason@redhat.com>
971
972 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
973 name before allocating the dyn_string.
974
bb505139 9752000-12-04 Jason Merrill <jason@redhat.com>
976
977 * cp-demangle.c: s/new_abi/v3/.
978 * cplus-dem.c: Likewise.
979 (current_demangling_style): Now auto_demangling.
980 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
93ce8ce4 981 (main): Use standard symbol chars for auto_demangling.
bb505139 982
54b3a5af 9832000-11-26 Mark Mitchell <mark@codesourcery.com>
984
985 * hashtab.c (higher_prime_number): Use a table, rather than a
986 seive, to find the next prime.
987
9628d706 9882000-11-22 H.J. Lu <hjl@gnu.org>
989
990 * cplus-dem.c (main): Handle gnat_demangling.
991
ec255163 9922000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
993
994 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
995 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
996 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
997 argument form of AC_DEFINE in dummy definitions block. Use
998 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
999 in dummy block. Preload cache variables instead of bypassing
1000 tests, where possible.
1001 * acconfig.h: Removed.
1002
1003 * xmalloc.c (xmalloc_failed): New function, does error
1004 reporting on failed allocation.
1005 (xmalloc, xcalloc, xrealloc): Use it.
1006
626946fb 10072000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1008
1009 * cplus-dem.c (cplus_demangle): Fix formatting.
1010 (grow_vect): Ditto.
1011 (ada_demangle): Ditto.
1012 (internal_cplus_demangle): Ditto.
1013 (mop_up): Ditto.
1014
10152000-11-21 H.J. Lu <hjl@gnu.org>
1016
1017 * cplus-dem.c (main): Handle java_demangling.
1018
918a89ef 10192000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1020
1021 * cplus-dem.c (grow_vect): Prototype.
1022 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1023
582f72ad 10242000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1025
1026 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1027 parameter `option'.
1028
0d6e3c59 10292000-11-15 Kenneth Block <kenneth.block@compaq.com>
1030
42ded3a1 1031 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 1032 be used in GCC.
1033
9df8b754 10342000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 1035
582f72ad 1036 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 1037 list.
1038
e4c2dc6e 10392000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1040
1041 * hashtab.c (htab_expand): Change to return int. Use calloc or
9f21bac8 1042 xcalloc depending on htab->return_allocation_failure. Return zero
1043 if calloc fails.
e4c2dc6e 1044 (htab_create): Update comment to cover memory allocation.
1045 (htab_try_create): New.
1046 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
9f21bac8 1047 Update comment to cover this.
e4c2dc6e 1048
696d6593 10492000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1050
1051 * hashtab.c: Change void * to PTR where necessary.
1052 (htab_create, htab_expand): Correct formatting of comment before
1053 function.
1054
8f2b45d4 10552000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 1056
1057 * cp-demangle.c (string_list_def): Add caret_position and comments.
1058 (result_caret_pos): New macro.
1059 (result_append_string): Rename to...
1060 (result_add_string): ... this, and insert at caret position.
ec255163 1061 Rename throughout.
f99edf23 1062 (result_append): Rename to...
1063 (result_add): ... this, and insert at caret position. Rename
ec255163 1064 throughout.
f99edf23 1065 (result_append_char): Rename to...
1066 (result_add_char): ... this, and insert at caret position. Rename
ec255163 1067 throughout.
f99edf23 1068 (result_append_space): Remove.
1069 (string_list_new): Initialize caret position.
1070 (result_add_separated_char): Use caret position.
1071 (result_get_caret): New funtion.
1072 (result_set_caret): Likewise.
1073 (result_shift_caret): Likewise.
1074 (result_previous_char_is_space): Likewise.
1075 (substitution_start): Use caret position.
1076 (substitution_add): Likewise.
1077 (demangling_new): Initialize caret position.
1078 (demangle_encoding): Use caret position.
ec255163 1079 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 1080 (demangle_type_ptr): Use switch statement. Handle pointers to
1081 arrays. Don't use result_append_space. Use caret position.
1082 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 1083 call to demangle_array_type.
1084 (demangle_array_type): Add parameter to handle pointers to arrays.
1085
a4e59c31 10862000-10-01 Mark Mitchell <mark@codesourcery.com>
1087
1088 * splay-tree.c (splay_tree_insert): Fix formatting.
1089
e41f0d80 10902000-09-16 Mark Mitchell <mark@codesourcery.com>
1091
1092 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1093
83d86ada 10942000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1095
1096 * splay-tree.c: #include <stdio.h>.
1097
78631810 10982000-09-14 Hans-Peter Nilsson <hp@axis.com>
1099
1100 * testsuite/demangle-expected: Add two tests for anonymous
1101 namespaces.
1102 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1103
508f18c8 11042000-09-10 Mark Mitchell <mark@codesourcery.com>
1105
1106 * splay-tree.c (splay_tree_predecessor): New function.
1107 (splay_tree_successor): Likewise.
1108
1a2d2193 11092000-09-10 Hans-Peter Nilsson <hp@axis.com>
1110
1111 * testsuite/demangle-expected: Add four tests for type_info
1112 mangling.
1a2d2193 1113 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1114 for a non-template non-qualified type_info function or node.
1115
09656987 11162000-09-08 Alex Samuel <samuel@codesourcery.com>
1117
1118 * cp-demangle.c: Fix copyright banner.
1119
7cc2d24b 11202000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1121
1122 * md5.c: #include "ansidecl.h".
1123
b83e8722 11242000-09-06 Alex Samuel <samuel@codesourcery.com>
1125
1126 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1127 (demangle_type): Handle substitution candidates correctly in the
1128 face of special substitutions.
1129
cf70278e 11302000-09-05 Alex Samuel <samuel@codesourcery.com>
1131
1132 * cp-demangle.c (demangle_encoding): Rename variable.
1133 (demangle_name): Rename parameter. Handle return type
1134 suppression.
1135 (demangle_nested_name): Rename parameter.
1136 (demangle_prefix): Likewise. Change return type suppression.
1137 (demangle_unqualified_name): Add parameter. Flag constructors and
1138 conversion operators.
1139 (demangle_special_name): Fix comment.
1140 (demangle_type): Rename variable.
1141 (demangle_bare_function_type): Check for missing return type and
ec255163 1142 parameter.
cf70278e 1143 (demangle_class_enum_type): Rename parameter.
1144 (demangle_discriminator): Fix misspelling in comment.
1145
4aabc076 11462000-08-31 DJ Delorie <dj@redhat.com>
1147
1148 * configure.in (Cygwin): special case cygwin only when we're
1149 building cygwin, not when we're hosting cygwin.
1150
804ddfd1 11512000-09-04 Alex Samuel <samuel@codesourcery.com>
1152
1153 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 1154 <expression>.
1155
e015a852 11562000-09-04 Alex Samuel <samuel@codesourcery.com>
1157
1158 * cp-demangle.c (demangle_type_ptr): Increment position past
1159 pointer and reference characters.
1160
2b6805b4 11612000-09-04 Alex Samuel <samuel@codesourcery.com>
1162
1163 * cp-demangle.c (demangle_nv_offset): New function.
1164 (demangle_v_offset): Likewise.
1165 (demangle_call_offset): Likewise.
1166 (demangle_special_name): Update thunk demangling to comply with
1167 ABI changes.
ec255163 1168
40e00cb0 11692000-09-03 Alex Samuel <samuel@codesourcery.com>
1170
1171 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1172 (substitution_def): Remove template_parm_number.
1173 (NOT_TEMPLATE_PARM): Remove.
1174 (result_insert_string): New macro.
1175 (result_insert): Likewise.
1176 (result_insert_char): Likewise.
1177 (substitution_add): Remove last parameter. Don't store template
ec255163 1178 parm number.
40e00cb0 1179 (BFT_NO_RETURN_TYPE): Define as NULL.
1180 (demangle_encoding): Adjust call to demangle_bare_function_type.
1181 (demangle_name): Adjust substitution. Adjust call to
ec255163 1182 substitution_add.
40e00cb0 1183 (demangle_prefix): Adjust call to substitution_add.
1184 (demangle_identifier): Handle anonymous namespaces.
1185 (demangle_operator_name): Change demangling of vendor-extended
1186 operator to match ABI changes.
1187 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 1188 substitutions here.
40e00cb0 1189 (demangle_type): Adjust calls to demangle_template_param,
1190 substitution_add, and demangle_type_ptr. Fix substitution of
1191 templated types.
1192 (demangle_function_type): Change parameter to a pointer.
1193 (demangle_bare_function_type): Likewise. Adjust insertion point.
1194 (demangle_template_param): Remove last parameter.
1195 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 1196 demangle_template_param.
40e00cb0 1197 (is_mangled_char): Accept `$' and `.'.
1198 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1199 * dyn-string.c (dyn_string_insert_char): New function.
1200
01f404a2 12012000-08-31 Hans-Peter Nilsson <hp@axis.com>
1202
1203 * testsuite/demangle-expected: Add nine tests for
1204 underscore-after-number followed by five tests for name-signature
1205 delimiter.
1206
d74245d4 12072000-08-28 Richard Henderson <rth@cygnus.com>
1208
1209 * Makefile.in (md5.o): Depend on config.h.
1210
19f716e5 12112000-08-28 Jason Merrill <jason@redhat.com>
1212
1213 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1214 (CFILES): Add md5.c.
1215 * md5.c: New file.
1216
f8aeab41 12172000-08-27 Alex Samuel <samuel@codesourcery.com>
1218
1219 * cp-demangle.c (demangle_name): Initialize template_p in local
1220 name case. Don't re-add substitutions as candidates.
1221 (demangle_nested_name): Use <unqualified-name>.
1222 (demangle_prefix): Likewise. Don't add template names as
1223 substitution candidates twice, or re-add a substitution or the
1224 last prefix component.
1225 (demangle_local_name): Adjust output format.
1226
62c2feed 12272000-08-25 Alex Samuel <samuel@codesourcery.com>
1228
1229 * cp-demangle.c (result_add_separated_char): Change parameter to
1230 int.
1231 (substitution_add): Don't check for duplicates. Check if
1232 previously allocated size is zero.
1233 (demangle_name): Remove duplicate check for std substitution.
1234 Clear template flag appropriately.
1235 (demangle_prefix): Remove argument to demangle_substitution.
1236 Don't check that template flag is already set.
1237 (demangle_operator_name): Add pt operator.
1238 (demangle_type): Don't treat r as built-in type. Remove argument
1239 to demangle_substitution. Fix substitution candidate mechanics.
1240 Handle <template-template-parm>s. Improve comments.
ec255163 1241 (demangle_template_param): Don't handle template arg lists here.
62c2feed 1242 (demangle_substitution): Remove parameter.
1243 (print_usage): Remove extra fprintf option.
1244
ee1d4c3d 12452000-08-24 Greg McGary <greg@mcgary.org>
1246
1247 * libiberty/random.c (end_ptr): Revert previous change.
1248
f0bff53d 12492000-08-24 Greg McGary <greg@mcgary.org>
1250
1251 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1252 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1253 * libiberty/random.c (end_ptr): Likewise.
1254
c1b316c0 12552000-08-23 Alex Samuel <samuel@codesourcery.com>
1256
1257 * cp-demangle.c (result_close_template_list): Remove function.
1258 (result_add_separated_char): New function.
1259 (result_open_template_list): New macro.
1260 (result_close_template_list): Likewise.
1261 (demangle_prefix): Don't set template_p if the
1262 prefix ends with a ctor name.
1263 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1264 (demangle_type): Check for template args after substitution.
1265 (demangle_template_args): Use result_open_template_list.
ec255163 1266
385b48fc 12672000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1268
1269 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1270
ec255163 12712000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 1272
1273 * config/mh-openedition.h: Added -DLE370 definition.
1274
8fc0efd2 12752000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1276
1277 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1278 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1279 Cast program to 'char *' in errmsg_arg assignment.
1280 (PWAIT_ERROR): Define.
1281 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1282 to DJGPP's WIF* macros.
1283
a1d4f79a 12842000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1285 Jeff Law <law@cygnus.com>
1286
98b4c197 1287 * getcwd.c: Include string.h, stdlib.h for prototypes
1288
a1d4f79a 1289 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 1290 * rename.c: Include config.h, unistd.h
1291 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 1292
01f404a2 12932000-07-24 Hans-Peter Nilsson <hp@axis.com>
1294
1295 * cplus-dem.c (work_stuff_copy_to_from): New.
1296 (delete_non_B_K_work_stuff): New.
1297 (delete_work_stuff): New.
1298 (mop_up): Break out work_stuff partly destruction to
1299 delete_non_B_K_work_stuff.
1300 (iterate_demangle_function): New.
1301 (demangle_prefix): Call iterate_demangle_function instead of
1302 demangle_function_name. Leave handling of name-signature
1303 __-delimiters to iterate_demangle_function.
1304 (demangle_integral_value): Strip an optional
1305 following underscore cautiously. Handle negative numbers.
1306
f2e5a608 13072000-07-24 Daniel Berlin <dberlin@redhat.com>
1308
ec255163 1309 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 1310 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1311
65bcf503 13122000-07-21 Alex Samuel <samuel@codesourcery.com>
1313
1314 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1315 allocating ctor mangling.
1316 (demangle_array_type): Handle empty and non-constant array length.
1317
68e6b6e1 13182000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 1319 Jeff Law <law@cygnus.com>
1320
1a163ca8 1321 * configure.in (AC_CHECK_HEADERS): Add time.h.
1322 (AC_HEADER_TIME): Add check.
1323 * configure, config.in: Regenerate.
1324 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1325
a451eef0 1326 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1327 * configure, config.in: Regenerate.
1328 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1329 * strtol.c, strtoul.c: #include "config.h". Portably #include
1330 <limits.h> and/or <sys/param.h>.
1331 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 1332
fb758229 1333 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1334 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1335 * configure, config.in: Regenerate.
1336 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1337
68e6b6e1 1338 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1339
ad46fec4 13402000-07-21 Mike Stump <mrs@wrs.com>
1341
1342 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 1343 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 1344
bb37062f 13452000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1346
1347 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1348
1349 * setenv.c (setenv): Initialize variable `ep'.
1350
1351 * sigsetmask.c (abort): Prototype.
1352
1353 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1354 __STDC__ for stdarg.h include.
1355 (int_vasprintf): Prototype.
1356 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1357 definition. Cast `global_total_width' in comparison.
1358 (main): Prototype. Return a value.
1359
1360 * vfork.c (fork): Prototype.
1361
1362 * xexit.c: Include config.h.
1363
6cb730c2 13642000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1365
1366 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1367 and print it with %u.
1368
e42d7fe1 13692000-07-17 Hans-Peter Nilsson <hp@axis.com>
1370
1371 * testsuite/regress-demangle (failed test): Show result and
1372 expected output.
1373
04ef60ef 13742000-07-07 Andrew Haley <aph@cygnus.com>
1375
1376 * cplus-dem.c (main): fflush() after emitting last char before
1377 waiting for input.
1378
b7f68aff 13792000-06-28 Alex Samuel <samuel@codesourcery.com>
1380
1381 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1382 (demangle_name): Handle <substitution> followed by
1383 <unqualified-template-name>.
1384 (demangle_type): Follow special substitutions with
1385 <class-enum-type>
1386 (demangle_subtitution): Set template_p for special substitutions.
1387 (main): Fix typos.
ec255163 1388
597f928d 13892000-06-27 Alex Samuel <samuel@codesourcery.com>
1390
1391 * cp-demangle.c (demangle_special_name): Swap base and derived
1392 class when demangling construction vtables.
1393
140d75d7 13942000-06-21 Alex Samuel <samuel@codesourcery.com>
1395
1396 * cp-demangle.c: Don't include ctype.h.
1397 (IS_DIGIT): New macro.
1398 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1399 instead of isdigit and isalpanum.
1400 (demangling_def): Make name and next const pointers.
1401 (STATUS_ALLOCATION_FAILED): New status code.
1402 (dyn_string_append_space): Handle failure in
1403 dyn_string_append_char.
1404 (int_to_dyn_string): Likewise. Change return value to status_t.
1405 (string_list_new): Handle failure of dyn_string_init.
1406 (result_close_template_list): Change return type to status_t.
1407 Handle failure in dyn_string_append.
1408 (result_push): Change return value to status_t. Handle failure in
1409 string_list_new. Handle failure of result_push throughout.
1410 (substitution_add): Change return value to status_t. Handle
1411 dyn_string failures. Handle failure of substitution_add
1412 throughout.
1413 (template_arg_list_new): Return NULL on allocation failure.
1414 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1415 Handle error result throughout.
1416 (result_append): Likewise.
1417 (result_append_char): Likewise.
1418 (result_append_space): Likewise.
1419 (demangling_new): Make argument a const pointer. Handle
1420 allocation failures.
1421 (demangle_template_args): Handle failure in template_arg_list_new
1422 and result_close_template_list.
1423 (demangle_discriminator): Return if int_to_dyn_string fails.
1424 (cp_demangle): Likewise.
1425 (cp_demangle_type): New function.
1426 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1427 memory allocation failure.
1428 (main): Likewise.
1429 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1430 IN_LIBGCC2.
1431 (dyn_string_init): Change return value to int. Handle
1432 RETURN_ON_ALLOCATION_FAILURE case.
1433 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1434 (dyn_string_release): Delete the dyn_string.
1435 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1436 (dyn_string_copy): Change return type to int.
1437 (dyn_string_copy_cstr): Likewise.
1438 (dyn_string_prepend): Likewise.
1439 (dyn_string_prepend_cstr): Likewise.
1440 (dyn_string_insert): Likewise.
1441 (dyn_string_insert_cstr): Likewise.
1442 (dyn_string_append): Likewise.
1443 (dyn_string_append_cstr): Likewise.
1444 (dyn_string_append_char): Likewise.
1445 (dyn_string_substring): Likewise.
ec255163 1446
210aba33 14472000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1448
1449 * cp-demangle.c (demangle_operator_name): Add spaces before
1450 names beginning with a letter: delete, delete[], new, new[],
1451 sizeof.
1452 (demangle_special_name): Handle TF <type> and TJ <type>.
1453
0b4450c1 1454Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1455
1456 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1457
e5d6924a 1458Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1459
1460 * cp-demangle.c (stdio.h): File included unconditionaly.
1461 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1462 * dyn-string.c (stdio.h): File included.
1463 * partition.c (partition_print): No `&' needed to take the address of
1464 a function.
1465
da8bd873 14662000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1467
1468 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 1469
da8bd873 1470 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1471
1472 * cp-demangle.c (demangle_char): Change parameter from char to int.
1473 (demangle_expression, demangle_expr_primary): Remove extra
1474 semi-colon in prototype.
1475
1476 * dyn-string.c (dyn_string_append_char): Change parameter from
1477 char to int.
1478
1479 * memcmp.c (memcmp): Constify.
1480
1481 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1482 __extension__.
1483
1484 * partition.c (elem_compare): Prototype. Don't cast away
1485 const-ness.
1486
1487 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 1488
4b7bc488 14892000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1490
1491 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1492
1493 * cp-demangle.c: Include demangle.h.
1494 (template_arg_list_new): DeANSIfy.
1495 (cp_demangle): Make static and add prototype.
1496 (operator_code, operators): Constify.
1497 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1498
7ae7b54c 14992000-06-05 Alex Samuel <samuel@codesourcery.com>
1500
1501 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1502 unsigned char.
1503 (demangle_unqualified_name): Likewise.
1504 (demangle_number_literally): Likewise.
1505 (demangle_type): Likewise.
1506 (demangle_substitution): Likewise.
1507 (is_mangled_char): Likewise, for isalnum.
1508
168d63e5 15092000-06-04 Alex Samuel <samuel@codesourcery.com>
1510
1511 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1512 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1513 (cp-demangle.o): New dependency.
1514 (dyn-string.o): Likewise.
1515
1516 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1517
1518 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1519 demangler.
1520 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1521 demangling mode.
1522 (gnu_new_abi_symbol_characters): New function.
1523 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1524 file.
1525 * cp-demangle.c: New file.
ec255163 1526
b5495c1d 1527Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1528
1529 * floatformat.c: Add name to each floatformat field.
1530
8fab1737 1531Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1532
1533 * Makefile.in (objalloc.o): Depend on config.h
1534
317ab997 15352000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1536
1537 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1538 if HAVE_STRING_H.
1539 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1540 * objalloc.c: Include config.h. Include stdlib.h and don't
1541 declare malloc or free if HAVE_STDLIB_H.
1542 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1543 else declare malloc without prototype. Include string.h if
1544 HAVE_STRING_H, else declare memset without prototype. Don't
1545 include stddef.h.
1546
874478ba 15472000-05-23 Mike Stump <mrs@wrs.com>
1548
1549 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
9f21bac8 1550 -j3.
874478ba 1551
55de1520 15522000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1553
1554 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1555
e51b357b 15562000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1557
ec255163 1558 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 1559 probably zero, also eliminate a warning on alpha.
1560
9e362499 15612000-05-15 David Edelsohn <edelsohn@gnu.org>
1562
e390e838 1563 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 1564 on $(enable_shared).
1565
06c6487f 15662000-05-10 Jakub Jelinek <jakub@redhat.com>
1567
1568 * config.table: Use mh-sparcpic for sparc*-*-*.
1569
0baf89fb 15702000-05-08 Nick Clifton <nickc@cygnus.com>
1571
1572 * Makefile.in (CFILES): Add strncmp.c.
1573 (NEEDED): Add strncmp.
1574
59f72e4d 15752000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1576
1577 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1578 Cast the arguments to `islower' to `unsigned char'.
1579 (print_demangler_list): Prototype.
1580
fb0c90ed 1581Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1582
1583 * sort.c (UCHAR_MAX): Provide fallback definition.
1584
167a5f18 15852000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1586
1587 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1588 SUBDIRS.
1589
6f572555 15902000-04-28 Kenneth Block <block@zk3.dec.com>
1591 Jason Merrill <jason@casey.cygnus.com>
1592
ec255163 1593 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1594 (cplus_demangle_set_style): New function for setting style.
1595 (cplus_demangle_name_to_style): New function to translate name.
6f572555 1596
b3524c8f 15972000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1598
1599 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1600
1601 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1602 (libiberty_AC_FUNC_STRNCMP): Invoke.
1603
1604 * strncmp.c: New file.
1605
a5f725a3 1606Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1607
1608 * hashtab.c (htab_expand): Add prototype.
1609 (find_empty_slot_for_expand): Likewise.
1610
8afd4145 16112000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1612
1613 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1614 match prototype.
1615 (htab_expand): Cast the return value of xcalloc.
1616
c9dfb8ae 16172000-04-24 Mark Mitchell <mark@codesourcery.com>
1618
1619 * hashtab.c (hash_pointer): New function.
1620 (eq_pointer): Likewise.
1621 (htab_hash_pointer): New variable.
1622 (htab_eq_pointer): Likewise.
1623
85993fc6 16242000-04-23 Mark Mitchell <mark@codesourcery.com>
1625
9517f453 1626 * sort.c (sort_pointers): Fix endianness bugs.
1627
85993fc6 1628 * sort.c: New file.
1629 * Makefile.in (CFILES): Add sort.c
1630 (REQUIRED_OFILES): Add sort.o.
1631 (sort.o): New target.
1632
c9b2f47c 16332000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1634
1635 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1636 4.3BSD systems.
1637
2b3dbc20 1638Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1639
1640 * hashtab.c: Various minor cleanups.
1641 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1642 (htab_find_slot): Likewise.
1643
6ea8a864 16442000-04-16 Dave Pitts <dpitts@cozx.com>
1645
1646 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 1647
105211e5 16482000-04-05 Richard Henderson <rth@cygnus.com>
1649
1650 * splay-tree.c (splay_tree_remove): New.
1651
7669680f 16522000-03-30 Mark Mitchell <mark@codesourcery.com>
1653
1654 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1655 codes.
1656 (htab_find_with_hash): Likewise.
1657 (htab_find_slot_with_hash): Likewise.
ec255163 1658
07c797e3 16592000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1660
1661 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1662 unless it will be used. Rearrange loop for better
1663 optimization.
1664 (higher_prime_number): Add static prototype.
1665
8ef1b8d1 1666Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1667
1668 * Makefile.in (partition.o): Depend on config.h
1669
ed26da85 16702000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1671
1672 * hashtab.c (find_empty_slot_for_expand): New function.
1673 (htab_expand): Use it instead of htab_find_slot.
1674 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1675 argument HASH.
1676 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1677 (htab_find): New wrapper function.
1678 (htab_find_slot): Likewise.
1679 (htab_traverse): Pass slot, not entry, to called function.
1680
dadde703 16812000-03-09 Alex Samuel <samuel@codesourcery.com>
1682
1683 * Makefile.in (CFILES): Add partition.c.
1684 (REQUIRED_OFILES): Add partition.o.
1685 (partition.o): New rule.
1686 * partition.c: New file.
ec255163 1687
3fdd387a 16882000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1689
1690 * hashtab.c (htab_create): Set del_f.
1691 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1692 Use it.
1693
07c967f9 16942000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1695
1696 * hashtab.c: Remove debugging variables (all_searches,
1697 all_collisions, all_expansions). Delete
1698 all_hash_table_collisions.
1699 (create_hash_table, delete_hash_table, empty_hash_table,
1700 find_hash_table_entry, remove_element_from_hash_table_entry,
1701 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1702 hash_table_elements_number, hash_table_collisions): Rename to:
1703 htab_create, htab_delete, htab_empty, htab_find_slot,
1704 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1705 htab_elements, htab_collisions.
1706 (htab_find): New function, handles common case where you don't
1707 plan to add or delete an entry.
1708 (htab_expand): Don't create a whole new table, just a new
1709 entry vector.
1710 (htab_find_slot): Simplify logic.
1711
1f33a375 17121999-08-03 Ian Lance Taylor <ian@zembu.com>
1713
1714 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1715 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1716
1717 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1718 $(TARGETLIB)n so it works on MSDOS.
1719 (install_to_tooldir): Likewise.
1720
17211999-07-21 Ian Lance Taylor <ian@zembu.com>
1722
1723 From Mark Elbrecht:
1724 * makefile.dos: Remove; obsolete.
1725 * configure.bat: Remove; obsolete.
1726
17271999-07-11 Ian Lance Taylor <ian@zembu.com>
1728
1729 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1730 warning.
1731
b99e5aef 17322000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1733
1734 * pexecute.c: Conditionally include string.h.
07c967f9 1735 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 1736
6d93ad38 17372000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1738
1739 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1740 we're using gcc.
1741
1742 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1743
59dfb43e 17441999-12-27 Geoff Keating <geoffk@cygnus.com>
1745
1746 * vasprintf.c (int_vasprintf): Don't re-read the format character
1747 as this mishandles strings like '%%s'.
1748
b04bbebb 17491999-12-05 Mark Mitchell <mark@codesourcery.com>
1750
1751 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1752 rather than struct splay_tree_node.
1753 (splay_tree_insert): Use struct splay_tree_s rather than struct
1754 splay_tree.
1755
d7f8de75 1756Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1757
1758 * hashtab.c (sys/types.h): File included.
1759
7202ac7d 17601999-11-22 Jason Merrill <jason@casey.cygnus.com>
1761
1762 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1763 BSD license, pursuant with
1764
1765 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1766
bd41a79e 1767Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1768
1769 * hashtab.c: Include stdio.h.
1770
b77d3fd0 1771Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1772
1773 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1774
1b4391fe 1775Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1776
1777 * xstrdup (sys/types.h): Include this file.
1778
4bc57096 17791999-10-28 Nathan Sidwell <nathan@acm.org>
1780
1781 * Makefile.in (SUBDIRS): New macro.
1782 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1783 avoid multiple subdirectory cleaning.
1784 (*-subdir): Use SUBDIRS.
1785
9087cad2 17861999-10-25 Jim Kingdon <http://developer.redhat.com/>
1787
1788 * cplus-dem.c: Move declarations of standard_symbol_characters and
1789 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1790 warnings.
1791
21a7d507 17921999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1793
1794 * hashtab.c (find_hash_table_entry): When returning a
1795 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1796 (clear_hash_table_slot): New function which deletes an entry
1797 by its position in the table, not its value.
1798 (traverse_hash_table): New function which calls a hook
1799 function for every live entry in the table.
1800
42c870f1 18011999-10-19 Mark Mitchell <mark@codesourcery.com>
1802
1803 * cplus-dem.c (INTBUF_SIZE): New macro.
1804 (string_append_template_idx): New function.
1805 (demangle_expression): Likewise.
1806 (demangle_integral_value): Use it.
1807 (demangle_real_value): New function, split out from ...
1808 (demangle_template_value_parm): ... here. Use
1809 string_append_template_idx. Use demangle_real_value.
1810 (demangle_template): Use string_append_template_idx.
1811 (demangle_qualified): Use consume_count_with_underscores.
1812 (get_count): Tweak formatting.
1813 (do_type): Use string_append_template_idx.
07c967f9 1814
33b090eb 18151999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1816
1817 * calloc.c: Add a public domain notice.
1818
9879c2ce 1819Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1820
1821 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1822
5da6c26f 1823Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1824
1825 * Makefile.in (CFILES): Add hashtab.c
1826 (REQUIRED_OFILES): Add hashtab.o
1827 (hashtab.o): Add dependencies.
1828 * hashtab.c: New file
1829
be42b79e 1830Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1831
1832 * basename.c (DIR_SEPARATOR): New macro.
1833 (DIR_SEPARATOR_2): Likewise.
1834 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1835 (IS_DIR_SEPARATOR): Likewise.
1836 (main): Handle MSDOS style pathname.
1837
6c65e8d7 18381999-10-11 Mark Mitchell <mark@codesourcery.com>
1839
1840 * cplus-dem.c (do_type): Handle pointer to member types whose
1841 enclosing classes have namespace scope.
1842
278929f3 1843Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1844
1845 * config.table: Provide a backup shell for executing move-if-change.
1846
a7599ac8 18471999-10-02 Mark Mitchell <mark@codesourcery.com>
1848
1849 * xmalloc.c (xmalloc): Fix spelling error.
1850 (xcalloc, xrealloc): Likewise.
1851
4d84eafd 18521999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1853
1854 * cplus-dem.c (fancy_abort, demangle_integral_value,
1855 demangle_arm_hp_template, recursively_demangle,
1856 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1857 (program_name, program_version, fatal): Constify a char*.
1858 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1859 (main): Call return, not exit.
1860
8f376364 18611999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1862
1863 * choose-temp.c: Remove obsolete comment about gcc.
1864 (make_temp_file): Constify a char*.
1865
3a4fff76 1866Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1867
1868 * xmemdup.c: Include sys/types.h.
1869
7570bccb 18701999-09-07 Jeff Garzik <jgarzik@pobox.com>
1871
1872 * xmemdup.c: New xmemdup function.
1873 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1874
b50c7be3 1875Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1876
07c967f9 1877 * config.table: Add openedition target.
b50c7be3 1878 * config/mh-openedition: New file.
1879
fd0c1d22 1880Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1881
1882 * pexecute.c (pexecute): Fill in temp_base when needed.
1883
be342bf0 18841999-08-31 Richard Henderson <rth@cygnus.com>
1885
1886 * getpwd.c: Check HAVE_GETCWD before defining it away.
1887
71774460 18881999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1889
1890 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1891 (REQUIRED_OFILES): Add getpwd.o.
1892 (getpwd.o): Add target.
1893
1894 * configure.in (AC_PREREQ): Bump to 2.13.
1895 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1896
1897 * getpwd.c: New file, moved here from gcc.
1898
ac126d82 18991999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1900
1901 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1902 comparing against a signed quantity.
1903 (arm_special): Likewise.
1904 (demangle_fund_type): Likewise.
1905 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 1906 ATTRIBUTE_UNUSED.
ac126d82 1907 (main): Constify variable `valid_symbols'.
1908
4f3b4661 1909Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1910
1911 * strtoul.c (strtoul): Add parentheses around && within ||.
1912
f92ff492 1913Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1914
1915 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1916 libdir, libsubdir and tooldir.
1917
a9f46aed 19181999-08-01 Mark Mitchell <mark@codesourcery.com>
1919
1920 * splay-tree.c (splay_tree_insert): Return the new node.
1921
db081298 19221999-07-14 Richard Henderson <rth@cygnus.com>
1923
07c967f9 1924 * argv.c: Include stdlib.h and string.h instead of
db081298 1925 prototyping directly.
1926 * choose-temp.c: Conditionally include string.h.
1927
e5aa3a54 19281999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1929
1930 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1931
4ef402f7 19321999-07-11 Ian Lance Taylor <ian@zembu.com>
1933
1934 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1935 warning.
1936
d65034bd 19371999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1938
1939 * Makefile.in (needed-list): Only include stuff we actually need
1940 for libstdc++.
1941
18912799 19421999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1943
1944 * configure.in (checkfuncs): Add gettimeofday.
1945 * config.in, configure: Regenerated.
1946
d96f58b6 1947Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1948
1949 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1950 the test fails.
1951 * configure: Regenerate.
1952
4248b202 19531999-06-10 Mike Stump <mrs@wrs.com>
1954
1955 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1956 parallel builds.
1957
3c243ded 19581999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1959
1960 * putenv.c: Include ansidecl.h to define `const'.
1961 * setenv.c: Likewise.
1962
654c70ae 1963Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1964
34f75864 1965 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1966 * configure.in (funcs): Add putenv and setenv.
1967 (AC_CHECK_FUNCS): Check for putenv and setenv.
1968 * configure: Rebuilt.
1969 * putenv.c setenv.c: New files.
1970
654c70ae 1971 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1972 bytes of space using malloc.
1973
41980611 1974Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1975
1976 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1977 the *mangled pointer beyond the end of the string. Clean up code to
1978 match prevailing coding style.
1979
08b8ada9 19801999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1981
1982 * tmpnam.c (L_tmpnam): Fix typo.
1983
2fb1c6e9 1984Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1985
1986 * cplus-dem.c (standard_symbol_characters): Renamed from
1987 standard_symbol_alphabet. No longer modify TABLE.
1988 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1989 modify TABLE.
1990 (main): Corresponding changes. Use strchr to determine if a
1991 character is valid.
1992
25398e41 19931999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1994
1995 * cplus-dem.c (main): Use table lookup to distinguish identifier
1996 characters from non-identifier characters.
1997 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1998
29723d26 1999Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2000
2001 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2002 * getruntime.c: Only attempt to include sys/resource.h and
2003 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2004 are defined.
2005
dde96550 2006Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2007
2008 * configure.in (alloca detection): Handle alloca directly for interix.
2009 * configure: Rebuilt.
2010
e98ba651 2011Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2012
2013 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2014
3460a017 20151999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2016
2017 Fix from Dale Hawkins:
07c967f9 2018 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 2019 reallocated properly if we use it again.
2020
2021 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2022 stricter about syntax. Always null-terminate string.
2023
b01c0955 2024Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2025
2026 * configure.in (checkfuncs): Check for sbrk.
2027 * config.in: Rebuilt.
2028 * configure: Likewise.
2029 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2030
87c2e884 20311999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2032
2033 Fix from Marcus Daniels:
2034 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2035 identifier looking for another underscore.
2036
16b8e80f 2037Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2038
2039 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2040 * xmalloc.c: Likewise.
2041 (xcalloc): UWIN has sbrk.
2042 (xrealloc): Fix guard macro.
2043
4d0cfb7e 20441999-04-11 Richard Henderson <rth@cygnus.com>
2045
2046 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2047 or <alloca.h>.
2048 * clock.c (GNU_HZ): New definition.
2049 (clock): Use it.
2050 * getruntime.c: Likewise.
2051
2052 * config.table: Use mh-beos.
2053 * config/mh-beos: New file.
2054
0dc64970 20551999-04-11 Mark Mitchell <mark@codesourcery.com>
2056
2057 * cplus-dem.c (demangle_template_value_parm): Handle
2058 pointers-to-members.
2059 (do_type): Handle template parameters as qualifiers.
2060
9fec6063 20611999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2062
2063 * cplus-dem.c: Attempt to handle overflows in counts with some
2064 semblance of grace.
2065 (consume_count): Detect overflows. Return -1 to indicate errors,
2066 instead of zero.
2067 (demangle_template_value_parm, demangle_template): Handle change
2068 to consume_count's return convention.
2069
715f424c 20701999-04-05 Tom Tromey <tromey@cygnus.com>
2071
2072 * testsuite/regress-demangle: New file.
2073 * testsuite/demangle-expected: New file.
2074
2075 * Makefile.in (all, check, installcheck, info, install-info,
2076 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2077 distclean, maintainer-clean, realclean): Depend on corresponding
2078 `-subdir' target.
2079 (all-subdir check-subdir installcheck-subdir info-subdir
2080 install-info-subdir clean-info-subdir dvi-subdir
2081 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2082 distclean-subdir maintainer-clean-subdir): New target.
2083 * testsuite/Makefile.in: New file.
2084 * configure: Rebuilt.
2085 * configure.in: Create testsuite/Makefile.
2086
71c5948c 20871999-04-02 Mark Mitchell <mark@codesourcery.com>
2088
2089 * splay-tree.h (splay_tree_compare_pointers): Define.
2090
d1264606 20911999-03-30 Mark Mitchell <mark@codesourcery.com>
2092
2093 * splay-tree.c (splay_tree_compare_ints): Define.
2094
6fd618e7 20951999-03-30 Tom Tromey <tromey@cygnus.com>
2096
2097 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2098 don't advance input pointer.
2099 (demangle_class_name): If consume_count didn't find a count, do
2100 nothing. Don't bother with `strlen' sanity check; consume_count
2101 does it for us.
2102
bdaa26ad 21031999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2104
2105 From Art Haas <ahaas@neosoft.com>:
2106 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2107 when doing arm or hp style.
2108 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 2109
d267f778 2110Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2111
2112 * pexecute.c (__CYGWIN32__): Rename to
2113 (__CYGWIN__): this.
2114 * xmalloc.c: Likewise.
2115
2116 Changes to support i386-pc-uwin.
2117 * configure.in (*-*-uwin*): Workaround for vfork bug.
2118 * configure: Regenerate.
2119 * pexecute.c (pexecute): Be like standard Unix.
2120 (pwait): Likewise.
2121 * xmalloc.c (first_break): Define.
2122 (xmalloc_set_program_name): Use.
2123 (xmalloc): Use.
2124
90405950 2125Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2126
2127 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2128
bdaa26ad 2129Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2130
2131 * config.table: Check cygwin*, not cygwin32*.
2132
e6ed8194 2133Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2134
2135 * Makefile.in: Change mkstemp -> mkstemps.
2136
301e59c9 2137Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2138
2139 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2140 * configure.in (funcs): Check for and conditionally add mkstemps to
2141 the list of functions libiberty will provide.
2142 * configure: Rebuilt.
07c967f9 2143
89e305f9 2144Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2145
07c967f9 2146 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 2147 platforms that don't have HZ.
2148 * getruntime.c (HZ): Likewise.
2149
ecfe64e7 2150Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2151
2152 * Makefile.in (xstrdup.o): Depend on config.h.
2153
2e5e2114 2154Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2155
2156 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2157 freeing it.
2158
6aa62a59 2159Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2160
2161 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2162
bdaa26ad 2163Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2164
2165 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2166 splay-tree.o.
2167
21681999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2169
2170 * configure.in: Require autoconf 2.12.1 or higher.
2171
9e1ed734 21721998-12-30 Michael Meissner <meissner@cygnus.com>
2173
2174 * random.c (NULL): Don't redefine NULL if it is already defined.
2175
7c8c70e9 2176Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2177
2178 * argv.c (buildargv): Cast the result of alloca in assignment.
2179
2180 * choose-temp.c: Include stdlib.h.
2e5e2114 2181
7c8c70e9 2182 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
9f21bac8 2183 (snarf_numeric_literal): Constify first parameter.
2184 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2185 int, not a char.
7c8c70e9 2186 (demangle_qualifier): Likewise.
2187 (demangle_signature): Cast the argument of a ctype function to
2188 unsigned char.
2189 (arm_pt): Add parens around assignment used as truth value.
2190 (demangle_arm_hp_template): Constify variable `args'.
2191 (do_hpacc_template_const_value): Cast the argument of a ctype
2192 function to unsigned char.
2193 (do_hpacc_template_literal): Remove unused variable `i'.
2194 (snarf_numeric_literal): Constify parameter `args'.
2195 Cast the argument of a ctype function to unsigned char.
2196
2197 * floatformat.c (floatformat_to_double): Add explicit braces to
9f21bac8 2198 avoid ambiguous `else'.
2e5e2114 2199
7c8c70e9 2200 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
9f21bac8 2201 `cstart' and `cend' to unsigned char. Cast the argument of macro
2202 `FOLD', which uses ctype functions, to unsigned char.
7c8c70e9 2203
2204 * objalloc.c (free): Add prototype.
2205
9070a37e 2206Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2207
2208 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2209
bdaa26ad 2210Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2211
2212 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
9f21bac8 2213 doesn't exist.
bdaa26ad 2214 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 2215
0a5a5994 2216Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2217
2218 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2219 bumping the pointer we read from. Also prepend these codes,
2220 as we do in other places.
2221
bdaa26ad 22221998-12-18 Nick Clifton <nickc@cygnus.com>
2223
2224 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2225 'const char *' in order to match its usage when calling siblings.
2226 (snarf_numeric_literal): Make first arg 'const char **' in order
2227 to match usage.
4ed77eec 2228
50cbddd6 2229Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2230
4ed77eec 2231 * choose-temp.c: Don't check IN_GCC anymore.
2232
2233 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2234 * memchr.c (memchr): Likewise.
2235 * memcpy.c (memcpy): Likewise.
2236 * memmove.c (memmove): Likewise.
2e5e2114 2237
4ed77eec 2238 * mkstemp.c: Don't check IN_GCC anymore.
2239 * pexecute.c: Likewise.
2240 * splay-tree.c: Likewise.
2e5e2114 2241
4ed77eec 2242 * strchr.c (strchr): Use `const', not `CONST'.
2243 * strrchr.c (strrchr): Likewise.
2244 * strtol.c (strtol): Likewise.
2245 * strtoul.c (strtoul): Likewise.
2246
f75dc4de 2247Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2248 Elena Zannoni <ezannoni@cygnus.com>
2249 Stan Shebs <shebs@cygnus.com>
2250 Edith Epstein <eepstein@cygnus.com>
2251 Andres MacLeod <amacleod@cygnus.com>
2252 Satish Pai <pai@apollo.hp.com>
2253
2254 * HP aCC demangling support.
2255 * cplus-dem.c
2256 (main): Remove default to HP style demangling, set to EDG
9f21bac8 2257 demangling correctly when -edg specified; set the demangling style
2258 when user specifies 'edg'. Set strip_underscore to
2259 prepends_underscore, if not HPUXHPPA. Set
2260 current_demangling_style to hp_demangling if HPUXHPPA. Set
2261 current demangling style correctly if the switch is hp. Read
2262 label correctly also in the HP style case.
f75dc4de 2263 (work_stuff): add temp_start field; add field for volatile member
9f21bac8 2264 function.
f75dc4de 2265 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
9f21bac8 2266 style for this case is the same as ARM.
f75dc4de 2267 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2268 (demangle_arm_hp_template): new function. (It was
9f21bac8 2269 demangle_arm_pt.); check and set value of temp_start field in
2270 multiple places. Also, when ceching for end of template args,
2271 check to see if at end of static member of template class.
f75dc4de 2272 (demangle_class): new local variable : save_class_name_end Don't
9f21bac8 2273 include template args in string defining class.
f75dc4de 2274 (demangle_class_name): use demangel_arm_hp_template.
2275 (demangle_function_name): handle case where demangling style is
9f21bac8 2276 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2277 Handle EDG_DEMANGLING style. Handle constructor and destructor
2278 ops for HP style.
f75dc4de 2279 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
9f21bac8 2280 styles. global destructor and constructor for HP style are same
2281 as for ARM style. Same for local variables.
f75dc4de 2282 (demangle_qualified): handle EDG_DEMANGLING style.
2283 (demangle_signature): add case for volatile member function. For
9f21bac8 2284 cases '1' - '9' : initialize the temp_start field to -1 and handle
2285 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2286 and AUTO_DEMANGLING styles. If expecting a function and managed
2287 to demangle the funct args, then handle the LUCID_DEMANGLING,
2288 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2289 class name after "Lnnn_ in HP style case. HP style too needs to
2290 forget types. _nnn is OK for HP style, so don't report failure.
f75dc4de 2291 (do_hpacc_template_const_value): new function. Handle template's
9f21bac8 2292 value param for HP/aCC.
f75dc4de 2293 (do_hpacc_template_literal): new function. Handle a template's
9f21bac8 2294 literal parameter for HP aCC.
f75dc4de 2295 (recursively_demangle): new function
2296 (snarf_numeric_literal): new function.
2297 (usage): add 'edg' to the list of demangling styles; add hp switch
9f21bac8 2298 to message.
f75dc4de 2299
a5c56042 2300Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2301
2302 * pexecute.c: Remove obsolete ifdefed cygwin code.
2303
4ae63959 2304Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2305
2306 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2307 * cplus-dem.c: Likewise. Conform to libiberty.h.
2308 * pexecute.c: Likewise.
2309 * splay-tree.c: Likewise.
2310
b41b6b67 23111998-11-25 Mike Stump <mrs@wrs.com>
2312
2313 * Makefile.in (splay-tree.o): Add config.h dependency.
2314
a1dd5bff 2315Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2316
2317 * configure.in: Use AC_PREREQ(2.12.1).
2318
d54546fb 23191998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2320
07c967f9 2321 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 2322
9fdb1080 2323Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2324
2325 * mpw.c (mpw_access): Add missing parens.
2326
1ed7db2f 2327Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2328
2329 * configure.in: Call AC_HEADER_SYS_WAIT.
2330
2331 * pexecute.c: Include sys/wait.h when !IN_GCC.
2332
bdaa26ad 2333Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2334
2335 * pexecute.c: revert back to checking old Cygwin
2336 preprocessor symbol until some time has passed.
2337
2338Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2339
2340 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2341 since it will now support similar constructs.
2342
34fa8831 2343Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2344
2345 * configure.in: Check for calloc.
2346
2347 * calloc.c: New file.
2348
2349 * xmalloc.c (xcalloc): New function.
2350
75ebb412 2351Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2352
2353 *cplus-dem.c (demangle_prefix): Use the last "__"
2354 in the mangled name when looking for the signature. This allows
2355 template names to begin with "__".
2356
5b546829 23571998-11-08 Mark Mitchell <mark@markmitchell.com>
2358
73bea962 2359 * cplus-dem.c (type_kind_t): Add tk_reference.
2360 (demangle_template_value_parm): Handle it.
2361 (do_type): Use it for references, instead of tk_pointer.
2362
5b546829 2363 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2364 not internal_cplus_demangle.
2365
0e4558d2 2366Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2367
2368 * choose-temp.c: Don't include gansidecl.h.
2369 * mkstemp.c: Likewise.
2370 * pexecute.c: Likewise.
2371
7b8b8d43 2372Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2373
07c967f9 2374 * configure.in: detect cygwin* instead of cygwin32*
2375 * configure: regenerate
7b8b8d43 2376
f9a39df1 2377Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2378
2379 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
9f21bac8 2380 whether to include config.h. Possibly include unistd.h in the
2381 !IN_GCC case. Define VFORK_STRING as a printable function call
2382 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2383 defined, include vfork.h. If VMS is defined, define vfork()
2384 appropriately. Remove vfork check on USG, we're using autoconf.
2385 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2386 locally what string to use.
f9a39df1 2387
797ba725 23881998-10-26 Mark Mitchell <mark@markmitchell.com>
2389
2390 * splay-tree.c: Tweak include directives to make sure declarations of
2391 xmalloc and free are available.
2392
3662c79b 23931998-10-25 Mark Mitchell <mark@markmitchell.com>
2394
2395 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2396 anonymous namespaces.
2e5e2114 2397
af5199c0 23981998-10-23 Mark Mitchell <mark@markmitchell.com>
2399
2400 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2401 with type_quals.
2402 (TYPE_UNQUALIFIED): New macro.
2403 (TYPE_QUAL_CONST): Likewise.
2404 (TYPE_QUAL_VOLATILE): Likewise.
2405 (TYPE_QUAL_RESTRICT): Likewise.
2406 (code_for_qualifier): New function.
2407 (qualifier_string): Likewise.
2408 (demangle_qualifier): Likewise.
2409 (internal_cplus_demangle): Use them.
2410 (demangle_signature): Likewise.
2411 (demangle_template_value_parm): Likewise.
2412 (do_type): Likewise.
2413 (demangle_fund_type)): Likewise.
3662c79b 2414
e61da89d 2415Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2416
2417 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2418 to match prototype.
2419
9a4eb61d 24201998-10-21 Mark Mitchell <mark@markmitchell.com>
2421
2422 * splay-tree.c: New file.
2423 * Makefile.in (CFILES): Add it.
2424 (REQUIRED_OFILES): Likewise.
2425 (splay-tree.o): Add dependencies.
2426
e5d3a45b 2427Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2428
2429 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2430 range of 'K' index.
2431
4350e959 2432Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2433
2434 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2435
2436 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2437 `unsigned char'.
2438 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2439 comparing against one.
2440 (cplus_mangle_opname): Likewise.
2441 (demangle_integral_value): Cast argument of ctype macro to
2442 `unsigned char'.
2443 (demangle_template_value_parm): Likewise.
2444 (demangle_template): Initialize variable `bindex'. Cast the
2445 result of `strlen' to (int) when comparing against one. Remove
2446 unused variable `start_of_value_parm'.
2447 (demangle_class_name): Cast the result of `strlen' to (int) when
2448 comparing against one.
2449 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2450 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2451 when comparing against one.
2452 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2453 (get_count): Likewise.
2454 (do_type): Likewise. Cast the result of `strlen' to (int) when
2455 comparing against one.
2456 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2457 (demangle_function_name): Cast the result of `strlen' to (int)
2458 when comparing against one.
2459
2460 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2461 comparing against one.
2462
5dfe2c03 2463Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2464
07c967f9 2465 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2466 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2467 * config.in, configure: Rebuilt.
0be6f86d 2468
5dfe2c03 2469 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2470 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2471 * config.in, configure: Rebuilt.
2472
7b8b8d43 2473Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2474
07c967f9 2475 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 2476
68b78c88 2477Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2478
2479 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2480
804ec1bf 2481Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2482
2483 * Merge egcs & devo libiberty.
2484
7a1ec54f 2485