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