]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
m68k.h (MASK_RTD, [...]): Resurrect -mrtd option.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
c9fbef12
AC
12003-09-15 Andrew Cagney <cagney@redhat.com>
2
3 * floatformat.c (get_field): Make "data" constant.
4 (floatformat_is_valid, floatformat_to_double): Make "from"
5 constant, fix casts.
6 (floatformat_from_double): Make "from" constant.
7
9c8860c3
DJ
82003-09-15 Daniel Jacobowitz <drow@mvista.com>
9
10 * floatformat.c (floatformat_is_valid): New function.
11 (get_field, put_field): Correct comments.
12
13f7d3a1
JZ
132003-09-06 Josef Zlomek <zlomekj@suse.cz>
14
15 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
16 FIBHEAPKEY_T.
17
03eec143 182003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
19
20 PR bootstrap/12100
21 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
22 * configure: Rebuilt.
23
238235ef
DJ
242003-08-27 Daniel Jacobowitz <drow@mvista.com>
25
26 * aclocal.m4: Include acx.m4 and no-executables.m4.
27 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
28 (LIB_AC_PROG_CC): Remove.
29 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
30 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
31 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
32 performing link tests.
33 * configure: Regenerated.
34
2b81b2c9
NN
352003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
36
37 * cp-demangle.c: Clarify what package(s) this is part of.
38
7b96f3e4
DS
392003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
40
41 * pex-win32.c (pexecute): Mark parameters this_pname and
42 temp_base as unused. Remove unused variables retries,
43 sleep_interval. Initialize org_stdin, org_stdout.
44 (pwait): Mark parameter flags as unused.
45
462003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
47
48 * pex-win32.c (fix_argv): Ensure that the executable pathname
49 uses Win32 backslashes.
50 (pexecute): Cast away constness when assigning *errmsg_arg.
51
6f8507b1
L
522003-06-26 H.J. Lu <hongjiu.lu@intel.com>
53
54 * testsuite/demangle-expected: Add more GNU V3 testcases.
55
21299dbd
ZW
562003-06-22 Zack Weinberg <zack@codesourcery.com>
57
58 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
59 not HC_ASCII and HC_EBCDIC.
60 Add documentation in form expected by gather-docs.
61 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
62 * Makefile.in, functions.texi: Regenerate.
63
7468e0b5
ZW
642003-06-21 Zack Weinberg <zack@codesourcery.com>
65
66 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
67 for charset determination.
68
cf8e4b78
DH
692003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
70
71 * configure.in: Add check for malloc.h needed by
72 m68k for function free().
73 * configure: Regenerated.
74 * config.in: Add HAVE_MALLOC_H.
75 * hashtab.c: include malloc.h were available for
76 free().
77
aa9dc53d 782003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 79
aa9dc53d
ACY
80 PR bootstrap/10974
81 * physmem.c: Update comment.
82 * configure.in: Modify test for _system_configuration for older
83 AIX systems.
84
85 * config.in, configure: Regenerated.
7468e0b5 86
8191fe81
JDA
872003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
88
89 PR other/10810
90 * test-demangle.c (getline): Fix fence-post error.
91
8d398258
NC
922003-06-03 Nick Clifton <nickc@redhat.com>
93
94 * asprintf.c: Change comment to note that -1 is returned upon
95 error.
96 * vasprintf.c: Likewise.
97 (vasprintf): Return -1 upon error.
98 * functions.texi: Document changes to asprintf and vasprintf.
99
29ad6d3f
KC
1002003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
101
102 * config.table: Accept i[345867]86 variant.
103
49a19cfd
JB
1042003-05-15 Jim Blandy <jimb@redhat.com>
105
106 * hex.c (_hex_value): Make this unsigned.
107 (hex_value): Update documentation for new return type. hex_value
108 now expands to an unsigned int expression, to avoid unexpected
109 sign extension when we store it in a bfd_vma, which is larger than
110 int on some platforms.
111 * functions.texi: Regenerated.
112
d5d4eae2
JZ
1132003-05-07 Josef Zlomek <zlomekj@suse.cz>
114
115 * splay-tree.c (splay_tree_predecessor): Fix comment.
116 (splay_tree_successor): Fix comment.
117
5cc5a0d0
JM
1182003-05-07 Jason Merrill <jason@redhat.com>
119
9d70d418 120 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
121 * configure.in: Add AC_C_BIGENDIAN_CROSS.
122 * aclocal.m4: Include accross.m4.
123 * configure, config.in: Regenerate.
124
05c30f22
KG
1252003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
126
127 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
128 * configure: Regenerate.
129
41fe9404
CW
1302003-05-03 Carlo Wood <carlo@alinoe.com>
131
132 * cp-demangle.c: Fix typo in "char_traints" string-literal.
133
52dd3224
KG
1342003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
135
136 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
137 (main): Test that we don't write too much data.
138
bd3fbc6b
KG
1392003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
140
141 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
142 vsnprintf.
143 * snprintf.c, vsnprintf.c: New files.
144 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
145 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
146 Regenerate dependencies.
147
148 * functions.texi, configure, config.in: Regenerated.
149
029bcc09
KG
1502003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
151
152 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
153 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
154 and stpncpy.
155 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
156 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
157 Regenerate dependencies.
158
159 * functions.texi, configure, config.in: Regenerated.
160
c9ac9147
KG
1612003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
162
163 * argv.c: Fix comments.
164 * calloc.c: Don't unnecessarily include "libiberty.h".
165 (bzero): Add prototype.
166 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
167 * getcwd.c (getcwd): Use standard definition to avoid conflicts
168 with system headers.
169 * hashtab.c (htab_traverse): Delete unused variables.
170 * rename.c: Include "ansidecl.h".
171 (rename): Use standard definition to avoid conflicts with system
172 headers.
173 * strsignal.c: Rely on ANSI_PROTOTYPES.
174 * strstr.c: Check GNUC >= 2, not GNUC == 2.
175 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
176 * vprintf.c: Include "ansidecl.h" earlier, rely on
177 ANSI_PROTOTYPES.
178 * vsprintf.c: Include "ansidecl.h" earlier, rely on
179 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 180
c9ac9147
KG
181 * Makefile.in: Regenerate dependencies.
182
98475c57
DD
1832003-04-15 DJ Delorie <dj@redhat.com>
184
185 * maint-tool (deps): Scan for headers in $srcdir also.
186
55adc7bd
KG
1872003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
188
189 PR target/10338
190 PR bootstrap/10198
191 PR bootstrap/10140
192 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
193 __mempcpy.
194 * regex.c (regerror): Likewise.
195
0ae0f1b0
RS
1962003-04-14 Roger Sayle <roger@eyesopen.com>
197
198 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
199 * memchr.c: Likewise.
200 * strcasecmp.c: Likewise.
201 * strncasecmp.c: Likewise.
202 * strncmp.c: Likewise.
203 * xatexit.c: Likewise.
204 * xmalloc.c: Likewise.
205
206 * copysign.c: Use traditional function declaration instead of DEFUN.
207 * sigsetmask.c: Likewise.
208
209 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
210 * memset.c: Likewise.
211
212 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
213 * memmove.c: Likewise.
214
88702c45
RS
2152003-04-14 Roger Sayle <roger@eyesopen.com>
216
217 * strdup.c (strdup): Tweak implementation to use memcpy.
218
39e8d049
KG
2192003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
220
221 * configure.in (HAVE_UINTPTR_T): Always define.
222 * configure: Regenerated.
223
9f2e0608
AO
2242003-03-23 Alexandre Oliva <aoliva@redhat.com>
225
226 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
227 instead of $$CC alone.
228 (install_to_tooldir): Use it.
229
dbccdc42
JH
2302003-17-03 Jan Hubicka <jh@suse.cz>
231
232 * hashtab.c (htab_traverse_noresize): Break out from ...
233 * hashtab.c (htab_traverse): ... here.
234
0a8e3de3
JH
2352003-12-03 Jan Hubicka <jh@suse.cz>
236
cd22e4af
JH
237 * hashtab.c (htab_expand): Fix warning.
238
0a8e3de3
JH
239 * hashtab.c (htab_expand): Compute the size of hashtable based
240 on the number of elements actually used.
241 (htab_traverse): Call htab_expand when table is too empty.
242
8fe85775
CW
2432003-03-11 Carlo Wood <carlo@gnu.org>
244
245 * cplus-dem.c (demangle_integral_value): Correction to reflect
246 patch of 2002-01-10 in order to also make negative multi-digits
247 without leading underscore work.
248
3bf27822
MM
2492003-03-03 Mark Mitchell <mark@codesourcery.com>
250
251 * cplus-dem.c: Add license exception to copyright notice.
252
434fa0b8
KG
2532003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
254
255 * physmem.c: Formatting changes from upstream.
256
ed935c35
DS
2572003-02-24 Danny Smith <dannysmith@users.source.forge.net>
258
259 * physmem.c (physmem_total): Add _WIN32 support.
260 (physmem_available): Likewise.
261
7f9fc006
RO
2622003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
263
264 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
265 GSI_PHYSMEM.
266 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
267
d47f75c4
KG
2682003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
269
270 * configure.in: Check for sys/systemcfg.h and
271 _system_configuration.
272 * physmem.c: Add support for AIX. Tweek formatting as per
273 upstream coreutils beta.
274
170230b7
KG
2752003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
276 Richard Earnshaw <rearnsha@arm.com>
277 Geoffrey Keating <geoffk@apple.com>
7468e0b5 278
170230b7
KG
279 * configure.in: Check for sys/sysctl.h and sysctl.
280 * physmem.c: Add support for *bsd and darwin.
281 * Makefile.in: Generate depedency for physmem.o.
282
4a06f7f2
RO
2832003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
284
285 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
286 Tru64 UNIX.
287 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
288 Tru64 UNIX.
289
290 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
291 machine/hal_sysinfo.h, sys/table.h.
292 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
293 * configure, config.in: Regenerate.
294
64c7e556
KG
2952003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
296
297 * configure.in: Check for sys/sysmp.h and sysmp.
298 * physmem.c: Pull upstream copy, add support for irix6.
299
300 * config.in, configure: Regenerated.
301
e9019af6
KG
3022003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
303
304 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
305 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
306 pstat_getdynamic.
7468e0b5 307
a354191e
KG
3082003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
309
310 * Makefile.in (CFILES): Add physmem.c.
311 (REQUIRED_OFILES): Add physmem.o.
312 * configure.in: Check for sys/pstat.h.
313 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
314 * physmem.c: New file, copied from textutils.
315
316 * config.in, configure: Regenerated.
317
4876b2b4
DJ
3182003-02-20 Daniel Jacobowitz <drow@mvista.com>
319
320 * Makefile.in (CFILES): Add lrealpath.c.
321 (REQUIRED_OFILES): Add lrealpath.o.
322 (lrealpath.o): Add rule.
323 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
324 * configure.in: Add realpath and canonicalize_file_name to
325 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
326 for canonicalize_file_name.
327 * lrealpath.c: New file.
328 * make-relative-prefix.c: Update documentation.
329 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
330 * config.in: Regenerated.
331 * configure: Regenerated.
332 * functions.texi: Regenerated.
333
e182f0a3 3342003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
335
336 * cplus_dem.c: Fix typo: intializes -> initializes.
337
3343fdd2
AO
3382003-02-20 Alexandre Oliva <aoliva@redhat.com>
339
340 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
341 config.status.
342 * configure: Rebuilt.
343
902cf50c
DJ
3442003-02-13 Daniel Jacobowitz <drow@mvista.com>
345
346 Fix PR c++/7612.
347 * cplus-dem.c (demangle_signature): Call string_delete.
348 Remove extra string_init.
349 (demangle_arm_hp_template): Call string_delete instead of
350 string_clear. Add missing string_delete call.
351 (demangle_qualified): Add missing string_delete call.
352 (do_type): Remove unused variable btype. Add missing string_delete
353 call. Call string_delete instead of string_clear.
354 (demangle_fund_type): Move variable btype inside of the switch
355 statement. Add missing string_delete call.
356 (do_arg): Call string_delete instead of string_clear. Remove extra
357 string_init.
358 (demangle_nested_args): Free work->previous_argument.
359
7ac27e08
KG
3602003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
361
362 * acconfig.h: New file. Add uintptr_t.
363 * config.in: Regenerated.
364
b3a8389d
JM
3652003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
366
367 * libiberty.texi: Update to GFDL 1.2.
368
d8c22ce7
CC
3692003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
370
371 * Makefile.in (libiberty_topdir): New subst.
372 (mkinstalldirs): Redefine in terms of the above.
373 * configure.in: AC_SUBST it.
374 * configure: Regenerate.
375
4ce1921a
CC
3762003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
377
378 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
379 (info-subdir, install-info-subdir, clean-info-subdir)
380 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
381 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
382 Pass $(FLAGS_TO_PASS).
383
93239fdb
AO
3842003-01-27 Alexandre Oliva <aoliva@redhat.com>
385
386 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
387 /`$$CC -print-multi-os-directory`.
388
74828682
DJ
3892003-01-26 Daniel Jacobowitz <drow@mvista.com>
390
391 * hashtab.c (htab_create_alloc_ex): New function.
392 (hatab_set_functions_ex): New function.
393 (htab_delete, htab_expand): Support alternate allocation functions.
394
ece0e59f
CF
3952003-01-24 Christopher Faylor <cgf@redhat.com>
396
397 * configure.in: Remove special pex-cygwin consideration.
398 * configure: Regenerate.
399 * pex-cygwin.c: Remove.
400 * Makefile.in: Remove pex-cygwin.[co] lines.
401
55d0e5e0
ZW
4022003-01-24 Zack Weinberg <zack@codesourcery.com>
403
404 * Makefile.in (CFILES): Add pex-*.c.
405 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
406 (CONFIGURED_OFILES): Add pex-*.o.
407 (TEXIFILES): Add pexecute.txh.
408 (pexecute.o): Delete rule.
409 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
410 pex-unix.o, pex-win32.o): New rules.
411 * configure.in: Change AC_INIT argument to xmalloc.c.
412 Compute appropriate pexecute implementation and substitute it
413 as @pexecute@.
414
415 * pexecute.c: Split up into...
416 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
417 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
418 new files.
419
420 * functions.texi: Regenerate.
421 * configure: Regenerate.
422
120cdf68
JZ
4232003-01-20 Josef Zlomek <zlomekj@suse.cz>
424
425 * hashtab.c (htab_expand): Fix allocation of new entries.
426
90e5b39f
CC
4272003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
428
429 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
430
d7082cd7
CC
431 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
432 mkinstalldirs command.
433
eaed9290
DS
4342002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
435
436 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
437 Define for hosts with HOST_EXECUTABLE_SUFFIX.
438
ef4e4181
NC
4392002-11-24 Nick Clifton <nickc@redhat.com>
440
441 * make-relative-prefix.c (make_relative_prefix): Ensure return
442 string is empty before using strcat to construct it.
443
42766f8d
DJ
4442002-11-22 Daniel Jacobowitz <drow@mvista.com>
445
446 * Makefile.in: Add make-relative-prefix.c.
447 * make-relative-prefix.c: New file.
448 * functions.texi: Rebuilt.
449
783080ab
JJ
4502002-11-16 Jakub Jelinek <jakub@redhat.com>
451
452 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
453 used with arguments in traditional C' warnings.
454
7da64d7a
JJ
4552002-10-16 Jakub Jelinek <jakub@redhat.com>
456
457 * config.table: Use mh-s390pic for s390x too.
458
de78f58b
AJ
4592002-10-06 Andreas Jaeger <aj@suse.de>
460
461 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
462 variable and of strict-aliasing warning.
463 (grow_vect): Use char as first parameter.
464
6c5d742e
KG
4652002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
466
467 * Makefile.in (all): Fix multilib parallel build.
468
f08b7eee
JDA
4692002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
470
471 * cp-demangle.c (demangling_new): Cast 0 to enum.
472 (demangle_char): Cast return of strdup to char *.
473 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
474 (is_gnu_v3_mangled_dtor): Likewise.
475 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
476 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
477 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
478 * md5.c (md5_process_bytes): Cast results back to const void *.
479 (md5_process_block): Add cast to const md5_uint32 *.
480 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
481 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
482 unsigned short.
483 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
484 to void *.
485 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
486
8d87f295
NC
4872002-09-19 Nick Clifton <nickc@redhat.com>
488
489 * README: Update email addresses for bugs and patches.
490
6eedb9ca
MS
4912002-09-10 Mike Stump <mrs@apple.com>
492
493 * splay-tree.c (splay_tree_successor): Fix comments.
494
3fd9d606
ZW
4952002-09-11 Zack Weinberg <zack@codesourcery.com>
496
b2196e8f 497 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
498 * testsuite/Makefile.in: Adjust for test-demangle.
499 * testsuite/regress-demangle: Deleted.
500 * testsuite/test-demangle.c: New file.
501 * testsuite/demangle-expected: Change \$ to $ throughout, now that
502 this file is not being read by a shell script.
503
70c4e67a
RS
5042002-09-05 Roger Sayle <roger@eyesopen.com>
505
506 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
507
65b91091
DD
5082002-08-07 DJ Delorie <dj@redhat.com>
509
510 * regex.c (re_error_msgid): Just use a simple array of strings.
511 (re_compile_pattern): Compensate.
512 (re_comp): Likewise.
513 (re_comp): Likewise.
514 (regerror): Likewise.
515
437974a9
NB
5162002-07-29 Neil Booth <neil@daikokuya.co.uk>
517
518 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 519
28a34ec1
JM
5202002-07-10 Jason Merrill <jason@redhat.com>
521
522 * cp-demangle.c (demangle_identifier): Support extended Unicode
523 characters.
524
84326592
KG
5252002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
526
527 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 528 !defined IN_GLIBCPP_V3.
84326592 529
5d69ba1f
MM
5302002-07-01 Mark Mitchell <mark@codesourcery.com>
531
532 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
533 Set it for the "st" operator.
534 (demangle_expression): Handle expressions with types as arguments.
535
7fda878c
DR
5362002-06-30 Douglas Rupp <rupp@gnat.com>
537
538 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
539 * Makefile.in (OUTPUT_OPTION): Use.
540
112bae77
PB
5412002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
542
543 * Makefile.in (install_to_libdir): Add $(DESTDIR).
544 (install_to_tooldir): Likewise.
545
53309d5c
DR
5462002-06-17 Douglas Rupp <rupp@gnat.com>
547
548 * lbasename.c: Add 2002 to copyright.
549 (IS_DIR_SEPARATOR): Remove VMS junk.
550
045b3a49
GK
5512002-06-05 Geoffrey Keating <geoffk@redhat.com>
552
553 * hashtab.c (htab_create): New stub function for backward
554 compatibility.
555 (htab_try_create): Likewise.
556
e2500fed
GK
5572002-06-03 Geoffrey Keating <geoffk@redhat.com>
558
559 * hashtab.c (htab_create): Delete.
560 (htab_try_create): Delete.
561 (htab_create_alloc): New.
562 (htab_delete): Support user-specified memory allocation.
563 (htab_expand): Likewise.
564
9f3dbd92
RL
5652002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
566
567 * configure.in: Fix typo in the code checking for sys_errlist.
568 * configure: Regenerated.
569
e4723404
AS
5702002-05-13 Andreas Schwab <schwab@suse.de>
571
572 * config.table: Use mh-x86pic also for x86-64.
573
6706f116
AO
5742002-05-08 Alexandre Oliva <aoliva@redhat.com>
575
576 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
577 script entry, and set LD to it when configuring multilibs.
578 * configure: Rebuilt.
579
deae2ed9
MM
5802002-05-07 Mark Mitchell <mark@codesourcery.com>
581
582 * configure.in (AC_TYPE_PID_T): Use it.
583 * configure: Regenerated.
584 * getruntime.c: Include <sys/types.h>.
585 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
586
4fc4e478
RH
5872002-04-09 Richard Henderson <rth@redhat.com>
588
589 * hashtab.c (higher_prime_number): Use 7 as minimum.
590 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
591 (htab_find_slot_with_hash): Likewise.
592
bd7e6f2d
PE
5932002-04-01 Phil Edwards <pme@gcc.gnu.org>
594
595 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
596 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
597 not compile if IN_GLIBCPP_V3 defined.
598 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
599
a8f55e51
BM
6002002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
601
de78f58b 602 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
603 if it is NULL.
604
96adcacb
DD
6052002-03-27 DJ Delorie <dj@redhat.com>
606
607 * hex.c: Add documentation.
608 (_hex_value): Provide non-ASCII empty table.
609 (hex_init): Initialize the non-ASCII table.
610 * functions.texi: Regenerate.
611
2b613c6a
MM
6122002-03-27 Mark Mitchell <mark@codesourcery.com>
613
614 * dyn-string.c: Add libgcc exception to copyright notice.
615
cd862df8
L
6162002-03-26 H.J. Lu (hjl@gnu.org)
617
618 * config.table: Support --with-build-subdir.
619 * configure.in: Likewise.
620 * configure: Rebuild.
621
ed300793
SG
6222002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
623
624 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
625 seen.
626
b3dd43df
MM
6272002-03-12 Mark Mitchell <mark@codesourcery.com>
628
629 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
630 notice.
631
50c74579
DR
6322002-03-11 Douglas B Rupp <rupp@gnat.com>
633
634 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
635
957978a4
JB
6362002-03-06 Jim Blandy <jimb@redhat.com>
637
638 * splay-tree.c (splay_tree_xmalloc_allocate,
639 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
640 prototyped definitions. Mark `data' arguments as unused.
641
ccc49bed
AC
6422002-03-06 Andrew Cagney <ac131313@redhat.com>
643
644 * floatformat.c (floatformat_arm_ext_big): Delete definition.
645
48d7db63
PE
6462002-03-04 Phil Edwards <pme@gcc.gnu.org>
647
648 * configure.in: Add --enable-install-libiberty option.
649 * Makefile.in (INSTALLED_HEADERS): New variable.
650 (install_to_libdir): Possibly also copy headers.
651 * configure: Regenerated.
652
af18e951
NB
6532002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
654
655 * xmalloc.c (xmalloc_fail): Clarify error message further.
656
d8d7c3c3
NB
6572002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
658
659 * xmalloc.c (xmalloc_fail): Clarify error message.
660
00c2f96f
JB
6612002-02-22 Jim Blandy <jimb@redhat.com>
662
663 * splay-tree.c (splay_tree_xmalloc_allocate,
664 splay_tree_xmalloc_deallocate): New functions.
665 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
666 above functions and a dummy data pointer.
667 (splay_tree_new_with_allocator): New function.
668 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
669 splay_tree_remove): Use the splay tree's allocation and
670 deallocation functions.
671
b1c1a22f
SS
6722002-02-19 Scott Snyder <snyder@fnal.gov>
673
674 * testsuite/demangle-expected: Add test case for infinite loop in
675 demangler.
676 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
677 if do_type() doesn't make any progress --- prevents an infinite
678 loop.
679
336669e7
CW
6802002-02-18 Carlo Wood <carlo@gnu.org>
681
682 PR c++/5390
683 * cplus-dem.c (demangle_integral_value): Accept multi-digit
684 numbers that do not start with an underscore; This is needed
685 for integer template parameters. This doesn't break anything
686 because multi-digit numbers are never followed by a digit.
687 * testsuite/demangle-expected: Corrected all mangled test
688 cases with multi-digit template parameters: g++ 2.95.x does
689 not generate underscores around these parameters.
690
c13db5d1
JM
6912002-02-05 Jason Merrill <jason@redhat.com>
692
693 * cplus-dem.c (flags): Add DMGL_VERBOSE
694 (cplus_demangle_v3_p): Remove.
695 (demangle_it): Add DMGL_TYPES to passed flags.
696 * cp-demangle.c (cplus_demangle_v3_all): Remove.
697 (cplus_demangle_v3_type): Remove.
698 (cplus_demangle_v3): Add options parm.
699
d74697b8
L
7002002-02-02 H.J. Lu (hjl@gnu.org)
701
702 * cp-demangle.c (cp_demangle_type): Do not protect with
703 IN_LIBGCC2.
704 (cplus_demangle_v3_all): New.
705 (cplus_demangle_v3): Call cplus_demangle_v3_all.
706 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
707
708 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
709 Initialized to cplus_demangle_v3.
710 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
711 of cplus_demangle_v3.
712 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
713 command line symbol.
714
715 * testsuite/regress-demangle: Pass the mangled name at the
716 command line.
717
3a441e38
L
7182002-02-01 H.J. Lu <hjl@gnu.org>
719
720 * cp-demangle.c (cp_demangle_type): Call demangling_new with
721 DMGL_GNU_V3.
722
6d747e63
PE
7232002-01-31 Phil Edwards <pme@gcc.gnu.org>
724
725 * cp-demangle.c: Revert yesterday's change.
726
46af757b
AM
7272002-01-31 Adam Megacz <adam@xwt.org>
728
729 * gcc/libiberty/configure.in: Treat mingw the same as cywin
730 wrt HAVE_SYS_ERRLIST.
731
46ab74b1
PE
7322002-01-30 Phil Edwards <pme@gcc.gnu.org>
733
734 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
735 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
736 cp_demangle_type.
737 * testsuite/demangle-expected: New gnu-v3 test.
738
e64d0626
MV
7392002-01-22 Momchil Velikov <velco@fadata.bg>
740
741 * configure.in (variable detection): Use arrays of unspecified
742 size instead of plain integers.
743
9ce3f7e5
DD
7442002-01-18 DJ Delorie <dj@redhat.com>
745
746 * Makefile.in (TESTLIB): New. This library is for future
747 testsuites.
748 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
749 break down by letter.
750 (REQUIRED_OFILES): List long-to-compile files first.
751 (maint-deps): New, target for updating dependencies.
752 (dependencies): Update.
753 * maint-tool: Add dependency-generating option.
754 * configure.in: Check for _doprnt even if we're not providing it.
755 * configure: Regenerate.
756
757 * _doprnt.c: Modifications to allow compiling on any platform.
758 * copysign.c: Likewise.
759 * putenv.c: Likewise.
760 * setenv.c: Likewise.
761 * vsprintf.c: Likewise.
762
0e83ceb1
DR
7632002-01-15 Douglas B Rupp <rupp@gnat.com>
764
765 * mkstemps.c (mkstemps): On VMS, open temp file with option
766 that causes it to be deleted when closed.
767
adddf5bf
KG
7682002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
769
5e65297b
KG
770 * cp-demangle.c (long_options): Const-ify.
771 * cplus-dem.c (long_options): Likewise.
772
adddf5bf
KG
773 * cplus-dem.c (mystrstr): Delete. All callers changed to use
774 strstr instead.
775
a4219437
IR
7762001-12-31 Ira Ruben <ira@apple.com>
777
778 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
779 * configure: Regenerated.
af328d8d
DR
780
7812001-12-24 Douglas B. Rupp <rupp@gnat.com>
782
783 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
784 * configure: Regenerated.
a4219437 785
63de15a4
CR
7862001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
787
788 PR other/2719
789 * cplus-dem.c (consume_count): Treat negative count as an error.
790 * testsuite/demangle-expected: Added testcase.
791
ee262b6f
DR
792Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
793
794 * configure.in: Hardcode that vfork works on VMS host.
795 * configure: Regenerated.
796
d06ba3c7
RH
7972001-12-06 Richard Henderson <rth@redhat.com>
798
799 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
800 (cplus_demangle): Support no_demangling.
801
e490616e
ZW
8022001-11-27 Zack Weinberg <zack@codesourcery.com>
803
804 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
805 in libiberty context. Fix typo in leading comment.
806 * configure.in: Fix various AC_DEFINEs so autoheader works.
807 If any of vprintf, vsprintf, vfprintf is missing from libc,
808 then AC_REPLACE_FUNCS(_doprnt).
809
97e620cf 8102001-11-26 DJ Delorie <dj@redhat.com>
e490616e 811 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
812
813 * Makefile.in (stamp-h): Depend on Makefile for proper
814 serialization.
815 (*-subdir): Depend on config.h for proper serialization.
816
c3bb7df0
DD
8172001-11-26 DJ Delorie <dj@redhat.com>
818
819 * configure.in: Check for alloca.h (for regex.c and putenv.c).
820 * configure: Regenerate.
821 * config.h: Add HAVE_ALLOCA_H.
822
23850d35
KG
8232001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
824
2c47b56b
KG
825 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
826 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
827 is available.
23850d35 828
7ddfb651
JL
829Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
830
d3982b71
JL
831 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
832 * configure.in (HAVE_UINTPTR_T): Test for system defining
833 uintptr_t and define HAVE_UINTPTR_T appropriately.
834 * regex.c (uintptr_t): Do not provide a definition if the
835 system provided one.
836
7ddfb651
JL
837 * regex.c (PREFIX): Provide an alternate definition for
838 non-ANSI/ISO compilers.
839 (ARG_PREFIX): Likewise.
840
2e683037
JM
8412001-11-12 Jim Meyering <meyering@lucent.com>
842
843 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
844 this code would end up calling gettext even in packages built
845 with --disable-nls.
846 * getopt.c (_): Likewise.
847 * regex.c (_): Likewise.
848
f749bd83
AM
8492001-11-03 Alan Modra <amodra@bigpond.net.au>
850
851 * configure.in: Cope with missing makeinfo.
55a10d7c 852 * configure: Regenerate.
f749bd83 853
26ad2982
KG
8542001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
855
e5969ba6
KG
856 * hex.c (hex_init): Provide empty stub.
857
26ad2982
KG
858 * hex.c (hex_init): Delete.
859 (_hex_value): Const-ify and initialize at compile-time.
860
afb649d5
L
8612001-10-19 H.J. Lu <hjl@gnu.org>
862
863 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
864 necessary.
865
5bed56d9
DD
8662001-10-17 DJ Delorie <dj@redhat.com>
867
868 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
869 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 870 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
871 Improve manual formatting.
872 * functions.texi: Regenerate.
873
aac04c15
DD
8742001-10-15 DJ Delorie <dj@redhat.com>
875
876 * Makefile.in (TEXIFILES): Add fnmatch.txh.
877 (maint-undoc): New.
878 maint-tool: Add "undoc" tool.
879 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
880 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
881 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
882 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
883 documentation.
884 * fnmatch.txh: New.
885 * functions.texi: Regenerate.
fae8182a 886
0e4e9e8f
JM
8872001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
888
889 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
890 * strtod.c: Use "ISO C" instead of "ANSI C".
891 * functions.texi: Regenerate.
892
7f8fa05d
JM
8932001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
894
895 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
896 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
897 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
898 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
899 spelling. Give names to function arguments in documentation. Use
900 (void) prototypes in documentation.
901 * functions.texi: Regenerate.
902
0be6abca
KG
9032001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
904
905 * argv.c (buildargv, tests, main): Const-ify.
906 * cp-demangle.c (operator_code): Likewise.
907 * cplus-dem.c (optable, libiberty_demanglers,
908 cplus_demangle_set_style, cplus_demangle_name_to_style,
909 print_demangler_list): Likewise.
910 * hashtab.c (higher_prime_number): Likewise.
911 * strcasecmp.c (charmap): Likewise.
912 * strerror.c (error_info, strerror, main): Likewise.
913 * strncasecmp.c (charmap): Likewise.
914 * strsignal.c (signal_info): Likewise.
915
0e30ffc5
DD
9162001-09-29 DJ Delorie <dj@redhat.com>
917
918 * configure: Regenerate.
919
576fb787
KG
9202001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
921
922 * concat.c: Include stdlib.h.
923
e922f978
EZ
9242001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
925
926 * libiberty.texi: (Top level): Add syncodeindex pg. Add
927 @dircategory and @direntry directives. Add @finalout.
928 (many nodes): Lose the next,prev,up pointers on the @nide line.
929 (Using, Supplemental Functions, Replacement Functions): Fix
930 markup.
931 (Functions): Move around, to allow makeinfo to build the manual
932 without next,prev,up pointers in thye node lines.
933 (Licenses): Fix typos.
934
935 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
936 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
937 * functions.texi: Regenerate.
938
939 * copying-lib.texi: Lose the next,prev,up pointers on the @node
940 line.
941
ae9092da
DD
9422001-09-27 DJ Delorie <dj@redhat.com>
943
944 * configure.in: Don't use in-tree texinfo, because libiberty must
945 be built before it. Check for makeinfo version 4 or higher.
946 * functions.texi: Regenerate.
fae8182a 947
aaa5f039
DD
9482001-09-20 DJ Delorie <dj@redhat.com>
949 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 950
aaa5f039
DD
951 * configure.in (MAKEINFO, PERL): Detect these.
952 (--enable-maintainer-mode): Add.
953 * configure: Regenerate.
954 * Makefile.in (MAKEINFO, PERL): Define.
955 (libiberty.info, libiberty.dvi, libiberty.html): New.
956 (CFILES): Add bsearch.c.
957 (CONFIGURED_OFILES): New, list of objects configure might add.
958 (maint-missing, maint-buildall): New, for maintainers only.
959 (clean, mostlyclean): Add info/dvi/html files.
960 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
961 * gather-docs: New, for maintainers.
962 * maint-tool: New, for maintainers.
963 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
964 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
965 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
966 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
967 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
968 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
969 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
970 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
971 documentation.
fae8182a 972
c1766881
KG
9732001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
974
975 * concat.c (reconcat): Fix for traditional C.
976
ad43d46f
KG
9772001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
978
979 * concat.c (reconcat): New function.
980
c1d49704
KG
9812001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
982
c793eea7
KG
983 * concat.c (vconcat_length, vconcat_copy, concat_length,
984 concat_copy, concat_copy2): New functions.
985 (concat): Use vconcat_length/vconcat_copy.
986
c1d49704
KG
987 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
988 Define.
989
7a98d9b2
KG
9902001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
991
992 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
993 VA_FIXEDARG & VA_CLOSE.
fae8182a 994
7a98d9b2
KG
995 * vasprintf.c: Check HAVE_STRING_H when including string.h.
996 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
997 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
998
e2dff3f2
KG
9992001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1000
1001 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1002
d0708dc1
UD
10032001-08-23 Ulrich Drepper <drepper@redhat.com>
1004
1005 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1006
10072001-08-23 Ulrich Drepper <drepper@redhat.com>
1008
1009 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1010 instead of mbrtowc.
1011 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1012 wcslen, and __wcscoll instead of wcscoll.
1013
ffb9435b
MK
10142001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1015
de78f58b
AJ
1016 * fibheap.c (fibheap_init, fibnode_init): Remove.
1017 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1018 initialize memory.
1019 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 1020
f379eac3
RH
10212001-08-21 Richard Henderson <rth@redhat.com>
1022
1023 * Makefile.in (fibheap.o): Depend on config.h.
1024 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1025 functions for inlining.
1026
b1c45ae4
CF
1027Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1028
1029 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1030 hosting on cygwin.
1031 * configure: Regenerate.
1032
0310e5ac
AC
10332001-08-20 Andrew Cagney <ac131313@redhat.com>
1034
1035 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1036 HARRIS_FLOAT_FORMAT.
1037 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1038 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1039 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1040 (floatformat_m88110_harris_ext): New float formats.
1041
8c23e0a4
DB
10422001-08-20 Daniel Berlin <dan@cgsoftware.com>
1043
1044 * fibheap.c: New file. Fibonacci heap.
1045
1046 * Makefile.in (CFILES): Add fibheap.c.
1047 (REQUIRED_OFILES): Add fibheap.o.
1048 (fibheap.o): Add dependencies for fibheap.o.
1049
91625004
CF
10502001-08-17 Christopher Faylor <cgf@cygnus.com>
1051
1052 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1053 * configure: Regenerate.
1054
9e0ba685
RH
10552001-08-16 Richard Henderson <rth@redhat.com>
1056
1057 * hashtab.c (htab_hash_string): New.
1058
d80dedbe
AC
10592001-08-13 Andrew Cagney <ac131313@redhat.com>
1060
1061 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1062 name.
1063
ccea0d85
IH
10642001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1065
1066 * regex.c (wcs_regex_compile): Use appropriate string
1067 to compare with collating element.
1068 Fix the padding for the alignment.
1069
b0e9bc8c 10702001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
1071
1072 * lbasename.c (lbasename): Change function definition to return a
1073 const char pointer.
1074
056400f1
JM
10752001-08-07 Jason Merrill <jason_merrill@redhat.com>
1076
1077 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1078 for".
1079
4e627c41
RH
10802001-08-03 Richard Henderson <rth@redhat.com>
1081
1082 * Makefile.in (concat.o): Depend on config.h.
1083
b6a2f884
AJ
10842001-07-30 Andreas Jaeger <aj@suse.de>
1085
1086 * concat.c: Include "config.h".
1087
c4b9cfe0
AJ
10882001-07-30 Andreas Jaeger <aj@suse.de>
1089
1090 * regex.c: Declare wcs functions only if compiling with
1091 MBS_SUPPORT.
1092 Don't use #elif for traditional C.
1093
10942001-07-23 Ulrich Drepper <drepper@redhat.com>
1095
1096 * regex.c: Revamp memory allocation for WCHAR functions to
1097 not use too much stack.
1098
10992001-07-30 Andreas Jaeger <aj@suse.de>
1100
1101 * regex.c: Declare wcs functions only if compiling with
1102 MBS_SUPPORT.
1103 Don't use #elif for traditional C.
1104
2cf50fd3
DJ
11052001-07-25 Daniel Jacobowitz <drow@mvista.com>
1106
1107 * Makefile.in (regex.o): Add dependency on config.h.
1108
27ffc806
DD
11092001-07-18 Andreas Schwab <schwab@suse.de>
1110
1111 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1112 underscore character.
1113
11142001-07-18 Ulrich Drepper <drepper@redhat.com>
1115
1116 * regex.c: Limit string length printed in debug messages to 100
1117 chars.
1118
11192001-07-18 Andreas Jaeger <aj@suse.de>
1120
1121 * regex.c: Place under LGPL version 2.1.
1122
dd771632
JJ
11232001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1124
1125 * Makefile.in: Add support for regex code.
1126 * regex.c: New file.
1127
29650b2b
MK
11282001-07-05 Mark Klein <mklein@dis.com>
1129
1130 * Makefile.in: Add ffs.c dependency.
1131 * configure.in: Add ffs.c.
1132 * ffs.c: New file.
1133
c8b28221
RH
11342001-06-18 Richard Henderson <rth@redhat.com>
1135
1136 * concat.c: Include <sys/types.h>.
1137
473c2d0b
LR
11382001-06-11 Loren J. Rittle <ljrittle@acm.org>
1139
a4c03da2 1140 bootstrap/3106
473c2d0b
LR
1141 * strerror.c (sys_nerr): Hide the OS header version.
1142 * strsignal.c (sys_nsig): Likewise.
1143
0bdcca68
RH
11442001-06-10 Richard Henderson <rth@redhat.com>
1145
1146 * concat.c: Include string.h. Fix int vs size_t usage.
1147 Simplify the iteration loops. Use memcpy.
1148
6de133d3
MK
11492001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1150
1151 * partition.c: Fix misspelling of `implementation'.
1152
8a153288
TS
11532001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1154
1155 * md5.c (md5_init_ctx): Declare constants as unsigned.
1156 (md5_process_block): Likewise.
1157
641b2721
ZW
11582001-05-07 Zack Weinberg <zackw@stanford.edu>
1159
1160 * cp-demangle.c (demangle_v3_with_details,
1161 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1162 function definition.
1163 * ternary.c: Use K+R style function definitions. Use PTR, not
1164 void *. Make arguments constant where possible.
1165
5cdba4ff
MM
11662001-05-07 Mark Mitchell <mark@codesourcery.com>
1167
1168 * splay-tree.h (splay_tree_max): New function.
1169 (splay_tree_min): Likewise.
1170
9dab060e
DB
11712001-04-15 Daniel Berlin <dan@cgsoftware.com>
1172
1173 * ternary.c: New file - Ternary search tree implementation.
1174
1175 * Makefile.in: Add ternary.o, and ternary.c dependencies.
1176
d02af173
ZW
11772001-04-03 Zack Weinberg <zackw@stanford.edu>
1178
1179 * make-temp-file.c (try): Inline.
1180
94b68558
RH
11812001-02-28 Richard Henderson <rth@redhat.com>
1182
1183 * Makefile.in (make-temp-file.o): Depend on config.h.
1184
27f66c0b
KG
11852001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1186
1187 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1188
f1a0345c
JJ
11892001-03-23 Jakub Jelinek <jakub@redhat.com>
1190
1191 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1192 `_' not followed by a digit is invalid.
1193
a519fba6
JB
11942001-03-22 Jim Blandy <jimb@redhat.com>
1195
1196 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1197 instead of free, to free the contents as well as the string
1198 structure.
1199
49ee944b
ZW
12002001-03-21 Zack Weinberg <zackw@stanford.edu>
1201
1202 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1203 Don't default P_tmpdir to anything. Try /var/tmp before
1204 /usr/tmp.
1205
33437dc7
ZW
12062001-03-20 Zack Weinberg <zackw@stanford.edu>
1207
1208 * choose-temp.c: Split off make_temp_file, and the code
1209 duplicated between it and choose_temp_base, into...
1210 * make-temp-file.c: ... here; new file.
1211
1212 * Makefile.in (CFILES): Add make-temp-file.c.
1213 (REQUIRED_OFILES): Add make-temp-file.o.
1214
7dce2eff
JB
12152001-03-20 Jim Blandy <jimb@redhat.com>
1216
1217 * cp-demangle.c (struct demangling_def): New fields:
1218 is_constructor and is_destructor.
1219 (demangling_new): Initialize them.
1220 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1221 or destructor.
1222 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1223 is_gnu_v3_mangled_dtor): New functions.
1224
e03a61f1
JM
12252001-03-20 Jason Merrill <jason@redhat.com>
1226
1227 * cplus-dem.c (main): Skip initial $.
1228
8860ddab
MM
12292001-03-15 Michael Meissner <meissner@redhat.com>
1230
1231 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1232 might be a signed integer under pre-ISO C systems.
1233
2b757d51
NB
12342001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1235 John David Anglin <dave@hiauly1.hia.nrc.ca>
1236
1237 * libiberty/lbasename.c: New file.
1238 * libiberty/Makefile.in: Update for lbasename.
1239
1f50aafb
ZW
12402001-03-06 Zack Weinberg <zackw@stanford.edu>
1241
1242 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1243 * configure.in: Replace all alloca logic with a simple use of
1244 the above new macro.
1245 * config.table: Kill *-*-beos* entry.
1246 * config/mh-beos: Delete.
1247 * configure, config.in: Regenerate.
1248
1249 * Makefile.in (ALLOCA, HFILES): Kill.
1250 (REQUIRED_OFILES): Add alloca.o.
1251 (alloca.o): Depend on libiberty.h.
1252 (argv.o): Don't depend on alloca-conf.h.
1253 * alloca-conf.h: Delete.
1254 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1255 blocks. Provide the C alloca unconditionally. Use PTR where
1256 appropriate. Make i00afunc static.
1257 * argv.c: Don't include alloca-conf.h.
1258
d9fd5aae
JDA
12592001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1260
1261 * cplus-dem.c (main): Cast enum style to int.
1262
4031ed65
LR
12632001-02-16 Loren J. Rittle <ljrittle@acm.org>
1264
1265 * cplus-dem.c (main): Initialize style.
1266
2ca46e8a
PE
12672001-02-02 Phil Edwards <pme@sources.redhat.com>
1268
1269 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1270
3b60dd8e
BM
12712001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1272
1273 Add support for Java demangling under the v3 ABI:
1274 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1275 (struct demangling_def): Add `style' field.
1276 (demangling_new): New parameter `style'. Set it in demangling_t.
1277 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1278 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1279 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1280 (main): Call cp_demangle with extra parameter.
1281 (java_demangle_v3): New function.
1282 (java_builtin_type_names): New. Table of primitive type names used
1283 for Java demangling.
1284 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1285 Java output.
1f50aafb 1286 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
1287 demangling.
1288 (long_options): Remove obsolete `java' option.
1289 (main): Remove explicit handling of `java' option. Instead, pass style
1290 parameter in cplus_demangle flags as gdb does.
1291 * testsuite/demangle.expected: Add some Java test cases.
1292
584932e9
DD
12932000-12-29 DJ Delorie <dj@redhat.com>
1294
1295 * fnmatch.c: Make the note about the origins of this file more
1296 accurate, at least until we can sync with glibc.
1297 * getopt.c: Ditto.
1298 * getopt1.c: Ditto.
1299 * md5.c: Ditto.
1300 * obstack.c: Ditto.
1301
dac45916
MS
13022000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1303
1304 * bsearch.c: New file.
1305 * configure.in (funcs): Add bsearch.
1306 (AC_CHECK_FUNCS): Likewise.
1307 * configure, config.in: Regenerate.
1308
a8e4a997
MS
13092000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1310
1311 * safe-ctype.c: #include "ansidecl.h".
1312 * strtod.c: Likewise.
1313
75444da7
MS
13142000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1315
1316 * strtoul.c: Include safe-ctype.h, not ctype.h.
1317
f6bbde28
ZW
13182000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1319
1320 * safe-ctype.c: New file.
1321 * Makefile.in (CFILES): Add safe-ctype.c.
1322 (REQUIRED_OFILES): Add safe-ctype.o.
1323
1324 * argv.c: Define ISBLANK and use it, not isspace.
1325 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1326 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1327 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1328 before calling TOLOWER(c)/TOUPPER(c).
1329
6c1ce62b 13302000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
1331
1332 * Makefile.in (distclean): When cleaning, remove testsuite.
1333
b5d1497d
JM
13342000-12-05 Jason Merrill <jason@redhat.com>
1335
1336 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1337 name before allocating the dyn_string.
1338
c6e13630
JM
13392000-12-04 Jason Merrill <jason@redhat.com>
1340
1341 * cp-demangle.c: s/new_abi/v3/.
1342 * cplus-dem.c: Likewise.
1343 (current_demangling_style): Now auto_demangling.
1344 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 1345 (main): Use standard symbol chars for auto_demangling.
c6e13630 1346
a4c9b97e
MM
13472000-11-26 Mark Mitchell <mark@codesourcery.com>
1348
1349 * hashtab.c (higher_prime_number): Use a table, rather than a
1350 seive, to find the next prime.
1351
3b3bd9a7
L
13522000-11-22 H.J. Lu <hjl@gnu.org>
1353
1354 * cplus-dem.c (main): Handle gnat_demangling.
1355
d1209685
ZW
13562000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1357
1358 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1359 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1360 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1361 argument form of AC_DEFINE in dummy definitions block. Use
1362 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1363 in dummy block. Preload cache variables instead of bypassing
1364 tests, where possible.
1365 * acconfig.h: Removed.
1366
1367 * xmalloc.c (xmalloc_failed): New function, does error
1368 reporting on failed allocation.
1369 (xmalloc, xcalloc, xrealloc): Use it.
1370
cf183ac2
HPN
13712000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1372
1373 * cplus-dem.c (cplus_demangle): Fix formatting.
1374 (grow_vect): Ditto.
1375 (ada_demangle): Ditto.
1376 (internal_cplus_demangle): Ditto.
1377 (mop_up): Ditto.
1378
13792000-11-21 H.J. Lu <hjl@gnu.org>
1380
1381 * cplus-dem.c (main): Handle java_demangling.
1382
8bcc782c
KG
13832000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1384
1385 * cplus-dem.c (grow_vect): Prototype.
1386 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1387
29120f44
HPN
13882000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1389
1390 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1391 parameter `option'.
1392
0437a5a8
KB
13932000-11-15 Kenneth Block <kenneth.block@compaq.com>
1394
9e038f71 1395 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
1396 be used in GCC.
1397
eab0c1ab 13982000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 1399
29120f44 1400 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
1401 list.
1402
d50d20ec
HPN
14032000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1404
1405 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
1406 xcalloc depending on htab->return_allocation_failure. Return zero
1407 if calloc fails.
d50d20ec
HPN
1408 (htab_create): Update comment to cover memory allocation.
1409 (htab_try_create): New.
1410 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 1411 Update comment to cover this.
d50d20ec 1412
35e9340f
HPN
14132000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1414
1415 * hashtab.c: Change void * to PTR where necessary.
1416 (htab_create, htab_expand): Correct formatting of comment before
1417 function.
1418
ea343d1a 14192000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
1420
1421 * cp-demangle.c (string_list_def): Add caret_position and comments.
1422 (result_caret_pos): New macro.
1423 (result_append_string): Rename to...
1424 (result_add_string): ... this, and insert at caret position.
d1209685 1425 Rename throughout.
0870bfd6
AS
1426 (result_append): Rename to...
1427 (result_add): ... this, and insert at caret position. Rename
d1209685 1428 throughout.
0870bfd6
AS
1429 (result_append_char): Rename to...
1430 (result_add_char): ... this, and insert at caret position. Rename
d1209685 1431 throughout.
0870bfd6
AS
1432 (result_append_space): Remove.
1433 (string_list_new): Initialize caret position.
1434 (result_add_separated_char): Use caret position.
1435 (result_get_caret): New funtion.
1436 (result_set_caret): Likewise.
1437 (result_shift_caret): Likewise.
1438 (result_previous_char_is_space): Likewise.
1439 (substitution_start): Use caret position.
1440 (substitution_add): Likewise.
1441 (demangling_new): Initialize caret position.
1442 (demangle_encoding): Use caret position.
d1209685 1443 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
1444 (demangle_type_ptr): Use switch statement. Handle pointers to
1445 arrays. Don't use result_append_space. Use caret position.
1446 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
1447 call to demangle_array_type.
1448 (demangle_array_type): Add parameter to handle pointers to arrays.
1449
f15b9af9
MM
14502000-10-01 Mark Mitchell <mark@codesourcery.com>
1451
1452 * splay-tree.c (splay_tree_insert): Fix formatting.
1453
8f17b5c5
MM
14542000-09-16 Mark Mitchell <mark@codesourcery.com>
1455
1456 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1457
4eaa189a
MS
14582000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1459
1460 * splay-tree.c: #include <stdio.h>.
1461
29791078
HPN
14622000-09-14 Hans-Peter Nilsson <hp@axis.com>
1463
1464 * testsuite/demangle-expected: Add two tests for anonymous
1465 namespaces.
1466 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1467
2c9f4db7
MM
14682000-09-10 Mark Mitchell <mark@codesourcery.com>
1469
1470 * splay-tree.c (splay_tree_predecessor): New function.
1471 (splay_tree_successor): Likewise.
1472
bb22da4b
HPN
14732000-09-10 Hans-Peter Nilsson <hp@axis.com>
1474
1475 * testsuite/demangle-expected: Add four tests for type_info
1476 mangling.
bb22da4b
HPN
1477 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1478 for a non-template non-qualified type_info function or node.
1479
759e8187
AS
14802000-09-08 Alex Samuel <samuel@codesourcery.com>
1481
1482 * cp-demangle.c: Fix copyright banner.
1483
2ecd81ef
MS
14842000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1485
1486 * md5.c: #include "ansidecl.h".
1487
d93998ec
AS
14882000-09-06 Alex Samuel <samuel@codesourcery.com>
1489
1490 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1491 (demangle_type): Handle substitution candidates correctly in the
1492 face of special substitutions.
1493
1056d228
AS
14942000-09-05 Alex Samuel <samuel@codesourcery.com>
1495
1496 * cp-demangle.c (demangle_encoding): Rename variable.
1497 (demangle_name): Rename parameter. Handle return type
1498 suppression.
1499 (demangle_nested_name): Rename parameter.
1500 (demangle_prefix): Likewise. Change return type suppression.
1501 (demangle_unqualified_name): Add parameter. Flag constructors and
1502 conversion operators.
1503 (demangle_special_name): Fix comment.
1504 (demangle_type): Rename variable.
1505 (demangle_bare_function_type): Check for missing return type and
d1209685 1506 parameter.
1056d228
AS
1507 (demangle_class_enum_type): Rename parameter.
1508 (demangle_discriminator): Fix misspelling in comment.
1509
2f31ed7e
DD
15102000-08-31 DJ Delorie <dj@redhat.com>
1511
1512 * configure.in (Cygwin): special case cygwin only when we're
1513 building cygwin, not when we're hosting cygwin.
1514
02bcb9c6
AS
15152000-09-04 Alex Samuel <samuel@codesourcery.com>
1516
1517 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1518 <expression>.
1519
aee749cf
AS
15202000-09-04 Alex Samuel <samuel@codesourcery.com>
1521
1522 * cp-demangle.c (demangle_type_ptr): Increment position past
1523 pointer and reference characters.
1524
92a16bbe
AS
15252000-09-04 Alex Samuel <samuel@codesourcery.com>
1526
1527 * cp-demangle.c (demangle_nv_offset): New function.
1528 (demangle_v_offset): Likewise.
1529 (demangle_call_offset): Likewise.
1530 (demangle_special_name): Update thunk demangling to comply with
1531 ABI changes.
d1209685 1532
31e0ab1f
AS
15332000-09-03 Alex Samuel <samuel@codesourcery.com>
1534
1535 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1536 (substitution_def): Remove template_parm_number.
1537 (NOT_TEMPLATE_PARM): Remove.
1538 (result_insert_string): New macro.
1539 (result_insert): Likewise.
1540 (result_insert_char): Likewise.
1541 (substitution_add): Remove last parameter. Don't store template
d1209685 1542 parm number.
31e0ab1f
AS
1543 (BFT_NO_RETURN_TYPE): Define as NULL.
1544 (demangle_encoding): Adjust call to demangle_bare_function_type.
1545 (demangle_name): Adjust substitution. Adjust call to
d1209685 1546 substitution_add.
31e0ab1f
AS
1547 (demangle_prefix): Adjust call to substitution_add.
1548 (demangle_identifier): Handle anonymous namespaces.
1549 (demangle_operator_name): Change demangling of vendor-extended
1550 operator to match ABI changes.
1551 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1552 substitutions here.
31e0ab1f
AS
1553 (demangle_type): Adjust calls to demangle_template_param,
1554 substitution_add, and demangle_type_ptr. Fix substitution of
1555 templated types.
1556 (demangle_function_type): Change parameter to a pointer.
1557 (demangle_bare_function_type): Likewise. Adjust insertion point.
1558 (demangle_template_param): Remove last parameter.
1559 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1560 demangle_template_param.
31e0ab1f
AS
1561 (is_mangled_char): Accept `$' and `.'.
1562 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1563 * dyn-string.c (dyn_string_insert_char): New function.
1564
ccbc3eb7
HPN
15652000-08-31 Hans-Peter Nilsson <hp@axis.com>
1566
1567 * testsuite/demangle-expected: Add nine tests for
1568 underscore-after-number followed by five tests for name-signature
1569 delimiter.
1570
53dce582
RH
15712000-08-28 Richard Henderson <rth@cygnus.com>
1572
1573 * Makefile.in (md5.o): Depend on config.h.
1574
881c6935
JM
15752000-08-28 Jason Merrill <jason@redhat.com>
1576
1577 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1578 (CFILES): Add md5.c.
1579 * md5.c: New file.
1580
a440fd19
AS
15812000-08-27 Alex Samuel <samuel@codesourcery.com>
1582
1583 * cp-demangle.c (demangle_name): Initialize template_p in local
1584 name case. Don't re-add substitutions as candidates.
1585 (demangle_nested_name): Use <unqualified-name>.
1586 (demangle_prefix): Likewise. Don't add template names as
1587 substitution candidates twice, or re-add a substitution or the
1588 last prefix component.
1589 (demangle_local_name): Adjust output format.
1590
d01ce591
AS
15912000-08-25 Alex Samuel <samuel@codesourcery.com>
1592
1593 * cp-demangle.c (result_add_separated_char): Change parameter to
1594 int.
1595 (substitution_add): Don't check for duplicates. Check if
1596 previously allocated size is zero.
1597 (demangle_name): Remove duplicate check for std substitution.
1598 Clear template flag appropriately.
1599 (demangle_prefix): Remove argument to demangle_substitution.
1600 Don't check that template flag is already set.
1601 (demangle_operator_name): Add pt operator.
1602 (demangle_type): Don't treat r as built-in type. Remove argument
1603 to demangle_substitution. Fix substitution candidate mechanics.
1604 Handle <template-template-parm>s. Improve comments.
d1209685 1605 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1606 (demangle_substitution): Remove parameter.
1607 (print_usage): Remove extra fprintf option.
1608
2f59c8eb
GM
16092000-08-24 Greg McGary <greg@mcgary.org>
1610
1611 * libiberty/random.c (end_ptr): Revert previous change.
1612
2f26c11d
GM
16132000-08-24 Greg McGary <greg@mcgary.org>
1614
1615 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1616 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1617 * libiberty/random.c (end_ptr): Likewise.
1618
e282c9c9
AS
16192000-08-23 Alex Samuel <samuel@codesourcery.com>
1620
1621 * cp-demangle.c (result_close_template_list): Remove function.
1622 (result_add_separated_char): New function.
1623 (result_open_template_list): New macro.
1624 (result_close_template_list): Likewise.
1625 (demangle_prefix): Don't set template_p if the
1626 prefix ends with a ctor name.
1627 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1628 (demangle_type): Check for template args after substitution.
1629 (demangle_template_args): Use result_open_template_list.
d1209685 1630
c9b6494a
ZW
16312000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1632
1633 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1634
d1209685 16352000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1636
1637 * config/mh-openedition.h: Added -DLE370 definition.
1638
0aab2795
ME
16392000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1640
1641 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1642 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1643 Cast program to 'char *' in errmsg_arg assignment.
1644 (PWAIT_ERROR): Define.
1645 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1646 to DJGPP's WIF* macros.
1647
c2f275e4
RB
16482000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1649 Jeff Law <law@cygnus.com>
1650
73aa9564
RB
1651 * getcwd.c: Include string.h, stdlib.h for prototypes
1652
c2f275e4 1653 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1654 * rename.c: Include config.h, unistd.h
1655 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1656
ccbc3eb7
HPN
16572000-07-24 Hans-Peter Nilsson <hp@axis.com>
1658
1659 * cplus-dem.c (work_stuff_copy_to_from): New.
1660 (delete_non_B_K_work_stuff): New.
1661 (delete_work_stuff): New.
1662 (mop_up): Break out work_stuff partly destruction to
1663 delete_non_B_K_work_stuff.
1664 (iterate_demangle_function): New.
1665 (demangle_prefix): Call iterate_demangle_function instead of
1666 demangle_function_name. Leave handling of name-signature
1667 __-delimiters to iterate_demangle_function.
1668 (demangle_integral_value): Strip an optional
1669 following underscore cautiously. Handle negative numbers.
1670
3388651c
DB
16712000-07-24 Daniel Berlin <dberlin@redhat.com>
1672
d1209685 1673 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1674 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1675
0fac482e
AS
16762000-07-21 Alex Samuel <samuel@codesourcery.com>
1677
1678 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1679 allocating ctor mangling.
1680 (demangle_array_type): Handle empty and non-constant array length.
1681
8502a100 16822000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1683 Jeff Law <law@cygnus.com>
1684
c6451ce1
MS
1685 * configure.in (AC_CHECK_HEADERS): Add time.h.
1686 (AC_HEADER_TIME): Add check.
1687 * configure, config.in: Regenerate.
1688 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1689
cd447360
MS
1690 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1691 * configure, config.in: Regenerate.
1692 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1693 * strtol.c, strtoul.c: #include "config.h". Portably #include
1694 <limits.h> and/or <sys/param.h>.
1695 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1696
3b58c099
MS
1697 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1698 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1699 * configure, config.in: Regenerate.
1700 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1701
8502a100
MS
1702 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1703
da0c7743
MS
17042000-07-21 Mike Stump <mrs@wrs.com>
1705
1706 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1707 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1708
838f8562
KG
17092000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1710
1711 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1712
1713 * setenv.c (setenv): Initialize variable `ep'.
1714
1715 * sigsetmask.c (abort): Prototype.
1716
1717 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1718 __STDC__ for stdarg.h include.
1719 (int_vasprintf): Prototype.
1720 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1721 definition. Cast `global_total_width' in comparison.
1722 (main): Prototype. Return a value.
1723
1724 * vfork.c (fork): Prototype.
1725
1726 * xexit.c: Include config.h.
1727
e9958132
JM
17282000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1729
1730 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1731 and print it with %u.
1732
39a6492f
HPN
17332000-07-17 Hans-Peter Nilsson <hp@axis.com>
1734
1735 * testsuite/regress-demangle (failed test): Show result and
1736 expected output.
1737
6d0be369
AH
17382000-07-07 Andrew Haley <aph@cygnus.com>
1739
1740 * cplus-dem.c (main): fflush() after emitting last char before
1741 waiting for input.
1742
bece74bd
AS
17432000-06-28 Alex Samuel <samuel@codesourcery.com>
1744
1745 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1746 (demangle_name): Handle <substitution> followed by
1747 <unqualified-template-name>.
1748 (demangle_type): Follow special substitutions with
1749 <class-enum-type>
1750 (demangle_subtitution): Set template_p for special substitutions.
1751 (main): Fix typos.
d1209685 1752
229b8ec7
AS
17532000-06-27 Alex Samuel <samuel@codesourcery.com>
1754
1755 * cp-demangle.c (demangle_special_name): Swap base and derived
1756 class when demangling construction vtables.
1757
051664b0
AS
17582000-06-21 Alex Samuel <samuel@codesourcery.com>
1759
1760 * cp-demangle.c: Don't include ctype.h.
1761 (IS_DIGIT): New macro.
1762 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1763 instead of isdigit and isalpanum.
1764 (demangling_def): Make name and next const pointers.
1765 (STATUS_ALLOCATION_FAILED): New status code.
1766 (dyn_string_append_space): Handle failure in
1767 dyn_string_append_char.
1768 (int_to_dyn_string): Likewise. Change return value to status_t.
1769 (string_list_new): Handle failure of dyn_string_init.
1770 (result_close_template_list): Change return type to status_t.
1771 Handle failure in dyn_string_append.
1772 (result_push): Change return value to status_t. Handle failure in
1773 string_list_new. Handle failure of result_push throughout.
1774 (substitution_add): Change return value to status_t. Handle
1775 dyn_string failures. Handle failure of substitution_add
1776 throughout.
1777 (template_arg_list_new): Return NULL on allocation failure.
1778 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1779 Handle error result throughout.
1780 (result_append): Likewise.
1781 (result_append_char): Likewise.
1782 (result_append_space): Likewise.
1783 (demangling_new): Make argument a const pointer. Handle
1784 allocation failures.
1785 (demangle_template_args): Handle failure in template_arg_list_new
1786 and result_close_template_list.
1787 (demangle_discriminator): Return if int_to_dyn_string fails.
1788 (cp_demangle): Likewise.
1789 (cp_demangle_type): New function.
1790 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1791 memory allocation failure.
1792 (main): Likewise.
1793 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1794 IN_LIBGCC2.
1795 (dyn_string_init): Change return value to int. Handle
1796 RETURN_ON_ALLOCATION_FAILURE case.
1797 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1798 (dyn_string_release): Delete the dyn_string.
1799 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1800 (dyn_string_copy): Change return type to int.
1801 (dyn_string_copy_cstr): Likewise.
1802 (dyn_string_prepend): Likewise.
1803 (dyn_string_prepend_cstr): Likewise.
1804 (dyn_string_insert): Likewise.
1805 (dyn_string_insert_cstr): Likewise.
1806 (dyn_string_append): Likewise.
1807 (dyn_string_append_cstr): Likewise.
1808 (dyn_string_append_char): Likewise.
1809 (dyn_string_substring): Likewise.
d1209685 1810
fe06b696
ZW
18112000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1812
1813 * cp-demangle.c (demangle_operator_name): Add spaces before
1814 names beginning with a letter: delete, delete[], new, new[],
1815 sizeof.
1816 (demangle_special_name): Handle TF <type> and TJ <type>.
1817
6223e158
PDM
1818Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1819
1820 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1821
48f3e29b
PDM
1822Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1823
1824 * cp-demangle.c (stdio.h): File included unconditionaly.
1825 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1826 * dyn-string.c (stdio.h): File included.
1827 * partition.c (partition_print): No `&' needed to take the address of
1828 a function.
1829
69197e7e
KG
18302000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1831
1832 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1833
69197e7e
KG
1834 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1835
1836 * cp-demangle.c (demangle_char): Change parameter from char to int.
1837 (demangle_expression, demangle_expr_primary): Remove extra
1838 semi-colon in prototype.
1839
1840 * dyn-string.c (dyn_string_append_char): Change parameter from
1841 char to int.
1842
1843 * memcmp.c (memcmp): Constify.
1844
1845 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1846 __extension__.
1847
1848 * partition.c (elem_compare): Prototype. Don't cast away
1849 const-ness.
1850
1851 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1852
7eb23b1f
KG
18532000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1854
1855 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1856
1857 * cp-demangle.c: Include demangle.h.
1858 (template_arg_list_new): DeANSIfy.
1859 (cp_demangle): Make static and add prototype.
1860 (operator_code, operators): Constify.
1861 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1862
3faa108c
AS
18632000-06-05 Alex Samuel <samuel@codesourcery.com>
1864
1865 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1866 unsigned char.
1867 (demangle_unqualified_name): Likewise.
1868 (demangle_number_literally): Likewise.
1869 (demangle_type): Likewise.
1870 (demangle_substitution): Likewise.
1871 (is_mangled_char): Likewise, for isalnum.
1872
69afa80d
AS
18732000-06-04 Alex Samuel <samuel@codesourcery.com>
1874
1875 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1876 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1877 (cp-demangle.o): New dependency.
1878 (dyn-string.o): Likewise.
1879
1880 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1881
1882 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1883 demangler.
1884 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1885 demangling mode.
1886 (gnu_new_abi_symbol_characters): New function.
1887 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1888 file.
1889 * cp-demangle.c: New file.
d1209685 1890
0b72c3df
AC
1891Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1892
1893 * floatformat.c: Add name to each floatformat field.
1894
270cea06
JL
1895Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1896
1897 * Makefile.in (objalloc.o): Depend on config.h
1898
d11ec6f0
ZW
18992000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1900
1901 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1902 if HAVE_STRING_H.
1903 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1904 * objalloc.c: Include config.h. Include stdlib.h and don't
1905 declare malloc or free if HAVE_STDLIB_H.
1906 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1907 else declare malloc without prototype. Include string.h if
1908 HAVE_STRING_H, else declare memset without prototype. Don't
1909 include stddef.h.
1910
f8e2da56
MS
19112000-05-23 Mike Stump <mrs@wrs.com>
1912
1913 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1914 -j3.
f8e2da56 1915
650f3068
DA
19162000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1917
1918 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1919
1d2da2e1
HB
19202000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1921
d1209685 1922 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1923 probably zero, also eliminate a warning on alpha.
1924
47668d0a
DE
19252000-05-15 David Edelsohn <edelsohn@gnu.org>
1926
c7a79a32 1927 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1928 on $(enable_shared).
1929
36348eab
JJ
19302000-05-10 Jakub Jelinek <jakub@redhat.com>
1931
1932 * config.table: Use mh-sparcpic for sparc*-*-*.
1933
209bbe34
NC
19342000-05-08 Nick Clifton <nickc@cygnus.com>
1935
1936 * Makefile.in (CFILES): Add strncmp.c.
1937 (NEEDED): Add strncmp.
1938
a85a47fb
KG
19392000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1940
1941 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1942 Cast the arguments to `islower' to `unsigned char'.
1943 (print_demangler_list): Prototype.
1944
4aef973c
PDM
1945Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1946
1947 * sort.c (UCHAR_MAX): Provide fallback definition.
1948
3b94497c
AO
19492000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1950
1951 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1952 SUBDIRS.
1953
24eaa47a
KB
19542000-04-28 Kenneth Block <block@zk3.dec.com>
1955 Jason Merrill <jason@casey.cygnus.com>
1956
d1209685
ZW
1957 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1958 (cplus_demangle_set_style): New function for setting style.
1959 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1960
a9266bfa
KG
19612000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1962
1963 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1964
1965 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1966 (libiberty_AC_FUNC_STRNCMP): Invoke.
1967
1968 * strncmp.c: New file.
1969
8e02c4d0
JH
1970Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1971
1972 * hashtab.c (htab_expand): Add prototype.
1973 (find_empty_slot_for_expand): Likewise.
1974
4feeaae3
KG
19752000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1976
1977 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1978 match prototype.
1979 (htab_expand): Cast the return value of xcalloc.
1980
18a94a2f
MM
19812000-04-24 Mark Mitchell <mark@codesourcery.com>
1982
1983 * hashtab.c (hash_pointer): New function.
1984 (eq_pointer): Likewise.
1985 (htab_hash_pointer): New variable.
1986 (htab_eq_pointer): Likewise.
1987
eeb0656f
MM
19882000-04-23 Mark Mitchell <mark@codesourcery.com>
1989
b51024fc
MM
1990 * sort.c (sort_pointers): Fix endianness bugs.
1991
eeb0656f
MM
1992 * sort.c: New file.
1993 * Makefile.in (CFILES): Add sort.c
1994 (REQUIRED_OFILES): Add sort.o.
1995 (sort.o): New target.
1996
7277f72d
MS
19972000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1998
1999 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2000 4.3BSD systems.
2001
e38992e8
RK
2002Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2003
2004 * hashtab.c: Various minor cleanups.
2005 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2006 (htab_find_slot): Likewise.
2007
498e1ab1
DP
20082000-04-16 Dave Pitts <dpitts@cozx.com>
2009
2010 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 2011
dc17cc7b
RH
20122000-04-05 Richard Henderson <rth@cygnus.com>
2013
2014 * splay-tree.c (splay_tree_remove): New.
2015
b13eb66b
MM
20162000-03-30 Mark Mitchell <mark@codesourcery.com>
2017
2018 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2019 codes.
2020 (htab_find_with_hash): Likewise.
2021 (htab_find_slot_with_hash): Likewise.
d1209685 2022
0194e877
ZW
20232000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2024
2025 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2026 unless it will be used. Rearrange loop for better
2027 optimization.
2028 (higher_prime_number): Add static prototype.
2029
abc61fd4
JL
2030Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2031
2032 * Makefile.in (partition.o): Depend on config.h
2033
8c5d513f
BS
20342000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2035
2036 * hashtab.c (find_empty_slot_for_expand): New function.
2037 (htab_expand): Use it instead of htab_find_slot.
2038 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2039 argument HASH.
2040 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2041 (htab_find): New wrapper function.
2042 (htab_find_slot): Likewise.
2043 (htab_traverse): Pass slot, not entry, to called function.
2044
d9d4fb43
AS
20452000-03-09 Alex Samuel <samuel@codesourcery.com>
2046
2047 * Makefile.in (CFILES): Add partition.c.
2048 (REQUIRED_OFILES): Add partition.o.
2049 (partition.o): New rule.
2050 * partition.c: New file.
d1209685 2051
5dc9cffd
ZW
20522000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2053
2054 * hashtab.c (htab_create): Set del_f.
2055 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2056 Use it.
2057
5194cf08
ZW
20582000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2059
2060 * hashtab.c: Remove debugging variables (all_searches,
2061 all_collisions, all_expansions). Delete
2062 all_hash_table_collisions.
2063 (create_hash_table, delete_hash_table, empty_hash_table,
2064 find_hash_table_entry, remove_element_from_hash_table_entry,
2065 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2066 hash_table_elements_number, hash_table_collisions): Rename to:
2067 htab_create, htab_delete, htab_empty, htab_find_slot,
2068 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2069 htab_elements, htab_collisions.
2070 (htab_find): New function, handles common case where you don't
2071 plan to add or delete an entry.
2072 (htab_expand): Don't create a whole new table, just a new
2073 entry vector.
2074 (htab_find_slot): Simplify logic.
2075
5ad5a984
ILT
20761999-08-03 Ian Lance Taylor <ian@zembu.com>
2077
2078 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2079 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2080
2081 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2082 $(TARGETLIB)n so it works on MSDOS.
2083 (install_to_tooldir): Likewise.
2084
20851999-07-21 Ian Lance Taylor <ian@zembu.com>
2086
2087 From Mark Elbrecht:
2088 * makefile.dos: Remove; obsolete.
2089 * configure.bat: Remove; obsolete.
2090
20911999-07-11 Ian Lance Taylor <ian@zembu.com>
2092
2093 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2094 warning.
2095
aeecce42
MK
20962000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2097
2098 * pexecute.c: Conditionally include string.h.
5194cf08 2099 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 2100
1eaf7d9c
KG
21012000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2102
2103 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2104 we're using gcc.
2105
2106 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2107
0fadedb2
GK
21081999-12-27 Geoff Keating <geoffk@cygnus.com>
2109
2110 * vasprintf.c (int_vasprintf): Don't re-read the format character
2111 as this mishandles strings like '%%s'.
2112
08230f26
MM
21131999-12-05 Mark Mitchell <mark@codesourcery.com>
2114
2115 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2116 rather than struct splay_tree_node.
2117 (splay_tree_insert): Use struct splay_tree_s rather than struct
2118 splay_tree.
2119
6de9b8ff
PDM
2120Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2121
2122 * hashtab.c (sys/types.h): File included.
2123
f3636679
JM
21241999-11-22 Jason Merrill <jason@casey.cygnus.com>
2125
2126 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2127 BSD license, pursuant with
2128
2129 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2130
36dd3a44
JL
2131Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2132
2133 * hashtab.c: Include stdio.h.
2134
6e300472
JL
2135Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2136
2137 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2138
df548dfc
PDM
2139Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2140
2141 * xstrdup (sys/types.h): Include this file.
2142
2c375143
NS
21431999-10-28 Nathan Sidwell <nathan@acm.org>
2144
2145 * Makefile.in (SUBDIRS): New macro.
2146 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2147 avoid multiple subdirectory cleaning.
2148 (*-subdir): Use SUBDIRS.
2149
a82cecda
JK
21501999-10-25 Jim Kingdon <http://developer.redhat.com/>
2151
2152 * cplus-dem.c: Move declarations of standard_symbol_characters and
2153 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2154 warnings.
2155
ed38f5d5
ZW
21561999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2157
2158 * hashtab.c (find_hash_table_entry): When returning a
2159 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2160 (clear_hash_table_slot): New function which deletes an entry
2161 by its position in the table, not its value.
2162 (traverse_hash_table): New function which calls a hook
2163 function for every live entry in the table.
2164
b60fe4a7
MM
21651999-10-19 Mark Mitchell <mark@codesourcery.com>
2166
2167 * cplus-dem.c (INTBUF_SIZE): New macro.
2168 (string_append_template_idx): New function.
2169 (demangle_expression): Likewise.
2170 (demangle_integral_value): Use it.
2171 (demangle_real_value): New function, split out from ...
2172 (demangle_template_value_parm): ... here. Use
2173 string_append_template_idx. Use demangle_real_value.
2174 (demangle_template): Use string_append_template_idx.
2175 (demangle_qualified): Use consume_count_with_underscores.
2176 (get_count): Tweak formatting.
2177 (do_type): Use string_append_template_idx.
5194cf08 2178
3da5522a
KG
21791999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2180
2181 * calloc.c: Add a public domain notice.
2182
d7d36ea8
PDM
2183Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2184
2185 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2186
a2f945c6
VM
2187Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2188
2189 * Makefile.in (CFILES): Add hashtab.c
2190 (REQUIRED_OFILES): Add hashtab.o
2191 (hashtab.o): Add dependencies.
2192 * hashtab.c: New file
2193
7f22ec2e
MK
2194Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2195
2196 * basename.c (DIR_SEPARATOR): New macro.
2197 (DIR_SEPARATOR_2): Likewise.
2198 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2199 (IS_DIR_SEPARATOR): Likewise.
2200 (main): Handle MSDOS style pathname.
2201
7c56a6ce
MM
22021999-10-11 Mark Mitchell <mark@codesourcery.com>
2203
2204 * cplus-dem.c (do_type): Handle pointer to member types whose
2205 enclosing classes have namespace scope.
2206
cd32188b
ME
2207Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2208
2209 * config.table: Provide a backup shell for executing move-if-change.
2210
fc232f7a
MM
22111999-10-02 Mark Mitchell <mark@codesourcery.com>
2212
2213 * xmalloc.c (xmalloc): Fix spelling error.
2214 (xcalloc, xrealloc): Likewise.
2215
2a138827
KG
22161999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2217
2218 * cplus-dem.c (fancy_abort, demangle_integral_value,
2219 demangle_arm_hp_template, recursively_demangle,
2220 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2221 (program_name, program_version, fatal): Constify a char*.
2222 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2223 (main): Call return, not exit.
2224
5a657fc3
KG
22251999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2226
2227 * choose-temp.c: Remove obsolete comment about gcc.
2228 (make_temp_file): Constify a char*.
2229
33c5ddcd
KG
2230Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2231
2232 * xmemdup.c: Include sys/types.h.
2233
b10647f1
JG
22341999-09-07 Jeff Garzik <jgarzik@pobox.com>
2235
2236 * xmemdup.c: New xmemdup function.
2237 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2238
3dd6c3af
LV
2239Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2240
5194cf08 2241 * config.table: Add openedition target.
3dd6c3af
LV
2242 * config/mh-openedition: New file.
2243
19e28e2a
ME
2244Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2245
2246 * pexecute.c (pexecute): Fill in temp_base when needed.
2247
4dfeccf9
RH
22481999-08-31 Richard Henderson <rth@cygnus.com>
2249
2250 * getpwd.c: Check HAVE_GETCWD before defining it away.
2251
4ac3cb83
KG
22521999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2253
2254 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2255 (REQUIRED_OFILES): Add getpwd.o.
2256 (getpwd.o): Add target.
2257
2258 * configure.in (AC_PREREQ): Bump to 2.13.
2259 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2260
2261 * getpwd.c: New file, moved here from gcc.
2262
e797ff70
KG
22631999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2264
2265 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2266 comparing against a signed quantity.
2267 (arm_special): Likewise.
2268 (demangle_fund_type): Likewise.
2269 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 2270 ATTRIBUTE_UNUSED.
e797ff70
KG
2271 (main): Constify variable `valid_symbols'.
2272
55247fce
PDM
2273Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2274
2275 * strtoul.c (strtoul): Add parentheses around && within ||.
2276
76632dd0
DJ
2277Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2278
2279 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2280 libdir, libsubdir and tooldir.
2281
d080bbfa
MM
22821999-08-01 Mark Mitchell <mark@codesourcery.com>
2283
2284 * splay-tree.c (splay_tree_insert): Return the new node.
2285
a81c752a
RH
22861999-07-14 Richard Henderson <rth@cygnus.com>
2287
5194cf08 2288 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
2289 prototyping directly.
2290 * choose-temp.c: Conditionally include string.h.
2291
8f1824d9
JM
22921999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2293
2294 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2295
652374d3
ILT
22961999-07-11 Ian Lance Taylor <ian@zembu.com>
2297
2298 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2299 warning.
2300
a4494286
JM
23011999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2302
2303 * Makefile.in (needed-list): Only include stuff we actually need
2304 for libstdc++.
2305
90e72e20
AS
23061999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2307
2308 * configure.in (checkfuncs): Add gettimeofday.
2309 * config.in, configure: Regenerated.
2310
b569200e
MK
2311Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2312
2313 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2314 the test fails.
2315 * configure: Regenerate.
2316
73919448
MS
23171999-06-10 Mike Stump <mrs@wrs.com>
2318
2319 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2320 parallel builds.
2321
fee9125c
KG
23221999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2323
2324 * putenv.c: Include ansidecl.h to define `const'.
2325 * setenv.c: Likewise.
2326
71cce721
MN
2327Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2328
a7c9637f
JL
2329 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2330 * configure.in (funcs): Add putenv and setenv.
2331 (AC_CHECK_FUNCS): Check for putenv and setenv.
2332 * configure: Rebuilt.
2333 * putenv.c setenv.c: New files.
2334
71cce721
MN
2335 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2336 bytes of space using malloc.
2337
53504016
SG
2338Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2339
2340 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2341 the *mangled pointer beyond the end of the string. Clean up code to
2342 match prevailing coding style.
2343
34842539
MH
23441999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2345
2346 * tmpnam.c (L_tmpnam): Fix typo.
2347
3a08531d
ME
2348Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2349
2350 * cplus-dem.c (standard_symbol_characters): Renamed from
2351 standard_symbol_alphabet. No longer modify TABLE.
2352 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2353 modify TABLE.
2354 (main): Corresponding changes. Use strchr to determine if a
2355 character is valid.
2356
8db9d08b
JB
23571999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2358
2359 * cplus-dem.c (main): Use table lookup to distinguish identifier
2360 characters from non-identifier characters.
2361 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2362
6a071f4a
FF
2363Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2364
2365 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2366 * getruntime.c: Only attempt to include sys/resource.h and
2367 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2368 are defined.
2369
7dd88617
DT
2370Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2371
2372 * configure.in (alloca detection): Handle alloca directly for interix.
2373 * configure: Rebuilt.
2374
7a1528bc
MK
2375Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2376
2377 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2378
76409268
JB
23791999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2380
2381 Fix from Dale Hawkins:
5194cf08 2382 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
2383 reallocated properly if we use it again.
2384
2385 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2386 stricter about syntax. Always null-terminate string.
2387
acbbd80a
MK
2388Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2389
2390 * configure.in (checkfuncs): Check for sbrk.
2391 * config.in: Rebuilt.
2392 * configure: Likewise.
2393 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2394
92523551
JB
23951999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2396
2397 Fix from Marcus Daniels:
2398 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2399 identifier looking for another underscore.
2400
36eb4217
MK
2401Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2402
2403 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2404 * xmalloc.c: Likewise.
2405 (xcalloc): UWIN has sbrk.
2406 (xrealloc): Fix guard macro.
2407
2c45d1a0
RH
24081999-04-11 Richard Henderson <rth@cygnus.com>
2409
2410 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2411 or <alloca.h>.
2412 * clock.c (GNU_HZ): New definition.
2413 (clock): Use it.
2414 * getruntime.c: Likewise.
2415
2416 * config.table: Use mh-beos.
2417 * config/mh-beos: New file.
2418
391cdef0
MM
24191999-04-11 Mark Mitchell <mark@codesourcery.com>
2420
2421 * cplus-dem.c (demangle_template_value_parm): Handle
2422 pointers-to-members.
2423 (do_type): Handle template parameters as qualifiers.
2424
9d229989
JB
24251999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2426
2427 * cplus-dem.c: Attempt to handle overflows in counts with some
2428 semblance of grace.
2429 (consume_count): Detect overflows. Return -1 to indicate errors,
2430 instead of zero.
2431 (demangle_template_value_parm, demangle_template): Handle change
2432 to consume_count's return convention.
2433
7c72138a
TT
24341999-04-05 Tom Tromey <tromey@cygnus.com>
2435
2436 * testsuite/regress-demangle: New file.
2437 * testsuite/demangle-expected: New file.
2438
2439 * Makefile.in (all, check, installcheck, info, install-info,
2440 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2441 distclean, maintainer-clean, realclean): Depend on corresponding
2442 `-subdir' target.
2443 (all-subdir check-subdir installcheck-subdir info-subdir
2444 install-info-subdir clean-info-subdir dvi-subdir
2445 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2446 distclean-subdir maintainer-clean-subdir): New target.
2447 * testsuite/Makefile.in: New file.
2448 * configure: Rebuilt.
2449 * configure.in: Create testsuite/Makefile.
2450
ae7f7270
MM
24511999-04-02 Mark Mitchell <mark@codesourcery.com>
2452
2453 * splay-tree.h (splay_tree_compare_pointers): Define.
2454
30f72379
MM
24551999-03-30 Mark Mitchell <mark@codesourcery.com>
2456
2457 * splay-tree.c (splay_tree_compare_ints): Define.
2458
4cc48683
TT
24591999-03-30 Tom Tromey <tromey@cygnus.com>
2460
2461 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2462 don't advance input pointer.
2463 (demangle_class_name): If consume_count didn't find a count, do
2464 nothing. Don't bother with `strlen' sanity check; consume_count
2465 does it for us.
2466
3510075c
JL
24671999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2468
2469 From Art Haas <ahaas@neosoft.com>:
2470 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2471 when doing arm or hp style.
2472 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 2473
89f602a7
MK
2474Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2475
2476 * pexecute.c (__CYGWIN32__): Rename to
2477 (__CYGWIN__): this.
2478 * xmalloc.c: Likewise.
2479
2480 Changes to support i386-pc-uwin.
2481 * configure.in (*-*-uwin*): Workaround for vfork bug.
2482 * configure: Regenerate.
2483 * pexecute.c (pexecute): Be like standard Unix.
2484 (pwait): Likewise.
2485 * xmalloc.c (first_break): Define.
2486 (xmalloc_set_program_name): Use.
2487 (xmalloc): Use.
2488
9346c824
FS
2489Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2490
2491 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2492
3510075c
JL
2493Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2494
2495 * config.table: Check cygwin*, not cygwin32*.
2496
8ec65f13
DB
2497Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2498
2499 * Makefile.in: Change mkstemp -> mkstemps.
2500
687361c8
ME
2501Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2502
2503 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2504 * configure.in (funcs): Check for and conditionally add mkstemps to
2505 the list of functions libiberty will provide.
2506 * configure: Rebuilt.
5194cf08 2507
b207e09c
MK
2508Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2509
5194cf08 2510 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2511 platforms that don't have HZ.
2512 * getruntime.c (HZ): Likewise.
2513
16b4c15e
RH
2514Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2515
2516 * Makefile.in (xstrdup.o): Depend on config.h.
2517
38beb75c
UD
2518Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2519
2520 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2521 freeing it.
2522
7e4311a3
KG
2523Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2524
2525 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2526
3510075c
JL
2527Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2528
2529 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2530 splay-tree.o.
2531
25321999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2533
2534 * configure.in: Require autoconf 2.12.1 or higher.
2535
fb9939b8
MM
25361998-12-30 Michael Meissner <meissner@cygnus.com>
2537
2538 * random.c (NULL): Don't redefine NULL if it is already defined.
2539
087aa398
KG
2540Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2541
2542 * argv.c (buildargv): Cast the result of alloca in assignment.
2543
2544 * choose-temp.c: Include stdlib.h.
38beb75c 2545
087aa398 2546 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2547 (snarf_numeric_literal): Constify first parameter.
2548 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2549 int, not a char.
087aa398
KG
2550 (demangle_qualifier): Likewise.
2551 (demangle_signature): Cast the argument of a ctype function to
2552 unsigned char.
2553 (arm_pt): Add parens around assignment used as truth value.
2554 (demangle_arm_hp_template): Constify variable `args'.
2555 (do_hpacc_template_const_value): Cast the argument of a ctype
2556 function to unsigned char.
2557 (do_hpacc_template_literal): Remove unused variable `i'.
2558 (snarf_numeric_literal): Constify parameter `args'.
2559 Cast the argument of a ctype function to unsigned char.
2560
2561 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2562 avoid ambiguous `else'.
38beb75c 2563
087aa398 2564 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2565 `cstart' and `cend' to unsigned char. Cast the argument of macro
2566 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2567
2568 * objalloc.c (free): Add prototype.
2569
21f2174d
HPN
2570Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2571
2572 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2573
3510075c
JL
2574Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2575
2576 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2577 doesn't exist.
3510075c 2578 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2579
e8fc8222
AM
2580Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2581
2582 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2583 bumping the pointer we read from. Also prepend these codes,
2584 as we do in other places.
2585
3510075c
JL
25861998-12-18 Nick Clifton <nickc@cygnus.com>
2587
2588 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2589 'const char *' in order to match its usage when calling siblings.
2590 (snarf_numeric_literal): Make first arg 'const char **' in order
2591 to match usage.
11a0bb74 2592
f4f30aa1
JL
2593Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2594
11a0bb74
KG
2595 * choose-temp.c: Don't check IN_GCC anymore.
2596
2597 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2598 * memchr.c (memchr): Likewise.
2599 * memcpy.c (memcpy): Likewise.
2600 * memmove.c (memmove): Likewise.
38beb75c 2601
11a0bb74
KG
2602 * mkstemp.c: Don't check IN_GCC anymore.
2603 * pexecute.c: Likewise.
2604 * splay-tree.c: Likewise.
38beb75c 2605
11a0bb74
KG
2606 * strchr.c (strchr): Use `const', not `CONST'.
2607 * strrchr.c (strrchr): Likewise.
2608 * strtol.c (strtol): Likewise.
2609 * strtoul.c (strtoul): Likewise.
2610
70d5ccef
DT
2611Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2612 Elena Zannoni <ezannoni@cygnus.com>
2613 Stan Shebs <shebs@cygnus.com>
2614 Edith Epstein <eepstein@cygnus.com>
2615 Andres MacLeod <amacleod@cygnus.com>
2616 Satish Pai <pai@apollo.hp.com>
2617
2618 * HP aCC demangling support.
2619 * cplus-dem.c
2620 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2621 demangling correctly when -edg specified; set the demangling style
2622 when user specifies 'edg'. Set strip_underscore to
2623 prepends_underscore, if not HPUXHPPA. Set
2624 current_demangling_style to hp_demangling if HPUXHPPA. Set
2625 current demangling style correctly if the switch is hp. Read
2626 label correctly also in the HP style case.
70d5ccef 2627 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2628 function.
70d5ccef 2629 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2630 style for this case is the same as ARM.
70d5ccef
DT
2631 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2632 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2633 demangle_arm_pt.); check and set value of temp_start field in
2634 multiple places. Also, when ceching for end of template args,
2635 check to see if at end of static member of template class.
70d5ccef 2636 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2637 include template args in string defining class.
70d5ccef
DT
2638 (demangle_class_name): use demangel_arm_hp_template.
2639 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2640 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2641 Handle EDG_DEMANGLING style. Handle constructor and destructor
2642 ops for HP style.
70d5ccef 2643 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2644 styles. global destructor and constructor for HP style are same
2645 as for ARM style. Same for local variables.
70d5ccef
DT
2646 (demangle_qualified): handle EDG_DEMANGLING style.
2647 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2648 cases '1' - '9' : initialize the temp_start field to -1 and handle
2649 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2650 and AUTO_DEMANGLING styles. If expecting a function and managed
2651 to demangle the funct args, then handle the LUCID_DEMANGLING,
2652 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2653 class name after "Lnnn_ in HP style case. HP style too needs to
2654 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2655 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2656 value param for HP/aCC.
70d5ccef 2657 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2658 literal parameter for HP aCC.
70d5ccef
DT
2659 (recursively_demangle): new function
2660 (snarf_numeric_literal): new function.
2661 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2662 to message.
70d5ccef 2663
8d525fa8
CF
2664Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2665
2666 * pexecute.c: Remove obsolete ifdefed cygwin code.
2667
9b1a92d8
KG
2668Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2669
2670 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2671 * cplus-dem.c: Likewise. Conform to libiberty.h.
2672 * pexecute.c: Likewise.
2673 * splay-tree.c: Likewise.
2674
c85c3232
MS
26751998-11-25 Mike Stump <mrs@wrs.com>
2676
2677 * Makefile.in (splay-tree.o): Add config.h dependency.
2678
35a6cd99
KG
2679Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2680
2681 * configure.in: Use AC_PREREQ(2.12.1).
2682
6e6e34b7
BK
26831998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2684
5194cf08 2685 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2686
59b67c11
JL
2687Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2688
2689 * mpw.c (mpw_access): Add missing parens.
2690
a6458d1d
KG
2691Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2692
2693 * configure.in: Call AC_HEADER_SYS_WAIT.
2694
2695 * pexecute.c: Include sys/wait.h when !IN_GCC.
2696
3510075c
JL
2697Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2698
2699 * pexecute.c: revert back to checking old Cygwin
2700 preprocessor symbol until some time has passed.
2701
2702Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2703
2704 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2705 since it will now support similar constructs.
2706
a9acf741
KG
2707Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2708
2709 * configure.in: Check for calloc.
2710
2711 * calloc.c: New file.
2712
2713 * xmalloc.c (xcalloc): New function.
2714
a49fb37a
AM
2715Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2716
2717 *cplus-dem.c (demangle_prefix): Use the last "__"
2718 in the mangled name when looking for the signature. This allows
2719 template names to begin with "__".
2720
0e714131
MM
27211998-11-08 Mark Mitchell <mark@markmitchell.com>
2722
ec2288ff
MM
2723 * cplus-dem.c (type_kind_t): Add tk_reference.
2724 (demangle_template_value_parm): Handle it.
2725 (do_type): Use it for references, instead of tk_pointer.
2726
0e714131
MM
2727 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2728 not internal_cplus_demangle.
2729
2931b6d4
KG
2730Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2731
2732 * choose-temp.c: Don't include gansidecl.h.
2733 * mkstemp.c: Likewise.
2734 * pexecute.c: Likewise.
2735
dd8f3ed5
GN
2736Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2737
5194cf08
ZW
2738 * configure.in: detect cygwin* instead of cygwin32*
2739 * configure: regenerate
dd8f3ed5 2740
c5f7c445
KG
2741Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2742
2743 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2744 whether to include config.h. Possibly include unistd.h in the
2745 !IN_GCC case. Define VFORK_STRING as a printable function call
2746 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2747 defined, include vfork.h. If VMS is defined, define vfork()
2748 appropriately. Remove vfork check on USG, we're using autoconf.
2749 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2750 locally what string to use.
c5f7c445 2751
ad3ef78e
MM
27521998-10-26 Mark Mitchell <mark@markmitchell.com>
2753
2754 * splay-tree.c: Tweak include directives to make sure declarations of
2755 xmalloc and free are available.
2756
224301c1
MM
27571998-10-25 Mark Mitchell <mark@markmitchell.com>
2758
2759 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2760 anonymous namespaces.
38beb75c 2761
d9db46fd
MM
27621998-10-23 Mark Mitchell <mark@markmitchell.com>
2763
2764 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2765 with type_quals.
2766 (TYPE_UNQUALIFIED): New macro.
2767 (TYPE_QUAL_CONST): Likewise.
2768 (TYPE_QUAL_VOLATILE): Likewise.
2769 (TYPE_QUAL_RESTRICT): Likewise.
2770 (code_for_qualifier): New function.
2771 (qualifier_string): Likewise.
2772 (demangle_qualifier): Likewise.
2773 (internal_cplus_demangle): Use them.
2774 (demangle_signature): Likewise.
2775 (demangle_template_value_parm): Likewise.
2776 (do_type): Likewise.
2777 (demangle_fund_type)): Likewise.
224301c1 2778
b056ad1c
KG
2779Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2780
2781 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2782 to match prototype.
2783
ed87f9c8
MM
27841998-10-21 Mark Mitchell <mark@markmitchell.com>
2785
2786 * splay-tree.c: New file.
2787 * Makefile.in (CFILES): Add it.
2788 (REQUIRED_OFILES): Likewise.
2789 (splay-tree.o): Add dependencies.
2790
e0c13971
AS
2791Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2792
2793 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2794 range of 'K' index.
2795
91e0f659
KG
2796Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2797
2798 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2799
2800 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2801 `unsigned char'.
2802 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2803 comparing against one.
2804 (cplus_mangle_opname): Likewise.
2805 (demangle_integral_value): Cast argument of ctype macro to
2806 `unsigned char'.
2807 (demangle_template_value_parm): Likewise.
2808 (demangle_template): Initialize variable `bindex'. Cast the
2809 result of `strlen' to (int) when comparing against one. Remove
2810 unused variable `start_of_value_parm'.
2811 (demangle_class_name): Cast the result of `strlen' to (int) when
2812 comparing against one.
2813 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2814 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2815 when comparing against one.
2816 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2817 (get_count): Likewise.
2818 (do_type): Likewise. Cast the result of `strlen' to (int) when
2819 comparing against one.
2820 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2821 (demangle_function_name): Cast the result of `strlen' to (int)
2822 when comparing against one.
2823
2824 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2825 comparing against one.
2826
73aeb2ff
JL
2827Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2828
5194cf08
ZW
2829 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2830 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2831 * config.in, configure: Rebuilt.
ae76f1be 2832
73aeb2ff
JL
2833 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2834 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2835 * config.in, configure: Rebuilt.
2836
dd8f3ed5
GN
2837Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2838
5194cf08 2839 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2840
f77d8413
MT
2841Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2842
2843 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2844
ca6b370d
JL
2845Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2846
2847 * Merge egcs & devo libiberty.
2848
ab4856b1
ML
2849