* lib/mi-support.exp (mi_run_cmd): Expect an MI response to
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
5f73c378
DD
12003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
2
3 * configure.in: Add check for malloc.h needed by
4 m68k for function free().
5 * configure: Regenerated.
6 * config.in: Add HAVE_MALLOC_H.
7 * hashtab.c: include malloc.h were available for
8 free().
9
e69f6c8c
DD
102003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
11
12 PR bootstrap/10974
13 * physmem.c: Update comment.
14 * configure.in: Modify test for _system_configuration for older
15 AIX systems.
16
17 * config.in, configure: Regenerated.
18
54c60684
DD
192003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20
21 PR other/10810
22 * test-demangle.c (getline): Fix fence-post error.
23
5a4e47bd
NC
242003-06-03 Nick Clifton <nickc@redhat.com>
25
26 * asprintf.c: Change comment to note that -1 is returned upon
27 error.
28 * vasprintf.c: Likewise.
29 (vasprintf): Return -1 upon error.
30 * functions.texi: Document changes to asprintf and vasprintf.
31
916f5d13
DD
322003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
33
34 * config.table: Accept i[345867]86 variant.
35
e4f79046
JB
362003-05-15 Jim Blandy <jimb@redhat.com>
37
38 * hex.c (_hex_value): Make this unsigned.
39 (hex_value): Update documentation for new return type. hex_value
40 now expands to an unsigned int expression, to avoid unexpected
41 sign extension when we store it in a bfd_vma, which is larger than
42 int on some platforms.
43 * functions.texi: Regenerated.
44
0f3538e7
DD
452003-05-07 Josef Zlomek <zlomekj@suse.cz>
46
47 * splay-tree.c (splay_tree_predecessor): Fix comment.
48 (splay_tree_successor): Fix comment.
49
7108c5dc
JM
502003-05-07 Jason Merrill <jason@redhat.com>
51
eafaf5eb 52 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
53 * configure.in: Add AC_C_BIGENDIAN_CROSS.
54 * aclocal.m4: Include accross.m4.
55 * configure, config.in: Regenerate.
56
0b555173
DD
572003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
58
59 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
60 * configure: Regenerate.
61
8730135a
DD
622003-05-03 Carlo Wood <carlo@alinoe.com>
63
64 * cp-demangle.c: Fix typo in "char_traints" string-literal.
65
341eccbc
DD
662003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
67
68 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
69 (main): Test that we don't write too much data.
70
2ed1e5cc
DD
712003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
72
73 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
74 vsnprintf.
75 * snprintf.c, vsnprintf.c: New files.
76 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
77 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
78 Regenerate dependencies.
79
80 * functions.texi, configure, config.in: Regenerated.
81
10b57b38
DD
822003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
83
84 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
85 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
86 and stpncpy.
87 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
88 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
89 Regenerate dependencies.
90
91 * functions.texi, configure, config.in: Regenerated.
92
ff773b85
DD
932003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
94
95 * argv.c: Fix comments.
96 * calloc.c: Don't unnecessarily include "libiberty.h".
97 (bzero): Add prototype.
98 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
99 * getcwd.c (getcwd): Use standard definition to avoid conflicts
100 with system headers.
101 * hashtab.c (htab_traverse): Delete unused variables.
102 * rename.c: Include "ansidecl.h".
103 (rename): Use standard definition to avoid conflicts with system
104 headers.
105 * strsignal.c: Rely on ANSI_PROTOTYPES.
106 * strstr.c: Check GNUC >= 2, not GNUC == 2.
107 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
108 * vprintf.c: Include "ansidecl.h" earlier, rely on
109 ANSI_PROTOTYPES.
110 * vsprintf.c: Include "ansidecl.h" earlier, rely on
111 ANSI_PROTOTYPES and possibly include <stdarg.h>.
112
113 * Makefile.in: Regenerate dependencies.
114
bb325820
DD
1152003-04-15 DJ Delorie <dj@redhat.com>
116
117 * maint-tool (deps): Scan for headers in $srcdir also.
118
258a4893
DD
1192003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
120
121 PR target/10338
122 PR bootstrap/10198
123 PR bootstrap/10140
124 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
125 __mempcpy.
126 * regex.c (regerror): Likewise.
127
ff773b85
DD
1282003-04-14 Roger Sayle <roger@eyesopen.com>
129
130 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
131 * memchr.c: Likewise.
132 * strcasecmp.c: Likewise.
133 * strncasecmp.c: Likewise.
134 * strncmp.c: Likewise.
135 * xatexit.c: Likewise.
136 * xmalloc.c: Likewise.
137
138 * copysign.c: Use traditional function declaration instead of DEFUN.
139 * sigsetmask.c: Likewise.
140
141 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
142 * memset.c: Likewise.
143
144 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
145 * memmove.c: Likewise.
146
eec539c7
DD
1472003-04-14 Roger Sayle <roger@eyesopen.com>
148
149 * strdup.c (strdup): Tweak implementation to use memcpy.
150
daf7c4ad
DD
1512003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
152
153 * configure.in (HAVE_UINTPTR_T): Always define.
154 * configure: Regenerated.
155
aa072e59
AO
1562003-03-23 Alexandre Oliva <aoliva@redhat.com>
157
158 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
159 instead of $$CC alone.
160 (install_to_tooldir): Use it.
161
f77ed96c
DD
1622003-17-03 Jan Hubicka <jh@suse.cz>
163
164 * hashtab.c (htab_traverse_noresize): Break out from ...
165 * hashtab.c (htab_traverse): ... here.
166
2336e177
DD
1672003-12-03 Jan Hubicka <jh@suse.cz>
168
169 * hashtab.c (htab_expand): Fix warning.
170
171 * hashtab.c (htab_expand): Compute the size of hashtable based
172 on the number of elements actually used.
173 (htab_traverse): Call htab_expand when table is too empty.
174
d8cbbf95
DD
1752003-03-11 Carlo Wood <carlo@gnu.org>
176
177 * cplus-dem.c (demangle_integral_value): Correction to reflect
178 patch of 2002-01-10 in order to also make negative multi-digits
179 without leading underscore work.
180
a01fefeb
DD
1812003-03-03 Mark Mitchell <mark@codesourcery.com>
182
183 * cplus-dem.c: Add license exception to copyright notice.
184
638ceb1a
DD
1852003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
186
187 * physmem.c: Formatting changes from upstream.
188
ef803806
DD
1892003-02-24 Danny Smith <dannysmith@users.source.forge.net>
190
191 * physmem.c (physmem_total): Add _WIN32 support.
192 (physmem_available): Likewise.
193
181fa229
DD
1942003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
195
196 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
197 GSI_PHYSMEM.
198 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
199
cc529274
DD
2002003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
201
202 * configure.in: Check for sys/systemcfg.h and
203 _system_configuration.
204 * physmem.c: Add support for AIX. Tweek formatting as per
205 upstream coreutils beta.
206
2072003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
208 Richard Earnshaw <rearnsha@arm.com>
209 Geoffrey Keating <geoffk@apple.com>
ff773b85 210
cc529274
DD
211 * configure.in: Check for sys/sysctl.h and sysctl.
212 * physmem.c: Add support for *bsd and darwin.
213 * Makefile.in: Generate depedency for physmem.o.
214
192cbe66
DD
2152003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
216
217 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
218 Tru64 UNIX.
219 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
220 Tru64 UNIX.
221
222 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
223 machine/hal_sysinfo.h, sys/table.h.
224 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
225 * configure, config.in: Regenerate.
226
ff773b85
DD
2272003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
228
229 * configure.in: Check for sys/sysmp.h and sysmp.
230 * physmem.c: Pull upstream copy, add support for irix6.
231
232 * config.in, configure: Regenerated.
233
900d2082
DD
2342003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
235
236 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
237 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
238 pstat_getdynamic.
ff773b85 239
4938384a
DD
2402003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
241
242 * Makefile.in (CFILES): Add physmem.c.
243 (REQUIRED_OFILES): Add physmem.o.
244 * configure.in: Check for sys/pstat.h.
245 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
246 * physmem.c: New file, copied from textutils.
247
248 * config.in, configure: Regenerated.
249
ba61a412
DJ
2502003-02-20 Daniel Jacobowitz <drow@mvista.com>
251
252 * Makefile.in (CFILES): Add lrealpath.c.
253 (REQUIRED_OFILES): Add lrealpath.o.
254 (lrealpath.o): Add rule.
255 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
256 * configure.in: Add realpath and canonicalize_file_name to
257 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
258 for canonicalize_file_name.
259 * lrealpath.c: New file.
260 * make-relative-prefix.c: Update documentation.
261 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
262 * config.in: Regenerated.
263 * configure: Regenerated.
264 * functions.texi: Regenerated.
265
25dfe0ac
DD
2662003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
267
268 * cplus_dem.c: Fix typo: intializes -> initializes.
269
8b90eef4
AO
2702003-02-20 Alexandre Oliva <aoliva@redhat.com>
271
272 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
273 config.status.
274 * configure: Rebuilt.
275
fcd7c7c9
DD
2762003-02-13 Daniel Jacobowitz <drow@mvista.com>
277
278 Fix PR c++/7612.
279 * cplus-dem.c (demangle_signature): Call string_delete.
280 Remove extra string_init.
281 (demangle_arm_hp_template): Call string_delete instead of
282 string_clear. Add missing string_delete call.
283 (demangle_qualified): Add missing string_delete call.
284 (do_type): Remove unused variable btype. Add missing string_delete
285 call. Call string_delete instead of string_clear.
286 (demangle_fund_type): Move variable btype inside of the switch
287 statement. Add missing string_delete call.
288 (do_arg): Call string_delete instead of string_clear. Remove extra
289 string_init.
290 (demangle_nested_args): Free work->previous_argument.
291
073c427b
DD
2922003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
293
294 * acconfig.h: New file. Add uintptr_t.
295 * config.in: Regenerated.
296
f8bd3000
DD
2972003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
298
299 * libiberty.texi: Update to GFDL 1.2.
300
85b9a938
DD
3012003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
302
303 * Makefile.in (libiberty_topdir): New subst.
304 (mkinstalldirs): Redefine in terms of the above.
305 * configure.in: AC_SUBST it.
306 * configure: Regenerate.
307
578460f2
AO
3082003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
309
310 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
311 (info-subdir, install-info-subdir, clean-info-subdir)
312 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
313 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
314 Pass $(FLAGS_TO_PASS).
315
7f285245
AO
3162003-01-27 Alexandre Oliva <aoliva@redhat.com>
317
318 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
319 /`$$CC -print-multi-os-directory`.
320
5f9624e3
DJ
3212003-01-26 Daniel Jacobowitz <drow@mvista.com>
322
323 * hashtab.c (htab_create_alloc_ex): New function.
324 (hatab_set_functions_ex): New function.
325 (htab_delete, htab_expand): Support alternate allocation functions.
326
9c2259b8
DD
3272003-01-24 Christopher Faylor <cgf@redhat.com>
328
329 * configure.in: Remove special pex-cygwin consideration.
330 * configure: Regenerate.
331 * pex-cygwin.c: Remove.
332 * Makefile.in: Remove pex-cygwin.[co] lines.
333
5a17353c
DD
3342003-01-24 Zack Weinberg <zack@codesourcery.com>
335
336 * Makefile.in (CFILES): Add pex-*.c.
337 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
338 (CONFIGURED_OFILES): Add pex-*.o.
339 (TEXIFILES): Add pexecute.txh.
340 (pexecute.o): Delete rule.
341 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
342 pex-unix.o, pex-win32.o): New rules.
343 * configure.in: Change AC_INIT argument to xmalloc.c.
344 Compute appropriate pexecute implementation and substitute it
345 as @pexecute@.
346
347 * pexecute.c: Split up into...
348 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
349 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
350 new files.
351
352 * functions.texi: Regenerate.
353 * configure: Regenerate.
354
eed2b28c
DD
3552003-01-20 Josef Zlomek <zlomekj@suse.cz>
356
357 * hashtab.c (htab_expand): Fix allocation of new entries.
358
27a39a5f
DD
3592003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
360
361 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
362
363 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
364 mkinstalldirs command.
365
b51c1553
DD
3662002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
367
368 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
369 Define for hosts with HOST_EXECUTABLE_SUFFIX.
370
756954c3
DD
3712002-11-24 Nick Clifton <nickc@redhat.com>
372
373 * make-relative-prefix.c (make_relative_prefix): Ensure return
374 string is empty before using strcat to construct it.
375
2a80c0a4
DD
3762002-11-22 Daniel Jacobowitz <drow@mvista.com>
377
378 * Makefile.in: Add make-relative-prefix.c.
379 * make-relative-prefix.c: New file.
380 * functions.texi: Rebuilt.
381
768b20d8
JJ
3822002-11-16 Jakub Jelinek <jakub@redhat.com>
383
384 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
385 used with arguments in traditional C' warnings.
386
f52d1d64
JJ
3872002-10-16 Jakub Jelinek <jakub@redhat.com>
388
389 * config.table: Use mh-s390pic for s390x too.
390
0d3deb8d
DD
3912002-10-06 Andreas Jaeger <aj@suse.de>
392
393 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
394 variable and of strict-aliasing warning.
395 (grow_vect): Use char as first parameter.
396
1b67de92
DD
3972002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
398
399 * Makefile.in (all): Fix multilib parallel build.
400
585cc78f
DD
4012002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
402
403 * cp-demangle.c (demangling_new): Cast 0 to enum.
404 (demangle_char): Cast return of strdup to char *.
405 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
406 (is_gnu_v3_mangled_dtor): Likewise.
407 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
408 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
409 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
410 * md5.c (md5_process_bytes): Cast results back to const void *.
411 (md5_process_block): Add cast to const md5_uint32 *.
412 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
413 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
414 unsigned short.
415 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
416 to void *.
417 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
418
e21b0cc1
NC
4192002-09-19 Nick Clifton <nickc@redhat.com>
420
421 * README: Update email addresses for bugs and patches.
422
a54ba43f
DD
4232002-09-10 Mike Stump <mrs@apple.com>
424
425 * splay-tree.c (splay_tree_successor): Fix comments.
426
4272002-09-11 Zack Weinberg <zack@codesourcery.com>
428
429 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
430 * testsuite/Makefile.in: Adjust for test-demangle.
431 * testsuite/regress-demangle: Deleted.
432 * testsuite/test-demangle.c: New file.
433 * testsuite/demangle-expected: Change \$ to $ throughout, now that
434 this file is not being read by a shell script.
435
01cea699
DD
4362002-09-05 Roger Sayle <roger@eyesopen.com>
437
438 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
439
a2832523
DD
4402002-08-07 DJ Delorie <dj@redhat.com>
441
442 * regex.c (re_error_msgid): Just use a simple array of strings.
443 (re_compile_pattern): Compensate.
444 (re_comp): Likewise.
445 (re_comp): Likewise.
446 (regerror): Likewise.
447
1e3f0be0
DD
4482002-07-29 Neil Booth <neil@daikokuya.co.uk>
449
450 * cplus-dem.c (PREPEND_BLANK): Remove.
451
b851d07b
DD
4522002-07-10 Jason Merrill <jason@redhat.com>
453
454 * cp-demangle.c (demangle_identifier): Support extended Unicode
455 characters.
456
2a9dffbf
DD
4572002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
458
459 * cp-demangle.c (demangle_v3_with_details): Wrap in
460 !defined IN_GLIBCPP_V3.
461
793011ca
DD
4622002-07-01 Mark Mitchell <mark@codesourcery.com>
463
464 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
465 Set it for the "st" operator.
466 (demangle_expression): Handle expressions with types as arguments.
467
b39b76b8
DD
4682002-06-30 Douglas Rupp <rupp@gnat.com>
469
470 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
471 * Makefile.in (OUTPUT_OPTION): Use.
472
4748c6d8
DD
4732002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
474
475 * Makefile.in (install_to_libdir): Add $(DESTDIR).
476 (install_to_tooldir): Likewise.
477
f9c3326a
DD
4782002-06-17 Douglas Rupp <rupp@gnat.com>
479
480 * lbasename.c: Add 2002 to copyright.
481 (IS_DIR_SEPARATOR): Remove VMS junk.
482
18893690
DD
4832002-06-05 Geoffrey Keating <geoffk@redhat.com>
484
485 * hashtab.c (htab_create): New stub function for backward
486 compatibility.
487 (htab_try_create): Likewise.
488
4892002-06-03 Geoffrey Keating <geoffk@redhat.com>
490
491 * hashtab.c (htab_create): Delete.
492 (htab_try_create): Delete.
493 (htab_create_alloc): New.
494 (htab_delete): Support user-specified memory allocation.
495 (htab_expand): Likewise.
496
4972002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
498
499 * configure.in: Fix typo in the code checking for sys_errlist.
500 * configure: Regenerated.
501
9296c8b2
DD
5022002-05-13 Andreas Schwab <schwab@suse.de>
503
504 * config.table: Use mh-x86pic also for x86-64.
505
52d98c2d
DD
5062002-05-08 Alexandre Oliva <aoliva@redhat.com>
507
508 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
509 script entry, and set LD to it when configuring multilibs.
510 * configure: Rebuilt.
511
cafa3917
DD
5122002-05-07 Mark Mitchell <mark@codesourcery.com>
513
514 * configure.in (AC_TYPE_PID_T): Use it.
515 * configure: Regenerated.
516 * getruntime.c: Include <sys/types.h>.
517 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
518
b1c933fc
RH
5192002-04-09 Richard Henderson <rth@redhat.com>
520
521 * hashtab.c (higher_prime_number): Use 7 as minimum.
522 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
523 (htab_find_slot_with_hash): Likewise.
524
0c4460bb
DD
5252002-04-01 Phil Edwards <pme@gcc.gnu.org>
526
527 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
528 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
529 not compile if IN_GLIBCPP_V3 defined.
530 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
531
f2160d2b
DD
5322002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
533
3ebf1f59 534 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
535 if it is NULL.
536
7dd4d42a
DD
5372002-03-27 DJ Delorie <dj@redhat.com>
538
539 * hex.c: Add documentation.
540 (_hex_value): Provide non-ASCII empty table.
541 (hex_init): Initialize the non-ASCII table.
542 * functions.texi: Regenerate.
543
38e57a35
DD
5442002-03-27 Mark Mitchell <mark@codesourcery.com>
545
546 * dyn-string.c: Add libgcc exception to copyright notice.
547
cfed0715
DD
5482002-03-26 H.J. Lu (hjl@gnu.org)
549
550 * config.table: Support --with-build-subdir.
551 * configure.in: Likewise.
552 * configure: Rebuild.
553
1504972f
DD
5542002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
555
556 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
557 seen.
558
35efcd67
DD
5592002-03-12 Mark Mitchell <mark@codesourcery.com>
560
561 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
562 notice.
563
dabc64ea
DD
5642002-03-11 Douglas B Rupp <rupp@gnat.com>
565
566 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
567
3ddbd84c
JB
5682002-03-06 Jim Blandy <jimb@redhat.com>
569
570 * splay-tree.c (splay_tree_xmalloc_allocate,
571 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
572 prototyped definitions. Mark `data' arguments as unused.
573
efdab807
AC
5742002-03-06 Andrew Cagney <ac131313@redhat.com>
575
576 * floatformat.c (floatformat_arm_ext_big): Delete definition.
577
50d4562d
DD
5782002-03-04 Phil Edwards <pme@gcc.gnu.org>
579
580 * configure.in: Add --enable-install-libiberty option.
581 * Makefile.in (INSTALLED_HEADERS): New variable.
582 (install_to_libdir): Possibly also copy headers.
583 * configure: Regenerated.
584
5852002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
586
587 * xmalloc.c (xmalloc_fail): Clarify error message further.
588
6e9980f5
DD
5892002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
590
591 * xmalloc.c (xmalloc_fail): Clarify error message.
592
18893690 5932002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
594
595 * splay-tree.c (splay_tree_xmalloc_allocate,
596 splay_tree_xmalloc_deallocate): New functions.
597 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
598 above functions and a dummy data pointer.
599 (splay_tree_new_with_allocator): New function.
600 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
601 splay_tree_remove): Use the splay tree's allocation and
602 deallocation functions.
603
59ea9fe7
DD
6042002-02-19 Scott Snyder <snyder@fnal.gov>
605
606 * testsuite/demangle-expected: Add test case for infinite loop in
607 demangler.
608 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
609 if do_type() doesn't make any progress --- prevents an infinite
610 loop.
611
6f848550
DD
6122002-02-18 Carlo Wood <carlo@gnu.org>
613
614 PR c++/5390
615 * cplus-dem.c (demangle_integral_value): Accept multi-digit
616 numbers that do not start with an underscore; This is needed
617 for integer template parameters. This doesn't break anything
618 because multi-digit numbers are never followed by a digit.
619 * testsuite/demangle-expected: Corrected all mangled test
620 cases with multi-digit template parameters: g++ 2.95.x does
621 not generate underscores around these parameters.
622
44354ae1
DD
6232002-02-05 Jason Merrill <jason@redhat.com>
624
625 * cplus-dem.c (flags): Add DMGL_VERBOSE
626 (cplus_demangle_v3_p): Remove.
627 (demangle_it): Add DMGL_TYPES to passed flags.
628 * cp-demangle.c (cplus_demangle_v3_all): Remove.
629 (cplus_demangle_v3_type): Remove.
630 (cplus_demangle_v3): Add options parm.
631
42da15d6
DD
6322002-02-02 H.J. Lu (hjl@gnu.org)
633
634 * cp-demangle.c (cp_demangle_type): Do not protect with
635 IN_LIBGCC2.
636 (cplus_demangle_v3_all): New.
637 (cplus_demangle_v3): Call cplus_demangle_v3_all.
638 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
639
640 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
641 Initialized to cplus_demangle_v3.
642 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
643 of cplus_demangle_v3.
644 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
645 command line symbol.
646
647 * testsuite/regress-demangle: Pass the mangled name at the
648 command line.
649
b117c158
DD
6502002-02-01 H.J. Lu <hjl@gnu.org>
651
652 * cp-demangle.c (cp_demangle_type): Call demangling_new with
653 DMGL_GNU_V3.
654
c78d91b1
DD
6552002-01-31 Phil Edwards <pme@gcc.gnu.org>
656
657 * cp-demangle.c: Revert yesterday's change.
658
bef8b55d
DD
6592002-01-31 Adam Megacz <adam@xwt.org>
660
661 * gcc/libiberty/configure.in: Treat mingw the same as cywin
662 wrt HAVE_SYS_ERRLIST.
663
2c955b8b
DD
6642002-01-30 Phil Edwards <pme@gcc.gnu.org>
665
666 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
667 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
668 cp_demangle_type.
669 * testsuite/demangle-expected: New gnu-v3 test.
670
58b1717a
RH
6712002-01-22 Momchil Velikov <velco@fadata.bg>
672
673 * configure.in (variable detection): Use arrays of unspecified
674 size instead of plain integers.
675
cc096b71
DD
6762002-01-18 DJ Delorie <dj@redhat.com>
677
678 * Makefile.in (TESTLIB): New. This library is for future
679 testsuites.
680 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
681 break down by letter.
682 (REQUIRED_OFILES): List long-to-compile files first.
683 (maint-deps): New, target for updating dependencies.
684 (dependencies): Update.
685 * maint-tool: Add dependency-generating option.
686 * configure.in: Check for _doprnt even if we're not providing it.
687 * configure: Regenerate.
688
689 * _doprnt.c: Modifications to allow compiling on any platform.
690 * copysign.c: Likewise.
691 * putenv.c: Likewise.
692 * setenv.c: Likewise.
693 * vsprintf.c: Likewise.
694
6952002-01-15 Douglas B Rupp <rupp@gnat.com>
696
697 * mkstemps.c (mkstemps): On VMS, open temp file with option
698 that causes it to be deleted when closed.
699
20d54542
DD
7002002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
701
c23795e2
DD
702 * cp-demangle.c (long_options): Const-ify.
703 * cplus-dem.c (long_options): Likewise.
704
20d54542
DD
705 * cplus-dem.c (mystrstr): Delete. All callers changed to use
706 strstr instead.
707
f348a7b1
DD
7082001-12-31 Ira Ruben <ira@apple.com>
709
710 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
711 * configure: Regenerated.
712
d86cd745
DD
7132001-12-24 Douglas B. Rupp <rupp@gnat.com>
714
715 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
716 * configure: Regenerated.
717
ae533646
DD
7182001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
719
720 PR other/2719
721 * cplus-dem.c (consume_count): Treat negative count as an error.
722 * testsuite/demangle-expected: Added testcase.
723
c0eb281b
DD
724Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
725
726 * configure.in: Hardcode that vfork works on VMS host.
727 * configure: Regenerated.
728
2da4c07f
RH
7292001-12-06 Richard Henderson <rth@redhat.com>
730
731 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
732 (cplus_demangle): Support no_demangling.
733
24acd898
DD
7342001-11-27 Zack Weinberg <zack@codesourcery.com>
735
736 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
737 in libiberty context. Fix typo in leading comment.
738 * configure.in: Fix various AC_DEFINEs so autoheader works.
739 If any of vprintf, vsprintf, vfprintf is missing from libc,
740 then AC_REPLACE_FUNCS(_doprnt).
741
fec50157 7422001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 743 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
744
745 * Makefile.in (stamp-h): Depend on Makefile for proper
746 serialization.
747 (*-subdir): Depend on config.h for proper serialization.
748
5527febf
DD
7492001-11-26 DJ Delorie <dj@redhat.com>
750
751 * configure.in: Check for alloca.h (for regex.c and putenv.c).
752 * configure: Regenerate.
753 * config.h: Add HAVE_ALLOCA_H.
754
941d74a0
DD
7552001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
756
757 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
758 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
759 is available.
760
dc579051
DD
761Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
762
763 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
764 * configure.in (HAVE_UINTPTR_T): Test for system defining
765 uintptr_t and define HAVE_UINTPTR_T appropriately.
766 * regex.c (uintptr_t): Do not provide a definition if the
767 system provided one.
768
769 * regex.c (PREFIX): Provide an alternate definition for
770 non-ANSI/ISO compilers.
771 (ARG_PREFIX): Likewise.
772
1a78a35a
DD
7732001-11-12 Jim Meyering <meyering@lucent.com>
774
775 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
776 this code would end up calling gettext even in packages built
777 with --disable-nls.
778 * getopt.c (_): Likewise.
779 * regex.c (_): Likewise.
780
4e55c4b6
DD
7812001-11-03 Alan Modra <amodra@bigpond.net.au>
782
783 * configure.in: Cope with missing makeinfo.
784 * configure: Regenerate.
785
d311a83a
DD
7862001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
787
788 * hex.c (hex_init): Provide empty stub.
789
790 * hex.c (hex_init): Delete.
791 (_hex_value): Const-ify and initialize at compile-time.
792
3bc62f91
DD
7932001-10-19 H.J. Lu <hjl@gnu.org>
794
795 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
796 necessary.
797
5d852400
DD
7982001-10-17 DJ Delorie <dj@redhat.com>
799
800 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
801 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 802 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
803 Improve manual formatting.
804 * functions.texi: Regenerate.
805
ba19b94f
DD
8062001-10-15 DJ Delorie <dj@redhat.com>
807
808 * Makefile.in (TEXIFILES): Add fnmatch.txh.
809 (maint-undoc): New.
810 maint-tool: Add "undoc" tool.
811 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
812 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
813 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
814 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
815 documentation.
816 * fnmatch.txh: New.
817 * functions.texi: Regenerate.
818
56056af5
DD
8192001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
820
821 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
822 * strtod.c: Use "ISO C" instead of "ANSI C".
823 * functions.texi: Regenerate.
824
99b58139
DD
8252001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
826
827 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
828 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
829 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
830 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
831 spelling. Give names to function arguments in documentation. Use
832 (void) prototypes in documentation.
833 * functions.texi: Regenerate.
834
e6450fe5
DD
8352001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
836
837 * argv.c (buildargv, tests, main): Const-ify.
838 * cp-demangle.c (operator_code): Likewise.
839 * cplus-dem.c (optable, libiberty_demanglers,
840 cplus_demangle_set_style, cplus_demangle_name_to_style,
841 print_demangler_list): Likewise.
842 * hashtab.c (higher_prime_number): Likewise.
843 * strcasecmp.c (charmap): Likewise.
844 * strerror.c (error_info, strerror, main): Likewise.
845 * strncasecmp.c (charmap): Likewise.
846 * strsignal.c (signal_info): Likewise.
847
da191b5b
DD
8482001-09-29 DJ Delorie <dj@redhat.com>
849
850 * configure: Regenerate.
851
916aaa12
DD
8522001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
853
854 * concat.c: Include stdlib.h.
855
fa9f0e33
DD
8562001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
857
858 * libiberty.texi: (Top level): Add syncodeindex pg. Add
859 @dircategory and @direntry directives. Add @finalout.
860 (many nodes): Lose the next,prev,up pointers on the @nide line.
861 (Using, Supplemental Functions, Replacement Functions): Fix
862 markup.
863 (Functions): Move around, to allow makeinfo to build the manual
864 without next,prev,up pointers in thye node lines.
865 (Licenses): Fix typos.
866
867 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
868 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
869 * functions.texi: Regenerate.
870
871 * copying-lib.texi: Lose the next,prev,up pointers on the @node
872 line.
873
8742001-09-27 DJ Delorie <dj@redhat.com>
875
876 * configure.in: Don't use in-tree texinfo, because libiberty must
877 be built before it. Check for makeinfo version 4 or higher.
878 * functions.texi: Regenerate.
879
39423523
DD
8802001-09-20 DJ Delorie <dj@redhat.com>
881 Phil Edwards <pedwards@disaster.jaj.com>
882
883 * configure.in (MAKEINFO, PERL): Detect these.
884 (--enable-maintainer-mode): Add.
885 * configure: Regenerate.
886 * Makefile.in (MAKEINFO, PERL): Define.
887 (libiberty.info, libiberty.dvi, libiberty.html): New.
888 (CFILES): Add bsearch.c.
889 (CONFIGURED_OFILES): New, list of objects configure might add.
890 (maint-missing, maint-buildall): New, for maintainers only.
891 (clean, mostlyclean): Add info/dvi/html files.
892 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
893 * gather-docs: New, for maintainers.
894 * maint-tool: New, for maintainers.
895 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
896 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
897 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
898 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
899 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
900 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
901 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
902 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
903 documentation.
904
66c94e19
DD
9052001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
906
907 * concat.c (reconcat): Fix for traditional C.
908
99ee3a8f
DD
9092001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
910
911 * concat.c (reconcat): New function.
912
54c20242
DD
9132001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
914
915 * concat.c (vconcat_length, vconcat_copy, concat_length,
916 concat_copy, concat_copy2): New functions.
917 (concat): Use vconcat_length/vconcat_copy.
918
919 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
920 Define.
921
843f21be
DD
9222001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
923
924 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
925 VA_FIXEDARG & VA_CLOSE.
926
927 * vasprintf.c: Check HAVE_STRING_H when including string.h.
928 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
929 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
930
8a423cb3
DD
9312001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
932
933 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
934
dc676635
DD
9352001-08-23 Ulrich Drepper <drepper@redhat.com>
936
937 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
938
9392001-08-23 Ulrich Drepper <drepper@redhat.com>
940
941 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
942 instead of mbrtowc.
943 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
944 wcslen, and __wcscoll instead of wcscoll.
945
f080c76d
DD
9462001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
947
3ebf1f59
DD
948 * fibheap.c (fibheap_init, fibnode_init): Remove.
949 (fibheap_new, fibnode_new): Use xcalloc to allocate and
950 initialize memory.
951 (fibheap_insert): Remove check for node allocation failure.
f080c76d 952
f01b59ed
DD
9532001-08-21 Richard Henderson <rth@redhat.com>
954
955 * Makefile.in (fibheap.o): Depend on config.h.
956 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
957 functions for inlining.
958
959Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
960
961 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
962 hosting on cygwin.
963 * configure: Regenerate.
964
eb828599
AC
9652001-08-20 Andrew Cagney <ac131313@redhat.com>
966
967 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
968 HARRIS_FLOAT_FORMAT.
969 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
970 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
971 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
972 (floatformat_m88110_harris_ext): New float formats.
973
4e55c4b6
DD
9742001-08-20 Daniel Berlin <dan@cgsoftware.com>
975
976 * fibheap.c: New file. Fibonacci heap.
977
978 * Makefile.in (CFILES): Add fibheap.c.
979 (REQUIRED_OFILES): Add fibheap.o.
980 (fibheap.o): Add dependencies for fibheap.o.
981
68a41de7
DD
9822001-08-17 Christopher Faylor <cgf@cygnus.com>
983
984 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
985 * configure: Regenerate.
986
8fc34799
DD
9872001-08-16 Richard Henderson <rth@redhat.com>
988
989 * hashtab.c (htab_hash_string): New.
990
16bad250
AC
9912001-08-13 Andrew Cagney <ac131313@redhat.com>
992
993 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
994 name.
995
a9022147
DD
9962001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
997
998 * regex.c (wcs_regex_compile): Use appropriate string
999 to compare with collating element.
1000 Fix the padding for the alignment.
1001
8aefe91a 10022001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
1003
1004 * lbasename.c (lbasename): Change function definition to return a
1005 const char pointer.
1006
e7e9b069
DD
10072001-08-07 Jason Merrill <jason_merrill@redhat.com>
1008
1009 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1010 for".
1011
cc5144f8
DD
10122001-08-03 Richard Henderson <rth@redhat.com>
1013
1014 * Makefile.in (concat.o): Depend on config.h.
1015
8aefe91a
DD
10162001-07-30 Andreas Jaeger <aj@suse.de>
1017
1018 * concat.c: Include "config.h".
1019
86710ce2
DD
10202001-07-30 Andreas Jaeger <aj@suse.de>
1021
1022 * regex.c: Declare wcs functions only if compiling with
1023 MBS_SUPPORT.
1024 Don't use #elif for traditional C.
1025
10262001-07-23 Ulrich Drepper <drepper@redhat.com>
1027
1028 * regex.c: Revamp memory allocation for WCHAR functions to
1029 not use too much stack.
1030
10312001-07-30 Andreas Jaeger <aj@suse.de>
1032
1033 * regex.c: Declare wcs functions only if compiling with
1034 MBS_SUPPORT.
1035 Don't use #elif for traditional C.
1036
a5d8f731
DD
10372001-07-25 Daniel Jacobowitz <drow@mvista.com>
1038
1039 * Makefile.in (regex.o): Add dependency on config.h.
1040
6ad8a379
DD
10412001-07-18 Andreas Schwab <schwab@suse.de>
1042
1043 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1044 underscore character.
1045
10462001-07-18 Ulrich Drepper <drepper@redhat.com>
1047
1048 * regex.c: Limit string length printed in debug messages to 100
1049 chars.
1050
10512001-07-18 Andreas Jaeger <aj@suse.de>
1052
1053 * regex.c: Place under LGPL version 2.1.
1054
2a6ef469
DD
10552001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1056
1057 * Makefile.in: Add support for regex code.
1058 * regex.c: New file.
1059
7b78baae
DD
10602001-07-05 Mark Klein <mklein@dis.com>
1061
1062 * Makefile.in: Add ffs.c dependency.
1063 * configure.in: Add ffs.c.
1064 * ffs.c: New file.
1065
926150e2
DD
10662001-06-18 Richard Henderson <rth@redhat.com>
1067
1068 * concat.c: Include <sys/types.h>.
1069
11f6f21d
DD
10702001-06-11 Loren J. Rittle <ljrittle@acm.org>
1071
1072 bootstrap/3106
1073 * strerror.c (sys_nerr): Hide the OS header version.
1074 * strsignal.c (sys_nsig): Likewise.
1075
d42dae6c
DD
10762001-06-10 Richard Henderson <rth@redhat.com>
1077
1078 * concat.c: Include string.h. Fix int vs size_t usage.
1079 Simplify the iteration loops. Use memcpy.
1080
e05c6d27
DD
10812001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1082
1083 * partition.c: Fix misspelling of `implementation'.
1084
b50c4073
DD
10852001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1086
1087 * md5.c (md5_init_ctx): Declare constants as unsigned.
1088 (md5_process_block): Likewise.
1089
457161bf
DD
10902001-05-07 Zack Weinberg <zackw@stanford.edu>
1091
1092 * cp-demangle.c (demangle_v3_with_details,
1093 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1094 function definition.
1095 * ternary.c: Use K+R style function definitions. Use PTR, not
1096 void *. Make arguments constant where possible.
1097
e00bc6a7
DD
10982001-05-07 Mark Mitchell <mark@codesourcery.com>
1099
1100 * splay-tree.h (splay_tree_max): New function.
1101 (splay_tree_min): Likewise.
1102
400ee7e1
DB
11032001-04-15 Daniel Berlin <dan@cgsoftware.com>
1104
1105 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1106
1107 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1108
d9697354
DD
11092001-04-03 Zack Weinberg <zackw@stanford.edu>
1110
1111 * make-temp-file.c (try): Inline.
1112
a7bf099b
DD
11132001-02-28 Richard Henderson <rth@redhat.com>
1114
1115 * Makefile.in (make-temp-file.o): Depend on config.h.
1116
30a1def2
DD
11172001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1118
1119 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1120
079c672a
DD
11212001-03-23 Jakub Jelinek <jakub@redhat.com>
1122
1123 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1124 `_' not followed by a digit is invalid.
1125
a88e356a
JB
11262001-03-22 Jim Blandy <jimb@redhat.com>
1127
1128 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1129 instead of free, to free the contents as well as the string
1130 structure.
1131
1dffcc66
DD
11322001-03-21 Zack Weinberg <zackw@stanford.edu>
1133
1134 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1135 Don't default P_tmpdir to anything. Try /var/tmp before
1136 /usr/tmp.
1137
11382001-03-20 Zack Weinberg <zackw@stanford.edu>
1139
1140 * choose-temp.c: Split off make_temp_file, and the code
1141 duplicated between it and choose_temp_base, into...
1142 * make-temp-file.c: ... here; new file.
1143
1144 * Makefile.in (CFILES): Add make-temp-file.c.
1145 (REQUIRED_OFILES): Add make-temp-file.o.
1146
e61231f1
JB
11472001-03-20 Jim Blandy <jimb@redhat.com>
1148
1149 * cp-demangle.c (struct demangling_def): New fields:
1150 is_constructor and is_destructor.
1151 (demangling_new): Initialize them.
1152 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1153 or destructor.
1154 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1155 is_gnu_v3_mangled_dtor): New functions.
1156
a9cbbe6d
DD
11572001-03-20 Jason Merrill <jason@redhat.com>
1158
1159 * cplus-dem.c (main): Skip initial $.
1160
b1e51b3c
DD
11612001-03-15 Michael Meissner <meissner@redhat.com>
1162
1163 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1164 might be a signed integer under pre-ISO C systems.
1165
8aa30e60 11662001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1167 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1168
8aa30e60
DD
1169 * libiberty/lbasename.c: New file.
1170 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1171
30673bf5
DD
11722001-03-06 Zack Weinberg <zackw@stanford.edu>
1173
1174 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1175 * configure.in: Replace all alloca logic with a simple use of
1176 the above new macro.
1177 * config.table: Kill *-*-beos* entry.
1178 * config/mh-beos: Delete.
1179 * configure, config.in: Regenerate.
fa03f0a7 1180
30673bf5
DD
1181 * Makefile.in (ALLOCA, HFILES): Kill.
1182 (REQUIRED_OFILES): Add alloca.o.
1183 (alloca.o): Depend on libiberty.h.
1184 (argv.o): Don't depend on alloca-conf.h.
1185 * alloca-conf.h: Delete.
1186 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1187 blocks. Provide the C alloca unconditionally. Use PTR where
1188 appropriate. Make i00afunc static.
1189 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1190
5810f394
DD
11912001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1192
1193 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1194
a9db032a
DD
11952001-02-16 Loren J. Rittle <ljrittle@acm.org>
1196
1197 * cplus-dem.c (main): Initialize style.
fa03f0a7 1198
8aefe91a
DD
11992001-02-02 Phil Edwards <pme@sources.redhat.com>
1200
1201 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1202
bc9bf259
DD
12032001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1204
1205 Add support for Java demangling under the v3 ABI:
1206 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1207 (struct demangling_def): Add `style' field.
1208 (demangling_new): New parameter `style'. Set it in demangling_t.
1209 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1210 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1211 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1212 (main): Call cp_demangle with extra parameter.
1213 (java_demangle_v3): New function.
1214 (java_builtin_type_names): New. Table of primitive type names used
1215 for Java demangling.
1216 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1217 Java output.
1218 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1219 demangling.
1220 (long_options): Remove obsolete `java' option.
1221 (main): Remove explicit handling of `java' option. Instead, pass style
1222 parameter in cplus_demangle flags as gdb does.
1223 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 1224
f6528837
DD
12252000-12-29 DJ Delorie <dj@redhat.com>
1226
1227 * fnmatch.c: Make the note about the origins of this file more
1228 accurate, at least until we can sync with glibc.
1229 * getopt.c: Ditto.
1230 * getopt1.c: Ditto.
1231 * md5.c: Ditto.
1232 * obstack.c: Ditto.
9d969b59 1233
c6da642e
DD
12342000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1235
1236 * bsearch.c: New file.
1237 * configure.in (funcs): Add bsearch.
1238 (AC_CHECK_FUNCS): Likewise.
1239 * configure, config.in: Regenerate.
1240
ae7d06ad 12412000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1242
1243 * safe-ctype.c: #include "ansidecl.h".
1244 * strtod.c: Likewise.
1245
ae7d06ad 12462000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1247
1248 * strtoul.c: Include safe-ctype.h, not ctype.h.
1249
ac424eb3
DD
12502000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1251
1252 * safe-ctype.c: New file.
1253 * Makefile.in (CFILES): Add safe-ctype.c.
1254 (REQUIRED_OFILES): Add safe-ctype.o.
1255
1256 * argv.c: Define ISBLANK and use it, not isspace.
1257 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1258 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1259 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1260 before calling TOLOWER(c)/TOUPPER(c).
1261
4415a860
DD
12622000-12-07 Mike Stump <mrs@wrs.com>
1263
1264 * Makefile.in (distclean): When cleaning, remove testsuite.
1265
849ee224
DD
12662000-12-05 Jason Merrill <jason@redhat.com>
1267
1268 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1269 name before allocating the dyn_string.
1270
ae7d06ad 12712000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1272
1273 * cp-demangle.c: s/new_abi/v3/.
1274 * cplus-dem.c: Likewise.
1275 (current_demangling_style): Now auto_demangling.
1276 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1277 (main): Use standard symbol chars for auto_demangling.
e49a569c 1278
ae7d06ad 12792000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1280
1281 * hashtab.c (higher_prime_number): Use a table, rather than a
1282 seive, to find the next prime.
ae7d06ad
NC
1283
12842000-11-22 H.J. Lu <hjl@gnu.org>
1285
1286 * cplus-dem.c (main): Handle gnat_demangling.
1287
12882000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1289
1290 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1291 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1292 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1293 argument form of AC_DEFINE in dummy definitions block. Use
1294 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1295 in dummy block. Preload cache variables instead of bypassing
1296 tests, where possible.
1297 * acconfig.h: Removed.
ae7d06ad 1298
2ea7befd
DD
1299 * xmalloc.c (xmalloc_failed): New function, does error
1300 reporting on failed allocation.
1301 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1302
f1775526
HPN
13032000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1304
1305 * cplus-dem.c (cplus_demangle): Fix formatting.
1306 (grow_vect): Ditto.
1307 (ada_demangle): Ditto.
1308 (internal_cplus_demangle): Ditto.
1309 (mop_up): Ditto.
1310
13112000-11-21 H.J. Lu <hjl@gnu.org>
1312
1313 * cplus-dem.c (main): Handle java_demangling.
1314
ae7d06ad 13152000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1316
1317 * cplus-dem.c (grow_vect): Prototype.
1318 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1319
5dd42ef4
HPN
13202000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1321
1322 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1323 parameter `option'.
1324
296731c1
DD
13252000-11-15 Kenneth Block <kenneth.block@compaq.com>
1326
8944fb9d 1327 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1328 be used in GCC.
1329
6e53a714 13302000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1331
5dd42ef4 1332 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1333 list.
1334
99a4c1bd
HPN
13352000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1336
1337 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1338 xcalloc depending on htab->return_allocation_failure. Return zero
1339 if calloc fails.
99a4c1bd
HPN
1340 (htab_create): Update comment to cover memory allocation.
1341 (htab_try_create): New.
1342 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1343 Update comment to cover this.
99a4c1bd 1344
e0f3df8f
HPN
13452000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1346
1347 * hashtab.c: Change void * to PTR where necessary.
1348 (htab_create, htab_expand): Correct formatting of comment before
1349 function.
1350
ae7d06ad 13512000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1352
1353 * cp-demangle.c (string_list_def): Add caret_position and comments.
1354 (result_caret_pos): New macro.
1355 (result_append_string): Rename to...
1356 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1357 Rename throughout.
59666b35
DD
1358 (result_append): Rename to...
1359 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1360 throughout.
59666b35
DD
1361 (result_append_char): Rename to...
1362 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1363 throughout.
59666b35
DD
1364 (result_append_space): Remove.
1365 (string_list_new): Initialize caret position.
1366 (result_add_separated_char): Use caret position.
1367 (result_get_caret): New funtion.
1368 (result_set_caret): Likewise.
1369 (result_shift_caret): Likewise.
1370 (result_previous_char_is_space): Likewise.
1371 (substitution_start): Use caret position.
1372 (substitution_add): Likewise.
1373 (demangling_new): Initialize caret position.
1374 (demangle_encoding): Use caret position.
ae7d06ad 1375 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1376 (demangle_type_ptr): Use switch statement. Handle pointers to
1377 arrays. Don't use result_append_space. Use caret position.
1378 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1379 call to demangle_array_type.
1380 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1381
ae7d06ad 13822000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1383
1384 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1385
13862000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1387
1388 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1389
13902000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1391
1392 * splay-tree.c: #include <stdio.h>.
1393
13942000-09-14 Hans-Peter Nilsson <hp@axis.com>
1395
1396 * testsuite/demangle-expected: Add two tests for anonymous
1397 namespaces.
1398 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1399
14002000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1401
1402 * splay-tree.c (splay_tree_predecessor): New function.
1403 (splay_tree_successor): Likewise.
ae7d06ad
NC
1404
14052000-09-10 Hans-Peter Nilsson <hp@axis.com>
1406
1407 * testsuite/demangle-expected: Add four tests for type_info
1408 mangling.
1409 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1410 for a non-template non-qualified type_info function or node.
1411
14122000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1413
1414 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1415
14162000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1417
1418 * md5.c: #include "ansidecl.h".
1419
14202000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1421
1422 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1423 (demangle_type): Handle substitution candidates correctly in the
1424 face of special substitutions.
ae7d06ad
NC
1425
14262000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1427
1428 * cp-demangle.c (demangle_encoding): Rename variable.
1429 (demangle_name): Rename parameter. Handle return type
1430 suppression.
1431 (demangle_nested_name): Rename parameter.
1432 (demangle_prefix): Likewise. Change return type suppression.
1433 (demangle_unqualified_name): Add parameter. Flag constructors and
1434 conversion operators.
1435 (demangle_special_name): Fix comment.
1436 (demangle_type): Rename variable.
1437 (demangle_bare_function_type): Check for missing return type and
1438 parameter.
1439 (demangle_class_enum_type): Rename parameter.
1440 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1441
14422000-08-31 DJ Delorie <dj@redhat.com>
1443
1444 * configure.in (Cygwin): special case cygwin only when we're
1445 building cygwin, not when we're hosting cygwin.
1446
14472000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1448
1449 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1450 <expression>.
ae7d06ad
NC
1451
14522000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1453
1454 * cp-demangle.c (demangle_type_ptr): Increment position past
1455 pointer and reference characters.
ae7d06ad
NC
1456
14572000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1458
1459 * cp-demangle.c (demangle_nv_offset): New function.
1460 (demangle_v_offset): Likewise.
1461 (demangle_call_offset): Likewise.
1462 (demangle_special_name): Update thunk demangling to comply with
1463 ABI changes.
ae7d06ad
NC
1464
14652000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1466
1467 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1468 (substitution_def): Remove template_parm_number.
1469 (NOT_TEMPLATE_PARM): Remove.
1470 (result_insert_string): New macro.
1471 (result_insert): Likewise.
1472 (result_insert_char): Likewise.
1473 (substitution_add): Remove last parameter. Don't store template
1474 parm number.
1475 (BFT_NO_RETURN_TYPE): Define as NULL.
1476 (demangle_encoding): Adjust call to demangle_bare_function_type.
1477 (demangle_name): Adjust substitution. Adjust call to
1478 substitution_add.
1479 (demangle_prefix): Adjust call to substitution_add.
1480 (demangle_identifier): Handle anonymous namespaces.
1481 (demangle_operator_name): Change demangling of vendor-extended
1482 operator to match ABI changes.
1483 (demangle_type_ptr): Change parameters. Make recursive. Handle
1484 substitutions here.
1485 (demangle_type): Adjust calls to demangle_template_param,
1486 substitution_add, and demangle_type_ptr. Fix substitution of
1487 templated types.
1488 (demangle_function_type): Change parameter to a pointer.
1489 (demangle_bare_function_type): Likewise. Adjust insertion point.
1490 (demangle_template_param): Remove last parameter.
1491 (demangle_expr_primary): Remove unused variable. Adjust call to
1492 demangle_template_param.
1493 (is_mangled_char): Accept `$' and `.'.
1494 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1495 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1496
14972000-08-31 Hans-Peter Nilsson <hp@axis.com>
1498
1499 * testsuite/demangle-expected: Add nine tests for
1500 underscore-after-number followed by five tests for name-signature
1501 delimiter.
1502
15032000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1504
1505 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1506
15072000-08-28 Jason Merrill <jason@redhat.com>
1508
1509 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1510 (CFILES): Add md5.c.
1511 * md5.c: New file.
1512
15132000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1514
1515 * cp-demangle.c (demangle_name): Initialize template_p in local
1516 name case. Don't re-add substitutions as candidates.
1517 (demangle_nested_name): Use <unqualified-name>.
1518 (demangle_prefix): Likewise. Don't add template names as
1519 substitution candidates twice, or re-add a substitution or the
1520 last prefix component.
1521 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1522
15232000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1524
1525 * cp-demangle.c (result_add_separated_char): Change parameter to
1526 int.
1527 (substitution_add): Don't check for duplicates. Check if
1528 previously allocated size is zero.
1529 (demangle_name): Remove duplicate check for std substitution.
1530 Clear template flag appropriately.
1531 (demangle_prefix): Remove argument to demangle_substitution.
1532 Don't check that template flag is already set.
1533 (demangle_operator_name): Add pt operator.
1534 (demangle_type): Don't treat r as built-in type. Remove argument
1535 to demangle_substitution. Fix substitution candidate mechanics.
1536 Handle <template-template-parm>s. Improve comments.
1537 (demangle_template_param): Don't handle template arg lists here.
1538 (demangle_substitution): Remove parameter.
1539 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1540
15412000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1542
1543 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1544
15452000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1546
1547 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1548 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1549 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1550
15512000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1552
1553 * cp-demangle.c (result_close_template_list): Remove function.
1554 (result_add_separated_char): New function.
1555 (result_open_template_list): New macro.
1556 (result_close_template_list): Likewise.
1557 (demangle_prefix): Don't set template_p if the
1558 prefix ends with a ctor name.
1559 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1560 (demangle_type): Check for template args after substitution.
1561 (demangle_template_args): Use result_open_template_list.
d3e85005 1562
ae7d06ad 15632000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1564
ae7d06ad 1565 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1566
ae7d06ad 15672000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1568
1569 * config/mh-openedition.h: Added -DLE370 definition.
1570
a9f34fb6
JL
15712000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1572
1573 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1574 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1575 Cast program to 'char *' in errmsg_arg assignment.
1576 (PWAIT_ERROR): Define.
1577 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1578 to DJGPP's WIF* macros.
1579
90aaccd1 15802000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1581 Jeff Law <law@cygnus.com>
90aaccd1 1582
ae7d06ad 1583 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1584
90aaccd1 1585 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1586 * rename.c: Include config.h, unistd.h
1587 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1588
6ef554e3
HPN
15892000-07-24 Hans-Peter Nilsson <hp@axis.com>
1590
1591 * cplus-dem.c (work_stuff_copy_to_from): New.
1592 (delete_non_B_K_work_stuff): New.
1593 (delete_work_stuff): New.
1594 (mop_up): Break out work_stuff partly destruction to
1595 delete_non_B_K_work_stuff.
1596 (iterate_demangle_function): New.
1597 (demangle_prefix): Call iterate_demangle_function instead of
1598 demangle_function_name. Leave handling of name-signature
1599 __-delimiters to iterate_demangle_function.
1600 (demangle_integral_value): Strip an optional
1601 following underscore cautiously. Handle negative numbers.
1602
ae7d06ad 16032000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1604
ae7d06ad 1605 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1606 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1607
ae7d06ad
NC
16082000-07-21 Alex Samuel <samuel@codesourcery.com>
1609
1610 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1611 allocating ctor mangling.
1612 (demangle_array_type): Handle empty and non-constant array length.
1613
b1233257 16142000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1615 Jeff Law <law@cygnus.com>
1616
1617 * configure.in (AC_CHECK_HEADERS): Add time.h.
1618 (AC_HEADER_TIME): Add check.
1619 * configure, config.in: Regenerate.
1620 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1621
1622 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1623 * configure, config.in: Regenerate.
1624 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1625 * strtol.c, strtoul.c: #include "config.h". Portably #include
1626 <limits.h> and/or <sys/param.h>.
1627 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 1628
7d3ffcaf
JL
1629 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1630 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1631 * configure, config.in: Regenerate.
1632 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1633
b1233257
JL
1634 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1635
ae7d06ad
NC
16362000-07-21 Mike Stump <mrs@wrs.com>
1637
1638 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1639 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1640
16412000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1642
1643 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1644
1645 * setenv.c (setenv): Initialize variable `ep'.
1646
1647 * sigsetmask.c (abort): Prototype.
1648
1649 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1650 __STDC__ for stdarg.h include.
1651 (int_vasprintf): Prototype.
1652 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1653 definition. Cast `global_total_width' in comparison.
1654 (main): Prototype. Return a value.
1655
1656 * vfork.c (fork): Prototype.
1657
1658 * xexit.c: Include config.h.
1659
9adf30b2
JL
16602000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1661
1662 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1663 and print it with %u.
1664
2ed78d1b
HPN
16652000-07-17 Hans-Peter Nilsson <hp@axis.com>
1666
1667 * testsuite/regress-demangle (failed test): Show result and
1668 expected output.
1669
0473bdf7
AH
16702000-07-07 Andrew Haley <aph@cygnus.com>
1671
1672 * cplus-dem.c (main): fflush() after emitting last char before
1673 waiting for input.
1674
03d5f569
JM
16752000-06-28 Alex Samuel <samuel@codesourcery.com>
1676
1677 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1678 (demangle_name): Handle <substitution> followed by
1679 <unqualified-template-name>.
1680 (demangle_type): Follow special substitutions with
1681 <class-enum-type>
1682 (demangle_subtitution): Set template_p for special substitutions.
1683 (main): Fix typos.
ae7d06ad 1684
03d5f569
JM
16852000-06-27 Alex Samuel <samuel@codesourcery.com>
1686
1687 * cp-demangle.c (demangle_special_name): Swap base and derived
1688 class when demangling construction vtables.
1689
16902000-06-21 Alex Samuel <samuel@codesourcery.com>
1691
1692 * cp-demangle.c: Don't include ctype.h.
1693 (IS_DIGIT): New macro.
1694 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1695 instead of isdigit and isalpanum.
1696 (demangling_def): Make name and next const pointers.
1697 (STATUS_ALLOCATION_FAILED): New status code.
1698 (dyn_string_append_space): Handle failure in
1699 dyn_string_append_char.
1700 (int_to_dyn_string): Likewise. Change return value to status_t.
1701 (string_list_new): Handle failure of dyn_string_init.
1702 (result_close_template_list): Change return type to status_t.
1703 Handle failure in dyn_string_append.
1704 (result_push): Change return value to status_t. Handle failure in
1705 string_list_new. Handle failure of result_push throughout.
1706 (substitution_add): Change return value to status_t. Handle
1707 dyn_string failures. Handle failure of substitution_add
1708 throughout.
1709 (template_arg_list_new): Return NULL on allocation failure.
1710 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1711 Handle error result throughout.
1712 (result_append): Likewise.
1713 (result_append_char): Likewise.
1714 (result_append_space): Likewise.
1715 (demangling_new): Make argument a const pointer. Handle
1716 allocation failures.
1717 (demangle_template_args): Handle failure in template_arg_list_new
1718 and result_close_template_list.
1719 (demangle_discriminator): Return if int_to_dyn_string fails.
1720 (cp_demangle): Likewise.
1721 (cp_demangle_type): New function.
1722 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1723 memory allocation failure.
1724 (main): Likewise.
1725 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1726 IN_LIBGCC2.
1727 (dyn_string_init): Change return value to int. Handle
1728 RETURN_ON_ALLOCATION_FAILURE case.
1729 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1730 (dyn_string_release): Delete the dyn_string.
1731 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1732 (dyn_string_copy): Change return type to int.
1733 (dyn_string_copy_cstr): Likewise.
1734 (dyn_string_prepend): Likewise.
1735 (dyn_string_prepend_cstr): Likewise.
1736 (dyn_string_insert): Likewise.
1737 (dyn_string_insert_cstr): Likewise.
1738 (dyn_string_append): Likewise.
1739 (dyn_string_append_cstr): Likewise.
1740 (dyn_string_append_char): Likewise.
1741 (dyn_string_substring): Likewise.
ae7d06ad 1742
eb383413 17432000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1744
eb383413
L
1745 * cp-demangle.c (demangle_operator_name): Add spaces before
1746 names beginning with a letter: delete, delete[], new, new[],
1747 sizeof.
1748 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1749
eb383413
L
1750Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1751
1752 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1753
1754Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1755
1756 * cp-demangle.c (stdio.h): File included unconditionaly.
1757 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1758 * dyn-string.c (stdio.h): File included.
1759 * partition.c (partition_print): No `&' needed to take the address of
1760 a function.
1761
17622000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1763
1764 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1765
eb383413
L
1766 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1767
1768 * cp-demangle.c (demangle_char): Change parameter from char to int.
1769 (demangle_expression, demangle_expr_primary): Remove extra
1770 semi-colon in prototype.
1771
1772 * dyn-string.c (dyn_string_append_char): Change parameter from
1773 char to int.
1774
1775 * memcmp.c (memcmp): Constify.
1776
1777 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1778 __extension__.
1779
1780 * partition.c (elem_compare): Prototype. Don't cast away
1781 const-ness.
1782
1783 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1784
eb383413
L
17852000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1786
1787 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1788
1789 * cp-demangle.c: Include demangle.h.
1790 (template_arg_list_new): DeANSIfy.
1791 (cp_demangle): Make static and add prototype.
1792 (operator_code, operators): Constify.
1793 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1794
17952000-06-05 Alex Samuel <samuel@codesourcery.com>
1796
1797 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1798 unsigned char.
1799 (demangle_unqualified_name): Likewise.
1800 (demangle_number_literally): Likewise.
1801 (demangle_type): Likewise.
1802 (demangle_substitution): Likewise.
1803 (is_mangled_char): Likewise, for isalnum.
1804
18052000-06-04 Alex Samuel <samuel@codesourcery.com>
1806
1807 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1808 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1809 (cp-demangle.o): New dependency.
1810 (dyn-string.o): Likewise.
1811
1812 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1813
1814 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1815 demangler.
1816 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1817 demangling mode.
1818 (gnu_new_abi_symbol_characters): New function.
1819 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1820 file.
1821 * cp-demangle.c: New file.
ae7d06ad 1822
f03aa80d
AC
1823Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1824
1825 * floatformat.c: Add name to each floatformat field.
1826
77bfb694
JL
1827Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1828
1829 * Makefile.in (objalloc.o): Depend on config.h
1830
5c82d20a
ZW
18312000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1832
eb383413 1833 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1834 if HAVE_STRING_H.
1835 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1836 * objalloc.c: Include config.h. Include stdlib.h and don't
1837 declare malloc or free if HAVE_STDLIB_H.
1838 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1839 else declare malloc without prototype. Include string.h if
1840 HAVE_STRING_H, else declare memset without prototype. Don't
1841 include stddef.h.
1842
eb383413
L
18432000-05-23 Mike Stump <mrs@wrs.com>
1844
1845 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1846 -j3.
eb383413
L
1847
18482000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1849
1850 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1851
18522000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1853
ae7d06ad 1854 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1855 probably zero, also eliminate a warning on alpha.
1856
18572000-05-15 David Edelsohn <edelsohn@gnu.org>
1858
1859 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1860 on $(enable_shared).
1861
18622000-05-10 Jakub Jelinek <jakub@redhat.com>
1863
1864 * config.table: Use mh-sparcpic for sparc*-*-*.
1865
18662000-05-08 Nick Clifton <nickc@cygnus.com>
1867
1868 * Makefile.in (CFILES): Add strncmp.c.
1869 (NEEDED): Add strncmp.
1870
18712000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1872
eb383413
L
1873 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1874 Cast the arguments to `islower' to `unsigned char'.
1875 (print_demangler_list): Prototype.
1876
1877Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1878
1879 * sort.c (UCHAR_MAX): Provide fallback definition.
1880
18812000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1882
1883 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1884 SUBDIRS.
1885
eb383413
L
18862000-04-28 Kenneth Block <block@zk3.dec.com>
1887 Jason Merrill <jason@casey.cygnus.com>
1888
ae7d06ad
NC
1889 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1890 (cplus_demangle_set_style): New function for setting style.
1891 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1892
18932000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1894
1895 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1896
1897 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1898 (libiberty_AC_FUNC_STRNCMP): Invoke.
1899
1900 * strncmp.c: New file.
1901
1902Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1903
1904 * hashtab.c (htab_expand): Add prototype.
1905 (find_empty_slot_for_expand): Likewise.
1906
19072000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1908
1909 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1910 match prototype.
1911 (htab_expand): Cast the return value of xcalloc.
1912
19132000-04-24 Mark Mitchell <mark@codesourcery.com>
1914
1915 * hashtab.c (hash_pointer): New function.
1916 (eq_pointer): Likewise.
1917 (htab_hash_pointer): New variable.
1918 (htab_eq_pointer): Likewise.
1919
19202000-04-23 Mark Mitchell <mark@codesourcery.com>
1921
1922 * sort.c (sort_pointers): Fix endianness bugs.
1923
1924 * sort.c: New file.
1925 * Makefile.in (CFILES): Add sort.c
1926 (REQUIRED_OFILES): Add sort.o.
1927 (sort.o): New target.
1928
19be4303
JL
19292000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1930
1931 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1932 4.3BSD systems.
1933
eb383413
L
1934Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1935
1936 * hashtab.c: Various minor cleanups.
1937 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1938 (htab_find_slot): Likewise.
1939
19402000-04-16 Dave Pitts <dpitts@cozx.com>
1941
1942 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1943
afe36a78
RH
19442000-04-05 Richard Henderson <rth@cygnus.com>
1945
1946 * splay-tree.c (splay_tree_remove): New.
1947
eb383413
L
19482000-03-30 Mark Mitchell <mark@codesourcery.com>
1949
1950 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1951 codes.
1952 (htab_find_with_hash): Likewise.
1953 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1954
eb383413
L
19552000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1956
1957 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1958 unless it will be used. Rearrange loop for better
1959 optimization.
1960 (higher_prime_number): Add static prototype.
1961
b4fe2683
JM
1962Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1963
1964 * Makefile.in (partition.o): Depend on config.h
1965
19662000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1967
1968 * hashtab.c (find_empty_slot_for_expand): New function.
1969 (htab_expand): Use it instead of htab_find_slot.
1970 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1971 argument HASH.
1972 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1973 (htab_find): New wrapper function.
1974 (htab_find_slot): Likewise.
1975 (htab_traverse): Pass slot, not entry, to called function.
1976
19772000-03-09 Alex Samuel <samuel@codesourcery.com>
1978
1979 * Makefile.in (CFILES): Add partition.c.
1980 (REQUIRED_OFILES): Add partition.o.
1981 (partition.o): New rule.
1982 * partition.c: New file.
ae7d06ad 1983
b4fe2683
JM
19842000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1985
1986 * hashtab.c (htab_create): Set del_f.
1987 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1988 Use it.
1989
19902000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1991
1992 * hashtab.c: Remove debugging variables (all_searches,
1993 all_collisions, all_expansions). Delete
1994 all_hash_table_collisions.
1995 (create_hash_table, delete_hash_table, empty_hash_table,
1996 find_hash_table_entry, remove_element_from_hash_table_entry,
1997 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1998 hash_table_elements_number, hash_table_collisions): Rename to:
1999 htab_create, htab_delete, htab_empty, htab_find_slot,
2000 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2001 htab_elements, htab_collisions.
2002 (htab_find): New function, handles common case where you don't
2003 plan to add or delete an entry.
2004 (htab_expand): Don't create a whole new table, just a new
2005 entry vector.
2006 (htab_find_slot): Simplify logic.
2007
08372f14
ILT
20081999-08-03 Ian Lance Taylor <ian@zembu.com>
2009
2010 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2011 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2012
2013 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2014 $(TARGETLIB)n so it works on MSDOS.
2015 (install_to_tooldir): Likewise.
2016
9c8ac5a9
ILT
20171999-07-21 Ian Lance Taylor <ian@zembu.com>
2018
2019 From Mark Elbrecht:
2020 * makefile.dos: Remove; obsolete.
8f36e47c 2021 * configure.bat: Remove; obsolete.
9c8ac5a9 2022
0c0a36a4
ILT
20231999-07-11 Ian Lance Taylor <ian@zembu.com>
2024
2025 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2026 warning.
2027
20282000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2029
2030 * pexecute.c: Conditionally include string.h.
b4fe2683 2031 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
2032
20332000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2034
2035 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2036 we're using gcc.
2037
2038 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2039
20401999-12-27 Geoff Keating <geoffk@cygnus.com>
2041
2042 * vasprintf.c (int_vasprintf): Don't re-read the format character
2043 as this mishandles strings like '%%s'.
2044
20451999-12-05 Mark Mitchell <mark@codesourcery.com>
2046
2047 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2048 rather than struct splay_tree_node.
2049 (splay_tree_insert): Use struct splay_tree_s rather than struct
2050 splay_tree.
2051
2052Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2053
2054 * hashtab.c (sys/types.h): File included.
2055
20561999-11-22 Jason Merrill <jason@casey.cygnus.com>
2057
2058 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2059 BSD license, pursuant with
2060
2061 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2062
2063Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2064
2065 * hashtab.c: Include stdio.h.
2066
2067Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2068
2069 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2070
2071Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2072
2073 * xstrdup (sys/types.h): Include this file.
2074
20751999-10-28 Nathan Sidwell <nathan@acm.org>
2076
2077 * Makefile.in (SUBDIRS): New macro.
2078 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2079 avoid multiple subdirectory cleaning.
2080 (*-subdir): Use SUBDIRS.
2081
20821999-10-25 Jim Kingdon <http://developer.redhat.com/>
2083
2084 * cplus-dem.c: Move declarations of standard_symbol_characters and
2085 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2086 warnings.
2087
20881999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2089
2090 * hashtab.c (find_hash_table_entry): When returning a
2091 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2092 (clear_hash_table_slot): New function which deletes an entry
2093 by its position in the table, not its value.
2094 (traverse_hash_table): New function which calls a hook
2095 function for every live entry in the table.
2096
20971999-10-19 Mark Mitchell <mark@codesourcery.com>
2098
2099 * cplus-dem.c (INTBUF_SIZE): New macro.
2100 (string_append_template_idx): New function.
2101 (demangle_expression): Likewise.
2102 (demangle_integral_value): Use it.
2103 (demangle_real_value): New function, split out from ...
2104 (demangle_template_value_parm): ... here. Use
2105 string_append_template_idx. Use demangle_real_value.
2106 (demangle_template): Use string_append_template_idx.
2107 (demangle_qualified): Use consume_count_with_underscores.
2108 (get_count): Tweak formatting.
2109 (do_type): Use string_append_template_idx.
b4fe2683 2110
0c0a36a4
ILT
21111999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2112
2113 * calloc.c: Add a public domain notice.
2114
2115Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2116
2117 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2118
2119Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2120
2121 * Makefile.in (CFILES): Add hashtab.c
2122 (REQUIRED_OFILES): Add hashtab.o
2123 (hashtab.o): Add dependencies.
2124 * hashtab.c: New file
2125
2126Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2127
2128 * basename.c (DIR_SEPARATOR): New macro.
2129 (DIR_SEPARATOR_2): Likewise.
2130 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2131 (IS_DIR_SEPARATOR): Likewise.
2132 (main): Handle MSDOS style pathname.
2133
21341999-10-11 Mark Mitchell <mark@codesourcery.com>
2135
2136 * cplus-dem.c (do_type): Handle pointer to member types whose
2137 enclosing classes have namespace scope.
2138
2139Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2140
2141 * config.table: Provide a backup shell for executing move-if-change.
2142
21431999-10-02 Mark Mitchell <mark@codesourcery.com>
2144
2145 * xmalloc.c (xmalloc): Fix spelling error.
2146 (xcalloc, xrealloc): Likewise.
2147
21481999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2149
2150 * cplus-dem.c (fancy_abort, demangle_integral_value,
2151 demangle_arm_hp_template, recursively_demangle,
2152 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2153 (program_name, program_version, fatal): Constify a char*.
2154 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2155 (main): Call return, not exit.
2156
21571999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2158
2159 * choose-temp.c: Remove obsolete comment about gcc.
2160 (make_temp_file): Constify a char*.
2161
2162Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2163
2164 * xmemdup.c: Include sys/types.h.
2165
21661999-09-07 Jeff Garzik <jgarzik@pobox.com>
2167
2168 * xmemdup.c: New xmemdup function.
2169 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2170
2171Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2172
b4fe2683 2173 * config.table: Add openedition target.
0c0a36a4
ILT
2174 * config/mh-openedition: New file.
2175
2176Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2177
2178 * pexecute.c (pexecute): Fill in temp_base when needed.
2179
21801999-08-31 Richard Henderson <rth@cygnus.com>
2181
2182 * getpwd.c: Check HAVE_GETCWD before defining it away.
2183
21841999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2185
2186 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2187 (REQUIRED_OFILES): Add getpwd.o.
2188 (getpwd.o): Add target.
2189
2190 * configure.in (AC_PREREQ): Bump to 2.13.
2191 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2192
2193 * getpwd.c: New file, moved here from gcc.
2194
21951999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2196
2197 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2198 comparing against a signed quantity.
2199 (arm_special): Likewise.
2200 (demangle_fund_type): Likewise.
2201 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2202 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2203 (main): Constify variable `valid_symbols'.
2204
2205Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2206
2207 * strtoul.c (strtoul): Add parentheses around && within ||.
2208
2209Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2210
2211 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2212 libdir, libsubdir and tooldir.
2213
22141999-08-01 Mark Mitchell <mark@codesourcery.com>
2215
2216 * splay-tree.c (splay_tree_insert): Return the new node.
2217
35ca97ea
RH
22181999-07-14 Richard Henderson <rth@cygnus.com>
2219
b4fe2683 2220 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
2221 prototyping directly.
2222 * choose-temp.c: Conditionally include string.h.
2223
0c0a36a4
ILT
22241999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2225
2226 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2227
af32ff69
ILT
22281999-07-11 Ian Lance Taylor <ian@zembu.com>
2229
2230 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2231 warning.
2232
0c0a36a4
ILT
22331999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2234
2235 * Makefile.in (needed-list): Only include stuff we actually need
2236 for libstdc++.
2237
22381999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2239
2240 * configure.in (checkfuncs): Add gettimeofday.
2241 * config.in, configure: Regenerated.
2242
2243Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2244
2245 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2246 the test fails.
2247 * configure: Regenerate.
2248
22491999-06-10 Mike Stump <mrs@wrs.com>
2250
2251 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2252 parallel builds.
2253
22541999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2255
2256 * putenv.c: Include ansidecl.h to define `const'.
2257 * setenv.c: Likewise.
2258
2259Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2260
2261 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2262 * configure.in (funcs): Add putenv and setenv.
2263 (AC_CHECK_FUNCS): Check for putenv and setenv.
2264 * configure: Rebuilt.
2265 * putenv.c setenv.c: New files.
2266
2267 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2268 bytes of space using malloc.
2269
2270Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2271
2272 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2273 the *mangled pointer beyond the end of the string. Clean up code to
2274 match prevailing coding style.
2275
22761999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2277
2278 * tmpnam.c (L_tmpnam): Fix typo.
2279
2280Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2281
2282 * cplus-dem.c (standard_symbol_characters): Renamed from
2283 standard_symbol_alphabet. No longer modify TABLE.
2284 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2285 modify TABLE.
2286 (main): Corresponding changes. Use strchr to determine if a
2287 character is valid.
2288
e9868447
JB
22891999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2290
2291 * cplus-dem.c (main): Use table lookup to distinguish identifier
2292 characters from non-identifier characters.
2293 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2294
33fbbfbc
RH
2295Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2296
2297 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2298 * getruntime.c: Only attempt to include sys/resource.h and
2299 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2300 are defined.
2301
0c0a36a4
ILT
2302Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2303
2304 * configure.in (alloca detection): Handle alloca directly for interix.
2305 * configure: Rebuilt.
2306
2307Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2308
2309 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2310
252b5132
RH
23111999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2312
2313 Fix from Dale Hawkins:
b4fe2683 2314 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2315 reallocated properly if we use it again.
2316
2317 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2318 stricter about syntax. Always null-terminate string.
2319
c1687039
ILT
2320Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2321
2322 * configure.in (checkfuncs): Check for sbrk.
2323 * config.in: Rebuilt.
2324 * configure: Likewise.
2325 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2326
0c0a36a4
ILT
23271999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2328
2329 Fix from Marcus Daniels:
2330 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2331 identifier looking for another underscore.
2332
2333Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2334
2335 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2336 * xmalloc.c: Likewise.
2337 (xcalloc): UWIN has sbrk.
2338 (xrealloc): Fix guard macro.
2339
252b5132
RH
23401999-04-11 Richard Henderson <rth@cygnus.com>
2341
2342 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2343 or <alloca.h>.
2344 * clock.c (GNU_HZ): New definition.
2345 (clock): Use it.
2346 * getruntime.c: Likewise.
2347
2348 * config.table: Use mh-beos.
2349 * config/mh-beos: New file.
2350
0c0a36a4
ILT
23511999-04-11 Mark Mitchell <mark@codesourcery.com>
2352
2353 * cplus-dem.c (demangle_template_value_parm): Handle
2354 pointers-to-members.
2355 (do_type): Handle template parameters as qualifiers.
2356
252b5132
RH
23571999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2358
2359 * cplus-dem.c: Attempt to handle overflows in counts with some
2360 semblance of grace.
2361 (consume_count): Detect overflows. Return -1 to indicate errors,
2362 instead of zero.
2363 (demangle_template_value_parm, demangle_template): Handle change
2364 to consume_count's return convention.
2365
0c0a36a4
ILT
23661999-04-05 Tom Tromey <tromey@cygnus.com>
2367
2368 * testsuite/regress-demangle: New file.
2369 * testsuite/demangle-expected: New file.
252b5132 2370
0c0a36a4
ILT
2371 * Makefile.in (all, check, installcheck, info, install-info,
2372 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2373 distclean, maintainer-clean, realclean): Depend on corresponding
2374 `-subdir' target.
2375 (all-subdir check-subdir installcheck-subdir info-subdir
2376 install-info-subdir clean-info-subdir dvi-subdir
2377 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2378 distclean-subdir maintainer-clean-subdir): New target.
2379 * testsuite/Makefile.in: New file.
2380 * configure: Rebuilt.
2381 * configure.in: Create testsuite/Makefile.
252b5132
RH
2382
23831999-04-02 Mark Mitchell <mark@codesourcery.com>
2384
2385 * splay-tree.h (splay_tree_compare_pointers): Define.
2386
23871999-03-30 Mark Mitchell <mark@codesourcery.com>
2388
2389 * splay-tree.c (splay_tree_compare_ints): Define.
2390
23911999-03-30 Tom Tromey <tromey@cygnus.com>
2392
2393 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2394 don't advance input pointer.
2395 (demangle_class_name): If consume_count didn't find a count, do
2396 nothing. Don't bother with `strlen' sanity check; consume_count
2397 does it for us.
2398
23991999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2400
2401 From Art Haas <ahaas@neosoft.com>:
2402 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2403 when doing arm or hp style.
2404 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2405
252b5132
RH
2406Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2407
2408 * pexecute.c (__CYGWIN32__): Rename to
2409 (__CYGWIN__): this.
2410 * xmalloc.c: Likewise.
2411
2412 Changes to support i386-pc-uwin.
2413 * configure.in (*-*-uwin*): Workaround for vfork bug.
2414 * configure: Regenerate.
2415 * pexecute.c (pexecute): Be like standard Unix.
2416 (pwait): Likewise.
2417 * xmalloc.c (first_break): Define.
2418 (xmalloc_set_program_name): Use.
2419 (xmalloc): Use.
2420
2421Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2422
2423 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2424
2425Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2426
2427 * config.table: Check cygwin*, not cygwin32*.
2428
2429Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2430
2431 * Makefile.in: Change mkstemp -> mkstemps.
2432
2433Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2434
2435 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2436 * configure.in (funcs): Check for and conditionally add mkstemps to
2437 the list of functions libiberty will provide.
2438 * configure: Rebuilt.
b4fe2683 2439
252b5132
RH
2440Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2441
b4fe2683 2442 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2443 platforms that don't have HZ.
2444 * getruntime.c (HZ): Likewise.
2445
2446Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2447
2448 * Makefile.in (xstrdup.o): Depend on config.h.
2449
2450Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2451
2452 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2453 freeing it.
2454
2455Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2456
2457 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2458
2459Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2460
2461 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2462 splay-tree.o.
2463
24641999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2465
2466 * configure.in: Require autoconf 2.12.1 or higher.
2467
24681998-12-30 Michael Meissner <meissner@cygnus.com>
2469
2470 * random.c (NULL): Don't redefine NULL if it is already defined.
2471
2472Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2473
2474 * argv.c (buildargv): Cast the result of alloca in assignment.
2475
2476 * choose-temp.c: Include stdlib.h.
2477
2478 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2479 (snarf_numeric_literal): Constify first parameter.
2480 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2481 int, not a char.
252b5132
RH
2482 (demangle_qualifier): Likewise.
2483 (demangle_signature): Cast the argument of a ctype function to
2484 unsigned char.
2485 (arm_pt): Add parens around assignment used as truth value.
2486 (demangle_arm_hp_template): Constify variable `args'.
2487 (do_hpacc_template_const_value): Cast the argument of a ctype
2488 function to unsigned char.
2489 (do_hpacc_template_literal): Remove unused variable `i'.
2490 (snarf_numeric_literal): Constify parameter `args'.
2491 Cast the argument of a ctype function to unsigned char.
2492
2493 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2494 avoid ambiguous `else'.
252b5132
RH
2495
2496 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2497 `cstart' and `cend' to unsigned char. Cast the argument of macro
2498 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2499
2500 * objalloc.c (free): Add prototype.
2501
2502Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2503
2504 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2505
2506Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2507
2508 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2509 doesn't exist.
252b5132 2510 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2511
252b5132
RH
2512Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2513
2514 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2515 bumping the pointer we read from. Also prepend these codes,
2516 as we do in other places.
2517
25181998-12-18 Nick Clifton <nickc@cygnus.com>
2519
2520 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2521 'const char *' in order to match its usage when calling siblings.
2522 (snarf_numeric_literal): Make first arg 'const char **' in order
2523 to match usage.
2524
2525Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2526
2527 * choose-temp.c: Don't check IN_GCC anymore.
2528
2529 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2530 * memchr.c (memchr): Likewise.
2531 * memcpy.c (memcpy): Likewise.
2532 * memmove.c (memmove): Likewise.
2533
2534 * mkstemp.c: Don't check IN_GCC anymore.
2535 * pexecute.c: Likewise.
2536 * splay-tree.c: Likewise.
2537
2538 * strchr.c (strchr): Use `const', not `CONST'.
2539 * strrchr.c (strrchr): Likewise.
2540 * strtol.c (strtol): Likewise.
2541 * strtoul.c (strtoul): Likewise.
2542
2543Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2544 Elena Zannoni <ezannoni@cygnus.com>
2545 Stan Shebs <shebs@cygnus.com>
2546 Edith Epstein <eepstein@cygnus.com>
2547 Andres MacLeod <amacleod@cygnus.com>
2548 Satish Pai <pai@apollo.hp.com>
2549
2550 * HP aCC demangling support.
2551 * cplus-dem.c
2552 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2553 demangling correctly when -edg specified; set the demangling style
2554 when user specifies 'edg'. Set strip_underscore to
2555 prepends_underscore, if not HPUXHPPA. Set
2556 current_demangling_style to hp_demangling if HPUXHPPA. Set
2557 current demangling style correctly if the switch is hp. Read
2558 label correctly also in the HP style case.
252b5132 2559 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2560 function.
252b5132 2561 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2562 style for this case is the same as ARM.
252b5132
RH
2563 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2564 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2565 demangle_arm_pt.); check and set value of temp_start field in
2566 multiple places. Also, when ceching for end of template args,
2567 check to see if at end of static member of template class.
252b5132 2568 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2569 include template args in string defining class.
252b5132
RH
2570 (demangle_class_name): use demangel_arm_hp_template.
2571 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2572 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2573 Handle EDG_DEMANGLING style. Handle constructor and destructor
2574 ops for HP style.
252b5132 2575 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2576 styles. global destructor and constructor for HP style are same
2577 as for ARM style. Same for local variables.
252b5132
RH
2578 (demangle_qualified): handle EDG_DEMANGLING style.
2579 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
2580 cases '1' - '9' : initialize the temp_start field to -1 and handle
2581 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2582 and AUTO_DEMANGLING styles. If expecting a function and managed
2583 to demangle the funct args, then handle the LUCID_DEMANGLING,
2584 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2585 class name after "Lnnn_ in HP style case. HP style too needs to
2586 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 2587 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2588 value param for HP/aCC.
252b5132 2589 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2590 literal parameter for HP aCC.
252b5132
RH
2591 (recursively_demangle): new function
2592 (snarf_numeric_literal): new function.
2593 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2594 to message.
252b5132
RH
2595
2596Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2597
2598 * pexecute.c: Remove obsolete ifdefed cygwin code.
2599
2600Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2601
2602 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2603 * cplus-dem.c: Likewise. Conform to libiberty.h.
2604 * pexecute.c: Likewise.
2605 * splay-tree.c: Likewise.
2606
26071998-11-25 Mike Stump <mrs@wrs.com>
2608
2609 * Makefile.in (splay-tree.o): Add config.h dependency.
2610
2611Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2612
2613 * configure.in: Use AC_PREREQ(2.12.1).
2614
26151998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2616
b4fe2683 2617 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2618
2619Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2620
2621 * mpw.c (mpw_access): Add missing parens.
2622
2623Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2624
2625 * configure.in: Call AC_HEADER_SYS_WAIT.
2626
2627 * pexecute.c: Include sys/wait.h when !IN_GCC.
2628
2629Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2630
2631 * pexecute.c: revert back to checking old Cygwin
2632 preprocessor symbol until some time has passed.
2633
2634Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2635
2636 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2637 since it will now support similar constructs.
2638
2639Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2640
2641 * configure.in: Check for calloc.
2642
2643 * calloc.c: New file.
2644
2645 * xmalloc.c (xcalloc): New function.
2646
2647Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2648
2649 *cplus-dem.c (demangle_prefix): Use the last "__"
2650 in the mangled name when looking for the signature. This allows
2651 template names to begin with "__".
2652
26531998-11-08 Mark Mitchell <mark@markmitchell.com>
2654
2655 * cplus-dem.c (type_kind_t): Add tk_reference.
2656 (demangle_template_value_parm): Handle it.
2657 (do_type): Use it for references, instead of tk_pointer.
2658
2659 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2660 not internal_cplus_demangle.
2661
2662Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2663
2664 * choose-temp.c: Don't include gansidecl.h.
2665 * mkstemp.c: Likewise.
2666 * pexecute.c: Likewise.
2667
2668Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2669
b4fe2683
JM
2670 * configure.in: detect cygwin* instead of cygwin32*
2671 * configure: regenerate
252b5132
RH
2672
2673Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2674
2675 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
2676 whether to include config.h. Possibly include unistd.h in the
2677 !IN_GCC case. Define VFORK_STRING as a printable function call
2678 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2679 defined, include vfork.h. If VMS is defined, define vfork()
2680 appropriately. Remove vfork check on USG, we're using autoconf.
2681 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2682 locally what string to use.
252b5132
RH
2683
26841998-10-26 Mark Mitchell <mark@markmitchell.com>
2685
2686 * splay-tree.c: Tweak include directives to make sure declarations of
2687 xmalloc and free are available.
2688
26891998-10-25 Mark Mitchell <mark@markmitchell.com>
2690
2691 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2692 anonymous namespaces.
2693
26941998-10-23 Mark Mitchell <mark@markmitchell.com>
2695
2696 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2697 with type_quals.
2698 (TYPE_UNQUALIFIED): New macro.
2699 (TYPE_QUAL_CONST): Likewise.
2700 (TYPE_QUAL_VOLATILE): Likewise.
2701 (TYPE_QUAL_RESTRICT): Likewise.
2702 (code_for_qualifier): New function.
2703 (qualifier_string): Likewise.
2704 (demangle_qualifier): Likewise.
2705 (internal_cplus_demangle): Use them.
2706 (demangle_signature): Likewise.
2707 (demangle_template_value_parm): Likewise.
2708 (do_type): Likewise.
2709 (demangle_fund_type)): Likewise.
2710
2711Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2712
2713 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2714 to match prototype.
2715
27161998-10-21 Mark Mitchell <mark@markmitchell.com>
2717
2718 * splay-tree.c: New file.
2719 * Makefile.in (CFILES): Add it.
2720 (REQUIRED_OFILES): Likewise.
2721 (splay-tree.o): Add dependencies.
2722
2723Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2724
2725 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2726 range of 'K' index.
2727
2728Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2729
2730 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2731
2732 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2733 `unsigned char'.
2734 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2735 comparing against one.
2736 (cplus_mangle_opname): Likewise.
2737 (demangle_integral_value): Cast argument of ctype macro to
2738 `unsigned char'.
2739 (demangle_template_value_parm): Likewise.
2740 (demangle_template): Initialize variable `bindex'. Cast the
2741 result of `strlen' to (int) when comparing against one. Remove
2742 unused variable `start_of_value_parm'.
2743 (demangle_class_name): Cast the result of `strlen' to (int) when
2744 comparing against one.
2745 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2746 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2747 when comparing against one.
2748 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2749 (get_count): Likewise.
2750 (do_type): Likewise. Cast the result of `strlen' to (int) when
2751 comparing against one.
2752 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2753 (demangle_function_name): Cast the result of `strlen' to (int)
2754 when comparing against one.
2755
2756 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2757 comparing against one.
2758
2759Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2760
b4fe2683
JM
2761 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2762 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2763 * config.in, configure: Rebuilt.
252b5132
RH
2764
2765 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2766 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2767 * config.in, configure: Rebuilt.
2768
2769Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2770
b4fe2683 2771 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2772
2773Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2774
2775 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2776
2777Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2778
2779 * Merge egcs & devo libiberty.
2780