]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
fstream.tcc (pbackfail): Make a rarely taken 'if' branch less obscure.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
29ad6d3f
KC
12003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
2
3 * config.table: Accept i[345867]86 variant.
4
49a19cfd
JB
52003-05-15 Jim Blandy <jimb@redhat.com>
6
7 * hex.c (_hex_value): Make this unsigned.
8 (hex_value): Update documentation for new return type. hex_value
9 now expands to an unsigned int expression, to avoid unexpected
10 sign extension when we store it in a bfd_vma, which is larger than
11 int on some platforms.
12 * functions.texi: Regenerated.
13
d5d4eae2
JZ
142003-05-07 Josef Zlomek <zlomekj@suse.cz>
15
16 * splay-tree.c (splay_tree_predecessor): Fix comment.
17 (splay_tree_successor): Fix comment.
18
5cc5a0d0
JM
192003-05-07 Jason Merrill <jason@redhat.com>
20
9d70d418 21 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
22 * configure.in: Add AC_C_BIGENDIAN_CROSS.
23 * aclocal.m4: Include accross.m4.
24 * configure, config.in: Regenerate.
25
05c30f22
KG
262003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27
28 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
29 * configure: Regenerate.
30
41fe9404
CW
312003-05-03 Carlo Wood <carlo@alinoe.com>
32
33 * cp-demangle.c: Fix typo in "char_traints" string-literal.
34
52dd3224
KG
352003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36
37 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
38 (main): Test that we don't write too much data.
39
bd3fbc6b
KG
402003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41
42 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
43 vsnprintf.
44 * snprintf.c, vsnprintf.c: New files.
45 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
46 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
47 Regenerate dependencies.
48
49 * functions.texi, configure, config.in: Regenerated.
50
029bcc09
KG
512003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
52
53 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
54 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
55 and stpncpy.
56 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
57 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
58 Regenerate dependencies.
59
60 * functions.texi, configure, config.in: Regenerated.
61
c9ac9147
KG
622003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
63
64 * argv.c: Fix comments.
65 * calloc.c: Don't unnecessarily include "libiberty.h".
66 (bzero): Add prototype.
67 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
68 * getcwd.c (getcwd): Use standard definition to avoid conflicts
69 with system headers.
70 * hashtab.c (htab_traverse): Delete unused variables.
71 * rename.c: Include "ansidecl.h".
72 (rename): Use standard definition to avoid conflicts with system
73 headers.
74 * strsignal.c: Rely on ANSI_PROTOTYPES.
75 * strstr.c: Check GNUC >= 2, not GNUC == 2.
76 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
77 * vprintf.c: Include "ansidecl.h" earlier, rely on
78 ANSI_PROTOTYPES.
79 * vsprintf.c: Include "ansidecl.h" earlier, rely on
80 ANSI_PROTOTYPES and possibly include <stdarg.h>.
81
82 * Makefile.in: Regenerate dependencies.
83
98475c57
DD
842003-04-15 DJ Delorie <dj@redhat.com>
85
86 * maint-tool (deps): Scan for headers in $srcdir also.
87
55adc7bd
KG
882003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
89
90 PR target/10338
91 PR bootstrap/10198
92 PR bootstrap/10140
93 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
94 __mempcpy.
95 * regex.c (regerror): Likewise.
96
0ae0f1b0
RS
972003-04-14 Roger Sayle <roger@eyesopen.com>
98
99 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
100 * memchr.c: Likewise.
101 * strcasecmp.c: Likewise.
102 * strncasecmp.c: Likewise.
103 * strncmp.c: Likewise.
104 * xatexit.c: Likewise.
105 * xmalloc.c: Likewise.
106
107 * copysign.c: Use traditional function declaration instead of DEFUN.
108 * sigsetmask.c: Likewise.
109
110 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
111 * memset.c: Likewise.
112
113 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
114 * memmove.c: Likewise.
115
88702c45
RS
1162003-04-14 Roger Sayle <roger@eyesopen.com>
117
118 * strdup.c (strdup): Tweak implementation to use memcpy.
119
39e8d049
KG
1202003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
121
122 * configure.in (HAVE_UINTPTR_T): Always define.
123 * configure: Regenerated.
124
9f2e0608
AO
1252003-03-23 Alexandre Oliva <aoliva@redhat.com>
126
127 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
128 instead of $$CC alone.
129 (install_to_tooldir): Use it.
130
dbccdc42
JH
1312003-17-03 Jan Hubicka <jh@suse.cz>
132
133 * hashtab.c (htab_traverse_noresize): Break out from ...
134 * hashtab.c (htab_traverse): ... here.
135
0a8e3de3
JH
1362003-12-03 Jan Hubicka <jh@suse.cz>
137
cd22e4af
JH
138 * hashtab.c (htab_expand): Fix warning.
139
0a8e3de3
JH
140 * hashtab.c (htab_expand): Compute the size of hashtable based
141 on the number of elements actually used.
142 (htab_traverse): Call htab_expand when table is too empty.
143
8fe85775
CW
1442003-03-11 Carlo Wood <carlo@gnu.org>
145
146 * cplus-dem.c (demangle_integral_value): Correction to reflect
147 patch of 2002-01-10 in order to also make negative multi-digits
148 without leading underscore work.
149
3bf27822
MM
1502003-03-03 Mark Mitchell <mark@codesourcery.com>
151
152 * cplus-dem.c: Add license exception to copyright notice.
153
434fa0b8
KG
1542003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
155
156 * physmem.c: Formatting changes from upstream.
157
ed935c35
DS
1582003-02-24 Danny Smith <dannysmith@users.source.forge.net>
159
160 * physmem.c (physmem_total): Add _WIN32 support.
161 (physmem_available): Likewise.
162
7f9fc006
RO
1632003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
164
165 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
166 GSI_PHYSMEM.
167 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
168
d47f75c4
KG
1692003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
170
171 * configure.in: Check for sys/systemcfg.h and
172 _system_configuration.
173 * physmem.c: Add support for AIX. Tweek formatting as per
174 upstream coreutils beta.
175
170230b7
KG
1762003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
177 Richard Earnshaw <rearnsha@arm.com>
178 Geoffrey Keating <geoffk@apple.com>
179
180 * configure.in: Check for sys/sysctl.h and sysctl.
181 * physmem.c: Add support for *bsd and darwin.
182 * Makefile.in: Generate depedency for physmem.o.
183
4a06f7f2
RO
1842003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
185
186 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
187 Tru64 UNIX.
188 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
189 Tru64 UNIX.
190
191 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
192 machine/hal_sysinfo.h, sys/table.h.
193 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
194 * configure, config.in: Regenerate.
195
64c7e556
KG
1962003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
197
198 * configure.in: Check for sys/sysmp.h and sysmp.
199 * physmem.c: Pull upstream copy, add support for irix6.
200
201 * config.in, configure: Regenerated.
202
e9019af6
KG
2032003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
204
205 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
206 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
207 pstat_getdynamic.
208
a354191e
KG
2092003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
210
211 * Makefile.in (CFILES): Add physmem.c.
212 (REQUIRED_OFILES): Add physmem.o.
213 * configure.in: Check for sys/pstat.h.
214 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
215 * physmem.c: New file, copied from textutils.
216
217 * config.in, configure: Regenerated.
218
4876b2b4
DJ
2192003-02-20 Daniel Jacobowitz <drow@mvista.com>
220
221 * Makefile.in (CFILES): Add lrealpath.c.
222 (REQUIRED_OFILES): Add lrealpath.o.
223 (lrealpath.o): Add rule.
224 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
225 * configure.in: Add realpath and canonicalize_file_name to
226 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
227 for canonicalize_file_name.
228 * lrealpath.c: New file.
229 * make-relative-prefix.c: Update documentation.
230 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
231 * config.in: Regenerated.
232 * configure: Regenerated.
233 * functions.texi: Regenerated.
234
e182f0a3 2352003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
236
237 * cplus_dem.c: Fix typo: intializes -> initializes.
238
3343fdd2
AO
2392003-02-20 Alexandre Oliva <aoliva@redhat.com>
240
241 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
242 config.status.
243 * configure: Rebuilt.
244
902cf50c
DJ
2452003-02-13 Daniel Jacobowitz <drow@mvista.com>
246
247 Fix PR c++/7612.
248 * cplus-dem.c (demangle_signature): Call string_delete.
249 Remove extra string_init.
250 (demangle_arm_hp_template): Call string_delete instead of
251 string_clear. Add missing string_delete call.
252 (demangle_qualified): Add missing string_delete call.
253 (do_type): Remove unused variable btype. Add missing string_delete
254 call. Call string_delete instead of string_clear.
255 (demangle_fund_type): Move variable btype inside of the switch
256 statement. Add missing string_delete call.
257 (do_arg): Call string_delete instead of string_clear. Remove extra
258 string_init.
259 (demangle_nested_args): Free work->previous_argument.
260
7ac27e08
KG
2612003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
262
263 * acconfig.h: New file. Add uintptr_t.
264 * config.in: Regenerated.
265
b3a8389d
JM
2662003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
267
268 * libiberty.texi: Update to GFDL 1.2.
269
d8c22ce7
CC
2702003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
271
272 * Makefile.in (libiberty_topdir): New subst.
273 (mkinstalldirs): Redefine in terms of the above.
274 * configure.in: AC_SUBST it.
275 * configure: Regenerate.
276
4ce1921a
CC
2772003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
278
279 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
280 (info-subdir, install-info-subdir, clean-info-subdir)
281 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
282 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
283 Pass $(FLAGS_TO_PASS).
284
93239fdb
AO
2852003-01-27 Alexandre Oliva <aoliva@redhat.com>
286
287 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
288 /`$$CC -print-multi-os-directory`.
289
74828682
DJ
2902003-01-26 Daniel Jacobowitz <drow@mvista.com>
291
292 * hashtab.c (htab_create_alloc_ex): New function.
293 (hatab_set_functions_ex): New function.
294 (htab_delete, htab_expand): Support alternate allocation functions.
295
ece0e59f
CF
2962003-01-24 Christopher Faylor <cgf@redhat.com>
297
298 * configure.in: Remove special pex-cygwin consideration.
299 * configure: Regenerate.
300 * pex-cygwin.c: Remove.
301 * Makefile.in: Remove pex-cygwin.[co] lines.
302
55d0e5e0
ZW
3032003-01-24 Zack Weinberg <zack@codesourcery.com>
304
305 * Makefile.in (CFILES): Add pex-*.c.
306 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
307 (CONFIGURED_OFILES): Add pex-*.o.
308 (TEXIFILES): Add pexecute.txh.
309 (pexecute.o): Delete rule.
310 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
311 pex-unix.o, pex-win32.o): New rules.
312 * configure.in: Change AC_INIT argument to xmalloc.c.
313 Compute appropriate pexecute implementation and substitute it
314 as @pexecute@.
315
316 * pexecute.c: Split up into...
317 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
318 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
319 new files.
320
321 * functions.texi: Regenerate.
322 * configure: Regenerate.
323
120cdf68
JZ
3242003-01-20 Josef Zlomek <zlomekj@suse.cz>
325
326 * hashtab.c (htab_expand): Fix allocation of new entries.
327
90e5b39f
CC
3282003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
329
330 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
331
d7082cd7
CC
332 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
333 mkinstalldirs command.
334
eaed9290
DS
3352002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
336
337 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
338 Define for hosts with HOST_EXECUTABLE_SUFFIX.
339
ef4e4181
NC
3402002-11-24 Nick Clifton <nickc@redhat.com>
341
342 * make-relative-prefix.c (make_relative_prefix): Ensure return
343 string is empty before using strcat to construct it.
344
42766f8d
DJ
3452002-11-22 Daniel Jacobowitz <drow@mvista.com>
346
347 * Makefile.in: Add make-relative-prefix.c.
348 * make-relative-prefix.c: New file.
349 * functions.texi: Rebuilt.
350
783080ab
JJ
3512002-11-16 Jakub Jelinek <jakub@redhat.com>
352
353 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
354 used with arguments in traditional C' warnings.
355
7da64d7a
JJ
3562002-10-16 Jakub Jelinek <jakub@redhat.com>
357
358 * config.table: Use mh-s390pic for s390x too.
359
de78f58b
AJ
3602002-10-06 Andreas Jaeger <aj@suse.de>
361
362 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
363 variable and of strict-aliasing warning.
364 (grow_vect): Use char as first parameter.
365
6c5d742e
KG
3662002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
367
368 * Makefile.in (all): Fix multilib parallel build.
369
f08b7eee
JDA
3702002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
371
372 * cp-demangle.c (demangling_new): Cast 0 to enum.
373 (demangle_char): Cast return of strdup to char *.
374 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
375 (is_gnu_v3_mangled_dtor): Likewise.
376 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
377 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
378 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
379 * md5.c (md5_process_bytes): Cast results back to const void *.
380 (md5_process_block): Add cast to const md5_uint32 *.
381 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
382 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
383 unsigned short.
384 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
385 to void *.
386 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
387
8d87f295
NC
3882002-09-19 Nick Clifton <nickc@redhat.com>
389
390 * README: Update email addresses for bugs and patches.
391
6eedb9ca
MS
3922002-09-10 Mike Stump <mrs@apple.com>
393
394 * splay-tree.c (splay_tree_successor): Fix comments.
395
3fd9d606
ZW
3962002-09-11 Zack Weinberg <zack@codesourcery.com>
397
b2196e8f 398 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
399 * testsuite/Makefile.in: Adjust for test-demangle.
400 * testsuite/regress-demangle: Deleted.
401 * testsuite/test-demangle.c: New file.
402 * testsuite/demangle-expected: Change \$ to $ throughout, now that
403 this file is not being read by a shell script.
404
70c4e67a
RS
4052002-09-05 Roger Sayle <roger@eyesopen.com>
406
407 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
408
65b91091
DD
4092002-08-07 DJ Delorie <dj@redhat.com>
410
411 * regex.c (re_error_msgid): Just use a simple array of strings.
412 (re_compile_pattern): Compensate.
413 (re_comp): Likewise.
414 (re_comp): Likewise.
415 (regerror): Likewise.
416
437974a9
NB
4172002-07-29 Neil Booth <neil@daikokuya.co.uk>
418
419 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 420
28a34ec1
JM
4212002-07-10 Jason Merrill <jason@redhat.com>
422
423 * cp-demangle.c (demangle_identifier): Support extended Unicode
424 characters.
425
84326592
KG
4262002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
427
428 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 429 !defined IN_GLIBCPP_V3.
84326592 430
5d69ba1f
MM
4312002-07-01 Mark Mitchell <mark@codesourcery.com>
432
433 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
434 Set it for the "st" operator.
435 (demangle_expression): Handle expressions with types as arguments.
436
7fda878c
DR
4372002-06-30 Douglas Rupp <rupp@gnat.com>
438
439 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
440 * Makefile.in (OUTPUT_OPTION): Use.
441
112bae77
PB
4422002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
443
444 * Makefile.in (install_to_libdir): Add $(DESTDIR).
445 (install_to_tooldir): Likewise.
446
53309d5c
DR
4472002-06-17 Douglas Rupp <rupp@gnat.com>
448
449 * lbasename.c: Add 2002 to copyright.
450 (IS_DIR_SEPARATOR): Remove VMS junk.
451
045b3a49
GK
4522002-06-05 Geoffrey Keating <geoffk@redhat.com>
453
454 * hashtab.c (htab_create): New stub function for backward
455 compatibility.
456 (htab_try_create): Likewise.
457
e2500fed
GK
4582002-06-03 Geoffrey Keating <geoffk@redhat.com>
459
460 * hashtab.c (htab_create): Delete.
461 (htab_try_create): Delete.
462 (htab_create_alloc): New.
463 (htab_delete): Support user-specified memory allocation.
464 (htab_expand): Likewise.
465
9f3dbd92
RL
4662002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
467
468 * configure.in: Fix typo in the code checking for sys_errlist.
469 * configure: Regenerated.
470
e4723404
AS
4712002-05-13 Andreas Schwab <schwab@suse.de>
472
473 * config.table: Use mh-x86pic also for x86-64.
474
6706f116
AO
4752002-05-08 Alexandre Oliva <aoliva@redhat.com>
476
477 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
478 script entry, and set LD to it when configuring multilibs.
479 * configure: Rebuilt.
480
deae2ed9
MM
4812002-05-07 Mark Mitchell <mark@codesourcery.com>
482
483 * configure.in (AC_TYPE_PID_T): Use it.
484 * configure: Regenerated.
485 * getruntime.c: Include <sys/types.h>.
486 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
487
4fc4e478
RH
4882002-04-09 Richard Henderson <rth@redhat.com>
489
490 * hashtab.c (higher_prime_number): Use 7 as minimum.
491 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
492 (htab_find_slot_with_hash): Likewise.
493
bd7e6f2d
PE
4942002-04-01 Phil Edwards <pme@gcc.gnu.org>
495
496 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
497 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
498 not compile if IN_GLIBCPP_V3 defined.
499 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
500
a8f55e51
BM
5012002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
502
de78f58b 503 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
504 if it is NULL.
505
96adcacb
DD
5062002-03-27 DJ Delorie <dj@redhat.com>
507
508 * hex.c: Add documentation.
509 (_hex_value): Provide non-ASCII empty table.
510 (hex_init): Initialize the non-ASCII table.
511 * functions.texi: Regenerate.
512
2b613c6a
MM
5132002-03-27 Mark Mitchell <mark@codesourcery.com>
514
515 * dyn-string.c: Add libgcc exception to copyright notice.
516
cd862df8
L
5172002-03-26 H.J. Lu (hjl@gnu.org)
518
519 * config.table: Support --with-build-subdir.
520 * configure.in: Likewise.
521 * configure: Rebuild.
522
ed300793
SG
5232002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
524
525 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
526 seen.
527
b3dd43df
MM
5282002-03-12 Mark Mitchell <mark@codesourcery.com>
529
530 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
531 notice.
532
50c74579
DR
5332002-03-11 Douglas B Rupp <rupp@gnat.com>
534
535 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
536
957978a4
JB
5372002-03-06 Jim Blandy <jimb@redhat.com>
538
539 * splay-tree.c (splay_tree_xmalloc_allocate,
540 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
541 prototyped definitions. Mark `data' arguments as unused.
542
ccc49bed
AC
5432002-03-06 Andrew Cagney <ac131313@redhat.com>
544
545 * floatformat.c (floatformat_arm_ext_big): Delete definition.
546
48d7db63
PE
5472002-03-04 Phil Edwards <pme@gcc.gnu.org>
548
549 * configure.in: Add --enable-install-libiberty option.
550 * Makefile.in (INSTALLED_HEADERS): New variable.
551 (install_to_libdir): Possibly also copy headers.
552 * configure: Regenerated.
553
af18e951
NB
5542002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
555
556 * xmalloc.c (xmalloc_fail): Clarify error message further.
557
d8d7c3c3
NB
5582002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
559
560 * xmalloc.c (xmalloc_fail): Clarify error message.
561
00c2f96f
JB
5622002-02-22 Jim Blandy <jimb@redhat.com>
563
564 * splay-tree.c (splay_tree_xmalloc_allocate,
565 splay_tree_xmalloc_deallocate): New functions.
566 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
567 above functions and a dummy data pointer.
568 (splay_tree_new_with_allocator): New function.
569 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
570 splay_tree_remove): Use the splay tree's allocation and
571 deallocation functions.
572
b1c1a22f
SS
5732002-02-19 Scott Snyder <snyder@fnal.gov>
574
575 * testsuite/demangle-expected: Add test case for infinite loop in
576 demangler.
577 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
578 if do_type() doesn't make any progress --- prevents an infinite
579 loop.
580
336669e7
CW
5812002-02-18 Carlo Wood <carlo@gnu.org>
582
583 PR c++/5390
584 * cplus-dem.c (demangle_integral_value): Accept multi-digit
585 numbers that do not start with an underscore; This is needed
586 for integer template parameters. This doesn't break anything
587 because multi-digit numbers are never followed by a digit.
588 * testsuite/demangle-expected: Corrected all mangled test
589 cases with multi-digit template parameters: g++ 2.95.x does
590 not generate underscores around these parameters.
591
c13db5d1
JM
5922002-02-05 Jason Merrill <jason@redhat.com>
593
594 * cplus-dem.c (flags): Add DMGL_VERBOSE
595 (cplus_demangle_v3_p): Remove.
596 (demangle_it): Add DMGL_TYPES to passed flags.
597 * cp-demangle.c (cplus_demangle_v3_all): Remove.
598 (cplus_demangle_v3_type): Remove.
599 (cplus_demangle_v3): Add options parm.
600
d74697b8
L
6012002-02-02 H.J. Lu (hjl@gnu.org)
602
603 * cp-demangle.c (cp_demangle_type): Do not protect with
604 IN_LIBGCC2.
605 (cplus_demangle_v3_all): New.
606 (cplus_demangle_v3): Call cplus_demangle_v3_all.
607 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
608
609 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
610 Initialized to cplus_demangle_v3.
611 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
612 of cplus_demangle_v3.
613 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
614 command line symbol.
615
616 * testsuite/regress-demangle: Pass the mangled name at the
617 command line.
618
3a441e38
L
6192002-02-01 H.J. Lu <hjl@gnu.org>
620
621 * cp-demangle.c (cp_demangle_type): Call demangling_new with
622 DMGL_GNU_V3.
623
6d747e63
PE
6242002-01-31 Phil Edwards <pme@gcc.gnu.org>
625
626 * cp-demangle.c: Revert yesterday's change.
627
46af757b
AM
6282002-01-31 Adam Megacz <adam@xwt.org>
629
630 * gcc/libiberty/configure.in: Treat mingw the same as cywin
631 wrt HAVE_SYS_ERRLIST.
632
46ab74b1
PE
6332002-01-30 Phil Edwards <pme@gcc.gnu.org>
634
635 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
636 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
637 cp_demangle_type.
638 * testsuite/demangle-expected: New gnu-v3 test.
639
e64d0626
MV
6402002-01-22 Momchil Velikov <velco@fadata.bg>
641
642 * configure.in (variable detection): Use arrays of unspecified
643 size instead of plain integers.
644
9ce3f7e5
DD
6452002-01-18 DJ Delorie <dj@redhat.com>
646
647 * Makefile.in (TESTLIB): New. This library is for future
648 testsuites.
649 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
650 break down by letter.
651 (REQUIRED_OFILES): List long-to-compile files first.
652 (maint-deps): New, target for updating dependencies.
653 (dependencies): Update.
654 * maint-tool: Add dependency-generating option.
655 * configure.in: Check for _doprnt even if we're not providing it.
656 * configure: Regenerate.
657
658 * _doprnt.c: Modifications to allow compiling on any platform.
659 * copysign.c: Likewise.
660 * putenv.c: Likewise.
661 * setenv.c: Likewise.
662 * vsprintf.c: Likewise.
663
0e83ceb1
DR
6642002-01-15 Douglas B Rupp <rupp@gnat.com>
665
666 * mkstemps.c (mkstemps): On VMS, open temp file with option
667 that causes it to be deleted when closed.
668
adddf5bf
KG
6692002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
670
5e65297b
KG
671 * cp-demangle.c (long_options): Const-ify.
672 * cplus-dem.c (long_options): Likewise.
673
adddf5bf
KG
674 * cplus-dem.c (mystrstr): Delete. All callers changed to use
675 strstr instead.
676
a4219437
IR
6772001-12-31 Ira Ruben <ira@apple.com>
678
679 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
680 * configure: Regenerated.
af328d8d
DR
681
6822001-12-24 Douglas B. Rupp <rupp@gnat.com>
683
684 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
685 * configure: Regenerated.
a4219437 686
63de15a4
CR
6872001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
688
689 PR other/2719
690 * cplus-dem.c (consume_count): Treat negative count as an error.
691 * testsuite/demangle-expected: Added testcase.
692
ee262b6f
DR
693Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
694
695 * configure.in: Hardcode that vfork works on VMS host.
696 * configure: Regenerated.
697
d06ba3c7
RH
6982001-12-06 Richard Henderson <rth@redhat.com>
699
700 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
701 (cplus_demangle): Support no_demangling.
702
e490616e
ZW
7032001-11-27 Zack Weinberg <zack@codesourcery.com>
704
705 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
706 in libiberty context. Fix typo in leading comment.
707 * configure.in: Fix various AC_DEFINEs so autoheader works.
708 If any of vprintf, vsprintf, vfprintf is missing from libc,
709 then AC_REPLACE_FUNCS(_doprnt).
710
97e620cf 7112001-11-26 DJ Delorie <dj@redhat.com>
e490616e 712 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
713
714 * Makefile.in (stamp-h): Depend on Makefile for proper
715 serialization.
716 (*-subdir): Depend on config.h for proper serialization.
717
c3bb7df0
DD
7182001-11-26 DJ Delorie <dj@redhat.com>
719
720 * configure.in: Check for alloca.h (for regex.c and putenv.c).
721 * configure: Regenerate.
722 * config.h: Add HAVE_ALLOCA_H.
723
23850d35
KG
7242001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
725
2c47b56b
KG
726 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
727 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
728 is available.
23850d35 729
7ddfb651
JL
730Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
731
d3982b71
JL
732 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
733 * configure.in (HAVE_UINTPTR_T): Test for system defining
734 uintptr_t and define HAVE_UINTPTR_T appropriately.
735 * regex.c (uintptr_t): Do not provide a definition if the
736 system provided one.
737
7ddfb651
JL
738 * regex.c (PREFIX): Provide an alternate definition for
739 non-ANSI/ISO compilers.
740 (ARG_PREFIX): Likewise.
741
2e683037
JM
7422001-11-12 Jim Meyering <meyering@lucent.com>
743
744 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
745 this code would end up calling gettext even in packages built
746 with --disable-nls.
747 * getopt.c (_): Likewise.
748 * regex.c (_): Likewise.
749
f749bd83
AM
7502001-11-03 Alan Modra <amodra@bigpond.net.au>
751
752 * configure.in: Cope with missing makeinfo.
55a10d7c 753 * configure: Regenerate.
f749bd83 754
26ad2982
KG
7552001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
756
e5969ba6
KG
757 * hex.c (hex_init): Provide empty stub.
758
26ad2982
KG
759 * hex.c (hex_init): Delete.
760 (_hex_value): Const-ify and initialize at compile-time.
761
afb649d5
L
7622001-10-19 H.J. Lu <hjl@gnu.org>
763
764 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
765 necessary.
766
5bed56d9
DD
7672001-10-17 DJ Delorie <dj@redhat.com>
768
769 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
770 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 771 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
772 Improve manual formatting.
773 * functions.texi: Regenerate.
774
aac04c15
DD
7752001-10-15 DJ Delorie <dj@redhat.com>
776
777 * Makefile.in (TEXIFILES): Add fnmatch.txh.
778 (maint-undoc): New.
779 maint-tool: Add "undoc" tool.
780 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
781 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
782 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
783 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
784 documentation.
785 * fnmatch.txh: New.
786 * functions.texi: Regenerate.
fae8182a 787
0e4e9e8f
JM
7882001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
789
790 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
791 * strtod.c: Use "ISO C" instead of "ANSI C".
792 * functions.texi: Regenerate.
793
7f8fa05d
JM
7942001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
795
796 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
797 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
798 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
799 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
800 spelling. Give names to function arguments in documentation. Use
801 (void) prototypes in documentation.
802 * functions.texi: Regenerate.
803
0be6abca
KG
8042001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
805
806 * argv.c (buildargv, tests, main): Const-ify.
807 * cp-demangle.c (operator_code): Likewise.
808 * cplus-dem.c (optable, libiberty_demanglers,
809 cplus_demangle_set_style, cplus_demangle_name_to_style,
810 print_demangler_list): Likewise.
811 * hashtab.c (higher_prime_number): Likewise.
812 * strcasecmp.c (charmap): Likewise.
813 * strerror.c (error_info, strerror, main): Likewise.
814 * strncasecmp.c (charmap): Likewise.
815 * strsignal.c (signal_info): Likewise.
816
0e30ffc5
DD
8172001-09-29 DJ Delorie <dj@redhat.com>
818
819 * configure: Regenerate.
820
576fb787
KG
8212001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
822
823 * concat.c: Include stdlib.h.
824
e922f978
EZ
8252001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
826
827 * libiberty.texi: (Top level): Add syncodeindex pg. Add
828 @dircategory and @direntry directives. Add @finalout.
829 (many nodes): Lose the next,prev,up pointers on the @nide line.
830 (Using, Supplemental Functions, Replacement Functions): Fix
831 markup.
832 (Functions): Move around, to allow makeinfo to build the manual
833 without next,prev,up pointers in thye node lines.
834 (Licenses): Fix typos.
835
836 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
837 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
838 * functions.texi: Regenerate.
839
840 * copying-lib.texi: Lose the next,prev,up pointers on the @node
841 line.
842
ae9092da
DD
8432001-09-27 DJ Delorie <dj@redhat.com>
844
845 * configure.in: Don't use in-tree texinfo, because libiberty must
846 be built before it. Check for makeinfo version 4 or higher.
847 * functions.texi: Regenerate.
fae8182a 848
aaa5f039
DD
8492001-09-20 DJ Delorie <dj@redhat.com>
850 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 851
aaa5f039
DD
852 * configure.in (MAKEINFO, PERL): Detect these.
853 (--enable-maintainer-mode): Add.
854 * configure: Regenerate.
855 * Makefile.in (MAKEINFO, PERL): Define.
856 (libiberty.info, libiberty.dvi, libiberty.html): New.
857 (CFILES): Add bsearch.c.
858 (CONFIGURED_OFILES): New, list of objects configure might add.
859 (maint-missing, maint-buildall): New, for maintainers only.
860 (clean, mostlyclean): Add info/dvi/html files.
861 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
862 * gather-docs: New, for maintainers.
863 * maint-tool: New, for maintainers.
864 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
865 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
866 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
867 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
868 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
869 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
870 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
871 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
872 documentation.
fae8182a 873
c1766881
KG
8742001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
875
876 * concat.c (reconcat): Fix for traditional C.
877
ad43d46f
KG
8782001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
879
880 * concat.c (reconcat): New function.
881
c1d49704
KG
8822001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
883
c793eea7
KG
884 * concat.c (vconcat_length, vconcat_copy, concat_length,
885 concat_copy, concat_copy2): New functions.
886 (concat): Use vconcat_length/vconcat_copy.
887
c1d49704
KG
888 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
889 Define.
890
7a98d9b2
KG
8912001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
892
893 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
894 VA_FIXEDARG & VA_CLOSE.
fae8182a 895
7a98d9b2
KG
896 * vasprintf.c: Check HAVE_STRING_H when including string.h.
897 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
898 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
899
e2dff3f2
KG
9002001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
901
902 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
903
d0708dc1
UD
9042001-08-23 Ulrich Drepper <drepper@redhat.com>
905
906 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
907
9082001-08-23 Ulrich Drepper <drepper@redhat.com>
909
910 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
911 instead of mbrtowc.
912 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
913 wcslen, and __wcscoll instead of wcscoll.
914
ffb9435b
MK
9152001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
916
de78f58b
AJ
917 * fibheap.c (fibheap_init, fibnode_init): Remove.
918 (fibheap_new, fibnode_new): Use xcalloc to allocate and
919 initialize memory.
920 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 921
f379eac3
RH
9222001-08-21 Richard Henderson <rth@redhat.com>
923
924 * Makefile.in (fibheap.o): Depend on config.h.
925 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
926 functions for inlining.
927
b1c45ae4
CF
928Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
929
930 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
931 hosting on cygwin.
932 * configure: Regenerate.
933
0310e5ac
AC
9342001-08-20 Andrew Cagney <ac131313@redhat.com>
935
936 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
937 HARRIS_FLOAT_FORMAT.
938 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
939 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
940 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
941 (floatformat_m88110_harris_ext): New float formats.
942
8c23e0a4
DB
9432001-08-20 Daniel Berlin <dan@cgsoftware.com>
944
945 * fibheap.c: New file. Fibonacci heap.
946
947 * Makefile.in (CFILES): Add fibheap.c.
948 (REQUIRED_OFILES): Add fibheap.o.
949 (fibheap.o): Add dependencies for fibheap.o.
950
91625004
CF
9512001-08-17 Christopher Faylor <cgf@cygnus.com>
952
953 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
954 * configure: Regenerate.
955
9e0ba685
RH
9562001-08-16 Richard Henderson <rth@redhat.com>
957
958 * hashtab.c (htab_hash_string): New.
959
d80dedbe
AC
9602001-08-13 Andrew Cagney <ac131313@redhat.com>
961
962 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
963 name.
964
ccea0d85
IH
9652001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
966
967 * regex.c (wcs_regex_compile): Use appropriate string
968 to compare with collating element.
969 Fix the padding for the alignment.
970
b0e9bc8c 9712001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
972
973 * lbasename.c (lbasename): Change function definition to return a
974 const char pointer.
975
056400f1
JM
9762001-08-07 Jason Merrill <jason_merrill@redhat.com>
977
978 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
979 for".
980
4e627c41
RH
9812001-08-03 Richard Henderson <rth@redhat.com>
982
983 * Makefile.in (concat.o): Depend on config.h.
984
b6a2f884
AJ
9852001-07-30 Andreas Jaeger <aj@suse.de>
986
987 * concat.c: Include "config.h".
988
c4b9cfe0
AJ
9892001-07-30 Andreas Jaeger <aj@suse.de>
990
991 * regex.c: Declare wcs functions only if compiling with
992 MBS_SUPPORT.
993 Don't use #elif for traditional C.
994
9952001-07-23 Ulrich Drepper <drepper@redhat.com>
996
997 * regex.c: Revamp memory allocation for WCHAR functions to
998 not use too much stack.
999
10002001-07-30 Andreas Jaeger <aj@suse.de>
1001
1002 * regex.c: Declare wcs functions only if compiling with
1003 MBS_SUPPORT.
1004 Don't use #elif for traditional C.
1005
2cf50fd3
DJ
10062001-07-25 Daniel Jacobowitz <drow@mvista.com>
1007
1008 * Makefile.in (regex.o): Add dependency on config.h.
1009
27ffc806
DD
10102001-07-18 Andreas Schwab <schwab@suse.de>
1011
1012 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1013 underscore character.
1014
10152001-07-18 Ulrich Drepper <drepper@redhat.com>
1016
1017 * regex.c: Limit string length printed in debug messages to 100
1018 chars.
1019
10202001-07-18 Andreas Jaeger <aj@suse.de>
1021
1022 * regex.c: Place under LGPL version 2.1.
1023
dd771632
JJ
10242001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1025
1026 * Makefile.in: Add support for regex code.
1027 * regex.c: New file.
1028
29650b2b
MK
10292001-07-05 Mark Klein <mklein@dis.com>
1030
1031 * Makefile.in: Add ffs.c dependency.
1032 * configure.in: Add ffs.c.
1033 * ffs.c: New file.
1034
c8b28221
RH
10352001-06-18 Richard Henderson <rth@redhat.com>
1036
1037 * concat.c: Include <sys/types.h>.
1038
473c2d0b
LR
10392001-06-11 Loren J. Rittle <ljrittle@acm.org>
1040
a4c03da2 1041 bootstrap/3106
473c2d0b
LR
1042 * strerror.c (sys_nerr): Hide the OS header version.
1043 * strsignal.c (sys_nsig): Likewise.
1044
0bdcca68
RH
10452001-06-10 Richard Henderson <rth@redhat.com>
1046
1047 * concat.c: Include string.h. Fix int vs size_t usage.
1048 Simplify the iteration loops. Use memcpy.
1049
6de133d3
MK
10502001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1051
1052 * partition.c: Fix misspelling of `implementation'.
1053
8a153288
TS
10542001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1055
1056 * md5.c (md5_init_ctx): Declare constants as unsigned.
1057 (md5_process_block): Likewise.
1058
641b2721
ZW
10592001-05-07 Zack Weinberg <zackw@stanford.edu>
1060
1061 * cp-demangle.c (demangle_v3_with_details,
1062 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1063 function definition.
1064 * ternary.c: Use K+R style function definitions. Use PTR, not
1065 void *. Make arguments constant where possible.
1066
5cdba4ff
MM
10672001-05-07 Mark Mitchell <mark@codesourcery.com>
1068
1069 * splay-tree.h (splay_tree_max): New function.
1070 (splay_tree_min): Likewise.
1071
9dab060e
DB
10722001-04-15 Daniel Berlin <dan@cgsoftware.com>
1073
1074 * ternary.c: New file - Ternary search tree implementation.
1075
1076 * Makefile.in: Add ternary.o, and ternary.c dependencies.
1077
d02af173
ZW
10782001-04-03 Zack Weinberg <zackw@stanford.edu>
1079
1080 * make-temp-file.c (try): Inline.
1081
94b68558
RH
10822001-02-28 Richard Henderson <rth@redhat.com>
1083
1084 * Makefile.in (make-temp-file.o): Depend on config.h.
1085
27f66c0b
KG
10862001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1087
1088 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1089
f1a0345c
JJ
10902001-03-23 Jakub Jelinek <jakub@redhat.com>
1091
1092 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1093 `_' not followed by a digit is invalid.
1094
a519fba6
JB
10952001-03-22 Jim Blandy <jimb@redhat.com>
1096
1097 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1098 instead of free, to free the contents as well as the string
1099 structure.
1100
49ee944b
ZW
11012001-03-21 Zack Weinberg <zackw@stanford.edu>
1102
1103 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1104 Don't default P_tmpdir to anything. Try /var/tmp before
1105 /usr/tmp.
1106
33437dc7
ZW
11072001-03-20 Zack Weinberg <zackw@stanford.edu>
1108
1109 * choose-temp.c: Split off make_temp_file, and the code
1110 duplicated between it and choose_temp_base, into...
1111 * make-temp-file.c: ... here; new file.
1112
1113 * Makefile.in (CFILES): Add make-temp-file.c.
1114 (REQUIRED_OFILES): Add make-temp-file.o.
1115
7dce2eff
JB
11162001-03-20 Jim Blandy <jimb@redhat.com>
1117
1118 * cp-demangle.c (struct demangling_def): New fields:
1119 is_constructor and is_destructor.
1120 (demangling_new): Initialize them.
1121 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1122 or destructor.
1123 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1124 is_gnu_v3_mangled_dtor): New functions.
1125
e03a61f1
JM
11262001-03-20 Jason Merrill <jason@redhat.com>
1127
1128 * cplus-dem.c (main): Skip initial $.
1129
8860ddab
MM
11302001-03-15 Michael Meissner <meissner@redhat.com>
1131
1132 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1133 might be a signed integer under pre-ISO C systems.
1134
2b757d51
NB
11352001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1136 John David Anglin <dave@hiauly1.hia.nrc.ca>
1137
1138 * libiberty/lbasename.c: New file.
1139 * libiberty/Makefile.in: Update for lbasename.
1140
1f50aafb
ZW
11412001-03-06 Zack Weinberg <zackw@stanford.edu>
1142
1143 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1144 * configure.in: Replace all alloca logic with a simple use of
1145 the above new macro.
1146 * config.table: Kill *-*-beos* entry.
1147 * config/mh-beos: Delete.
1148 * configure, config.in: Regenerate.
1149
1150 * Makefile.in (ALLOCA, HFILES): Kill.
1151 (REQUIRED_OFILES): Add alloca.o.
1152 (alloca.o): Depend on libiberty.h.
1153 (argv.o): Don't depend on alloca-conf.h.
1154 * alloca-conf.h: Delete.
1155 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1156 blocks. Provide the C alloca unconditionally. Use PTR where
1157 appropriate. Make i00afunc static.
1158 * argv.c: Don't include alloca-conf.h.
1159
d9fd5aae
JDA
11602001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1161
1162 * cplus-dem.c (main): Cast enum style to int.
1163
4031ed65
LR
11642001-02-16 Loren J. Rittle <ljrittle@acm.org>
1165
1166 * cplus-dem.c (main): Initialize style.
1167
2ca46e8a
PE
11682001-02-02 Phil Edwards <pme@sources.redhat.com>
1169
1170 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1171
3b60dd8e
BM
11722001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1173
1174 Add support for Java demangling under the v3 ABI:
1175 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1176 (struct demangling_def): Add `style' field.
1177 (demangling_new): New parameter `style'. Set it in demangling_t.
1178 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1179 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1180 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1181 (main): Call cp_demangle with extra parameter.
1182 (java_demangle_v3): New function.
1183 (java_builtin_type_names): New. Table of primitive type names used
1184 for Java demangling.
1185 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1186 Java output.
1f50aafb 1187 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
1188 demangling.
1189 (long_options): Remove obsolete `java' option.
1190 (main): Remove explicit handling of `java' option. Instead, pass style
1191 parameter in cplus_demangle flags as gdb does.
1192 * testsuite/demangle.expected: Add some Java test cases.
1193
584932e9
DD
11942000-12-29 DJ Delorie <dj@redhat.com>
1195
1196 * fnmatch.c: Make the note about the origins of this file more
1197 accurate, at least until we can sync with glibc.
1198 * getopt.c: Ditto.
1199 * getopt1.c: Ditto.
1200 * md5.c: Ditto.
1201 * obstack.c: Ditto.
1202
dac45916
MS
12032000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1204
1205 * bsearch.c: New file.
1206 * configure.in (funcs): Add bsearch.
1207 (AC_CHECK_FUNCS): Likewise.
1208 * configure, config.in: Regenerate.
1209
a8e4a997
MS
12102000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1211
1212 * safe-ctype.c: #include "ansidecl.h".
1213 * strtod.c: Likewise.
1214
75444da7
MS
12152000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1216
1217 * strtoul.c: Include safe-ctype.h, not ctype.h.
1218
f6bbde28
ZW
12192000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1220
1221 * safe-ctype.c: New file.
1222 * Makefile.in (CFILES): Add safe-ctype.c.
1223 (REQUIRED_OFILES): Add safe-ctype.o.
1224
1225 * argv.c: Define ISBLANK and use it, not isspace.
1226 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1227 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1228 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1229 before calling TOLOWER(c)/TOUPPER(c).
1230
6c1ce62b 12312000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
1232
1233 * Makefile.in (distclean): When cleaning, remove testsuite.
1234
b5d1497d
JM
12352000-12-05 Jason Merrill <jason@redhat.com>
1236
1237 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1238 name before allocating the dyn_string.
1239
c6e13630
JM
12402000-12-04 Jason Merrill <jason@redhat.com>
1241
1242 * cp-demangle.c: s/new_abi/v3/.
1243 * cplus-dem.c: Likewise.
1244 (current_demangling_style): Now auto_demangling.
1245 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 1246 (main): Use standard symbol chars for auto_demangling.
c6e13630 1247
a4c9b97e
MM
12482000-11-26 Mark Mitchell <mark@codesourcery.com>
1249
1250 * hashtab.c (higher_prime_number): Use a table, rather than a
1251 seive, to find the next prime.
1252
3b3bd9a7
L
12532000-11-22 H.J. Lu <hjl@gnu.org>
1254
1255 * cplus-dem.c (main): Handle gnat_demangling.
1256
d1209685
ZW
12572000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1258
1259 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1260 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1261 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1262 argument form of AC_DEFINE in dummy definitions block. Use
1263 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1264 in dummy block. Preload cache variables instead of bypassing
1265 tests, where possible.
1266 * acconfig.h: Removed.
1267
1268 * xmalloc.c (xmalloc_failed): New function, does error
1269 reporting on failed allocation.
1270 (xmalloc, xcalloc, xrealloc): Use it.
1271
cf183ac2
HPN
12722000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1273
1274 * cplus-dem.c (cplus_demangle): Fix formatting.
1275 (grow_vect): Ditto.
1276 (ada_demangle): Ditto.
1277 (internal_cplus_demangle): Ditto.
1278 (mop_up): Ditto.
1279
12802000-11-21 H.J. Lu <hjl@gnu.org>
1281
1282 * cplus-dem.c (main): Handle java_demangling.
1283
8bcc782c
KG
12842000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1285
1286 * cplus-dem.c (grow_vect): Prototype.
1287 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1288
29120f44
HPN
12892000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1290
1291 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1292 parameter `option'.
1293
0437a5a8
KB
12942000-11-15 Kenneth Block <kenneth.block@compaq.com>
1295
9e038f71 1296 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
1297 be used in GCC.
1298
eab0c1ab 12992000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 1300
29120f44 1301 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
1302 list.
1303
d50d20ec
HPN
13042000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1305
1306 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
1307 xcalloc depending on htab->return_allocation_failure. Return zero
1308 if calloc fails.
d50d20ec
HPN
1309 (htab_create): Update comment to cover memory allocation.
1310 (htab_try_create): New.
1311 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 1312 Update comment to cover this.
d50d20ec 1313
35e9340f
HPN
13142000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1315
1316 * hashtab.c: Change void * to PTR where necessary.
1317 (htab_create, htab_expand): Correct formatting of comment before
1318 function.
1319
ea343d1a 13202000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
1321
1322 * cp-demangle.c (string_list_def): Add caret_position and comments.
1323 (result_caret_pos): New macro.
1324 (result_append_string): Rename to...
1325 (result_add_string): ... this, and insert at caret position.
d1209685 1326 Rename throughout.
0870bfd6
AS
1327 (result_append): Rename to...
1328 (result_add): ... this, and insert at caret position. Rename
d1209685 1329 throughout.
0870bfd6
AS
1330 (result_append_char): Rename to...
1331 (result_add_char): ... this, and insert at caret position. Rename
d1209685 1332 throughout.
0870bfd6
AS
1333 (result_append_space): Remove.
1334 (string_list_new): Initialize caret position.
1335 (result_add_separated_char): Use caret position.
1336 (result_get_caret): New funtion.
1337 (result_set_caret): Likewise.
1338 (result_shift_caret): Likewise.
1339 (result_previous_char_is_space): Likewise.
1340 (substitution_start): Use caret position.
1341 (substitution_add): Likewise.
1342 (demangling_new): Initialize caret position.
1343 (demangle_encoding): Use caret position.
d1209685 1344 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
1345 (demangle_type_ptr): Use switch statement. Handle pointers to
1346 arrays. Don't use result_append_space. Use caret position.
1347 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
1348 call to demangle_array_type.
1349 (demangle_array_type): Add parameter to handle pointers to arrays.
1350
f15b9af9
MM
13512000-10-01 Mark Mitchell <mark@codesourcery.com>
1352
1353 * splay-tree.c (splay_tree_insert): Fix formatting.
1354
8f17b5c5
MM
13552000-09-16 Mark Mitchell <mark@codesourcery.com>
1356
1357 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1358
4eaa189a
MS
13592000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1360
1361 * splay-tree.c: #include <stdio.h>.
1362
29791078
HPN
13632000-09-14 Hans-Peter Nilsson <hp@axis.com>
1364
1365 * testsuite/demangle-expected: Add two tests for anonymous
1366 namespaces.
1367 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1368
2c9f4db7
MM
13692000-09-10 Mark Mitchell <mark@codesourcery.com>
1370
1371 * splay-tree.c (splay_tree_predecessor): New function.
1372 (splay_tree_successor): Likewise.
1373
bb22da4b
HPN
13742000-09-10 Hans-Peter Nilsson <hp@axis.com>
1375
1376 * testsuite/demangle-expected: Add four tests for type_info
1377 mangling.
bb22da4b
HPN
1378 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1379 for a non-template non-qualified type_info function or node.
1380
759e8187
AS
13812000-09-08 Alex Samuel <samuel@codesourcery.com>
1382
1383 * cp-demangle.c: Fix copyright banner.
1384
2ecd81ef
MS
13852000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1386
1387 * md5.c: #include "ansidecl.h".
1388
d93998ec
AS
13892000-09-06 Alex Samuel <samuel@codesourcery.com>
1390
1391 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1392 (demangle_type): Handle substitution candidates correctly in the
1393 face of special substitutions.
1394
1056d228
AS
13952000-09-05 Alex Samuel <samuel@codesourcery.com>
1396
1397 * cp-demangle.c (demangle_encoding): Rename variable.
1398 (demangle_name): Rename parameter. Handle return type
1399 suppression.
1400 (demangle_nested_name): Rename parameter.
1401 (demangle_prefix): Likewise. Change return type suppression.
1402 (demangle_unqualified_name): Add parameter. Flag constructors and
1403 conversion operators.
1404 (demangle_special_name): Fix comment.
1405 (demangle_type): Rename variable.
1406 (demangle_bare_function_type): Check for missing return type and
d1209685 1407 parameter.
1056d228
AS
1408 (demangle_class_enum_type): Rename parameter.
1409 (demangle_discriminator): Fix misspelling in comment.
1410
2f31ed7e
DD
14112000-08-31 DJ Delorie <dj@redhat.com>
1412
1413 * configure.in (Cygwin): special case cygwin only when we're
1414 building cygwin, not when we're hosting cygwin.
1415
02bcb9c6
AS
14162000-09-04 Alex Samuel <samuel@codesourcery.com>
1417
1418 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1419 <expression>.
1420
aee749cf
AS
14212000-09-04 Alex Samuel <samuel@codesourcery.com>
1422
1423 * cp-demangle.c (demangle_type_ptr): Increment position past
1424 pointer and reference characters.
1425
92a16bbe
AS
14262000-09-04 Alex Samuel <samuel@codesourcery.com>
1427
1428 * cp-demangle.c (demangle_nv_offset): New function.
1429 (demangle_v_offset): Likewise.
1430 (demangle_call_offset): Likewise.
1431 (demangle_special_name): Update thunk demangling to comply with
1432 ABI changes.
d1209685 1433
31e0ab1f
AS
14342000-09-03 Alex Samuel <samuel@codesourcery.com>
1435
1436 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1437 (substitution_def): Remove template_parm_number.
1438 (NOT_TEMPLATE_PARM): Remove.
1439 (result_insert_string): New macro.
1440 (result_insert): Likewise.
1441 (result_insert_char): Likewise.
1442 (substitution_add): Remove last parameter. Don't store template
d1209685 1443 parm number.
31e0ab1f
AS
1444 (BFT_NO_RETURN_TYPE): Define as NULL.
1445 (demangle_encoding): Adjust call to demangle_bare_function_type.
1446 (demangle_name): Adjust substitution. Adjust call to
d1209685 1447 substitution_add.
31e0ab1f
AS
1448 (demangle_prefix): Adjust call to substitution_add.
1449 (demangle_identifier): Handle anonymous namespaces.
1450 (demangle_operator_name): Change demangling of vendor-extended
1451 operator to match ABI changes.
1452 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1453 substitutions here.
31e0ab1f
AS
1454 (demangle_type): Adjust calls to demangle_template_param,
1455 substitution_add, and demangle_type_ptr. Fix substitution of
1456 templated types.
1457 (demangle_function_type): Change parameter to a pointer.
1458 (demangle_bare_function_type): Likewise. Adjust insertion point.
1459 (demangle_template_param): Remove last parameter.
1460 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1461 demangle_template_param.
31e0ab1f
AS
1462 (is_mangled_char): Accept `$' and `.'.
1463 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1464 * dyn-string.c (dyn_string_insert_char): New function.
1465
ccbc3eb7
HPN
14662000-08-31 Hans-Peter Nilsson <hp@axis.com>
1467
1468 * testsuite/demangle-expected: Add nine tests for
1469 underscore-after-number followed by five tests for name-signature
1470 delimiter.
1471
53dce582
RH
14722000-08-28 Richard Henderson <rth@cygnus.com>
1473
1474 * Makefile.in (md5.o): Depend on config.h.
1475
881c6935
JM
14762000-08-28 Jason Merrill <jason@redhat.com>
1477
1478 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1479 (CFILES): Add md5.c.
1480 * md5.c: New file.
1481
a440fd19
AS
14822000-08-27 Alex Samuel <samuel@codesourcery.com>
1483
1484 * cp-demangle.c (demangle_name): Initialize template_p in local
1485 name case. Don't re-add substitutions as candidates.
1486 (demangle_nested_name): Use <unqualified-name>.
1487 (demangle_prefix): Likewise. Don't add template names as
1488 substitution candidates twice, or re-add a substitution or the
1489 last prefix component.
1490 (demangle_local_name): Adjust output format.
1491
d01ce591
AS
14922000-08-25 Alex Samuel <samuel@codesourcery.com>
1493
1494 * cp-demangle.c (result_add_separated_char): Change parameter to
1495 int.
1496 (substitution_add): Don't check for duplicates. Check if
1497 previously allocated size is zero.
1498 (demangle_name): Remove duplicate check for std substitution.
1499 Clear template flag appropriately.
1500 (demangle_prefix): Remove argument to demangle_substitution.
1501 Don't check that template flag is already set.
1502 (demangle_operator_name): Add pt operator.
1503 (demangle_type): Don't treat r as built-in type. Remove argument
1504 to demangle_substitution. Fix substitution candidate mechanics.
1505 Handle <template-template-parm>s. Improve comments.
d1209685 1506 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1507 (demangle_substitution): Remove parameter.
1508 (print_usage): Remove extra fprintf option.
1509
2f59c8eb
GM
15102000-08-24 Greg McGary <greg@mcgary.org>
1511
1512 * libiberty/random.c (end_ptr): Revert previous change.
1513
2f26c11d
GM
15142000-08-24 Greg McGary <greg@mcgary.org>
1515
1516 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1517 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1518 * libiberty/random.c (end_ptr): Likewise.
1519
e282c9c9
AS
15202000-08-23 Alex Samuel <samuel@codesourcery.com>
1521
1522 * cp-demangle.c (result_close_template_list): Remove function.
1523 (result_add_separated_char): New function.
1524 (result_open_template_list): New macro.
1525 (result_close_template_list): Likewise.
1526 (demangle_prefix): Don't set template_p if the
1527 prefix ends with a ctor name.
1528 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1529 (demangle_type): Check for template args after substitution.
1530 (demangle_template_args): Use result_open_template_list.
d1209685 1531
c9b6494a
ZW
15322000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1533
1534 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1535
d1209685 15362000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1537
1538 * config/mh-openedition.h: Added -DLE370 definition.
1539
0aab2795
ME
15402000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1541
1542 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1543 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1544 Cast program to 'char *' in errmsg_arg assignment.
1545 (PWAIT_ERROR): Define.
1546 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1547 to DJGPP's WIF* macros.
1548
c2f275e4
RB
15492000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1550 Jeff Law <law@cygnus.com>
1551
73aa9564
RB
1552 * getcwd.c: Include string.h, stdlib.h for prototypes
1553
c2f275e4 1554 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1555 * rename.c: Include config.h, unistd.h
1556 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1557
ccbc3eb7
HPN
15582000-07-24 Hans-Peter Nilsson <hp@axis.com>
1559
1560 * cplus-dem.c (work_stuff_copy_to_from): New.
1561 (delete_non_B_K_work_stuff): New.
1562 (delete_work_stuff): New.
1563 (mop_up): Break out work_stuff partly destruction to
1564 delete_non_B_K_work_stuff.
1565 (iterate_demangle_function): New.
1566 (demangle_prefix): Call iterate_demangle_function instead of
1567 demangle_function_name. Leave handling of name-signature
1568 __-delimiters to iterate_demangle_function.
1569 (demangle_integral_value): Strip an optional
1570 following underscore cautiously. Handle negative numbers.
1571
3388651c
DB
15722000-07-24 Daniel Berlin <dberlin@redhat.com>
1573
d1209685 1574 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1575 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1576
0fac482e
AS
15772000-07-21 Alex Samuel <samuel@codesourcery.com>
1578
1579 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1580 allocating ctor mangling.
1581 (demangle_array_type): Handle empty and non-constant array length.
1582
8502a100 15832000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1584 Jeff Law <law@cygnus.com>
1585
c6451ce1
MS
1586 * configure.in (AC_CHECK_HEADERS): Add time.h.
1587 (AC_HEADER_TIME): Add check.
1588 * configure, config.in: Regenerate.
1589 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1590
cd447360
MS
1591 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1592 * configure, config.in: Regenerate.
1593 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1594 * strtol.c, strtoul.c: #include "config.h". Portably #include
1595 <limits.h> and/or <sys/param.h>.
1596 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1597
3b58c099
MS
1598 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1599 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1600 * configure, config.in: Regenerate.
1601 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1602
8502a100
MS
1603 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1604
da0c7743
MS
16052000-07-21 Mike Stump <mrs@wrs.com>
1606
1607 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1608 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1609
838f8562
KG
16102000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1611
1612 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1613
1614 * setenv.c (setenv): Initialize variable `ep'.
1615
1616 * sigsetmask.c (abort): Prototype.
1617
1618 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1619 __STDC__ for stdarg.h include.
1620 (int_vasprintf): Prototype.
1621 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1622 definition. Cast `global_total_width' in comparison.
1623 (main): Prototype. Return a value.
1624
1625 * vfork.c (fork): Prototype.
1626
1627 * xexit.c: Include config.h.
1628
e9958132
JM
16292000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1630
1631 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1632 and print it with %u.
1633
39a6492f
HPN
16342000-07-17 Hans-Peter Nilsson <hp@axis.com>
1635
1636 * testsuite/regress-demangle (failed test): Show result and
1637 expected output.
1638
6d0be369
AH
16392000-07-07 Andrew Haley <aph@cygnus.com>
1640
1641 * cplus-dem.c (main): fflush() after emitting last char before
1642 waiting for input.
1643
bece74bd
AS
16442000-06-28 Alex Samuel <samuel@codesourcery.com>
1645
1646 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1647 (demangle_name): Handle <substitution> followed by
1648 <unqualified-template-name>.
1649 (demangle_type): Follow special substitutions with
1650 <class-enum-type>
1651 (demangle_subtitution): Set template_p for special substitutions.
1652 (main): Fix typos.
d1209685 1653
229b8ec7
AS
16542000-06-27 Alex Samuel <samuel@codesourcery.com>
1655
1656 * cp-demangle.c (demangle_special_name): Swap base and derived
1657 class when demangling construction vtables.
1658
051664b0
AS
16592000-06-21 Alex Samuel <samuel@codesourcery.com>
1660
1661 * cp-demangle.c: Don't include ctype.h.
1662 (IS_DIGIT): New macro.
1663 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1664 instead of isdigit and isalpanum.
1665 (demangling_def): Make name and next const pointers.
1666 (STATUS_ALLOCATION_FAILED): New status code.
1667 (dyn_string_append_space): Handle failure in
1668 dyn_string_append_char.
1669 (int_to_dyn_string): Likewise. Change return value to status_t.
1670 (string_list_new): Handle failure of dyn_string_init.
1671 (result_close_template_list): Change return type to status_t.
1672 Handle failure in dyn_string_append.
1673 (result_push): Change return value to status_t. Handle failure in
1674 string_list_new. Handle failure of result_push throughout.
1675 (substitution_add): Change return value to status_t. Handle
1676 dyn_string failures. Handle failure of substitution_add
1677 throughout.
1678 (template_arg_list_new): Return NULL on allocation failure.
1679 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1680 Handle error result throughout.
1681 (result_append): Likewise.
1682 (result_append_char): Likewise.
1683 (result_append_space): Likewise.
1684 (demangling_new): Make argument a const pointer. Handle
1685 allocation failures.
1686 (demangle_template_args): Handle failure in template_arg_list_new
1687 and result_close_template_list.
1688 (demangle_discriminator): Return if int_to_dyn_string fails.
1689 (cp_demangle): Likewise.
1690 (cp_demangle_type): New function.
1691 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1692 memory allocation failure.
1693 (main): Likewise.
1694 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1695 IN_LIBGCC2.
1696 (dyn_string_init): Change return value to int. Handle
1697 RETURN_ON_ALLOCATION_FAILURE case.
1698 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1699 (dyn_string_release): Delete the dyn_string.
1700 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1701 (dyn_string_copy): Change return type to int.
1702 (dyn_string_copy_cstr): Likewise.
1703 (dyn_string_prepend): Likewise.
1704 (dyn_string_prepend_cstr): Likewise.
1705 (dyn_string_insert): Likewise.
1706 (dyn_string_insert_cstr): Likewise.
1707 (dyn_string_append): Likewise.
1708 (dyn_string_append_cstr): Likewise.
1709 (dyn_string_append_char): Likewise.
1710 (dyn_string_substring): Likewise.
d1209685 1711
fe06b696
ZW
17122000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1713
1714 * cp-demangle.c (demangle_operator_name): Add spaces before
1715 names beginning with a letter: delete, delete[], new, new[],
1716 sizeof.
1717 (demangle_special_name): Handle TF <type> and TJ <type>.
1718
6223e158
PDM
1719Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1720
1721 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1722
48f3e29b
PDM
1723Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1724
1725 * cp-demangle.c (stdio.h): File included unconditionaly.
1726 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1727 * dyn-string.c (stdio.h): File included.
1728 * partition.c (partition_print): No `&' needed to take the address of
1729 a function.
1730
69197e7e
KG
17312000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1732
1733 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1734
69197e7e
KG
1735 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1736
1737 * cp-demangle.c (demangle_char): Change parameter from char to int.
1738 (demangle_expression, demangle_expr_primary): Remove extra
1739 semi-colon in prototype.
1740
1741 * dyn-string.c (dyn_string_append_char): Change parameter from
1742 char to int.
1743
1744 * memcmp.c (memcmp): Constify.
1745
1746 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1747 __extension__.
1748
1749 * partition.c (elem_compare): Prototype. Don't cast away
1750 const-ness.
1751
1752 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1753
7eb23b1f
KG
17542000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1755
1756 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1757
1758 * cp-demangle.c: Include demangle.h.
1759 (template_arg_list_new): DeANSIfy.
1760 (cp_demangle): Make static and add prototype.
1761 (operator_code, operators): Constify.
1762 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1763
3faa108c
AS
17642000-06-05 Alex Samuel <samuel@codesourcery.com>
1765
1766 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1767 unsigned char.
1768 (demangle_unqualified_name): Likewise.
1769 (demangle_number_literally): Likewise.
1770 (demangle_type): Likewise.
1771 (demangle_substitution): Likewise.
1772 (is_mangled_char): Likewise, for isalnum.
1773
69afa80d
AS
17742000-06-04 Alex Samuel <samuel@codesourcery.com>
1775
1776 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1777 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1778 (cp-demangle.o): New dependency.
1779 (dyn-string.o): Likewise.
1780
1781 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1782
1783 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1784 demangler.
1785 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1786 demangling mode.
1787 (gnu_new_abi_symbol_characters): New function.
1788 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1789 file.
1790 * cp-demangle.c: New file.
d1209685 1791
0b72c3df
AC
1792Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1793
1794 * floatformat.c: Add name to each floatformat field.
1795
270cea06
JL
1796Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1797
1798 * Makefile.in (objalloc.o): Depend on config.h
1799
d11ec6f0
ZW
18002000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1801
1802 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1803 if HAVE_STRING_H.
1804 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1805 * objalloc.c: Include config.h. Include stdlib.h and don't
1806 declare malloc or free if HAVE_STDLIB_H.
1807 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1808 else declare malloc without prototype. Include string.h if
1809 HAVE_STRING_H, else declare memset without prototype. Don't
1810 include stddef.h.
1811
f8e2da56
MS
18122000-05-23 Mike Stump <mrs@wrs.com>
1813
1814 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1815 -j3.
f8e2da56 1816
650f3068
DA
18172000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1818
1819 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1820
1d2da2e1
HB
18212000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1822
d1209685 1823 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1824 probably zero, also eliminate a warning on alpha.
1825
47668d0a
DE
18262000-05-15 David Edelsohn <edelsohn@gnu.org>
1827
c7a79a32 1828 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1829 on $(enable_shared).
1830
36348eab
JJ
18312000-05-10 Jakub Jelinek <jakub@redhat.com>
1832
1833 * config.table: Use mh-sparcpic for sparc*-*-*.
1834
209bbe34
NC
18352000-05-08 Nick Clifton <nickc@cygnus.com>
1836
1837 * Makefile.in (CFILES): Add strncmp.c.
1838 (NEEDED): Add strncmp.
1839
a85a47fb
KG
18402000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1841
1842 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1843 Cast the arguments to `islower' to `unsigned char'.
1844 (print_demangler_list): Prototype.
1845
4aef973c
PDM
1846Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1847
1848 * sort.c (UCHAR_MAX): Provide fallback definition.
1849
3b94497c
AO
18502000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1851
1852 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1853 SUBDIRS.
1854
24eaa47a
KB
18552000-04-28 Kenneth Block <block@zk3.dec.com>
1856 Jason Merrill <jason@casey.cygnus.com>
1857
d1209685
ZW
1858 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1859 (cplus_demangle_set_style): New function for setting style.
1860 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1861
a9266bfa
KG
18622000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1863
1864 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1865
1866 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1867 (libiberty_AC_FUNC_STRNCMP): Invoke.
1868
1869 * strncmp.c: New file.
1870
8e02c4d0
JH
1871Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1872
1873 * hashtab.c (htab_expand): Add prototype.
1874 (find_empty_slot_for_expand): Likewise.
1875
4feeaae3
KG
18762000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1877
1878 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1879 match prototype.
1880 (htab_expand): Cast the return value of xcalloc.
1881
18a94a2f
MM
18822000-04-24 Mark Mitchell <mark@codesourcery.com>
1883
1884 * hashtab.c (hash_pointer): New function.
1885 (eq_pointer): Likewise.
1886 (htab_hash_pointer): New variable.
1887 (htab_eq_pointer): Likewise.
1888
eeb0656f
MM
18892000-04-23 Mark Mitchell <mark@codesourcery.com>
1890
b51024fc
MM
1891 * sort.c (sort_pointers): Fix endianness bugs.
1892
eeb0656f
MM
1893 * sort.c: New file.
1894 * Makefile.in (CFILES): Add sort.c
1895 (REQUIRED_OFILES): Add sort.o.
1896 (sort.o): New target.
1897
7277f72d
MS
18982000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1899
1900 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1901 4.3BSD systems.
1902
e38992e8
RK
1903Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1904
1905 * hashtab.c: Various minor cleanups.
1906 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1907 (htab_find_slot): Likewise.
1908
498e1ab1
DP
19092000-04-16 Dave Pitts <dpitts@cozx.com>
1910
1911 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1912
dc17cc7b
RH
19132000-04-05 Richard Henderson <rth@cygnus.com>
1914
1915 * splay-tree.c (splay_tree_remove): New.
1916
b13eb66b
MM
19172000-03-30 Mark Mitchell <mark@codesourcery.com>
1918
1919 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1920 codes.
1921 (htab_find_with_hash): Likewise.
1922 (htab_find_slot_with_hash): Likewise.
d1209685 1923
0194e877
ZW
19242000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1925
1926 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1927 unless it will be used. Rearrange loop for better
1928 optimization.
1929 (higher_prime_number): Add static prototype.
1930
abc61fd4
JL
1931Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1932
1933 * Makefile.in (partition.o): Depend on config.h
1934
8c5d513f
BS
19352000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1936
1937 * hashtab.c (find_empty_slot_for_expand): New function.
1938 (htab_expand): Use it instead of htab_find_slot.
1939 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1940 argument HASH.
1941 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1942 (htab_find): New wrapper function.
1943 (htab_find_slot): Likewise.
1944 (htab_traverse): Pass slot, not entry, to called function.
1945
d9d4fb43
AS
19462000-03-09 Alex Samuel <samuel@codesourcery.com>
1947
1948 * Makefile.in (CFILES): Add partition.c.
1949 (REQUIRED_OFILES): Add partition.o.
1950 (partition.o): New rule.
1951 * partition.c: New file.
d1209685 1952
5dc9cffd
ZW
19532000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1954
1955 * hashtab.c (htab_create): Set del_f.
1956 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1957 Use it.
1958
5194cf08
ZW
19592000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1960
1961 * hashtab.c: Remove debugging variables (all_searches,
1962 all_collisions, all_expansions). Delete
1963 all_hash_table_collisions.
1964 (create_hash_table, delete_hash_table, empty_hash_table,
1965 find_hash_table_entry, remove_element_from_hash_table_entry,
1966 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1967 hash_table_elements_number, hash_table_collisions): Rename to:
1968 htab_create, htab_delete, htab_empty, htab_find_slot,
1969 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1970 htab_elements, htab_collisions.
1971 (htab_find): New function, handles common case where you don't
1972 plan to add or delete an entry.
1973 (htab_expand): Don't create a whole new table, just a new
1974 entry vector.
1975 (htab_find_slot): Simplify logic.
1976
5ad5a984
ILT
19771999-08-03 Ian Lance Taylor <ian@zembu.com>
1978
1979 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1980 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1981
1982 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1983 $(TARGETLIB)n so it works on MSDOS.
1984 (install_to_tooldir): Likewise.
1985
19861999-07-21 Ian Lance Taylor <ian@zembu.com>
1987
1988 From Mark Elbrecht:
1989 * makefile.dos: Remove; obsolete.
1990 * configure.bat: Remove; obsolete.
1991
19921999-07-11 Ian Lance Taylor <ian@zembu.com>
1993
1994 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1995 warning.
1996
aeecce42
MK
19972000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1998
1999 * pexecute.c: Conditionally include string.h.
5194cf08 2000 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 2001
1eaf7d9c
KG
20022000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2003
2004 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2005 we're using gcc.
2006
2007 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2008
0fadedb2
GK
20091999-12-27 Geoff Keating <geoffk@cygnus.com>
2010
2011 * vasprintf.c (int_vasprintf): Don't re-read the format character
2012 as this mishandles strings like '%%s'.
2013
08230f26
MM
20141999-12-05 Mark Mitchell <mark@codesourcery.com>
2015
2016 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2017 rather than struct splay_tree_node.
2018 (splay_tree_insert): Use struct splay_tree_s rather than struct
2019 splay_tree.
2020
6de9b8ff
PDM
2021Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2022
2023 * hashtab.c (sys/types.h): File included.
2024
f3636679
JM
20251999-11-22 Jason Merrill <jason@casey.cygnus.com>
2026
2027 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2028 BSD license, pursuant with
2029
2030 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2031
36dd3a44
JL
2032Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2033
2034 * hashtab.c: Include stdio.h.
2035
6e300472
JL
2036Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2037
2038 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2039
df548dfc
PDM
2040Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2041
2042 * xstrdup (sys/types.h): Include this file.
2043
2c375143
NS
20441999-10-28 Nathan Sidwell <nathan@acm.org>
2045
2046 * Makefile.in (SUBDIRS): New macro.
2047 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2048 avoid multiple subdirectory cleaning.
2049 (*-subdir): Use SUBDIRS.
2050
a82cecda
JK
20511999-10-25 Jim Kingdon <http://developer.redhat.com/>
2052
2053 * cplus-dem.c: Move declarations of standard_symbol_characters and
2054 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2055 warnings.
2056
ed38f5d5
ZW
20571999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2058
2059 * hashtab.c (find_hash_table_entry): When returning a
2060 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2061 (clear_hash_table_slot): New function which deletes an entry
2062 by its position in the table, not its value.
2063 (traverse_hash_table): New function which calls a hook
2064 function for every live entry in the table.
2065
b60fe4a7
MM
20661999-10-19 Mark Mitchell <mark@codesourcery.com>
2067
2068 * cplus-dem.c (INTBUF_SIZE): New macro.
2069 (string_append_template_idx): New function.
2070 (demangle_expression): Likewise.
2071 (demangle_integral_value): Use it.
2072 (demangle_real_value): New function, split out from ...
2073 (demangle_template_value_parm): ... here. Use
2074 string_append_template_idx. Use demangle_real_value.
2075 (demangle_template): Use string_append_template_idx.
2076 (demangle_qualified): Use consume_count_with_underscores.
2077 (get_count): Tweak formatting.
2078 (do_type): Use string_append_template_idx.
5194cf08 2079
3da5522a
KG
20801999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2081
2082 * calloc.c: Add a public domain notice.
2083
d7d36ea8
PDM
2084Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2085
2086 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2087
a2f945c6
VM
2088Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2089
2090 * Makefile.in (CFILES): Add hashtab.c
2091 (REQUIRED_OFILES): Add hashtab.o
2092 (hashtab.o): Add dependencies.
2093 * hashtab.c: New file
2094
7f22ec2e
MK
2095Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2096
2097 * basename.c (DIR_SEPARATOR): New macro.
2098 (DIR_SEPARATOR_2): Likewise.
2099 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2100 (IS_DIR_SEPARATOR): Likewise.
2101 (main): Handle MSDOS style pathname.
2102
7c56a6ce
MM
21031999-10-11 Mark Mitchell <mark@codesourcery.com>
2104
2105 * cplus-dem.c (do_type): Handle pointer to member types whose
2106 enclosing classes have namespace scope.
2107
cd32188b
ME
2108Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2109
2110 * config.table: Provide a backup shell for executing move-if-change.
2111
fc232f7a
MM
21121999-10-02 Mark Mitchell <mark@codesourcery.com>
2113
2114 * xmalloc.c (xmalloc): Fix spelling error.
2115 (xcalloc, xrealloc): Likewise.
2116
2a138827
KG
21171999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2118
2119 * cplus-dem.c (fancy_abort, demangle_integral_value,
2120 demangle_arm_hp_template, recursively_demangle,
2121 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2122 (program_name, program_version, fatal): Constify a char*.
2123 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2124 (main): Call return, not exit.
2125
5a657fc3
KG
21261999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2127
2128 * choose-temp.c: Remove obsolete comment about gcc.
2129 (make_temp_file): Constify a char*.
2130
33c5ddcd
KG
2131Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2132
2133 * xmemdup.c: Include sys/types.h.
2134
b10647f1
JG
21351999-09-07 Jeff Garzik <jgarzik@pobox.com>
2136
2137 * xmemdup.c: New xmemdup function.
2138 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2139
3dd6c3af
LV
2140Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2141
5194cf08 2142 * config.table: Add openedition target.
3dd6c3af
LV
2143 * config/mh-openedition: New file.
2144
19e28e2a
ME
2145Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2146
2147 * pexecute.c (pexecute): Fill in temp_base when needed.
2148
4dfeccf9
RH
21491999-08-31 Richard Henderson <rth@cygnus.com>
2150
2151 * getpwd.c: Check HAVE_GETCWD before defining it away.
2152
4ac3cb83
KG
21531999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2154
2155 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2156 (REQUIRED_OFILES): Add getpwd.o.
2157 (getpwd.o): Add target.
2158
2159 * configure.in (AC_PREREQ): Bump to 2.13.
2160 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2161
2162 * getpwd.c: New file, moved here from gcc.
2163
e797ff70
KG
21641999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2165
2166 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2167 comparing against a signed quantity.
2168 (arm_special): Likewise.
2169 (demangle_fund_type): Likewise.
2170 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 2171 ATTRIBUTE_UNUSED.
e797ff70
KG
2172 (main): Constify variable `valid_symbols'.
2173
55247fce
PDM
2174Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2175
2176 * strtoul.c (strtoul): Add parentheses around && within ||.
2177
76632dd0
DJ
2178Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2179
2180 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2181 libdir, libsubdir and tooldir.
2182
d080bbfa
MM
21831999-08-01 Mark Mitchell <mark@codesourcery.com>
2184
2185 * splay-tree.c (splay_tree_insert): Return the new node.
2186
a81c752a
RH
21871999-07-14 Richard Henderson <rth@cygnus.com>
2188
5194cf08 2189 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
2190 prototyping directly.
2191 * choose-temp.c: Conditionally include string.h.
2192
8f1824d9
JM
21931999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2194
2195 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2196
652374d3
ILT
21971999-07-11 Ian Lance Taylor <ian@zembu.com>
2198
2199 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2200 warning.
2201
a4494286
JM
22021999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2203
2204 * Makefile.in (needed-list): Only include stuff we actually need
2205 for libstdc++.
2206
90e72e20
AS
22071999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2208
2209 * configure.in (checkfuncs): Add gettimeofday.
2210 * config.in, configure: Regenerated.
2211
b569200e
MK
2212Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2213
2214 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2215 the test fails.
2216 * configure: Regenerate.
2217
73919448
MS
22181999-06-10 Mike Stump <mrs@wrs.com>
2219
2220 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2221 parallel builds.
2222
fee9125c
KG
22231999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2224
2225 * putenv.c: Include ansidecl.h to define `const'.
2226 * setenv.c: Likewise.
2227
71cce721
MN
2228Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2229
a7c9637f
JL
2230 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2231 * configure.in (funcs): Add putenv and setenv.
2232 (AC_CHECK_FUNCS): Check for putenv and setenv.
2233 * configure: Rebuilt.
2234 * putenv.c setenv.c: New files.
2235
71cce721
MN
2236 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2237 bytes of space using malloc.
2238
53504016
SG
2239Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2240
2241 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2242 the *mangled pointer beyond the end of the string. Clean up code to
2243 match prevailing coding style.
2244
34842539
MH
22451999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2246
2247 * tmpnam.c (L_tmpnam): Fix typo.
2248
3a08531d
ME
2249Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2250
2251 * cplus-dem.c (standard_symbol_characters): Renamed from
2252 standard_symbol_alphabet. No longer modify TABLE.
2253 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2254 modify TABLE.
2255 (main): Corresponding changes. Use strchr to determine if a
2256 character is valid.
2257
8db9d08b
JB
22581999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2259
2260 * cplus-dem.c (main): Use table lookup to distinguish identifier
2261 characters from non-identifier characters.
2262 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2263
6a071f4a
FF
2264Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2265
2266 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2267 * getruntime.c: Only attempt to include sys/resource.h and
2268 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2269 are defined.
2270
7dd88617
DT
2271Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2272
2273 * configure.in (alloca detection): Handle alloca directly for interix.
2274 * configure: Rebuilt.
2275
7a1528bc
MK
2276Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2277
2278 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2279
76409268
JB
22801999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2281
2282 Fix from Dale Hawkins:
5194cf08 2283 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
2284 reallocated properly if we use it again.
2285
2286 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2287 stricter about syntax. Always null-terminate string.
2288
acbbd80a
MK
2289Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2290
2291 * configure.in (checkfuncs): Check for sbrk.
2292 * config.in: Rebuilt.
2293 * configure: Likewise.
2294 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2295
92523551
JB
22961999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2297
2298 Fix from Marcus Daniels:
2299 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2300 identifier looking for another underscore.
2301
36eb4217
MK
2302Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2303
2304 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2305 * xmalloc.c: Likewise.
2306 (xcalloc): UWIN has sbrk.
2307 (xrealloc): Fix guard macro.
2308
2c45d1a0
RH
23091999-04-11 Richard Henderson <rth@cygnus.com>
2310
2311 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2312 or <alloca.h>.
2313 * clock.c (GNU_HZ): New definition.
2314 (clock): Use it.
2315 * getruntime.c: Likewise.
2316
2317 * config.table: Use mh-beos.
2318 * config/mh-beos: New file.
2319
391cdef0
MM
23201999-04-11 Mark Mitchell <mark@codesourcery.com>
2321
2322 * cplus-dem.c (demangle_template_value_parm): Handle
2323 pointers-to-members.
2324 (do_type): Handle template parameters as qualifiers.
2325
9d229989
JB
23261999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2327
2328 * cplus-dem.c: Attempt to handle overflows in counts with some
2329 semblance of grace.
2330 (consume_count): Detect overflows. Return -1 to indicate errors,
2331 instead of zero.
2332 (demangle_template_value_parm, demangle_template): Handle change
2333 to consume_count's return convention.
2334
7c72138a
TT
23351999-04-05 Tom Tromey <tromey@cygnus.com>
2336
2337 * testsuite/regress-demangle: New file.
2338 * testsuite/demangle-expected: New file.
2339
2340 * Makefile.in (all, check, installcheck, info, install-info,
2341 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2342 distclean, maintainer-clean, realclean): Depend on corresponding
2343 `-subdir' target.
2344 (all-subdir check-subdir installcheck-subdir info-subdir
2345 install-info-subdir clean-info-subdir dvi-subdir
2346 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2347 distclean-subdir maintainer-clean-subdir): New target.
2348 * testsuite/Makefile.in: New file.
2349 * configure: Rebuilt.
2350 * configure.in: Create testsuite/Makefile.
2351
ae7f7270
MM
23521999-04-02 Mark Mitchell <mark@codesourcery.com>
2353
2354 * splay-tree.h (splay_tree_compare_pointers): Define.
2355
30f72379
MM
23561999-03-30 Mark Mitchell <mark@codesourcery.com>
2357
2358 * splay-tree.c (splay_tree_compare_ints): Define.
2359
4cc48683
TT
23601999-03-30 Tom Tromey <tromey@cygnus.com>
2361
2362 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2363 don't advance input pointer.
2364 (demangle_class_name): If consume_count didn't find a count, do
2365 nothing. Don't bother with `strlen' sanity check; consume_count
2366 does it for us.
2367
3510075c
JL
23681999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2369
2370 From Art Haas <ahaas@neosoft.com>:
2371 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2372 when doing arm or hp style.
2373 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 2374
89f602a7
MK
2375Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2376
2377 * pexecute.c (__CYGWIN32__): Rename to
2378 (__CYGWIN__): this.
2379 * xmalloc.c: Likewise.
2380
2381 Changes to support i386-pc-uwin.
2382 * configure.in (*-*-uwin*): Workaround for vfork bug.
2383 * configure: Regenerate.
2384 * pexecute.c (pexecute): Be like standard Unix.
2385 (pwait): Likewise.
2386 * xmalloc.c (first_break): Define.
2387 (xmalloc_set_program_name): Use.
2388 (xmalloc): Use.
2389
9346c824
FS
2390Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2391
2392 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2393
3510075c
JL
2394Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2395
2396 * config.table: Check cygwin*, not cygwin32*.
2397
8ec65f13
DB
2398Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2399
2400 * Makefile.in: Change mkstemp -> mkstemps.
2401
687361c8
ME
2402Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2403
2404 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2405 * configure.in (funcs): Check for and conditionally add mkstemps to
2406 the list of functions libiberty will provide.
2407 * configure: Rebuilt.
5194cf08 2408
b207e09c
MK
2409Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2410
5194cf08 2411 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2412 platforms that don't have HZ.
2413 * getruntime.c (HZ): Likewise.
2414
16b4c15e
RH
2415Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2416
2417 * Makefile.in (xstrdup.o): Depend on config.h.
2418
38beb75c
UD
2419Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2420
2421 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2422 freeing it.
2423
7e4311a3
KG
2424Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2425
2426 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2427
3510075c
JL
2428Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2429
2430 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2431 splay-tree.o.
2432
24331999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2434
2435 * configure.in: Require autoconf 2.12.1 or higher.
2436
fb9939b8
MM
24371998-12-30 Michael Meissner <meissner@cygnus.com>
2438
2439 * random.c (NULL): Don't redefine NULL if it is already defined.
2440
087aa398
KG
2441Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2442
2443 * argv.c (buildargv): Cast the result of alloca in assignment.
2444
2445 * choose-temp.c: Include stdlib.h.
38beb75c 2446
087aa398 2447 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2448 (snarf_numeric_literal): Constify first parameter.
2449 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2450 int, not a char.
087aa398
KG
2451 (demangle_qualifier): Likewise.
2452 (demangle_signature): Cast the argument of a ctype function to
2453 unsigned char.
2454 (arm_pt): Add parens around assignment used as truth value.
2455 (demangle_arm_hp_template): Constify variable `args'.
2456 (do_hpacc_template_const_value): Cast the argument of a ctype
2457 function to unsigned char.
2458 (do_hpacc_template_literal): Remove unused variable `i'.
2459 (snarf_numeric_literal): Constify parameter `args'.
2460 Cast the argument of a ctype function to unsigned char.
2461
2462 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2463 avoid ambiguous `else'.
38beb75c 2464
087aa398 2465 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2466 `cstart' and `cend' to unsigned char. Cast the argument of macro
2467 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2468
2469 * objalloc.c (free): Add prototype.
2470
21f2174d
HPN
2471Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2472
2473 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2474
3510075c
JL
2475Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2476
2477 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2478 doesn't exist.
3510075c 2479 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2480
e8fc8222
AM
2481Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2482
2483 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2484 bumping the pointer we read from. Also prepend these codes,
2485 as we do in other places.
2486
3510075c
JL
24871998-12-18 Nick Clifton <nickc@cygnus.com>
2488
2489 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2490 'const char *' in order to match its usage when calling siblings.
2491 (snarf_numeric_literal): Make first arg 'const char **' in order
2492 to match usage.
11a0bb74 2493
f4f30aa1
JL
2494Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2495
11a0bb74
KG
2496 * choose-temp.c: Don't check IN_GCC anymore.
2497
2498 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2499 * memchr.c (memchr): Likewise.
2500 * memcpy.c (memcpy): Likewise.
2501 * memmove.c (memmove): Likewise.
38beb75c 2502
11a0bb74
KG
2503 * mkstemp.c: Don't check IN_GCC anymore.
2504 * pexecute.c: Likewise.
2505 * splay-tree.c: Likewise.
38beb75c 2506
11a0bb74
KG
2507 * strchr.c (strchr): Use `const', not `CONST'.
2508 * strrchr.c (strrchr): Likewise.
2509 * strtol.c (strtol): Likewise.
2510 * strtoul.c (strtoul): Likewise.
2511
70d5ccef
DT
2512Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2513 Elena Zannoni <ezannoni@cygnus.com>
2514 Stan Shebs <shebs@cygnus.com>
2515 Edith Epstein <eepstein@cygnus.com>
2516 Andres MacLeod <amacleod@cygnus.com>
2517 Satish Pai <pai@apollo.hp.com>
2518
2519 * HP aCC demangling support.
2520 * cplus-dem.c
2521 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2522 demangling correctly when -edg specified; set the demangling style
2523 when user specifies 'edg'. Set strip_underscore to
2524 prepends_underscore, if not HPUXHPPA. Set
2525 current_demangling_style to hp_demangling if HPUXHPPA. Set
2526 current demangling style correctly if the switch is hp. Read
2527 label correctly also in the HP style case.
70d5ccef 2528 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2529 function.
70d5ccef 2530 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2531 style for this case is the same as ARM.
70d5ccef
DT
2532 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2533 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2534 demangle_arm_pt.); check and set value of temp_start field in
2535 multiple places. Also, when ceching for end of template args,
2536 check to see if at end of static member of template class.
70d5ccef 2537 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2538 include template args in string defining class.
70d5ccef
DT
2539 (demangle_class_name): use demangel_arm_hp_template.
2540 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2541 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2542 Handle EDG_DEMANGLING style. Handle constructor and destructor
2543 ops for HP style.
70d5ccef 2544 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2545 styles. global destructor and constructor for HP style are same
2546 as for ARM style. Same for local variables.
70d5ccef
DT
2547 (demangle_qualified): handle EDG_DEMANGLING style.
2548 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2549 cases '1' - '9' : initialize the temp_start field to -1 and handle
2550 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2551 and AUTO_DEMANGLING styles. If expecting a function and managed
2552 to demangle the funct args, then handle the LUCID_DEMANGLING,
2553 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2554 class name after "Lnnn_ in HP style case. HP style too needs to
2555 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2556 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2557 value param for HP/aCC.
70d5ccef 2558 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2559 literal parameter for HP aCC.
70d5ccef
DT
2560 (recursively_demangle): new function
2561 (snarf_numeric_literal): new function.
2562 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2563 to message.
70d5ccef 2564
8d525fa8
CF
2565Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2566
2567 * pexecute.c: Remove obsolete ifdefed cygwin code.
2568
9b1a92d8
KG
2569Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2570
2571 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2572 * cplus-dem.c: Likewise. Conform to libiberty.h.
2573 * pexecute.c: Likewise.
2574 * splay-tree.c: Likewise.
2575
c85c3232
MS
25761998-11-25 Mike Stump <mrs@wrs.com>
2577
2578 * Makefile.in (splay-tree.o): Add config.h dependency.
2579
35a6cd99
KG
2580Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2581
2582 * configure.in: Use AC_PREREQ(2.12.1).
2583
6e6e34b7
BK
25841998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2585
5194cf08 2586 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2587
59b67c11
JL
2588Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2589
2590 * mpw.c (mpw_access): Add missing parens.
2591
a6458d1d
KG
2592Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2593
2594 * configure.in: Call AC_HEADER_SYS_WAIT.
2595
2596 * pexecute.c: Include sys/wait.h when !IN_GCC.
2597
3510075c
JL
2598Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2599
2600 * pexecute.c: revert back to checking old Cygwin
2601 preprocessor symbol until some time has passed.
2602
2603Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2604
2605 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2606 since it will now support similar constructs.
2607
a9acf741
KG
2608Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2609
2610 * configure.in: Check for calloc.
2611
2612 * calloc.c: New file.
2613
2614 * xmalloc.c (xcalloc): New function.
2615
a49fb37a
AM
2616Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2617
2618 *cplus-dem.c (demangle_prefix): Use the last "__"
2619 in the mangled name when looking for the signature. This allows
2620 template names to begin with "__".
2621
0e714131
MM
26221998-11-08 Mark Mitchell <mark@markmitchell.com>
2623
ec2288ff
MM
2624 * cplus-dem.c (type_kind_t): Add tk_reference.
2625 (demangle_template_value_parm): Handle it.
2626 (do_type): Use it for references, instead of tk_pointer.
2627
0e714131
MM
2628 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2629 not internal_cplus_demangle.
2630
2931b6d4
KG
2631Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2632
2633 * choose-temp.c: Don't include gansidecl.h.
2634 * mkstemp.c: Likewise.
2635 * pexecute.c: Likewise.
2636
dd8f3ed5
GN
2637Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2638
5194cf08
ZW
2639 * configure.in: detect cygwin* instead of cygwin32*
2640 * configure: regenerate
dd8f3ed5 2641
c5f7c445
KG
2642Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2643
2644 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2645 whether to include config.h. Possibly include unistd.h in the
2646 !IN_GCC case. Define VFORK_STRING as a printable function call
2647 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2648 defined, include vfork.h. If VMS is defined, define vfork()
2649 appropriately. Remove vfork check on USG, we're using autoconf.
2650 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2651 locally what string to use.
c5f7c445 2652
ad3ef78e
MM
26531998-10-26 Mark Mitchell <mark@markmitchell.com>
2654
2655 * splay-tree.c: Tweak include directives to make sure declarations of
2656 xmalloc and free are available.
2657
224301c1
MM
26581998-10-25 Mark Mitchell <mark@markmitchell.com>
2659
2660 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2661 anonymous namespaces.
38beb75c 2662
d9db46fd
MM
26631998-10-23 Mark Mitchell <mark@markmitchell.com>
2664
2665 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2666 with type_quals.
2667 (TYPE_UNQUALIFIED): New macro.
2668 (TYPE_QUAL_CONST): Likewise.
2669 (TYPE_QUAL_VOLATILE): Likewise.
2670 (TYPE_QUAL_RESTRICT): Likewise.
2671 (code_for_qualifier): New function.
2672 (qualifier_string): Likewise.
2673 (demangle_qualifier): Likewise.
2674 (internal_cplus_demangle): Use them.
2675 (demangle_signature): Likewise.
2676 (demangle_template_value_parm): Likewise.
2677 (do_type): Likewise.
2678 (demangle_fund_type)): Likewise.
224301c1 2679
b056ad1c
KG
2680Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2681
2682 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2683 to match prototype.
2684
ed87f9c8
MM
26851998-10-21 Mark Mitchell <mark@markmitchell.com>
2686
2687 * splay-tree.c: New file.
2688 * Makefile.in (CFILES): Add it.
2689 (REQUIRED_OFILES): Likewise.
2690 (splay-tree.o): Add dependencies.
2691
e0c13971
AS
2692Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2693
2694 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2695 range of 'K' index.
2696
91e0f659
KG
2697Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2698
2699 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2700
2701 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2702 `unsigned char'.
2703 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2704 comparing against one.
2705 (cplus_mangle_opname): Likewise.
2706 (demangle_integral_value): Cast argument of ctype macro to
2707 `unsigned char'.
2708 (demangle_template_value_parm): Likewise.
2709 (demangle_template): Initialize variable `bindex'. Cast the
2710 result of `strlen' to (int) when comparing against one. Remove
2711 unused variable `start_of_value_parm'.
2712 (demangle_class_name): Cast the result of `strlen' to (int) when
2713 comparing against one.
2714 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2715 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2716 when comparing against one.
2717 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2718 (get_count): Likewise.
2719 (do_type): Likewise. Cast the result of `strlen' to (int) when
2720 comparing against one.
2721 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2722 (demangle_function_name): Cast the result of `strlen' to (int)
2723 when comparing against one.
2724
2725 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2726 comparing against one.
2727
73aeb2ff
JL
2728Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2729
5194cf08
ZW
2730 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2731 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2732 * config.in, configure: Rebuilt.
ae76f1be 2733
73aeb2ff
JL
2734 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2735 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2736 * config.in, configure: Rebuilt.
2737
dd8f3ed5
GN
2738Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2739
5194cf08 2740 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2741
f77d8413
MT
2742Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2743
2744 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2745
ca6b370d
JL
2746Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2747
2748 * Merge egcs & devo libiberty.
2749
ab4856b1
ML
2750