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