]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
re PR target/9594 ([sh4-elf] Assembler complains pcrel too far.)
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
55adc7bd
KG
12003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 PR target/10338
4 PR bootstrap/10198
5 PR bootstrap/10140
6 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
7 __mempcpy.
8 * regex.c (regerror): Likewise.
9
0ae0f1b0
RS
102003-04-14 Roger Sayle <roger@eyesopen.com>
11
12 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
13 * memchr.c: Likewise.
14 * strcasecmp.c: Likewise.
15 * strncasecmp.c: Likewise.
16 * strncmp.c: Likewise.
17 * xatexit.c: Likewise.
18 * xmalloc.c: Likewise.
19
20 * copysign.c: Use traditional function declaration instead of DEFUN.
21 * sigsetmask.c: Likewise.
22
23 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
24 * memset.c: Likewise.
25
26 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
27 * memmove.c: Likewise.
28
88702c45
RS
292003-04-14 Roger Sayle <roger@eyesopen.com>
30
31 * strdup.c (strdup): Tweak implementation to use memcpy.
32
39e8d049
KG
332003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34
35 * configure.in (HAVE_UINTPTR_T): Always define.
36 * configure: Regenerated.
37
9f2e0608
AO
382003-03-23 Alexandre Oliva <aoliva@redhat.com>
39
40 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
41 instead of $$CC alone.
42 (install_to_tooldir): Use it.
43
dbccdc42
JH
442003-17-03 Jan Hubicka <jh@suse.cz>
45
46 * hashtab.c (htab_traverse_noresize): Break out from ...
47 * hashtab.c (htab_traverse): ... here.
48
0a8e3de3
JH
492003-12-03 Jan Hubicka <jh@suse.cz>
50
cd22e4af
JH
51 * hashtab.c (htab_expand): Fix warning.
52
0a8e3de3
JH
53 * hashtab.c (htab_expand): Compute the size of hashtable based
54 on the number of elements actually used.
55 (htab_traverse): Call htab_expand when table is too empty.
56
8fe85775
CW
572003-03-11 Carlo Wood <carlo@gnu.org>
58
59 * cplus-dem.c (demangle_integral_value): Correction to reflect
60 patch of 2002-01-10 in order to also make negative multi-digits
61 without leading underscore work.
62
3bf27822
MM
632003-03-03 Mark Mitchell <mark@codesourcery.com>
64
65 * cplus-dem.c: Add license exception to copyright notice.
66
434fa0b8
KG
672003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
68
69 * physmem.c: Formatting changes from upstream.
70
ed935c35
DS
712003-02-24 Danny Smith <dannysmith@users.source.forge.net>
72
73 * physmem.c (physmem_total): Add _WIN32 support.
74 (physmem_available): Likewise.
75
7f9fc006
RO
762003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
77
78 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
79 GSI_PHYSMEM.
80 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
81
d47f75c4
KG
822003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
83
84 * configure.in: Check for sys/systemcfg.h and
85 _system_configuration.
86 * physmem.c: Add support for AIX. Tweek formatting as per
87 upstream coreutils beta.
88
170230b7
KG
892003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
90 Richard Earnshaw <rearnsha@arm.com>
91 Geoffrey Keating <geoffk@apple.com>
92
93 * configure.in: Check for sys/sysctl.h and sysctl.
94 * physmem.c: Add support for *bsd and darwin.
95 * Makefile.in: Generate depedency for physmem.o.
96
4a06f7f2
RO
972003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
98
99 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
100 Tru64 UNIX.
101 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
102 Tru64 UNIX.
103
104 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
105 machine/hal_sysinfo.h, sys/table.h.
106 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
107 * configure, config.in: Regenerate.
108
64c7e556
KG
1092003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
110
111 * configure.in: Check for sys/sysmp.h and sysmp.
112 * physmem.c: Pull upstream copy, add support for irix6.
113
114 * config.in, configure: Regenerated.
115
e9019af6
KG
1162003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
117
118 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
119 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
120 pstat_getdynamic.
121
a354191e
KG
1222003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
123
124 * Makefile.in (CFILES): Add physmem.c.
125 (REQUIRED_OFILES): Add physmem.o.
126 * configure.in: Check for sys/pstat.h.
127 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
128 * physmem.c: New file, copied from textutils.
129
130 * config.in, configure: Regenerated.
131
4876b2b4
DJ
1322003-02-20 Daniel Jacobowitz <drow@mvista.com>
133
134 * Makefile.in (CFILES): Add lrealpath.c.
135 (REQUIRED_OFILES): Add lrealpath.o.
136 (lrealpath.o): Add rule.
137 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
138 * configure.in: Add realpath and canonicalize_file_name to
139 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
140 for canonicalize_file_name.
141 * lrealpath.c: New file.
142 * make-relative-prefix.c: Update documentation.
143 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
144 * config.in: Regenerated.
145 * configure: Regenerated.
146 * functions.texi: Regenerated.
147
e182f0a3 1482003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
149
150 * cplus_dem.c: Fix typo: intializes -> initializes.
151
3343fdd2
AO
1522003-02-20 Alexandre Oliva <aoliva@redhat.com>
153
154 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
155 config.status.
156 * configure: Rebuilt.
157
902cf50c
DJ
1582003-02-13 Daniel Jacobowitz <drow@mvista.com>
159
160 Fix PR c++/7612.
161 * cplus-dem.c (demangle_signature): Call string_delete.
162 Remove extra string_init.
163 (demangle_arm_hp_template): Call string_delete instead of
164 string_clear. Add missing string_delete call.
165 (demangle_qualified): Add missing string_delete call.
166 (do_type): Remove unused variable btype. Add missing string_delete
167 call. Call string_delete instead of string_clear.
168 (demangle_fund_type): Move variable btype inside of the switch
169 statement. Add missing string_delete call.
170 (do_arg): Call string_delete instead of string_clear. Remove extra
171 string_init.
172 (demangle_nested_args): Free work->previous_argument.
173
7ac27e08
KG
1742003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
175
176 * acconfig.h: New file. Add uintptr_t.
177 * config.in: Regenerated.
178
b3a8389d
JM
1792003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
180
181 * libiberty.texi: Update to GFDL 1.2.
182
d8c22ce7
CC
1832003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
184
185 * Makefile.in (libiberty_topdir): New subst.
186 (mkinstalldirs): Redefine in terms of the above.
187 * configure.in: AC_SUBST it.
188 * configure: Regenerate.
189
4ce1921a
CC
1902003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
191
192 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
193 (info-subdir, install-info-subdir, clean-info-subdir)
194 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
195 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
196 Pass $(FLAGS_TO_PASS).
197
93239fdb
AO
1982003-01-27 Alexandre Oliva <aoliva@redhat.com>
199
200 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
201 /`$$CC -print-multi-os-directory`.
202
74828682
DJ
2032003-01-26 Daniel Jacobowitz <drow@mvista.com>
204
205 * hashtab.c (htab_create_alloc_ex): New function.
206 (hatab_set_functions_ex): New function.
207 (htab_delete, htab_expand): Support alternate allocation functions.
208
ece0e59f
CF
2092003-01-24 Christopher Faylor <cgf@redhat.com>
210
211 * configure.in: Remove special pex-cygwin consideration.
212 * configure: Regenerate.
213 * pex-cygwin.c: Remove.
214 * Makefile.in: Remove pex-cygwin.[co] lines.
215
55d0e5e0
ZW
2162003-01-24 Zack Weinberg <zack@codesourcery.com>
217
218 * Makefile.in (CFILES): Add pex-*.c.
219 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
220 (CONFIGURED_OFILES): Add pex-*.o.
221 (TEXIFILES): Add pexecute.txh.
222 (pexecute.o): Delete rule.
223 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
224 pex-unix.o, pex-win32.o): New rules.
225 * configure.in: Change AC_INIT argument to xmalloc.c.
226 Compute appropriate pexecute implementation and substitute it
227 as @pexecute@.
228
229 * pexecute.c: Split up into...
230 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
231 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
232 new files.
233
234 * functions.texi: Regenerate.
235 * configure: Regenerate.
236
120cdf68
JZ
2372003-01-20 Josef Zlomek <zlomekj@suse.cz>
238
239 * hashtab.c (htab_expand): Fix allocation of new entries.
240
90e5b39f
CC
2412003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
242
243 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
244
d7082cd7
CC
245 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
246 mkinstalldirs command.
247
eaed9290
DS
2482002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
249
250 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
251 Define for hosts with HOST_EXECUTABLE_SUFFIX.
252
ef4e4181
NC
2532002-11-24 Nick Clifton <nickc@redhat.com>
254
255 * make-relative-prefix.c (make_relative_prefix): Ensure return
256 string is empty before using strcat to construct it.
257
42766f8d
DJ
2582002-11-22 Daniel Jacobowitz <drow@mvista.com>
259
260 * Makefile.in: Add make-relative-prefix.c.
261 * make-relative-prefix.c: New file.
262 * functions.texi: Rebuilt.
263
783080ab
JJ
2642002-11-16 Jakub Jelinek <jakub@redhat.com>
265
266 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
267 used with arguments in traditional C' warnings.
268
7da64d7a
JJ
2692002-10-16 Jakub Jelinek <jakub@redhat.com>
270
271 * config.table: Use mh-s390pic for s390x too.
272
de78f58b
AJ
2732002-10-06 Andreas Jaeger <aj@suse.de>
274
275 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
276 variable and of strict-aliasing warning.
277 (grow_vect): Use char as first parameter.
278
6c5d742e
KG
2792002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
280
281 * Makefile.in (all): Fix multilib parallel build.
282
f08b7eee
JDA
2832002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
284
285 * cp-demangle.c (demangling_new): Cast 0 to enum.
286 (demangle_char): Cast return of strdup to char *.
287 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
288 (is_gnu_v3_mangled_dtor): Likewise.
289 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
290 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
291 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
292 * md5.c (md5_process_bytes): Cast results back to const void *.
293 (md5_process_block): Add cast to const md5_uint32 *.
294 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
295 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
296 unsigned short.
297 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
298 to void *.
299 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
300
8d87f295
NC
3012002-09-19 Nick Clifton <nickc@redhat.com>
302
303 * README: Update email addresses for bugs and patches.
304
6eedb9ca
MS
3052002-09-10 Mike Stump <mrs@apple.com>
306
307 * splay-tree.c (splay_tree_successor): Fix comments.
308
3fd9d606
ZW
3092002-09-11 Zack Weinberg <zack@codesourcery.com>
310
b2196e8f 311 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
312 * testsuite/Makefile.in: Adjust for test-demangle.
313 * testsuite/regress-demangle: Deleted.
314 * testsuite/test-demangle.c: New file.
315 * testsuite/demangle-expected: Change \$ to $ throughout, now that
316 this file is not being read by a shell script.
317
70c4e67a
RS
3182002-09-05 Roger Sayle <roger@eyesopen.com>
319
320 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
321
65b91091
DD
3222002-08-07 DJ Delorie <dj@redhat.com>
323
324 * regex.c (re_error_msgid): Just use a simple array of strings.
325 (re_compile_pattern): Compensate.
326 (re_comp): Likewise.
327 (re_comp): Likewise.
328 (regerror): Likewise.
329
437974a9
NB
3302002-07-29 Neil Booth <neil@daikokuya.co.uk>
331
332 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 333
28a34ec1
JM
3342002-07-10 Jason Merrill <jason@redhat.com>
335
336 * cp-demangle.c (demangle_identifier): Support extended Unicode
337 characters.
338
84326592
KG
3392002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
340
341 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 342 !defined IN_GLIBCPP_V3.
84326592 343
5d69ba1f
MM
3442002-07-01 Mark Mitchell <mark@codesourcery.com>
345
346 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
347 Set it for the "st" operator.
348 (demangle_expression): Handle expressions with types as arguments.
349
7fda878c
DR
3502002-06-30 Douglas Rupp <rupp@gnat.com>
351
352 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
353 * Makefile.in (OUTPUT_OPTION): Use.
354
112bae77
PB
3552002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
356
357 * Makefile.in (install_to_libdir): Add $(DESTDIR).
358 (install_to_tooldir): Likewise.
359
53309d5c
DR
3602002-06-17 Douglas Rupp <rupp@gnat.com>
361
362 * lbasename.c: Add 2002 to copyright.
363 (IS_DIR_SEPARATOR): Remove VMS junk.
364
045b3a49
GK
3652002-06-05 Geoffrey Keating <geoffk@redhat.com>
366
367 * hashtab.c (htab_create): New stub function for backward
368 compatibility.
369 (htab_try_create): Likewise.
370
e2500fed
GK
3712002-06-03 Geoffrey Keating <geoffk@redhat.com>
372
373 * hashtab.c (htab_create): Delete.
374 (htab_try_create): Delete.
375 (htab_create_alloc): New.
376 (htab_delete): Support user-specified memory allocation.
377 (htab_expand): Likewise.
378
9f3dbd92
RL
3792002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
380
381 * configure.in: Fix typo in the code checking for sys_errlist.
382 * configure: Regenerated.
383
e4723404
AS
3842002-05-13 Andreas Schwab <schwab@suse.de>
385
386 * config.table: Use mh-x86pic also for x86-64.
387
6706f116
AO
3882002-05-08 Alexandre Oliva <aoliva@redhat.com>
389
390 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
391 script entry, and set LD to it when configuring multilibs.
392 * configure: Rebuilt.
393
deae2ed9
MM
3942002-05-07 Mark Mitchell <mark@codesourcery.com>
395
396 * configure.in (AC_TYPE_PID_T): Use it.
397 * configure: Regenerated.
398 * getruntime.c: Include <sys/types.h>.
399 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
400
4fc4e478
RH
4012002-04-09 Richard Henderson <rth@redhat.com>
402
403 * hashtab.c (higher_prime_number): Use 7 as minimum.
404 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
405 (htab_find_slot_with_hash): Likewise.
406
bd7e6f2d
PE
4072002-04-01 Phil Edwards <pme@gcc.gnu.org>
408
409 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
410 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
411 not compile if IN_GLIBCPP_V3 defined.
412 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
413
a8f55e51
BM
4142002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
415
de78f58b 416 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
417 if it is NULL.
418
96adcacb
DD
4192002-03-27 DJ Delorie <dj@redhat.com>
420
421 * hex.c: Add documentation.
422 (_hex_value): Provide non-ASCII empty table.
423 (hex_init): Initialize the non-ASCII table.
424 * functions.texi: Regenerate.
425
2b613c6a
MM
4262002-03-27 Mark Mitchell <mark@codesourcery.com>
427
428 * dyn-string.c: Add libgcc exception to copyright notice.
429
cd862df8
L
4302002-03-26 H.J. Lu (hjl@gnu.org)
431
432 * config.table: Support --with-build-subdir.
433 * configure.in: Likewise.
434 * configure: Rebuild.
435
ed300793
SG
4362002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
437
438 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
439 seen.
440
b3dd43df
MM
4412002-03-12 Mark Mitchell <mark@codesourcery.com>
442
443 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
444 notice.
445
50c74579
DR
4462002-03-11 Douglas B Rupp <rupp@gnat.com>
447
448 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
449
957978a4
JB
4502002-03-06 Jim Blandy <jimb@redhat.com>
451
452 * splay-tree.c (splay_tree_xmalloc_allocate,
453 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
454 prototyped definitions. Mark `data' arguments as unused.
455
ccc49bed
AC
4562002-03-06 Andrew Cagney <ac131313@redhat.com>
457
458 * floatformat.c (floatformat_arm_ext_big): Delete definition.
459
48d7db63
PE
4602002-03-04 Phil Edwards <pme@gcc.gnu.org>
461
462 * configure.in: Add --enable-install-libiberty option.
463 * Makefile.in (INSTALLED_HEADERS): New variable.
464 (install_to_libdir): Possibly also copy headers.
465 * configure: Regenerated.
466
af18e951
NB
4672002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
468
469 * xmalloc.c (xmalloc_fail): Clarify error message further.
470
d8d7c3c3
NB
4712002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
472
473 * xmalloc.c (xmalloc_fail): Clarify error message.
474
00c2f96f
JB
4752002-02-22 Jim Blandy <jimb@redhat.com>
476
477 * splay-tree.c (splay_tree_xmalloc_allocate,
478 splay_tree_xmalloc_deallocate): New functions.
479 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
480 above functions and a dummy data pointer.
481 (splay_tree_new_with_allocator): New function.
482 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
483 splay_tree_remove): Use the splay tree's allocation and
484 deallocation functions.
485
b1c1a22f
SS
4862002-02-19 Scott Snyder <snyder@fnal.gov>
487
488 * testsuite/demangle-expected: Add test case for infinite loop in
489 demangler.
490 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
491 if do_type() doesn't make any progress --- prevents an infinite
492 loop.
493
336669e7
CW
4942002-02-18 Carlo Wood <carlo@gnu.org>
495
496 PR c++/5390
497 * cplus-dem.c (demangle_integral_value): Accept multi-digit
498 numbers that do not start with an underscore; This is needed
499 for integer template parameters. This doesn't break anything
500 because multi-digit numbers are never followed by a digit.
501 * testsuite/demangle-expected: Corrected all mangled test
502 cases with multi-digit template parameters: g++ 2.95.x does
503 not generate underscores around these parameters.
504
c13db5d1
JM
5052002-02-05 Jason Merrill <jason@redhat.com>
506
507 * cplus-dem.c (flags): Add DMGL_VERBOSE
508 (cplus_demangle_v3_p): Remove.
509 (demangle_it): Add DMGL_TYPES to passed flags.
510 * cp-demangle.c (cplus_demangle_v3_all): Remove.
511 (cplus_demangle_v3_type): Remove.
512 (cplus_demangle_v3): Add options parm.
513
d74697b8
L
5142002-02-02 H.J. Lu (hjl@gnu.org)
515
516 * cp-demangle.c (cp_demangle_type): Do not protect with
517 IN_LIBGCC2.
518 (cplus_demangle_v3_all): New.
519 (cplus_demangle_v3): Call cplus_demangle_v3_all.
520 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
521
522 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
523 Initialized to cplus_demangle_v3.
524 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
525 of cplus_demangle_v3.
526 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
527 command line symbol.
528
529 * testsuite/regress-demangle: Pass the mangled name at the
530 command line.
531
3a441e38
L
5322002-02-01 H.J. Lu <hjl@gnu.org>
533
534 * cp-demangle.c (cp_demangle_type): Call demangling_new with
535 DMGL_GNU_V3.
536
6d747e63
PE
5372002-01-31 Phil Edwards <pme@gcc.gnu.org>
538
539 * cp-demangle.c: Revert yesterday's change.
540
46af757b
AM
5412002-01-31 Adam Megacz <adam@xwt.org>
542
543 * gcc/libiberty/configure.in: Treat mingw the same as cywin
544 wrt HAVE_SYS_ERRLIST.
545
46ab74b1
PE
5462002-01-30 Phil Edwards <pme@gcc.gnu.org>
547
548 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
549 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
550 cp_demangle_type.
551 * testsuite/demangle-expected: New gnu-v3 test.
552
e64d0626
MV
5532002-01-22 Momchil Velikov <velco@fadata.bg>
554
555 * configure.in (variable detection): Use arrays of unspecified
556 size instead of plain integers.
557
9ce3f7e5
DD
5582002-01-18 DJ Delorie <dj@redhat.com>
559
560 * Makefile.in (TESTLIB): New. This library is for future
561 testsuites.
562 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
563 break down by letter.
564 (REQUIRED_OFILES): List long-to-compile files first.
565 (maint-deps): New, target for updating dependencies.
566 (dependencies): Update.
567 * maint-tool: Add dependency-generating option.
568 * configure.in: Check for _doprnt even if we're not providing it.
569 * configure: Regenerate.
570
571 * _doprnt.c: Modifications to allow compiling on any platform.
572 * copysign.c: Likewise.
573 * putenv.c: Likewise.
574 * setenv.c: Likewise.
575 * vsprintf.c: Likewise.
576
0e83ceb1
DR
5772002-01-15 Douglas B Rupp <rupp@gnat.com>
578
579 * mkstemps.c (mkstemps): On VMS, open temp file with option
580 that causes it to be deleted when closed.
581
adddf5bf
KG
5822002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
583
5e65297b
KG
584 * cp-demangle.c (long_options): Const-ify.
585 * cplus-dem.c (long_options): Likewise.
586
adddf5bf
KG
587 * cplus-dem.c (mystrstr): Delete. All callers changed to use
588 strstr instead.
589
a4219437
IR
5902001-12-31 Ira Ruben <ira@apple.com>
591
592 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
593 * configure: Regenerated.
af328d8d
DR
594
5952001-12-24 Douglas B. Rupp <rupp@gnat.com>
596
597 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
598 * configure: Regenerated.
a4219437 599
63de15a4
CR
6002001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
601
602 PR other/2719
603 * cplus-dem.c (consume_count): Treat negative count as an error.
604 * testsuite/demangle-expected: Added testcase.
605
ee262b6f
DR
606Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
607
608 * configure.in: Hardcode that vfork works on VMS host.
609 * configure: Regenerated.
610
d06ba3c7
RH
6112001-12-06 Richard Henderson <rth@redhat.com>
612
613 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
614 (cplus_demangle): Support no_demangling.
615
e490616e
ZW
6162001-11-27 Zack Weinberg <zack@codesourcery.com>
617
618 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
619 in libiberty context. Fix typo in leading comment.
620 * configure.in: Fix various AC_DEFINEs so autoheader works.
621 If any of vprintf, vsprintf, vfprintf is missing from libc,
622 then AC_REPLACE_FUNCS(_doprnt).
623
97e620cf 6242001-11-26 DJ Delorie <dj@redhat.com>
e490616e 625 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
626
627 * Makefile.in (stamp-h): Depend on Makefile for proper
628 serialization.
629 (*-subdir): Depend on config.h for proper serialization.
630
c3bb7df0
DD
6312001-11-26 DJ Delorie <dj@redhat.com>
632
633 * configure.in: Check for alloca.h (for regex.c and putenv.c).
634 * configure: Regenerate.
635 * config.h: Add HAVE_ALLOCA_H.
636
23850d35
KG
6372001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
638
2c47b56b
KG
639 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
640 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
641 is available.
23850d35 642
7ddfb651
JL
643Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
644
d3982b71
JL
645 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
646 * configure.in (HAVE_UINTPTR_T): Test for system defining
647 uintptr_t and define HAVE_UINTPTR_T appropriately.
648 * regex.c (uintptr_t): Do not provide a definition if the
649 system provided one.
650
7ddfb651
JL
651 * regex.c (PREFIX): Provide an alternate definition for
652 non-ANSI/ISO compilers.
653 (ARG_PREFIX): Likewise.
654
2e683037
JM
6552001-11-12 Jim Meyering <meyering@lucent.com>
656
657 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
658 this code would end up calling gettext even in packages built
659 with --disable-nls.
660 * getopt.c (_): Likewise.
661 * regex.c (_): Likewise.
662
f749bd83
AM
6632001-11-03 Alan Modra <amodra@bigpond.net.au>
664
665 * configure.in: Cope with missing makeinfo.
55a10d7c 666 * configure: Regenerate.
f749bd83 667
26ad2982
KG
6682001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
669
e5969ba6
KG
670 * hex.c (hex_init): Provide empty stub.
671
26ad2982
KG
672 * hex.c (hex_init): Delete.
673 (_hex_value): Const-ify and initialize at compile-time.
674
afb649d5
L
6752001-10-19 H.J. Lu <hjl@gnu.org>
676
677 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
678 necessary.
679
5bed56d9
DD
6802001-10-17 DJ Delorie <dj@redhat.com>
681
682 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
683 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 684 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
685 Improve manual formatting.
686 * functions.texi: Regenerate.
687
aac04c15
DD
6882001-10-15 DJ Delorie <dj@redhat.com>
689
690 * Makefile.in (TEXIFILES): Add fnmatch.txh.
691 (maint-undoc): New.
692 maint-tool: Add "undoc" tool.
693 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
694 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
695 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
696 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
697 documentation.
698 * fnmatch.txh: New.
699 * functions.texi: Regenerate.
fae8182a 700
0e4e9e8f
JM
7012001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
702
703 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
704 * strtod.c: Use "ISO C" instead of "ANSI C".
705 * functions.texi: Regenerate.
706
7f8fa05d
JM
7072001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
708
709 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
710 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
711 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
712 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
713 spelling. Give names to function arguments in documentation. Use
714 (void) prototypes in documentation.
715 * functions.texi: Regenerate.
716
0be6abca
KG
7172001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
718
719 * argv.c (buildargv, tests, main): Const-ify.
720 * cp-demangle.c (operator_code): Likewise.
721 * cplus-dem.c (optable, libiberty_demanglers,
722 cplus_demangle_set_style, cplus_demangle_name_to_style,
723 print_demangler_list): Likewise.
724 * hashtab.c (higher_prime_number): Likewise.
725 * strcasecmp.c (charmap): Likewise.
726 * strerror.c (error_info, strerror, main): Likewise.
727 * strncasecmp.c (charmap): Likewise.
728 * strsignal.c (signal_info): Likewise.
729
0e30ffc5
DD
7302001-09-29 DJ Delorie <dj@redhat.com>
731
732 * configure: Regenerate.
733
576fb787
KG
7342001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
735
736 * concat.c: Include stdlib.h.
737
e922f978
EZ
7382001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
739
740 * libiberty.texi: (Top level): Add syncodeindex pg. Add
741 @dircategory and @direntry directives. Add @finalout.
742 (many nodes): Lose the next,prev,up pointers on the @nide line.
743 (Using, Supplemental Functions, Replacement Functions): Fix
744 markup.
745 (Functions): Move around, to allow makeinfo to build the manual
746 without next,prev,up pointers in thye node lines.
747 (Licenses): Fix typos.
748
749 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
750 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
751 * functions.texi: Regenerate.
752
753 * copying-lib.texi: Lose the next,prev,up pointers on the @node
754 line.
755
ae9092da
DD
7562001-09-27 DJ Delorie <dj@redhat.com>
757
758 * configure.in: Don't use in-tree texinfo, because libiberty must
759 be built before it. Check for makeinfo version 4 or higher.
760 * functions.texi: Regenerate.
fae8182a 761
aaa5f039
DD
7622001-09-20 DJ Delorie <dj@redhat.com>
763 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 764
aaa5f039
DD
765 * configure.in (MAKEINFO, PERL): Detect these.
766 (--enable-maintainer-mode): Add.
767 * configure: Regenerate.
768 * Makefile.in (MAKEINFO, PERL): Define.
769 (libiberty.info, libiberty.dvi, libiberty.html): New.
770 (CFILES): Add bsearch.c.
771 (CONFIGURED_OFILES): New, list of objects configure might add.
772 (maint-missing, maint-buildall): New, for maintainers only.
773 (clean, mostlyclean): Add info/dvi/html files.
774 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
775 * gather-docs: New, for maintainers.
776 * maint-tool: New, for maintainers.
777 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
778 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
779 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
780 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
781 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
782 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
783 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
784 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
785 documentation.
fae8182a 786
c1766881
KG
7872001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
788
789 * concat.c (reconcat): Fix for traditional C.
790
ad43d46f
KG
7912001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
792
793 * concat.c (reconcat): New function.
794
c1d49704
KG
7952001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
796
c793eea7
KG
797 * concat.c (vconcat_length, vconcat_copy, concat_length,
798 concat_copy, concat_copy2): New functions.
799 (concat): Use vconcat_length/vconcat_copy.
800
c1d49704
KG
801 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
802 Define.
803
7a98d9b2
KG
8042001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
805
806 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
807 VA_FIXEDARG & VA_CLOSE.
fae8182a 808
7a98d9b2
KG
809 * vasprintf.c: Check HAVE_STRING_H when including string.h.
810 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
811 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
812
e2dff3f2
KG
8132001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
814
815 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
816
d0708dc1
UD
8172001-08-23 Ulrich Drepper <drepper@redhat.com>
818
819 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
820
8212001-08-23 Ulrich Drepper <drepper@redhat.com>
822
823 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
824 instead of mbrtowc.
825 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
826 wcslen, and __wcscoll instead of wcscoll.
827
ffb9435b
MK
8282001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
829
de78f58b
AJ
830 * fibheap.c (fibheap_init, fibnode_init): Remove.
831 (fibheap_new, fibnode_new): Use xcalloc to allocate and
832 initialize memory.
833 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 834
f379eac3
RH
8352001-08-21 Richard Henderson <rth@redhat.com>
836
837 * Makefile.in (fibheap.o): Depend on config.h.
838 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
839 functions for inlining.
840
b1c45ae4
CF
841Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
842
843 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
844 hosting on cygwin.
845 * configure: Regenerate.
846
0310e5ac
AC
8472001-08-20 Andrew Cagney <ac131313@redhat.com>
848
849 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
850 HARRIS_FLOAT_FORMAT.
851 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
852 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
853 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
854 (floatformat_m88110_harris_ext): New float formats.
855
8c23e0a4
DB
8562001-08-20 Daniel Berlin <dan@cgsoftware.com>
857
858 * fibheap.c: New file. Fibonacci heap.
859
860 * Makefile.in (CFILES): Add fibheap.c.
861 (REQUIRED_OFILES): Add fibheap.o.
862 (fibheap.o): Add dependencies for fibheap.o.
863
91625004
CF
8642001-08-17 Christopher Faylor <cgf@cygnus.com>
865
866 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
867 * configure: Regenerate.
868
9e0ba685
RH
8692001-08-16 Richard Henderson <rth@redhat.com>
870
871 * hashtab.c (htab_hash_string): New.
872
d80dedbe
AC
8732001-08-13 Andrew Cagney <ac131313@redhat.com>
874
875 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
876 name.
877
ccea0d85
IH
8782001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
879
880 * regex.c (wcs_regex_compile): Use appropriate string
881 to compare with collating element.
882 Fix the padding for the alignment.
883
b0e9bc8c 8842001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
885
886 * lbasename.c (lbasename): Change function definition to return a
887 const char pointer.
888
056400f1
JM
8892001-08-07 Jason Merrill <jason_merrill@redhat.com>
890
891 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
892 for".
893
4e627c41
RH
8942001-08-03 Richard Henderson <rth@redhat.com>
895
896 * Makefile.in (concat.o): Depend on config.h.
897
b6a2f884
AJ
8982001-07-30 Andreas Jaeger <aj@suse.de>
899
900 * concat.c: Include "config.h".
901
c4b9cfe0
AJ
9022001-07-30 Andreas Jaeger <aj@suse.de>
903
904 * regex.c: Declare wcs functions only if compiling with
905 MBS_SUPPORT.
906 Don't use #elif for traditional C.
907
9082001-07-23 Ulrich Drepper <drepper@redhat.com>
909
910 * regex.c: Revamp memory allocation for WCHAR functions to
911 not use too much stack.
912
9132001-07-30 Andreas Jaeger <aj@suse.de>
914
915 * regex.c: Declare wcs functions only if compiling with
916 MBS_SUPPORT.
917 Don't use #elif for traditional C.
918
2cf50fd3
DJ
9192001-07-25 Daniel Jacobowitz <drow@mvista.com>
920
921 * Makefile.in (regex.o): Add dependency on config.h.
922
27ffc806
DD
9232001-07-18 Andreas Schwab <schwab@suse.de>
924
925 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
926 underscore character.
927
9282001-07-18 Ulrich Drepper <drepper@redhat.com>
929
930 * regex.c: Limit string length printed in debug messages to 100
931 chars.
932
9332001-07-18 Andreas Jaeger <aj@suse.de>
934
935 * regex.c: Place under LGPL version 2.1.
936
dd771632
JJ
9372001-07-10 Jeff Johnston <jjohnstn@redhat.com>
938
939 * Makefile.in: Add support for regex code.
940 * regex.c: New file.
941
29650b2b
MK
9422001-07-05 Mark Klein <mklein@dis.com>
943
944 * Makefile.in: Add ffs.c dependency.
945 * configure.in: Add ffs.c.
946 * ffs.c: New file.
947
c8b28221
RH
9482001-06-18 Richard Henderson <rth@redhat.com>
949
950 * concat.c: Include <sys/types.h>.
951
473c2d0b
LR
9522001-06-11 Loren J. Rittle <ljrittle@acm.org>
953
a4c03da2 954 bootstrap/3106
473c2d0b
LR
955 * strerror.c (sys_nerr): Hide the OS header version.
956 * strsignal.c (sys_nsig): Likewise.
957
0bdcca68
RH
9582001-06-10 Richard Henderson <rth@redhat.com>
959
960 * concat.c: Include string.h. Fix int vs size_t usage.
961 Simplify the iteration loops. Use memcpy.
962
6de133d3
MK
9632001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
964
965 * partition.c: Fix misspelling of `implementation'.
966
8a153288
TS
9672001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
968
969 * md5.c (md5_init_ctx): Declare constants as unsigned.
970 (md5_process_block): Likewise.
971
641b2721
ZW
9722001-05-07 Zack Weinberg <zackw@stanford.edu>
973
974 * cp-demangle.c (demangle_v3_with_details,
975 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
976 function definition.
977 * ternary.c: Use K+R style function definitions. Use PTR, not
978 void *. Make arguments constant where possible.
979
5cdba4ff
MM
9802001-05-07 Mark Mitchell <mark@codesourcery.com>
981
982 * splay-tree.h (splay_tree_max): New function.
983 (splay_tree_min): Likewise.
984
9dab060e
DB
9852001-04-15 Daniel Berlin <dan@cgsoftware.com>
986
987 * ternary.c: New file - Ternary search tree implementation.
988
989 * Makefile.in: Add ternary.o, and ternary.c dependencies.
990
d02af173
ZW
9912001-04-03 Zack Weinberg <zackw@stanford.edu>
992
993 * make-temp-file.c (try): Inline.
994
94b68558
RH
9952001-02-28 Richard Henderson <rth@redhat.com>
996
997 * Makefile.in (make-temp-file.o): Depend on config.h.
998
27f66c0b
KG
9992001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1000
1001 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1002
f1a0345c
JJ
10032001-03-23 Jakub Jelinek <jakub@redhat.com>
1004
1005 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1006 `_' not followed by a digit is invalid.
1007
a519fba6
JB
10082001-03-22 Jim Blandy <jimb@redhat.com>
1009
1010 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1011 instead of free, to free the contents as well as the string
1012 structure.
1013
49ee944b
ZW
10142001-03-21 Zack Weinberg <zackw@stanford.edu>
1015
1016 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1017 Don't default P_tmpdir to anything. Try /var/tmp before
1018 /usr/tmp.
1019
33437dc7
ZW
10202001-03-20 Zack Weinberg <zackw@stanford.edu>
1021
1022 * choose-temp.c: Split off make_temp_file, and the code
1023 duplicated between it and choose_temp_base, into...
1024 * make-temp-file.c: ... here; new file.
1025
1026 * Makefile.in (CFILES): Add make-temp-file.c.
1027 (REQUIRED_OFILES): Add make-temp-file.o.
1028
7dce2eff
JB
10292001-03-20 Jim Blandy <jimb@redhat.com>
1030
1031 * cp-demangle.c (struct demangling_def): New fields:
1032 is_constructor and is_destructor.
1033 (demangling_new): Initialize them.
1034 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1035 or destructor.
1036 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1037 is_gnu_v3_mangled_dtor): New functions.
1038
e03a61f1
JM
10392001-03-20 Jason Merrill <jason@redhat.com>
1040
1041 * cplus-dem.c (main): Skip initial $.
1042
8860ddab
MM
10432001-03-15 Michael Meissner <meissner@redhat.com>
1044
1045 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1046 might be a signed integer under pre-ISO C systems.
1047
2b757d51
NB
10482001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1049 John David Anglin <dave@hiauly1.hia.nrc.ca>
1050
1051 * libiberty/lbasename.c: New file.
1052 * libiberty/Makefile.in: Update for lbasename.
1053
1f50aafb
ZW
10542001-03-06 Zack Weinberg <zackw@stanford.edu>
1055
1056 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1057 * configure.in: Replace all alloca logic with a simple use of
1058 the above new macro.
1059 * config.table: Kill *-*-beos* entry.
1060 * config/mh-beos: Delete.
1061 * configure, config.in: Regenerate.
1062
1063 * Makefile.in (ALLOCA, HFILES): Kill.
1064 (REQUIRED_OFILES): Add alloca.o.
1065 (alloca.o): Depend on libiberty.h.
1066 (argv.o): Don't depend on alloca-conf.h.
1067 * alloca-conf.h: Delete.
1068 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1069 blocks. Provide the C alloca unconditionally. Use PTR where
1070 appropriate. Make i00afunc static.
1071 * argv.c: Don't include alloca-conf.h.
1072
d9fd5aae
JDA
10732001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1074
1075 * cplus-dem.c (main): Cast enum style to int.
1076
4031ed65
LR
10772001-02-16 Loren J. Rittle <ljrittle@acm.org>
1078
1079 * cplus-dem.c (main): Initialize style.
1080
2ca46e8a
PE
10812001-02-02 Phil Edwards <pme@sources.redhat.com>
1082
1083 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1084
3b60dd8e
BM
10852001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1086
1087 Add support for Java demangling under the v3 ABI:
1088 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1089 (struct demangling_def): Add `style' field.
1090 (demangling_new): New parameter `style'. Set it in demangling_t.
1091 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1092 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1093 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1094 (main): Call cp_demangle with extra parameter.
1095 (java_demangle_v3): New function.
1096 (java_builtin_type_names): New. Table of primitive type names used
1097 for Java demangling.
1098 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1099 Java output.
1f50aafb 1100 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
1101 demangling.
1102 (long_options): Remove obsolete `java' option.
1103 (main): Remove explicit handling of `java' option. Instead, pass style
1104 parameter in cplus_demangle flags as gdb does.
1105 * testsuite/demangle.expected: Add some Java test cases.
1106
584932e9
DD
11072000-12-29 DJ Delorie <dj@redhat.com>
1108
1109 * fnmatch.c: Make the note about the origins of this file more
1110 accurate, at least until we can sync with glibc.
1111 * getopt.c: Ditto.
1112 * getopt1.c: Ditto.
1113 * md5.c: Ditto.
1114 * obstack.c: Ditto.
1115
dac45916
MS
11162000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1117
1118 * bsearch.c: New file.
1119 * configure.in (funcs): Add bsearch.
1120 (AC_CHECK_FUNCS): Likewise.
1121 * configure, config.in: Regenerate.
1122
a8e4a997
MS
11232000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1124
1125 * safe-ctype.c: #include "ansidecl.h".
1126 * strtod.c: Likewise.
1127
75444da7
MS
11282000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1129
1130 * strtoul.c: Include safe-ctype.h, not ctype.h.
1131
f6bbde28
ZW
11322000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1133
1134 * safe-ctype.c: New file.
1135 * Makefile.in (CFILES): Add safe-ctype.c.
1136 (REQUIRED_OFILES): Add safe-ctype.o.
1137
1138 * argv.c: Define ISBLANK and use it, not isspace.
1139 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1140 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1141 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1142 before calling TOLOWER(c)/TOUPPER(c).
1143
6c1ce62b 11442000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
1145
1146 * Makefile.in (distclean): When cleaning, remove testsuite.
1147
b5d1497d
JM
11482000-12-05 Jason Merrill <jason@redhat.com>
1149
1150 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1151 name before allocating the dyn_string.
1152
c6e13630
JM
11532000-12-04 Jason Merrill <jason@redhat.com>
1154
1155 * cp-demangle.c: s/new_abi/v3/.
1156 * cplus-dem.c: Likewise.
1157 (current_demangling_style): Now auto_demangling.
1158 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 1159 (main): Use standard symbol chars for auto_demangling.
c6e13630 1160
a4c9b97e
MM
11612000-11-26 Mark Mitchell <mark@codesourcery.com>
1162
1163 * hashtab.c (higher_prime_number): Use a table, rather than a
1164 seive, to find the next prime.
1165
3b3bd9a7
L
11662000-11-22 H.J. Lu <hjl@gnu.org>
1167
1168 * cplus-dem.c (main): Handle gnat_demangling.
1169
d1209685
ZW
11702000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1171
1172 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1173 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1174 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1175 argument form of AC_DEFINE in dummy definitions block. Use
1176 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1177 in dummy block. Preload cache variables instead of bypassing
1178 tests, where possible.
1179 * acconfig.h: Removed.
1180
1181 * xmalloc.c (xmalloc_failed): New function, does error
1182 reporting on failed allocation.
1183 (xmalloc, xcalloc, xrealloc): Use it.
1184
cf183ac2
HPN
11852000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1186
1187 * cplus-dem.c (cplus_demangle): Fix formatting.
1188 (grow_vect): Ditto.
1189 (ada_demangle): Ditto.
1190 (internal_cplus_demangle): Ditto.
1191 (mop_up): Ditto.
1192
11932000-11-21 H.J. Lu <hjl@gnu.org>
1194
1195 * cplus-dem.c (main): Handle java_demangling.
1196
8bcc782c
KG
11972000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1198
1199 * cplus-dem.c (grow_vect): Prototype.
1200 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1201
29120f44
HPN
12022000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1203
1204 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1205 parameter `option'.
1206
0437a5a8
KB
12072000-11-15 Kenneth Block <kenneth.block@compaq.com>
1208
9e038f71 1209 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
1210 be used in GCC.
1211
eab0c1ab 12122000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 1213
29120f44 1214 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
1215 list.
1216
d50d20ec
HPN
12172000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1218
1219 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
1220 xcalloc depending on htab->return_allocation_failure. Return zero
1221 if calloc fails.
d50d20ec
HPN
1222 (htab_create): Update comment to cover memory allocation.
1223 (htab_try_create): New.
1224 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 1225 Update comment to cover this.
d50d20ec 1226
35e9340f
HPN
12272000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1228
1229 * hashtab.c: Change void * to PTR where necessary.
1230 (htab_create, htab_expand): Correct formatting of comment before
1231 function.
1232
ea343d1a 12332000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
1234
1235 * cp-demangle.c (string_list_def): Add caret_position and comments.
1236 (result_caret_pos): New macro.
1237 (result_append_string): Rename to...
1238 (result_add_string): ... this, and insert at caret position.
d1209685 1239 Rename throughout.
0870bfd6
AS
1240 (result_append): Rename to...
1241 (result_add): ... this, and insert at caret position. Rename
d1209685 1242 throughout.
0870bfd6
AS
1243 (result_append_char): Rename to...
1244 (result_add_char): ... this, and insert at caret position. Rename
d1209685 1245 throughout.
0870bfd6
AS
1246 (result_append_space): Remove.
1247 (string_list_new): Initialize caret position.
1248 (result_add_separated_char): Use caret position.
1249 (result_get_caret): New funtion.
1250 (result_set_caret): Likewise.
1251 (result_shift_caret): Likewise.
1252 (result_previous_char_is_space): Likewise.
1253 (substitution_start): Use caret position.
1254 (substitution_add): Likewise.
1255 (demangling_new): Initialize caret position.
1256 (demangle_encoding): Use caret position.
d1209685 1257 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
1258 (demangle_type_ptr): Use switch statement. Handle pointers to
1259 arrays. Don't use result_append_space. Use caret position.
1260 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
1261 call to demangle_array_type.
1262 (demangle_array_type): Add parameter to handle pointers to arrays.
1263
f15b9af9
MM
12642000-10-01 Mark Mitchell <mark@codesourcery.com>
1265
1266 * splay-tree.c (splay_tree_insert): Fix formatting.
1267
8f17b5c5
MM
12682000-09-16 Mark Mitchell <mark@codesourcery.com>
1269
1270 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1271
4eaa189a
MS
12722000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1273
1274 * splay-tree.c: #include <stdio.h>.
1275
29791078
HPN
12762000-09-14 Hans-Peter Nilsson <hp@axis.com>
1277
1278 * testsuite/demangle-expected: Add two tests for anonymous
1279 namespaces.
1280 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1281
2c9f4db7
MM
12822000-09-10 Mark Mitchell <mark@codesourcery.com>
1283
1284 * splay-tree.c (splay_tree_predecessor): New function.
1285 (splay_tree_successor): Likewise.
1286
bb22da4b
HPN
12872000-09-10 Hans-Peter Nilsson <hp@axis.com>
1288
1289 * testsuite/demangle-expected: Add four tests for type_info
1290 mangling.
bb22da4b
HPN
1291 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1292 for a non-template non-qualified type_info function or node.
1293
759e8187
AS
12942000-09-08 Alex Samuel <samuel@codesourcery.com>
1295
1296 * cp-demangle.c: Fix copyright banner.
1297
2ecd81ef
MS
12982000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1299
1300 * md5.c: #include "ansidecl.h".
1301
d93998ec
AS
13022000-09-06 Alex Samuel <samuel@codesourcery.com>
1303
1304 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1305 (demangle_type): Handle substitution candidates correctly in the
1306 face of special substitutions.
1307
1056d228
AS
13082000-09-05 Alex Samuel <samuel@codesourcery.com>
1309
1310 * cp-demangle.c (demangle_encoding): Rename variable.
1311 (demangle_name): Rename parameter. Handle return type
1312 suppression.
1313 (demangle_nested_name): Rename parameter.
1314 (demangle_prefix): Likewise. Change return type suppression.
1315 (demangle_unqualified_name): Add parameter. Flag constructors and
1316 conversion operators.
1317 (demangle_special_name): Fix comment.
1318 (demangle_type): Rename variable.
1319 (demangle_bare_function_type): Check for missing return type and
d1209685 1320 parameter.
1056d228
AS
1321 (demangle_class_enum_type): Rename parameter.
1322 (demangle_discriminator): Fix misspelling in comment.
1323
2f31ed7e
DD
13242000-08-31 DJ Delorie <dj@redhat.com>
1325
1326 * configure.in (Cygwin): special case cygwin only when we're
1327 building cygwin, not when we're hosting cygwin.
1328
02bcb9c6
AS
13292000-09-04 Alex Samuel <samuel@codesourcery.com>
1330
1331 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1332 <expression>.
1333
aee749cf
AS
13342000-09-04 Alex Samuel <samuel@codesourcery.com>
1335
1336 * cp-demangle.c (demangle_type_ptr): Increment position past
1337 pointer and reference characters.
1338
92a16bbe
AS
13392000-09-04 Alex Samuel <samuel@codesourcery.com>
1340
1341 * cp-demangle.c (demangle_nv_offset): New function.
1342 (demangle_v_offset): Likewise.
1343 (demangle_call_offset): Likewise.
1344 (demangle_special_name): Update thunk demangling to comply with
1345 ABI changes.
d1209685 1346
31e0ab1f
AS
13472000-09-03 Alex Samuel <samuel@codesourcery.com>
1348
1349 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1350 (substitution_def): Remove template_parm_number.
1351 (NOT_TEMPLATE_PARM): Remove.
1352 (result_insert_string): New macro.
1353 (result_insert): Likewise.
1354 (result_insert_char): Likewise.
1355 (substitution_add): Remove last parameter. Don't store template
d1209685 1356 parm number.
31e0ab1f
AS
1357 (BFT_NO_RETURN_TYPE): Define as NULL.
1358 (demangle_encoding): Adjust call to demangle_bare_function_type.
1359 (demangle_name): Adjust substitution. Adjust call to
d1209685 1360 substitution_add.
31e0ab1f
AS
1361 (demangle_prefix): Adjust call to substitution_add.
1362 (demangle_identifier): Handle anonymous namespaces.
1363 (demangle_operator_name): Change demangling of vendor-extended
1364 operator to match ABI changes.
1365 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1366 substitutions here.
31e0ab1f
AS
1367 (demangle_type): Adjust calls to demangle_template_param,
1368 substitution_add, and demangle_type_ptr. Fix substitution of
1369 templated types.
1370 (demangle_function_type): Change parameter to a pointer.
1371 (demangle_bare_function_type): Likewise. Adjust insertion point.
1372 (demangle_template_param): Remove last parameter.
1373 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1374 demangle_template_param.
31e0ab1f
AS
1375 (is_mangled_char): Accept `$' and `.'.
1376 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1377 * dyn-string.c (dyn_string_insert_char): New function.
1378
ccbc3eb7
HPN
13792000-08-31 Hans-Peter Nilsson <hp@axis.com>
1380
1381 * testsuite/demangle-expected: Add nine tests for
1382 underscore-after-number followed by five tests for name-signature
1383 delimiter.
1384
53dce582
RH
13852000-08-28 Richard Henderson <rth@cygnus.com>
1386
1387 * Makefile.in (md5.o): Depend on config.h.
1388
881c6935
JM
13892000-08-28 Jason Merrill <jason@redhat.com>
1390
1391 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1392 (CFILES): Add md5.c.
1393 * md5.c: New file.
1394
a440fd19
AS
13952000-08-27 Alex Samuel <samuel@codesourcery.com>
1396
1397 * cp-demangle.c (demangle_name): Initialize template_p in local
1398 name case. Don't re-add substitutions as candidates.
1399 (demangle_nested_name): Use <unqualified-name>.
1400 (demangle_prefix): Likewise. Don't add template names as
1401 substitution candidates twice, or re-add a substitution or the
1402 last prefix component.
1403 (demangle_local_name): Adjust output format.
1404
d01ce591
AS
14052000-08-25 Alex Samuel <samuel@codesourcery.com>
1406
1407 * cp-demangle.c (result_add_separated_char): Change parameter to
1408 int.
1409 (substitution_add): Don't check for duplicates. Check if
1410 previously allocated size is zero.
1411 (demangle_name): Remove duplicate check for std substitution.
1412 Clear template flag appropriately.
1413 (demangle_prefix): Remove argument to demangle_substitution.
1414 Don't check that template flag is already set.
1415 (demangle_operator_name): Add pt operator.
1416 (demangle_type): Don't treat r as built-in type. Remove argument
1417 to demangle_substitution. Fix substitution candidate mechanics.
1418 Handle <template-template-parm>s. Improve comments.
d1209685 1419 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1420 (demangle_substitution): Remove parameter.
1421 (print_usage): Remove extra fprintf option.
1422
2f59c8eb
GM
14232000-08-24 Greg McGary <greg@mcgary.org>
1424
1425 * libiberty/random.c (end_ptr): Revert previous change.
1426
2f26c11d
GM
14272000-08-24 Greg McGary <greg@mcgary.org>
1428
1429 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1430 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1431 * libiberty/random.c (end_ptr): Likewise.
1432
e282c9c9
AS
14332000-08-23 Alex Samuel <samuel@codesourcery.com>
1434
1435 * cp-demangle.c (result_close_template_list): Remove function.
1436 (result_add_separated_char): New function.
1437 (result_open_template_list): New macro.
1438 (result_close_template_list): Likewise.
1439 (demangle_prefix): Don't set template_p if the
1440 prefix ends with a ctor name.
1441 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1442 (demangle_type): Check for template args after substitution.
1443 (demangle_template_args): Use result_open_template_list.
d1209685 1444
c9b6494a
ZW
14452000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1446
1447 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1448
d1209685 14492000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1450
1451 * config/mh-openedition.h: Added -DLE370 definition.
1452
0aab2795
ME
14532000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1454
1455 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1456 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1457 Cast program to 'char *' in errmsg_arg assignment.
1458 (PWAIT_ERROR): Define.
1459 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1460 to DJGPP's WIF* macros.
1461
c2f275e4
RB
14622000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1463 Jeff Law <law@cygnus.com>
1464
73aa9564
RB
1465 * getcwd.c: Include string.h, stdlib.h for prototypes
1466
c2f275e4 1467 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1468 * rename.c: Include config.h, unistd.h
1469 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1470
ccbc3eb7
HPN
14712000-07-24 Hans-Peter Nilsson <hp@axis.com>
1472
1473 * cplus-dem.c (work_stuff_copy_to_from): New.
1474 (delete_non_B_K_work_stuff): New.
1475 (delete_work_stuff): New.
1476 (mop_up): Break out work_stuff partly destruction to
1477 delete_non_B_K_work_stuff.
1478 (iterate_demangle_function): New.
1479 (demangle_prefix): Call iterate_demangle_function instead of
1480 demangle_function_name. Leave handling of name-signature
1481 __-delimiters to iterate_demangle_function.
1482 (demangle_integral_value): Strip an optional
1483 following underscore cautiously. Handle negative numbers.
1484
3388651c
DB
14852000-07-24 Daniel Berlin <dberlin@redhat.com>
1486
d1209685 1487 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1488 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1489
0fac482e
AS
14902000-07-21 Alex Samuel <samuel@codesourcery.com>
1491
1492 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1493 allocating ctor mangling.
1494 (demangle_array_type): Handle empty and non-constant array length.
1495
8502a100 14962000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1497 Jeff Law <law@cygnus.com>
1498
c6451ce1
MS
1499 * configure.in (AC_CHECK_HEADERS): Add time.h.
1500 (AC_HEADER_TIME): Add check.
1501 * configure, config.in: Regenerate.
1502 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1503
cd447360
MS
1504 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1505 * configure, config.in: Regenerate.
1506 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1507 * strtol.c, strtoul.c: #include "config.h". Portably #include
1508 <limits.h> and/or <sys/param.h>.
1509 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1510
3b58c099
MS
1511 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1512 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1513 * configure, config.in: Regenerate.
1514 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1515
8502a100
MS
1516 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1517
da0c7743
MS
15182000-07-21 Mike Stump <mrs@wrs.com>
1519
1520 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1521 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1522
838f8562
KG
15232000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1524
1525 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1526
1527 * setenv.c (setenv): Initialize variable `ep'.
1528
1529 * sigsetmask.c (abort): Prototype.
1530
1531 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1532 __STDC__ for stdarg.h include.
1533 (int_vasprintf): Prototype.
1534 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1535 definition. Cast `global_total_width' in comparison.
1536 (main): Prototype. Return a value.
1537
1538 * vfork.c (fork): Prototype.
1539
1540 * xexit.c: Include config.h.
1541
e9958132
JM
15422000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1543
1544 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1545 and print it with %u.
1546
39a6492f
HPN
15472000-07-17 Hans-Peter Nilsson <hp@axis.com>
1548
1549 * testsuite/regress-demangle (failed test): Show result and
1550 expected output.
1551
6d0be369
AH
15522000-07-07 Andrew Haley <aph@cygnus.com>
1553
1554 * cplus-dem.c (main): fflush() after emitting last char before
1555 waiting for input.
1556
bece74bd
AS
15572000-06-28 Alex Samuel <samuel@codesourcery.com>
1558
1559 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1560 (demangle_name): Handle <substitution> followed by
1561 <unqualified-template-name>.
1562 (demangle_type): Follow special substitutions with
1563 <class-enum-type>
1564 (demangle_subtitution): Set template_p for special substitutions.
1565 (main): Fix typos.
d1209685 1566
229b8ec7
AS
15672000-06-27 Alex Samuel <samuel@codesourcery.com>
1568
1569 * cp-demangle.c (demangle_special_name): Swap base and derived
1570 class when demangling construction vtables.
1571
051664b0
AS
15722000-06-21 Alex Samuel <samuel@codesourcery.com>
1573
1574 * cp-demangle.c: Don't include ctype.h.
1575 (IS_DIGIT): New macro.
1576 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1577 instead of isdigit and isalpanum.
1578 (demangling_def): Make name and next const pointers.
1579 (STATUS_ALLOCATION_FAILED): New status code.
1580 (dyn_string_append_space): Handle failure in
1581 dyn_string_append_char.
1582 (int_to_dyn_string): Likewise. Change return value to status_t.
1583 (string_list_new): Handle failure of dyn_string_init.
1584 (result_close_template_list): Change return type to status_t.
1585 Handle failure in dyn_string_append.
1586 (result_push): Change return value to status_t. Handle failure in
1587 string_list_new. Handle failure of result_push throughout.
1588 (substitution_add): Change return value to status_t. Handle
1589 dyn_string failures. Handle failure of substitution_add
1590 throughout.
1591 (template_arg_list_new): Return NULL on allocation failure.
1592 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1593 Handle error result throughout.
1594 (result_append): Likewise.
1595 (result_append_char): Likewise.
1596 (result_append_space): Likewise.
1597 (demangling_new): Make argument a const pointer. Handle
1598 allocation failures.
1599 (demangle_template_args): Handle failure in template_arg_list_new
1600 and result_close_template_list.
1601 (demangle_discriminator): Return if int_to_dyn_string fails.
1602 (cp_demangle): Likewise.
1603 (cp_demangle_type): New function.
1604 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1605 memory allocation failure.
1606 (main): Likewise.
1607 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1608 IN_LIBGCC2.
1609 (dyn_string_init): Change return value to int. Handle
1610 RETURN_ON_ALLOCATION_FAILURE case.
1611 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1612 (dyn_string_release): Delete the dyn_string.
1613 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1614 (dyn_string_copy): Change return type to int.
1615 (dyn_string_copy_cstr): Likewise.
1616 (dyn_string_prepend): Likewise.
1617 (dyn_string_prepend_cstr): Likewise.
1618 (dyn_string_insert): Likewise.
1619 (dyn_string_insert_cstr): Likewise.
1620 (dyn_string_append): Likewise.
1621 (dyn_string_append_cstr): Likewise.
1622 (dyn_string_append_char): Likewise.
1623 (dyn_string_substring): Likewise.
d1209685 1624
fe06b696
ZW
16252000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1626
1627 * cp-demangle.c (demangle_operator_name): Add spaces before
1628 names beginning with a letter: delete, delete[], new, new[],
1629 sizeof.
1630 (demangle_special_name): Handle TF <type> and TJ <type>.
1631
6223e158
PDM
1632Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1633
1634 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1635
48f3e29b
PDM
1636Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1637
1638 * cp-demangle.c (stdio.h): File included unconditionaly.
1639 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1640 * dyn-string.c (stdio.h): File included.
1641 * partition.c (partition_print): No `&' needed to take the address of
1642 a function.
1643
69197e7e
KG
16442000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1645
1646 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1647
69197e7e
KG
1648 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1649
1650 * cp-demangle.c (demangle_char): Change parameter from char to int.
1651 (demangle_expression, demangle_expr_primary): Remove extra
1652 semi-colon in prototype.
1653
1654 * dyn-string.c (dyn_string_append_char): Change parameter from
1655 char to int.
1656
1657 * memcmp.c (memcmp): Constify.
1658
1659 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1660 __extension__.
1661
1662 * partition.c (elem_compare): Prototype. Don't cast away
1663 const-ness.
1664
1665 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1666
7eb23b1f
KG
16672000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1668
1669 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1670
1671 * cp-demangle.c: Include demangle.h.
1672 (template_arg_list_new): DeANSIfy.
1673 (cp_demangle): Make static and add prototype.
1674 (operator_code, operators): Constify.
1675 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1676
3faa108c
AS
16772000-06-05 Alex Samuel <samuel@codesourcery.com>
1678
1679 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1680 unsigned char.
1681 (demangle_unqualified_name): Likewise.
1682 (demangle_number_literally): Likewise.
1683 (demangle_type): Likewise.
1684 (demangle_substitution): Likewise.
1685 (is_mangled_char): Likewise, for isalnum.
1686
69afa80d
AS
16872000-06-04 Alex Samuel <samuel@codesourcery.com>
1688
1689 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1690 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1691 (cp-demangle.o): New dependency.
1692 (dyn-string.o): Likewise.
1693
1694 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1695
1696 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1697 demangler.
1698 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1699 demangling mode.
1700 (gnu_new_abi_symbol_characters): New function.
1701 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1702 file.
1703 * cp-demangle.c: New file.
d1209685 1704
0b72c3df
AC
1705Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1706
1707 * floatformat.c: Add name to each floatformat field.
1708
270cea06
JL
1709Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1710
1711 * Makefile.in (objalloc.o): Depend on config.h
1712
d11ec6f0
ZW
17132000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1714
1715 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1716 if HAVE_STRING_H.
1717 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1718 * objalloc.c: Include config.h. Include stdlib.h and don't
1719 declare malloc or free if HAVE_STDLIB_H.
1720 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1721 else declare malloc without prototype. Include string.h if
1722 HAVE_STRING_H, else declare memset without prototype. Don't
1723 include stddef.h.
1724
f8e2da56
MS
17252000-05-23 Mike Stump <mrs@wrs.com>
1726
1727 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1728 -j3.
f8e2da56 1729
650f3068
DA
17302000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1731
1732 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1733
1d2da2e1
HB
17342000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1735
d1209685 1736 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1737 probably zero, also eliminate a warning on alpha.
1738
47668d0a
DE
17392000-05-15 David Edelsohn <edelsohn@gnu.org>
1740
c7a79a32 1741 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1742 on $(enable_shared).
1743
36348eab
JJ
17442000-05-10 Jakub Jelinek <jakub@redhat.com>
1745
1746 * config.table: Use mh-sparcpic for sparc*-*-*.
1747
209bbe34
NC
17482000-05-08 Nick Clifton <nickc@cygnus.com>
1749
1750 * Makefile.in (CFILES): Add strncmp.c.
1751 (NEEDED): Add strncmp.
1752
a85a47fb
KG
17532000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1754
1755 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1756 Cast the arguments to `islower' to `unsigned char'.
1757 (print_demangler_list): Prototype.
1758
4aef973c
PDM
1759Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1760
1761 * sort.c (UCHAR_MAX): Provide fallback definition.
1762
3b94497c
AO
17632000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1764
1765 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1766 SUBDIRS.
1767
24eaa47a
KB
17682000-04-28 Kenneth Block <block@zk3.dec.com>
1769 Jason Merrill <jason@casey.cygnus.com>
1770
d1209685
ZW
1771 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1772 (cplus_demangle_set_style): New function for setting style.
1773 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1774
a9266bfa
KG
17752000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1776
1777 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1778
1779 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1780 (libiberty_AC_FUNC_STRNCMP): Invoke.
1781
1782 * strncmp.c: New file.
1783
8e02c4d0
JH
1784Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1785
1786 * hashtab.c (htab_expand): Add prototype.
1787 (find_empty_slot_for_expand): Likewise.
1788
4feeaae3
KG
17892000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1790
1791 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1792 match prototype.
1793 (htab_expand): Cast the return value of xcalloc.
1794
18a94a2f
MM
17952000-04-24 Mark Mitchell <mark@codesourcery.com>
1796
1797 * hashtab.c (hash_pointer): New function.
1798 (eq_pointer): Likewise.
1799 (htab_hash_pointer): New variable.
1800 (htab_eq_pointer): Likewise.
1801
eeb0656f
MM
18022000-04-23 Mark Mitchell <mark@codesourcery.com>
1803
b51024fc
MM
1804 * sort.c (sort_pointers): Fix endianness bugs.
1805
eeb0656f
MM
1806 * sort.c: New file.
1807 * Makefile.in (CFILES): Add sort.c
1808 (REQUIRED_OFILES): Add sort.o.
1809 (sort.o): New target.
1810
7277f72d
MS
18112000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1812
1813 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1814 4.3BSD systems.
1815
e38992e8
RK
1816Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1817
1818 * hashtab.c: Various minor cleanups.
1819 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1820 (htab_find_slot): Likewise.
1821
498e1ab1
DP
18222000-04-16 Dave Pitts <dpitts@cozx.com>
1823
1824 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1825
dc17cc7b
RH
18262000-04-05 Richard Henderson <rth@cygnus.com>
1827
1828 * splay-tree.c (splay_tree_remove): New.
1829
b13eb66b
MM
18302000-03-30 Mark Mitchell <mark@codesourcery.com>
1831
1832 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1833 codes.
1834 (htab_find_with_hash): Likewise.
1835 (htab_find_slot_with_hash): Likewise.
d1209685 1836
0194e877
ZW
18372000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1838
1839 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1840 unless it will be used. Rearrange loop for better
1841 optimization.
1842 (higher_prime_number): Add static prototype.
1843
abc61fd4
JL
1844Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1845
1846 * Makefile.in (partition.o): Depend on config.h
1847
8c5d513f
BS
18482000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1849
1850 * hashtab.c (find_empty_slot_for_expand): New function.
1851 (htab_expand): Use it instead of htab_find_slot.
1852 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1853 argument HASH.
1854 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1855 (htab_find): New wrapper function.
1856 (htab_find_slot): Likewise.
1857 (htab_traverse): Pass slot, not entry, to called function.
1858
d9d4fb43
AS
18592000-03-09 Alex Samuel <samuel@codesourcery.com>
1860
1861 * Makefile.in (CFILES): Add partition.c.
1862 (REQUIRED_OFILES): Add partition.o.
1863 (partition.o): New rule.
1864 * partition.c: New file.
d1209685 1865
5dc9cffd
ZW
18662000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1867
1868 * hashtab.c (htab_create): Set del_f.
1869 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1870 Use it.
1871
5194cf08
ZW
18722000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1873
1874 * hashtab.c: Remove debugging variables (all_searches,
1875 all_collisions, all_expansions). Delete
1876 all_hash_table_collisions.
1877 (create_hash_table, delete_hash_table, empty_hash_table,
1878 find_hash_table_entry, remove_element_from_hash_table_entry,
1879 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1880 hash_table_elements_number, hash_table_collisions): Rename to:
1881 htab_create, htab_delete, htab_empty, htab_find_slot,
1882 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1883 htab_elements, htab_collisions.
1884 (htab_find): New function, handles common case where you don't
1885 plan to add or delete an entry.
1886 (htab_expand): Don't create a whole new table, just a new
1887 entry vector.
1888 (htab_find_slot): Simplify logic.
1889
5ad5a984
ILT
18901999-08-03 Ian Lance Taylor <ian@zembu.com>
1891
1892 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1893 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1894
1895 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1896 $(TARGETLIB)n so it works on MSDOS.
1897 (install_to_tooldir): Likewise.
1898
18991999-07-21 Ian Lance Taylor <ian@zembu.com>
1900
1901 From Mark Elbrecht:
1902 * makefile.dos: Remove; obsolete.
1903 * configure.bat: Remove; obsolete.
1904
19051999-07-11 Ian Lance Taylor <ian@zembu.com>
1906
1907 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1908 warning.
1909
aeecce42
MK
19102000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1911
1912 * pexecute.c: Conditionally include string.h.
5194cf08 1913 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1914
1eaf7d9c
KG
19152000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1916
1917 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1918 we're using gcc.
1919
1920 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1921
0fadedb2
GK
19221999-12-27 Geoff Keating <geoffk@cygnus.com>
1923
1924 * vasprintf.c (int_vasprintf): Don't re-read the format character
1925 as this mishandles strings like '%%s'.
1926
08230f26
MM
19271999-12-05 Mark Mitchell <mark@codesourcery.com>
1928
1929 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1930 rather than struct splay_tree_node.
1931 (splay_tree_insert): Use struct splay_tree_s rather than struct
1932 splay_tree.
1933
6de9b8ff
PDM
1934Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1935
1936 * hashtab.c (sys/types.h): File included.
1937
f3636679
JM
19381999-11-22 Jason Merrill <jason@casey.cygnus.com>
1939
1940 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1941 BSD license, pursuant with
1942
1943 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1944
36dd3a44
JL
1945Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1946
1947 * hashtab.c: Include stdio.h.
1948
6e300472
JL
1949Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1950
1951 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1952
df548dfc
PDM
1953Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1954
1955 * xstrdup (sys/types.h): Include this file.
1956
2c375143
NS
19571999-10-28 Nathan Sidwell <nathan@acm.org>
1958
1959 * Makefile.in (SUBDIRS): New macro.
1960 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1961 avoid multiple subdirectory cleaning.
1962 (*-subdir): Use SUBDIRS.
1963
a82cecda
JK
19641999-10-25 Jim Kingdon <http://developer.redhat.com/>
1965
1966 * cplus-dem.c: Move declarations of standard_symbol_characters and
1967 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1968 warnings.
1969
ed38f5d5
ZW
19701999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1971
1972 * hashtab.c (find_hash_table_entry): When returning a
1973 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1974 (clear_hash_table_slot): New function which deletes an entry
1975 by its position in the table, not its value.
1976 (traverse_hash_table): New function which calls a hook
1977 function for every live entry in the table.
1978
b60fe4a7
MM
19791999-10-19 Mark Mitchell <mark@codesourcery.com>
1980
1981 * cplus-dem.c (INTBUF_SIZE): New macro.
1982 (string_append_template_idx): New function.
1983 (demangle_expression): Likewise.
1984 (demangle_integral_value): Use it.
1985 (demangle_real_value): New function, split out from ...
1986 (demangle_template_value_parm): ... here. Use
1987 string_append_template_idx. Use demangle_real_value.
1988 (demangle_template): Use string_append_template_idx.
1989 (demangle_qualified): Use consume_count_with_underscores.
1990 (get_count): Tweak formatting.
1991 (do_type): Use string_append_template_idx.
5194cf08 1992
3da5522a
KG
19931999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1994
1995 * calloc.c: Add a public domain notice.
1996
d7d36ea8
PDM
1997Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1998
1999 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2000
a2f945c6
VM
2001Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2002
2003 * Makefile.in (CFILES): Add hashtab.c
2004 (REQUIRED_OFILES): Add hashtab.o
2005 (hashtab.o): Add dependencies.
2006 * hashtab.c: New file
2007
7f22ec2e
MK
2008Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2009
2010 * basename.c (DIR_SEPARATOR): New macro.
2011 (DIR_SEPARATOR_2): Likewise.
2012 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2013 (IS_DIR_SEPARATOR): Likewise.
2014 (main): Handle MSDOS style pathname.
2015
7c56a6ce
MM
20161999-10-11 Mark Mitchell <mark@codesourcery.com>
2017
2018 * cplus-dem.c (do_type): Handle pointer to member types whose
2019 enclosing classes have namespace scope.
2020
cd32188b
ME
2021Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2022
2023 * config.table: Provide a backup shell for executing move-if-change.
2024
fc232f7a
MM
20251999-10-02 Mark Mitchell <mark@codesourcery.com>
2026
2027 * xmalloc.c (xmalloc): Fix spelling error.
2028 (xcalloc, xrealloc): Likewise.
2029
2a138827
KG
20301999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2031
2032 * cplus-dem.c (fancy_abort, demangle_integral_value,
2033 demangle_arm_hp_template, recursively_demangle,
2034 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2035 (program_name, program_version, fatal): Constify a char*.
2036 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2037 (main): Call return, not exit.
2038
5a657fc3
KG
20391999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2040
2041 * choose-temp.c: Remove obsolete comment about gcc.
2042 (make_temp_file): Constify a char*.
2043
33c5ddcd
KG
2044Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2045
2046 * xmemdup.c: Include sys/types.h.
2047
b10647f1
JG
20481999-09-07 Jeff Garzik <jgarzik@pobox.com>
2049
2050 * xmemdup.c: New xmemdup function.
2051 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2052
3dd6c3af
LV
2053Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2054
5194cf08 2055 * config.table: Add openedition target.
3dd6c3af
LV
2056 * config/mh-openedition: New file.
2057
19e28e2a
ME
2058Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2059
2060 * pexecute.c (pexecute): Fill in temp_base when needed.
2061
4dfeccf9
RH
20621999-08-31 Richard Henderson <rth@cygnus.com>
2063
2064 * getpwd.c: Check HAVE_GETCWD before defining it away.
2065
4ac3cb83
KG
20661999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2067
2068 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2069 (REQUIRED_OFILES): Add getpwd.o.
2070 (getpwd.o): Add target.
2071
2072 * configure.in (AC_PREREQ): Bump to 2.13.
2073 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2074
2075 * getpwd.c: New file, moved here from gcc.
2076
e797ff70
KG
20771999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2078
2079 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2080 comparing against a signed quantity.
2081 (arm_special): Likewise.
2082 (demangle_fund_type): Likewise.
2083 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 2084 ATTRIBUTE_UNUSED.
e797ff70
KG
2085 (main): Constify variable `valid_symbols'.
2086
55247fce
PDM
2087Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2088
2089 * strtoul.c (strtoul): Add parentheses around && within ||.
2090
76632dd0
DJ
2091Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2092
2093 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2094 libdir, libsubdir and tooldir.
2095
d080bbfa
MM
20961999-08-01 Mark Mitchell <mark@codesourcery.com>
2097
2098 * splay-tree.c (splay_tree_insert): Return the new node.
2099
a81c752a
RH
21001999-07-14 Richard Henderson <rth@cygnus.com>
2101
5194cf08 2102 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
2103 prototyping directly.
2104 * choose-temp.c: Conditionally include string.h.
2105
8f1824d9
JM
21061999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2107
2108 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2109
652374d3
ILT
21101999-07-11 Ian Lance Taylor <ian@zembu.com>
2111
2112 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2113 warning.
2114
a4494286
JM
21151999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2116
2117 * Makefile.in (needed-list): Only include stuff we actually need
2118 for libstdc++.
2119
90e72e20
AS
21201999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2121
2122 * configure.in (checkfuncs): Add gettimeofday.
2123 * config.in, configure: Regenerated.
2124
b569200e
MK
2125Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2126
2127 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2128 the test fails.
2129 * configure: Regenerate.
2130
73919448
MS
21311999-06-10 Mike Stump <mrs@wrs.com>
2132
2133 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2134 parallel builds.
2135
fee9125c
KG
21361999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2137
2138 * putenv.c: Include ansidecl.h to define `const'.
2139 * setenv.c: Likewise.
2140
71cce721
MN
2141Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2142
a7c9637f
JL
2143 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2144 * configure.in (funcs): Add putenv and setenv.
2145 (AC_CHECK_FUNCS): Check for putenv and setenv.
2146 * configure: Rebuilt.
2147 * putenv.c setenv.c: New files.
2148
71cce721
MN
2149 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2150 bytes of space using malloc.
2151
53504016
SG
2152Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2153
2154 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2155 the *mangled pointer beyond the end of the string. Clean up code to
2156 match prevailing coding style.
2157
34842539
MH
21581999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2159
2160 * tmpnam.c (L_tmpnam): Fix typo.
2161
3a08531d
ME
2162Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2163
2164 * cplus-dem.c (standard_symbol_characters): Renamed from
2165 standard_symbol_alphabet. No longer modify TABLE.
2166 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2167 modify TABLE.
2168 (main): Corresponding changes. Use strchr to determine if a
2169 character is valid.
2170
8db9d08b
JB
21711999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2172
2173 * cplus-dem.c (main): Use table lookup to distinguish identifier
2174 characters from non-identifier characters.
2175 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2176
6a071f4a
FF
2177Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2178
2179 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2180 * getruntime.c: Only attempt to include sys/resource.h and
2181 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2182 are defined.
2183
7dd88617
DT
2184Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2185
2186 * configure.in (alloca detection): Handle alloca directly for interix.
2187 * configure: Rebuilt.
2188
7a1528bc
MK
2189Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2190
2191 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2192
76409268
JB
21931999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2194
2195 Fix from Dale Hawkins:
5194cf08 2196 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
2197 reallocated properly if we use it again.
2198
2199 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2200 stricter about syntax. Always null-terminate string.
2201
acbbd80a
MK
2202Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2203
2204 * configure.in (checkfuncs): Check for sbrk.
2205 * config.in: Rebuilt.
2206 * configure: Likewise.
2207 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2208
92523551
JB
22091999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2210
2211 Fix from Marcus Daniels:
2212 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2213 identifier looking for another underscore.
2214
36eb4217
MK
2215Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2216
2217 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2218 * xmalloc.c: Likewise.
2219 (xcalloc): UWIN has sbrk.
2220 (xrealloc): Fix guard macro.
2221
2c45d1a0
RH
22221999-04-11 Richard Henderson <rth@cygnus.com>
2223
2224 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2225 or <alloca.h>.
2226 * clock.c (GNU_HZ): New definition.
2227 (clock): Use it.
2228 * getruntime.c: Likewise.
2229
2230 * config.table: Use mh-beos.
2231 * config/mh-beos: New file.
2232
391cdef0
MM
22331999-04-11 Mark Mitchell <mark@codesourcery.com>
2234
2235 * cplus-dem.c (demangle_template_value_parm): Handle
2236 pointers-to-members.
2237 (do_type): Handle template parameters as qualifiers.
2238
9d229989
JB
22391999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2240
2241 * cplus-dem.c: Attempt to handle overflows in counts with some
2242 semblance of grace.
2243 (consume_count): Detect overflows. Return -1 to indicate errors,
2244 instead of zero.
2245 (demangle_template_value_parm, demangle_template): Handle change
2246 to consume_count's return convention.
2247
7c72138a
TT
22481999-04-05 Tom Tromey <tromey@cygnus.com>
2249
2250 * testsuite/regress-demangle: New file.
2251 * testsuite/demangle-expected: New file.
2252
2253 * Makefile.in (all, check, installcheck, info, install-info,
2254 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2255 distclean, maintainer-clean, realclean): Depend on corresponding
2256 `-subdir' target.
2257 (all-subdir check-subdir installcheck-subdir info-subdir
2258 install-info-subdir clean-info-subdir dvi-subdir
2259 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2260 distclean-subdir maintainer-clean-subdir): New target.
2261 * testsuite/Makefile.in: New file.
2262 * configure: Rebuilt.
2263 * configure.in: Create testsuite/Makefile.
2264
ae7f7270
MM
22651999-04-02 Mark Mitchell <mark@codesourcery.com>
2266
2267 * splay-tree.h (splay_tree_compare_pointers): Define.
2268
30f72379
MM
22691999-03-30 Mark Mitchell <mark@codesourcery.com>
2270
2271 * splay-tree.c (splay_tree_compare_ints): Define.
2272
4cc48683
TT
22731999-03-30 Tom Tromey <tromey@cygnus.com>
2274
2275 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2276 don't advance input pointer.
2277 (demangle_class_name): If consume_count didn't find a count, do
2278 nothing. Don't bother with `strlen' sanity check; consume_count
2279 does it for us.
2280
3510075c
JL
22811999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2282
2283 From Art Haas <ahaas@neosoft.com>:
2284 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2285 when doing arm or hp style.
2286 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 2287
89f602a7
MK
2288Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2289
2290 * pexecute.c (__CYGWIN32__): Rename to
2291 (__CYGWIN__): this.
2292 * xmalloc.c: Likewise.
2293
2294 Changes to support i386-pc-uwin.
2295 * configure.in (*-*-uwin*): Workaround for vfork bug.
2296 * configure: Regenerate.
2297 * pexecute.c (pexecute): Be like standard Unix.
2298 (pwait): Likewise.
2299 * xmalloc.c (first_break): Define.
2300 (xmalloc_set_program_name): Use.
2301 (xmalloc): Use.
2302
9346c824
FS
2303Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2304
2305 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2306
3510075c
JL
2307Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2308
2309 * config.table: Check cygwin*, not cygwin32*.
2310
8ec65f13
DB
2311Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2312
2313 * Makefile.in: Change mkstemp -> mkstemps.
2314
687361c8
ME
2315Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2316
2317 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2318 * configure.in (funcs): Check for and conditionally add mkstemps to
2319 the list of functions libiberty will provide.
2320 * configure: Rebuilt.
5194cf08 2321
b207e09c
MK
2322Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2323
5194cf08 2324 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2325 platforms that don't have HZ.
2326 * getruntime.c (HZ): Likewise.
2327
16b4c15e
RH
2328Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2329
2330 * Makefile.in (xstrdup.o): Depend on config.h.
2331
38beb75c
UD
2332Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2333
2334 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2335 freeing it.
2336
7e4311a3
KG
2337Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2338
2339 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2340
3510075c
JL
2341Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2342
2343 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2344 splay-tree.o.
2345
23461999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2347
2348 * configure.in: Require autoconf 2.12.1 or higher.
2349
fb9939b8
MM
23501998-12-30 Michael Meissner <meissner@cygnus.com>
2351
2352 * random.c (NULL): Don't redefine NULL if it is already defined.
2353
087aa398
KG
2354Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2355
2356 * argv.c (buildargv): Cast the result of alloca in assignment.
2357
2358 * choose-temp.c: Include stdlib.h.
38beb75c 2359
087aa398 2360 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2361 (snarf_numeric_literal): Constify first parameter.
2362 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2363 int, not a char.
087aa398
KG
2364 (demangle_qualifier): Likewise.
2365 (demangle_signature): Cast the argument of a ctype function to
2366 unsigned char.
2367 (arm_pt): Add parens around assignment used as truth value.
2368 (demangle_arm_hp_template): Constify variable `args'.
2369 (do_hpacc_template_const_value): Cast the argument of a ctype
2370 function to unsigned char.
2371 (do_hpacc_template_literal): Remove unused variable `i'.
2372 (snarf_numeric_literal): Constify parameter `args'.
2373 Cast the argument of a ctype function to unsigned char.
2374
2375 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2376 avoid ambiguous `else'.
38beb75c 2377
087aa398 2378 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2379 `cstart' and `cend' to unsigned char. Cast the argument of macro
2380 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2381
2382 * objalloc.c (free): Add prototype.
2383
21f2174d
HPN
2384Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2385
2386 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2387
3510075c
JL
2388Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2389
2390 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2391 doesn't exist.
3510075c 2392 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2393
e8fc8222
AM
2394Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2395
2396 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2397 bumping the pointer we read from. Also prepend these codes,
2398 as we do in other places.
2399
3510075c
JL
24001998-12-18 Nick Clifton <nickc@cygnus.com>
2401
2402 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2403 'const char *' in order to match its usage when calling siblings.
2404 (snarf_numeric_literal): Make first arg 'const char **' in order
2405 to match usage.
11a0bb74 2406
f4f30aa1
JL
2407Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2408
11a0bb74
KG
2409 * choose-temp.c: Don't check IN_GCC anymore.
2410
2411 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2412 * memchr.c (memchr): Likewise.
2413 * memcpy.c (memcpy): Likewise.
2414 * memmove.c (memmove): Likewise.
38beb75c 2415
11a0bb74
KG
2416 * mkstemp.c: Don't check IN_GCC anymore.
2417 * pexecute.c: Likewise.
2418 * splay-tree.c: Likewise.
38beb75c 2419
11a0bb74
KG
2420 * strchr.c (strchr): Use `const', not `CONST'.
2421 * strrchr.c (strrchr): Likewise.
2422 * strtol.c (strtol): Likewise.
2423 * strtoul.c (strtoul): Likewise.
2424
70d5ccef
DT
2425Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2426 Elena Zannoni <ezannoni@cygnus.com>
2427 Stan Shebs <shebs@cygnus.com>
2428 Edith Epstein <eepstein@cygnus.com>
2429 Andres MacLeod <amacleod@cygnus.com>
2430 Satish Pai <pai@apollo.hp.com>
2431
2432 * HP aCC demangling support.
2433 * cplus-dem.c
2434 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2435 demangling correctly when -edg specified; set the demangling style
2436 when user specifies 'edg'. Set strip_underscore to
2437 prepends_underscore, if not HPUXHPPA. Set
2438 current_demangling_style to hp_demangling if HPUXHPPA. Set
2439 current demangling style correctly if the switch is hp. Read
2440 label correctly also in the HP style case.
70d5ccef 2441 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2442 function.
70d5ccef 2443 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2444 style for this case is the same as ARM.
70d5ccef
DT
2445 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2446 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2447 demangle_arm_pt.); check and set value of temp_start field in
2448 multiple places. Also, when ceching for end of template args,
2449 check to see if at end of static member of template class.
70d5ccef 2450 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2451 include template args in string defining class.
70d5ccef
DT
2452 (demangle_class_name): use demangel_arm_hp_template.
2453 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2454 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2455 Handle EDG_DEMANGLING style. Handle constructor and destructor
2456 ops for HP style.
70d5ccef 2457 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2458 styles. global destructor and constructor for HP style are same
2459 as for ARM style. Same for local variables.
70d5ccef
DT
2460 (demangle_qualified): handle EDG_DEMANGLING style.
2461 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2462 cases '1' - '9' : initialize the temp_start field to -1 and handle
2463 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2464 and AUTO_DEMANGLING styles. If expecting a function and managed
2465 to demangle the funct args, then handle the LUCID_DEMANGLING,
2466 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2467 class name after "Lnnn_ in HP style case. HP style too needs to
2468 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2469 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2470 value param for HP/aCC.
70d5ccef 2471 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2472 literal parameter for HP aCC.
70d5ccef
DT
2473 (recursively_demangle): new function
2474 (snarf_numeric_literal): new function.
2475 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2476 to message.
70d5ccef 2477
8d525fa8
CF
2478Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2479
2480 * pexecute.c: Remove obsolete ifdefed cygwin code.
2481
9b1a92d8
KG
2482Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2483
2484 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2485 * cplus-dem.c: Likewise. Conform to libiberty.h.
2486 * pexecute.c: Likewise.
2487 * splay-tree.c: Likewise.
2488
c85c3232
MS
24891998-11-25 Mike Stump <mrs@wrs.com>
2490
2491 * Makefile.in (splay-tree.o): Add config.h dependency.
2492
35a6cd99
KG
2493Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2494
2495 * configure.in: Use AC_PREREQ(2.12.1).
2496
6e6e34b7
BK
24971998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2498
5194cf08 2499 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2500
59b67c11
JL
2501Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2502
2503 * mpw.c (mpw_access): Add missing parens.
2504
a6458d1d
KG
2505Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2506
2507 * configure.in: Call AC_HEADER_SYS_WAIT.
2508
2509 * pexecute.c: Include sys/wait.h when !IN_GCC.
2510
3510075c
JL
2511Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2512
2513 * pexecute.c: revert back to checking old Cygwin
2514 preprocessor symbol until some time has passed.
2515
2516Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2517
2518 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2519 since it will now support similar constructs.
2520
a9acf741
KG
2521Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2522
2523 * configure.in: Check for calloc.
2524
2525 * calloc.c: New file.
2526
2527 * xmalloc.c (xcalloc): New function.
2528
a49fb37a
AM
2529Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2530
2531 *cplus-dem.c (demangle_prefix): Use the last "__"
2532 in the mangled name when looking for the signature. This allows
2533 template names to begin with "__".
2534
0e714131
MM
25351998-11-08 Mark Mitchell <mark@markmitchell.com>
2536
ec2288ff
MM
2537 * cplus-dem.c (type_kind_t): Add tk_reference.
2538 (demangle_template_value_parm): Handle it.
2539 (do_type): Use it for references, instead of tk_pointer.
2540
0e714131
MM
2541 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2542 not internal_cplus_demangle.
2543
2931b6d4
KG
2544Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2545
2546 * choose-temp.c: Don't include gansidecl.h.
2547 * mkstemp.c: Likewise.
2548 * pexecute.c: Likewise.
2549
dd8f3ed5
GN
2550Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2551
5194cf08
ZW
2552 * configure.in: detect cygwin* instead of cygwin32*
2553 * configure: regenerate
dd8f3ed5 2554
c5f7c445
KG
2555Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2556
2557 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2558 whether to include config.h. Possibly include unistd.h in the
2559 !IN_GCC case. Define VFORK_STRING as a printable function call
2560 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2561 defined, include vfork.h. If VMS is defined, define vfork()
2562 appropriately. Remove vfork check on USG, we're using autoconf.
2563 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2564 locally what string to use.
c5f7c445 2565
ad3ef78e
MM
25661998-10-26 Mark Mitchell <mark@markmitchell.com>
2567
2568 * splay-tree.c: Tweak include directives to make sure declarations of
2569 xmalloc and free are available.
2570
224301c1
MM
25711998-10-25 Mark Mitchell <mark@markmitchell.com>
2572
2573 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2574 anonymous namespaces.
38beb75c 2575
d9db46fd
MM
25761998-10-23 Mark Mitchell <mark@markmitchell.com>
2577
2578 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2579 with type_quals.
2580 (TYPE_UNQUALIFIED): New macro.
2581 (TYPE_QUAL_CONST): Likewise.
2582 (TYPE_QUAL_VOLATILE): Likewise.
2583 (TYPE_QUAL_RESTRICT): Likewise.
2584 (code_for_qualifier): New function.
2585 (qualifier_string): Likewise.
2586 (demangle_qualifier): Likewise.
2587 (internal_cplus_demangle): Use them.
2588 (demangle_signature): Likewise.
2589 (demangle_template_value_parm): Likewise.
2590 (do_type): Likewise.
2591 (demangle_fund_type)): Likewise.
224301c1 2592
b056ad1c
KG
2593Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2594
2595 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2596 to match prototype.
2597
ed87f9c8
MM
25981998-10-21 Mark Mitchell <mark@markmitchell.com>
2599
2600 * splay-tree.c: New file.
2601 * Makefile.in (CFILES): Add it.
2602 (REQUIRED_OFILES): Likewise.
2603 (splay-tree.o): Add dependencies.
2604
e0c13971
AS
2605Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2606
2607 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2608 range of 'K' index.
2609
91e0f659
KG
2610Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2611
2612 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2613
2614 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2615 `unsigned char'.
2616 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2617 comparing against one.
2618 (cplus_mangle_opname): Likewise.
2619 (demangle_integral_value): Cast argument of ctype macro to
2620 `unsigned char'.
2621 (demangle_template_value_parm): Likewise.
2622 (demangle_template): Initialize variable `bindex'. Cast the
2623 result of `strlen' to (int) when comparing against one. Remove
2624 unused variable `start_of_value_parm'.
2625 (demangle_class_name): Cast the result of `strlen' to (int) when
2626 comparing against one.
2627 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2628 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2629 when comparing against one.
2630 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2631 (get_count): Likewise.
2632 (do_type): Likewise. Cast the result of `strlen' to (int) when
2633 comparing against one.
2634 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2635 (demangle_function_name): Cast the result of `strlen' to (int)
2636 when comparing against one.
2637
2638 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2639 comparing against one.
2640
73aeb2ff
JL
2641Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2642
5194cf08
ZW
2643 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2644 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2645 * config.in, configure: Rebuilt.
ae76f1be 2646
73aeb2ff
JL
2647 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2648 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2649 * config.in, configure: Rebuilt.
2650
dd8f3ed5
GN
2651Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2652
5194cf08 2653 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2654
f77d8413
MT
2655Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2656
2657 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2658
ca6b370d
JL
2659Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2660
2661 * Merge egcs & devo libiberty.
2662
ab4856b1
ML
2663