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