merge from gcc
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
ae533646
DD
12001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2
3 PR other/2719
4 * cplus-dem.c (consume_count): Treat negative count as an error.
5 * testsuite/demangle-expected: Added testcase.
6
c0eb281b
DD
7Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
8
9 * configure.in: Hardcode that vfork works on VMS host.
10 * configure: Regenerated.
11
2da4c07f
RH
122001-12-06 Richard Henderson <rth@redhat.com>
13
14 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
15 (cplus_demangle): Support no_demangling.
16
24acd898
DD
172001-11-27 Zack Weinberg <zack@codesourcery.com>
18
19 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
20 in libiberty context. Fix typo in leading comment.
21 * configure.in: Fix various AC_DEFINEs so autoheader works.
22 If any of vprintf, vsprintf, vfprintf is missing from libc,
23 then AC_REPLACE_FUNCS(_doprnt).
24
fec50157
DD
252001-11-26 DJ Delorie <dj@redhat.com>
26 Daniel Jacobowitz <drow@mvista.com>
27
28 * Makefile.in (stamp-h): Depend on Makefile for proper
29 serialization.
30 (*-subdir): Depend on config.h for proper serialization.
31
5527febf
DD
322001-11-26 DJ Delorie <dj@redhat.com>
33
34 * configure.in: Check for alloca.h (for regex.c and putenv.c).
35 * configure: Regenerate.
36 * config.h: Add HAVE_ALLOCA_H.
37
941d74a0
DD
382001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39
40 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
41 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
42 is available.
43
dc579051
DD
44Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
45
46 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
47 * configure.in (HAVE_UINTPTR_T): Test for system defining
48 uintptr_t and define HAVE_UINTPTR_T appropriately.
49 * regex.c (uintptr_t): Do not provide a definition if the
50 system provided one.
51
52 * regex.c (PREFIX): Provide an alternate definition for
53 non-ANSI/ISO compilers.
54 (ARG_PREFIX): Likewise.
55
1a78a35a
DD
562001-11-12 Jim Meyering <meyering@lucent.com>
57
58 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
59 this code would end up calling gettext even in packages built
60 with --disable-nls.
61 * getopt.c (_): Likewise.
62 * regex.c (_): Likewise.
63
4e55c4b6
DD
642001-11-03 Alan Modra <amodra@bigpond.net.au>
65
66 * configure.in: Cope with missing makeinfo.
67 * configure: Regenerate.
68
d311a83a
DD
692001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
70
71 * hex.c (hex_init): Provide empty stub.
72
73 * hex.c (hex_init): Delete.
74 (_hex_value): Const-ify and initialize at compile-time.
75
3bc62f91
DD
762001-10-19 H.J. Lu <hjl@gnu.org>
77
78 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
79 necessary.
80
5d852400
DD
812001-10-17 DJ Delorie <dj@redhat.com>
82
83 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
84 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 85 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
86 Improve manual formatting.
87 * functions.texi: Regenerate.
88
ba19b94f
DD
892001-10-15 DJ Delorie <dj@redhat.com>
90
91 * Makefile.in (TEXIFILES): Add fnmatch.txh.
92 (maint-undoc): New.
93 maint-tool: Add "undoc" tool.
94 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
95 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
96 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
97 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
98 documentation.
99 * fnmatch.txh: New.
100 * functions.texi: Regenerate.
101
56056af5
DD
1022001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
103
104 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
105 * strtod.c: Use "ISO C" instead of "ANSI C".
106 * functions.texi: Regenerate.
107
99b58139
DD
1082001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
109
110 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
111 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
112 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
113 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
114 spelling. Give names to function arguments in documentation. Use
115 (void) prototypes in documentation.
116 * functions.texi: Regenerate.
117
e6450fe5
DD
1182001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
119
120 * argv.c (buildargv, tests, main): Const-ify.
121 * cp-demangle.c (operator_code): Likewise.
122 * cplus-dem.c (optable, libiberty_demanglers,
123 cplus_demangle_set_style, cplus_demangle_name_to_style,
124 print_demangler_list): Likewise.
125 * hashtab.c (higher_prime_number): Likewise.
126 * strcasecmp.c (charmap): Likewise.
127 * strerror.c (error_info, strerror, main): Likewise.
128 * strncasecmp.c (charmap): Likewise.
129 * strsignal.c (signal_info): Likewise.
130
da191b5b
DD
1312001-09-29 DJ Delorie <dj@redhat.com>
132
133 * configure: Regenerate.
134
916aaa12
DD
1352001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
136
137 * concat.c: Include stdlib.h.
138
fa9f0e33
DD
1392001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
140
141 * libiberty.texi: (Top level): Add syncodeindex pg. Add
142 @dircategory and @direntry directives. Add @finalout.
143 (many nodes): Lose the next,prev,up pointers on the @nide line.
144 (Using, Supplemental Functions, Replacement Functions): Fix
145 markup.
146 (Functions): Move around, to allow makeinfo to build the manual
147 without next,prev,up pointers in thye node lines.
148 (Licenses): Fix typos.
149
150 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
151 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
152 * functions.texi: Regenerate.
153
154 * copying-lib.texi: Lose the next,prev,up pointers on the @node
155 line.
156
1572001-09-27 DJ Delorie <dj@redhat.com>
158
159 * configure.in: Don't use in-tree texinfo, because libiberty must
160 be built before it. Check for makeinfo version 4 or higher.
161 * functions.texi: Regenerate.
162
39423523
DD
1632001-09-20 DJ Delorie <dj@redhat.com>
164 Phil Edwards <pedwards@disaster.jaj.com>
165
166 * configure.in (MAKEINFO, PERL): Detect these.
167 (--enable-maintainer-mode): Add.
168 * configure: Regenerate.
169 * Makefile.in (MAKEINFO, PERL): Define.
170 (libiberty.info, libiberty.dvi, libiberty.html): New.
171 (CFILES): Add bsearch.c.
172 (CONFIGURED_OFILES): New, list of objects configure might add.
173 (maint-missing, maint-buildall): New, for maintainers only.
174 (clean, mostlyclean): Add info/dvi/html files.
175 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
176 * gather-docs: New, for maintainers.
177 * maint-tool: New, for maintainers.
178 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
179 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
180 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
181 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
182 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
183 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
184 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
185 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
186 documentation.
187
66c94e19
DD
1882001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
189
190 * concat.c (reconcat): Fix for traditional C.
191
99ee3a8f
DD
1922001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
193
194 * concat.c (reconcat): New function.
195
54c20242
DD
1962001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
197
198 * concat.c (vconcat_length, vconcat_copy, concat_length,
199 concat_copy, concat_copy2): New functions.
200 (concat): Use vconcat_length/vconcat_copy.
201
202 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
203 Define.
204
843f21be
DD
2052001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
206
207 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
208 VA_FIXEDARG & VA_CLOSE.
209
210 * vasprintf.c: Check HAVE_STRING_H when including string.h.
211 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
212 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
213
8a423cb3
DD
2142001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
215
216 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
217
dc676635
DD
2182001-08-23 Ulrich Drepper <drepper@redhat.com>
219
220 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
221
2222001-08-23 Ulrich Drepper <drepper@redhat.com>
223
224 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
225 instead of mbrtowc.
226 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
227 wcslen, and __wcscoll instead of wcscoll.
228
f080c76d
DD
2292001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
230
4e55c4b6
DD
231 * fibheap.c (fibheap_init, fibnode_init): Remove.
232 (fibheap_new, fibnode_new): Use xcalloc to allocate and
233 initialize memory.
234 (fibheap_insert): Remove check for node allocation failure.
f080c76d 235
f01b59ed
DD
2362001-08-21 Richard Henderson <rth@redhat.com>
237
238 * Makefile.in (fibheap.o): Depend on config.h.
239 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
240 functions for inlining.
241
242Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
243
244 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
245 hosting on cygwin.
246 * configure: Regenerate.
247
eb828599
AC
2482001-08-20 Andrew Cagney <ac131313@redhat.com>
249
250 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
251 HARRIS_FLOAT_FORMAT.
252 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
253 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
254 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
255 (floatformat_m88110_harris_ext): New float formats.
256
4e55c4b6
DD
2572001-08-20 Daniel Berlin <dan@cgsoftware.com>
258
259 * fibheap.c: New file. Fibonacci heap.
260
261 * Makefile.in (CFILES): Add fibheap.c.
262 (REQUIRED_OFILES): Add fibheap.o.
263 (fibheap.o): Add dependencies for fibheap.o.
264
68a41de7
DD
2652001-08-17 Christopher Faylor <cgf@cygnus.com>
266
267 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
268 * configure: Regenerate.
269
8fc34799
DD
2702001-08-16 Richard Henderson <rth@redhat.com>
271
272 * hashtab.c (htab_hash_string): New.
273
16bad250
AC
2742001-08-13 Andrew Cagney <ac131313@redhat.com>
275
276 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
277 name.
278
a9022147
DD
2792001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
280
281 * regex.c (wcs_regex_compile): Use appropriate string
282 to compare with collating element.
283 Fix the padding for the alignment.
284
8aefe91a 2852001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
286
287 * lbasename.c (lbasename): Change function definition to return a
288 const char pointer.
289
e7e9b069
DD
2902001-08-07 Jason Merrill <jason_merrill@redhat.com>
291
292 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
293 for".
294
cc5144f8
DD
2952001-08-03 Richard Henderson <rth@redhat.com>
296
297 * Makefile.in (concat.o): Depend on config.h.
298
8aefe91a
DD
2992001-07-30 Andreas Jaeger <aj@suse.de>
300
301 * concat.c: Include "config.h".
302
86710ce2
DD
3032001-07-30 Andreas Jaeger <aj@suse.de>
304
305 * regex.c: Declare wcs functions only if compiling with
306 MBS_SUPPORT.
307 Don't use #elif for traditional C.
308
3092001-07-23 Ulrich Drepper <drepper@redhat.com>
310
311 * regex.c: Revamp memory allocation for WCHAR functions to
312 not use too much stack.
313
3142001-07-30 Andreas Jaeger <aj@suse.de>
315
316 * regex.c: Declare wcs functions only if compiling with
317 MBS_SUPPORT.
318 Don't use #elif for traditional C.
319
a5d8f731
DD
3202001-07-25 Daniel Jacobowitz <drow@mvista.com>
321
322 * Makefile.in (regex.o): Add dependency on config.h.
323
6ad8a379
DD
3242001-07-18 Andreas Schwab <schwab@suse.de>
325
326 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
327 underscore character.
328
3292001-07-18 Ulrich Drepper <drepper@redhat.com>
330
331 * regex.c: Limit string length printed in debug messages to 100
332 chars.
333
3342001-07-18 Andreas Jaeger <aj@suse.de>
335
336 * regex.c: Place under LGPL version 2.1.
337
2a6ef469
DD
3382001-07-10 Jeff Johnston <jjohnstn@redhat.com>
339
340 * Makefile.in: Add support for regex code.
341 * regex.c: New file.
342
7b78baae
DD
3432001-07-05 Mark Klein <mklein@dis.com>
344
345 * Makefile.in: Add ffs.c dependency.
346 * configure.in: Add ffs.c.
347 * ffs.c: New file.
348
926150e2
DD
3492001-06-18 Richard Henderson <rth@redhat.com>
350
351 * concat.c: Include <sys/types.h>.
352
11f6f21d
DD
3532001-06-11 Loren J. Rittle <ljrittle@acm.org>
354
355 bootstrap/3106
356 * strerror.c (sys_nerr): Hide the OS header version.
357 * strsignal.c (sys_nsig): Likewise.
358
d42dae6c
DD
3592001-06-10 Richard Henderson <rth@redhat.com>
360
361 * concat.c: Include string.h. Fix int vs size_t usage.
362 Simplify the iteration loops. Use memcpy.
363
e05c6d27
DD
3642001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
365
366 * partition.c: Fix misspelling of `implementation'.
367
b50c4073
DD
3682001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
369
370 * md5.c (md5_init_ctx): Declare constants as unsigned.
371 (md5_process_block): Likewise.
372
457161bf
DD
3732001-05-07 Zack Weinberg <zackw@stanford.edu>
374
375 * cp-demangle.c (demangle_v3_with_details,
376 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
377 function definition.
378 * ternary.c: Use K+R style function definitions. Use PTR, not
379 void *. Make arguments constant where possible.
380
e00bc6a7
DD
3812001-05-07 Mark Mitchell <mark@codesourcery.com>
382
383 * splay-tree.h (splay_tree_max): New function.
384 (splay_tree_min): Likewise.
385
400ee7e1
DB
3862001-04-15 Daniel Berlin <dan@cgsoftware.com>
387
388 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
389
390 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 391
d9697354
DD
3922001-04-03 Zack Weinberg <zackw@stanford.edu>
393
394 * make-temp-file.c (try): Inline.
395
a7bf099b
DD
3962001-02-28 Richard Henderson <rth@redhat.com>
397
398 * Makefile.in (make-temp-file.o): Depend on config.h.
399
30a1def2
DD
4002001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
401
402 * memchr.c (memchr): Adjust condition to avoid infinite loop.
403
079c672a
DD
4042001-03-23 Jakub Jelinek <jakub@redhat.com>
405
406 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
407 `_' not followed by a digit is invalid.
408
a88e356a
JB
4092001-03-22 Jim Blandy <jimb@redhat.com>
410
411 * cp-demangle.c (string_list_delete): Use dyn_string_delete
412 instead of free, to free the contents as well as the string
413 structure.
414
1dffcc66
DD
4152001-03-21 Zack Weinberg <zackw@stanford.edu>
416
417 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
418 Don't default P_tmpdir to anything. Try /var/tmp before
419 /usr/tmp.
420
4212001-03-20 Zack Weinberg <zackw@stanford.edu>
422
423 * choose-temp.c: Split off make_temp_file, and the code
424 duplicated between it and choose_temp_base, into...
425 * make-temp-file.c: ... here; new file.
426
427 * Makefile.in (CFILES): Add make-temp-file.c.
428 (REQUIRED_OFILES): Add make-temp-file.o.
429
e61231f1
JB
4302001-03-20 Jim Blandy <jimb@redhat.com>
431
432 * cp-demangle.c (struct demangling_def): New fields:
433 is_constructor and is_destructor.
434 (demangling_new): Initialize them.
435 (demangle_ctor_dtor_name): Set them, if we detect a constructor
436 or destructor.
437 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
438 is_gnu_v3_mangled_dtor): New functions.
439
a9cbbe6d
DD
4402001-03-20 Jason Merrill <jason@redhat.com>
441
442 * cplus-dem.c (main): Skip initial $.
443
b1e51b3c
DD
4442001-03-15 Michael Meissner <meissner@redhat.com>
445
446 * hashtab.c (higher_prime_number): Silence warning that 4294967291
447 might be a signed integer under pre-ISO C systems.
448
8aa30e60 4492001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 450 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 451
8aa30e60
DD
452 * libiberty/lbasename.c: New file.
453 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 454
30673bf5
DD
4552001-03-06 Zack Weinberg <zackw@stanford.edu>
456
457 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
458 * configure.in: Replace all alloca logic with a simple use of
459 the above new macro.
460 * config.table: Kill *-*-beos* entry.
461 * config/mh-beos: Delete.
462 * configure, config.in: Regenerate.
fa03f0a7 463
30673bf5
DD
464 * Makefile.in (ALLOCA, HFILES): Kill.
465 (REQUIRED_OFILES): Add alloca.o.
466 (alloca.o): Depend on libiberty.h.
467 (argv.o): Don't depend on alloca-conf.h.
468 * alloca-conf.h: Delete.
469 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
470 blocks. Provide the C alloca unconditionally. Use PTR where
471 appropriate. Make i00afunc static.
472 * argv.c: Don't include alloca-conf.h.
fa03f0a7 473
5810f394
DD
4742001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
475
476 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 477
a9db032a
DD
4782001-02-16 Loren J. Rittle <ljrittle@acm.org>
479
480 * cplus-dem.c (main): Initialize style.
fa03f0a7 481
8aefe91a
DD
4822001-02-02 Phil Edwards <pme@sources.redhat.com>
483
484 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
485
bc9bf259
DD
4862001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
487
488 Add support for Java demangling under the v3 ABI:
489 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
490 (struct demangling_def): Add `style' field.
491 (demangling_new): New parameter `style'. Set it in demangling_t.
492 (demangle_prefix): Use NAMESPACE_SEPARATOR.
493 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
494 (cp_demangle): New parameter `style'. Pass it to demangling_new().
495 (main): Call cp_demangle with extra parameter.
496 (java_demangle_v3): New function.
497 (java_builtin_type_names): New. Table of primitive type names used
498 for Java demangling.
499 (demangle_builtin_type): Look up in java_builtin_type_names if doing
500 Java output.
501 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
502 demangling.
503 (long_options): Remove obsolete `java' option.
504 (main): Remove explicit handling of `java' option. Instead, pass style
505 parameter in cplus_demangle flags as gdb does.
506 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 507
f6528837
DD
5082000-12-29 DJ Delorie <dj@redhat.com>
509
510 * fnmatch.c: Make the note about the origins of this file more
511 accurate, at least until we can sync with glibc.
512 * getopt.c: Ditto.
513 * getopt1.c: Ditto.
514 * md5.c: Ditto.
515 * obstack.c: Ditto.
9d969b59 516
c6da642e
DD
5172000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
518
519 * bsearch.c: New file.
520 * configure.in (funcs): Add bsearch.
521 (AC_CHECK_FUNCS): Likewise.
522 * configure, config.in: Regenerate.
523
ae7d06ad 5242000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
525
526 * safe-ctype.c: #include "ansidecl.h".
527 * strtod.c: Likewise.
528
ae7d06ad 5292000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
530
531 * strtoul.c: Include safe-ctype.h, not ctype.h.
532
ac424eb3
DD
5332000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
534
535 * safe-ctype.c: New file.
536 * Makefile.in (CFILES): Add safe-ctype.c.
537 (REQUIRED_OFILES): Add safe-ctype.o.
538
539 * argv.c: Define ISBLANK and use it, not isspace.
540 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
541 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
542 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
543 before calling TOLOWER(c)/TOUPPER(c).
544
4415a860
DD
5452000-12-07 Mike Stump <mrs@wrs.com>
546
547 * Makefile.in (distclean): When cleaning, remove testsuite.
548
849ee224
DD
5492000-12-05 Jason Merrill <jason@redhat.com>
550
551 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
552 name before allocating the dyn_string.
553
ae7d06ad 5542000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
555
556 * cp-demangle.c: s/new_abi/v3/.
557 * cplus-dem.c: Likewise.
558 (current_demangling_style): Now auto_demangling.
559 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 560 (main): Use standard symbol chars for auto_demangling.
e49a569c 561
ae7d06ad 5622000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
563
564 * hashtab.c (higher_prime_number): Use a table, rather than a
565 seive, to find the next prime.
ae7d06ad
NC
566
5672000-11-22 H.J. Lu <hjl@gnu.org>
568
569 * cplus-dem.c (main): Handle gnat_demangling.
570
5712000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
572
573 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
574 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
575 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
576 argument form of AC_DEFINE in dummy definitions block. Use
577 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
578 in dummy block. Preload cache variables instead of bypassing
579 tests, where possible.
580 * acconfig.h: Removed.
ae7d06ad 581
2ea7befd
DD
582 * xmalloc.c (xmalloc_failed): New function, does error
583 reporting on failed allocation.
584 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 585
f1775526
HPN
5862000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
587
588 * cplus-dem.c (cplus_demangle): Fix formatting.
589 (grow_vect): Ditto.
590 (ada_demangle): Ditto.
591 (internal_cplus_demangle): Ditto.
592 (mop_up): Ditto.
593
5942000-11-21 H.J. Lu <hjl@gnu.org>
595
596 * cplus-dem.c (main): Handle java_demangling.
597
ae7d06ad 5982000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
599
600 * cplus-dem.c (grow_vect): Prototype.
601 (ada_demangle): Cast the arg of ctype macros to unsigned char.
602
5dd42ef4
HPN
6032000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
604
605 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
606 parameter `option'.
607
296731c1
DD
6082000-11-15 Kenneth Block <kenneth.block@compaq.com>
609
8944fb9d 610 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
611 be used in GCC.
612
6e53a714 6132000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 614
5dd42ef4 615 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
616 list.
617
99a4c1bd
HPN
6182000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
619
620 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
621 xcalloc depending on htab->return_allocation_failure. Return zero
622 if calloc fails.
99a4c1bd
HPN
623 (htab_create): Update comment to cover memory allocation.
624 (htab_try_create): New.
625 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 626 Update comment to cover this.
99a4c1bd 627
e0f3df8f
HPN
6282000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
629
630 * hashtab.c: Change void * to PTR where necessary.
631 (htab_create, htab_expand): Correct formatting of comment before
632 function.
633
ae7d06ad 6342000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
635
636 * cp-demangle.c (string_list_def): Add caret_position and comments.
637 (result_caret_pos): New macro.
638 (result_append_string): Rename to...
639 (result_add_string): ... this, and insert at caret position.
ae7d06ad 640 Rename throughout.
59666b35
DD
641 (result_append): Rename to...
642 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 643 throughout.
59666b35
DD
644 (result_append_char): Rename to...
645 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 646 throughout.
59666b35
DD
647 (result_append_space): Remove.
648 (string_list_new): Initialize caret position.
649 (result_add_separated_char): Use caret position.
650 (result_get_caret): New funtion.
651 (result_set_caret): Likewise.
652 (result_shift_caret): Likewise.
653 (result_previous_char_is_space): Likewise.
654 (substitution_start): Use caret position.
655 (substitution_add): Likewise.
656 (demangling_new): Initialize caret position.
657 (demangle_encoding): Use caret position.
ae7d06ad 658 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
659 (demangle_type_ptr): Use switch statement. Handle pointers to
660 arrays. Don't use result_append_space. Use caret position.
661 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
662 call to demangle_array_type.
663 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 664
ae7d06ad 6652000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
666
667 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
668
6692000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
670
671 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
672
6732000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
674
675 * splay-tree.c: #include <stdio.h>.
676
6772000-09-14 Hans-Peter Nilsson <hp@axis.com>
678
679 * testsuite/demangle-expected: Add two tests for anonymous
680 namespaces.
681 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
682
6832000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
684
685 * splay-tree.c (splay_tree_predecessor): New function.
686 (splay_tree_successor): Likewise.
ae7d06ad
NC
687
6882000-09-10 Hans-Peter Nilsson <hp@axis.com>
689
690 * testsuite/demangle-expected: Add four tests for type_info
691 mangling.
692 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
693 for a non-template non-qualified type_info function or node.
694
6952000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
696
697 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
698
6992000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
700
701 * md5.c: #include "ansidecl.h".
702
7032000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
704
705 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
706 (demangle_type): Handle substitution candidates correctly in the
707 face of special substitutions.
ae7d06ad
NC
708
7092000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
710
711 * cp-demangle.c (demangle_encoding): Rename variable.
712 (demangle_name): Rename parameter. Handle return type
713 suppression.
714 (demangle_nested_name): Rename parameter.
715 (demangle_prefix): Likewise. Change return type suppression.
716 (demangle_unqualified_name): Add parameter. Flag constructors and
717 conversion operators.
718 (demangle_special_name): Fix comment.
719 (demangle_type): Rename variable.
720 (demangle_bare_function_type): Check for missing return type and
721 parameter.
722 (demangle_class_enum_type): Rename parameter.
723 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
724
7252000-08-31 DJ Delorie <dj@redhat.com>
726
727 * configure.in (Cygwin): special case cygwin only when we're
728 building cygwin, not when we're hosting cygwin.
729
7302000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
731
732 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
733 <expression>.
ae7d06ad
NC
734
7352000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
736
737 * cp-demangle.c (demangle_type_ptr): Increment position past
738 pointer and reference characters.
ae7d06ad
NC
739
7402000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
741
742 * cp-demangle.c (demangle_nv_offset): New function.
743 (demangle_v_offset): Likewise.
744 (demangle_call_offset): Likewise.
745 (demangle_special_name): Update thunk demangling to comply with
746 ABI changes.
ae7d06ad
NC
747
7482000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
749
750 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
751 (substitution_def): Remove template_parm_number.
752 (NOT_TEMPLATE_PARM): Remove.
753 (result_insert_string): New macro.
754 (result_insert): Likewise.
755 (result_insert_char): Likewise.
756 (substitution_add): Remove last parameter. Don't store template
757 parm number.
758 (BFT_NO_RETURN_TYPE): Define as NULL.
759 (demangle_encoding): Adjust call to demangle_bare_function_type.
760 (demangle_name): Adjust substitution. Adjust call to
761 substitution_add.
762 (demangle_prefix): Adjust call to substitution_add.
763 (demangle_identifier): Handle anonymous namespaces.
764 (demangle_operator_name): Change demangling of vendor-extended
765 operator to match ABI changes.
766 (demangle_type_ptr): Change parameters. Make recursive. Handle
767 substitutions here.
768 (demangle_type): Adjust calls to demangle_template_param,
769 substitution_add, and demangle_type_ptr. Fix substitution of
770 templated types.
771 (demangle_function_type): Change parameter to a pointer.
772 (demangle_bare_function_type): Likewise. Adjust insertion point.
773 (demangle_template_param): Remove last parameter.
774 (demangle_expr_primary): Remove unused variable. Adjust call to
775 demangle_template_param.
776 (is_mangled_char): Accept `$' and `.'.
777 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
778 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
779
7802000-08-31 Hans-Peter Nilsson <hp@axis.com>
781
782 * testsuite/demangle-expected: Add nine tests for
783 underscore-after-number followed by five tests for name-signature
784 delimiter.
785
7862000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
787
788 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
789
7902000-08-28 Jason Merrill <jason@redhat.com>
791
792 * Makefile.in (REQUIRED_OFILES): Add md5.o.
793 (CFILES): Add md5.c.
794 * md5.c: New file.
795
7962000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
797
798 * cp-demangle.c (demangle_name): Initialize template_p in local
799 name case. Don't re-add substitutions as candidates.
800 (demangle_nested_name): Use <unqualified-name>.
801 (demangle_prefix): Likewise. Don't add template names as
802 substitution candidates twice, or re-add a substitution or the
803 last prefix component.
804 (demangle_local_name): Adjust output format.
ae7d06ad
NC
805
8062000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
807
808 * cp-demangle.c (result_add_separated_char): Change parameter to
809 int.
810 (substitution_add): Don't check for duplicates. Check if
811 previously allocated size is zero.
812 (demangle_name): Remove duplicate check for std substitution.
813 Clear template flag appropriately.
814 (demangle_prefix): Remove argument to demangle_substitution.
815 Don't check that template flag is already set.
816 (demangle_operator_name): Add pt operator.
817 (demangle_type): Don't treat r as built-in type. Remove argument
818 to demangle_substitution. Fix substitution candidate mechanics.
819 Handle <template-template-parm>s. Improve comments.
820 (demangle_template_param): Don't handle template arg lists here.
821 (demangle_substitution): Remove parameter.
822 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
823
8242000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
825
826 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
827
8282000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
829
830 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
831 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
832 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
833
8342000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
835
836 * cp-demangle.c (result_close_template_list): Remove function.
837 (result_add_separated_char): New function.
838 (result_open_template_list): New macro.
839 (result_close_template_list): Likewise.
840 (demangle_prefix): Don't set template_p if the
841 prefix ends with a ctor name.
842 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
843 (demangle_type): Check for template args after substitution.
844 (demangle_template_args): Use result_open_template_list.
d3e85005 845
ae7d06ad 8462000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 847
ae7d06ad 848 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 849
ae7d06ad 8502000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
851
852 * config/mh-openedition.h: Added -DLE370 definition.
853
a9f34fb6
JL
8542000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
855
856 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
857 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
858 Cast program to 'char *' in errmsg_arg assignment.
859 (PWAIT_ERROR): Define.
860 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
861 to DJGPP's WIF* macros.
862
90aaccd1 8632000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 864 Jeff Law <law@cygnus.com>
90aaccd1 865
ae7d06ad 866 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 867
90aaccd1 868 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
869 * rename.c: Include config.h, unistd.h
870 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 871
6ef554e3
HPN
8722000-07-24 Hans-Peter Nilsson <hp@axis.com>
873
874 * cplus-dem.c (work_stuff_copy_to_from): New.
875 (delete_non_B_K_work_stuff): New.
876 (delete_work_stuff): New.
877 (mop_up): Break out work_stuff partly destruction to
878 delete_non_B_K_work_stuff.
879 (iterate_demangle_function): New.
880 (demangle_prefix): Call iterate_demangle_function instead of
881 demangle_function_name. Leave handling of name-signature
882 __-delimiters to iterate_demangle_function.
883 (demangle_integral_value): Strip an optional
884 following underscore cautiously. Handle negative numbers.
885
ae7d06ad 8862000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 887
ae7d06ad 888 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
889 if (AUTO_DEMANGLING || GNU_DEMANGLING)
890
ae7d06ad
NC
8912000-07-21 Alex Samuel <samuel@codesourcery.com>
892
893 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
894 allocating ctor mangling.
895 (demangle_array_type): Handle empty and non-constant array length.
896
b1233257 8972000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
898 Jeff Law <law@cygnus.com>
899
900 * configure.in (AC_CHECK_HEADERS): Add time.h.
901 (AC_HEADER_TIME): Add check.
902 * configure, config.in: Regenerate.
903 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
904
905 * configure.in (AC_CHECK_HEADERS): Add limits.h.
906 * configure, config.in: Regenerate.
907 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
908 * strtol.c, strtoul.c: #include "config.h". Portably #include
909 <limits.h> and/or <sys/param.h>.
910 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 911
7d3ffcaf
JL
912 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
913 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
914 * configure, config.in: Regenerate.
915 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
916
b1233257
JL
917 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
918
ae7d06ad
NC
9192000-07-21 Mike Stump <mrs@wrs.com>
920
921 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
922 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
923
9242000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
925
926 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
927
928 * setenv.c (setenv): Initialize variable `ep'.
929
930 * sigsetmask.c (abort): Prototype.
931
932 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
933 __STDC__ for stdarg.h include.
934 (int_vasprintf): Prototype.
935 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
936 definition. Cast `global_total_width' in comparison.
937 (main): Prototype. Return a value.
938
939 * vfork.c (fork): Prototype.
940
941 * xexit.c: Include config.h.
942
9adf30b2
JL
9432000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
944
945 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
946 and print it with %u.
947
2ed78d1b
HPN
9482000-07-17 Hans-Peter Nilsson <hp@axis.com>
949
950 * testsuite/regress-demangle (failed test): Show result and
951 expected output.
952
0473bdf7
AH
9532000-07-07 Andrew Haley <aph@cygnus.com>
954
955 * cplus-dem.c (main): fflush() after emitting last char before
956 waiting for input.
957
03d5f569
JM
9582000-06-28 Alex Samuel <samuel@codesourcery.com>
959
960 * cp-demangle.c (demangle_encoding): Accept no substitutions.
961 (demangle_name): Handle <substitution> followed by
962 <unqualified-template-name>.
963 (demangle_type): Follow special substitutions with
964 <class-enum-type>
965 (demangle_subtitution): Set template_p for special substitutions.
966 (main): Fix typos.
ae7d06ad 967
03d5f569
JM
9682000-06-27 Alex Samuel <samuel@codesourcery.com>
969
970 * cp-demangle.c (demangle_special_name): Swap base and derived
971 class when demangling construction vtables.
972
9732000-06-21 Alex Samuel <samuel@codesourcery.com>
974
975 * cp-demangle.c: Don't include ctype.h.
976 (IS_DIGIT): New macro.
977 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
978 instead of isdigit and isalpanum.
979 (demangling_def): Make name and next const pointers.
980 (STATUS_ALLOCATION_FAILED): New status code.
981 (dyn_string_append_space): Handle failure in
982 dyn_string_append_char.
983 (int_to_dyn_string): Likewise. Change return value to status_t.
984 (string_list_new): Handle failure of dyn_string_init.
985 (result_close_template_list): Change return type to status_t.
986 Handle failure in dyn_string_append.
987 (result_push): Change return value to status_t. Handle failure in
988 string_list_new. Handle failure of result_push throughout.
989 (substitution_add): Change return value to status_t. Handle
990 dyn_string failures. Handle failure of substitution_add
991 throughout.
992 (template_arg_list_new): Return NULL on allocation failure.
993 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
994 Handle error result throughout.
995 (result_append): Likewise.
996 (result_append_char): Likewise.
997 (result_append_space): Likewise.
998 (demangling_new): Make argument a const pointer. Handle
999 allocation failures.
1000 (demangle_template_args): Handle failure in template_arg_list_new
1001 and result_close_template_list.
1002 (demangle_discriminator): Return if int_to_dyn_string fails.
1003 (cp_demangle): Likewise.
1004 (cp_demangle_type): New function.
1005 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1006 memory allocation failure.
1007 (main): Likewise.
1008 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1009 IN_LIBGCC2.
1010 (dyn_string_init): Change return value to int. Handle
1011 RETURN_ON_ALLOCATION_FAILURE case.
1012 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1013 (dyn_string_release): Delete the dyn_string.
1014 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1015 (dyn_string_copy): Change return type to int.
1016 (dyn_string_copy_cstr): Likewise.
1017 (dyn_string_prepend): Likewise.
1018 (dyn_string_prepend_cstr): Likewise.
1019 (dyn_string_insert): Likewise.
1020 (dyn_string_insert_cstr): Likewise.
1021 (dyn_string_append): Likewise.
1022 (dyn_string_append_cstr): Likewise.
1023 (dyn_string_append_char): Likewise.
1024 (dyn_string_substring): Likewise.
ae7d06ad 1025
eb383413 10262000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1027
eb383413
L
1028 * cp-demangle.c (demangle_operator_name): Add spaces before
1029 names beginning with a letter: delete, delete[], new, new[],
1030 sizeof.
1031 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1032
eb383413
L
1033Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1034
1035 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1036
1037Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1038
1039 * cp-demangle.c (stdio.h): File included unconditionaly.
1040 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1041 * dyn-string.c (stdio.h): File included.
1042 * partition.c (partition_print): No `&' needed to take the address of
1043 a function.
1044
10452000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1046
1047 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1048
eb383413
L
1049 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1050
1051 * cp-demangle.c (demangle_char): Change parameter from char to int.
1052 (demangle_expression, demangle_expr_primary): Remove extra
1053 semi-colon in prototype.
1054
1055 * dyn-string.c (dyn_string_append_char): Change parameter from
1056 char to int.
1057
1058 * memcmp.c (memcmp): Constify.
1059
1060 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1061 __extension__.
1062
1063 * partition.c (elem_compare): Prototype. Don't cast away
1064 const-ness.
1065
1066 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1067
eb383413
L
10682000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1069
1070 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1071
1072 * cp-demangle.c: Include demangle.h.
1073 (template_arg_list_new): DeANSIfy.
1074 (cp_demangle): Make static and add prototype.
1075 (operator_code, operators): Constify.
1076 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1077
10782000-06-05 Alex Samuel <samuel@codesourcery.com>
1079
1080 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1081 unsigned char.
1082 (demangle_unqualified_name): Likewise.
1083 (demangle_number_literally): Likewise.
1084 (demangle_type): Likewise.
1085 (demangle_substitution): Likewise.
1086 (is_mangled_char): Likewise, for isalnum.
1087
10882000-06-04 Alex Samuel <samuel@codesourcery.com>
1089
1090 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1091 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1092 (cp-demangle.o): New dependency.
1093 (dyn-string.o): Likewise.
1094
1095 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1096
1097 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1098 demangler.
1099 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1100 demangling mode.
1101 (gnu_new_abi_symbol_characters): New function.
1102 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1103 file.
1104 * cp-demangle.c: New file.
ae7d06ad 1105
f03aa80d
AC
1106Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1107
1108 * floatformat.c: Add name to each floatformat field.
1109
77bfb694
JL
1110Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1111
1112 * Makefile.in (objalloc.o): Depend on config.h
1113
5c82d20a
ZW
11142000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1115
eb383413 1116 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1117 if HAVE_STRING_H.
1118 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1119 * objalloc.c: Include config.h. Include stdlib.h and don't
1120 declare malloc or free if HAVE_STDLIB_H.
1121 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1122 else declare malloc without prototype. Include string.h if
1123 HAVE_STRING_H, else declare memset without prototype. Don't
1124 include stddef.h.
1125
eb383413
L
11262000-05-23 Mike Stump <mrs@wrs.com>
1127
1128 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1129 -j3.
eb383413
L
1130
11312000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1132
1133 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1134
11352000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1136
ae7d06ad 1137 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1138 probably zero, also eliminate a warning on alpha.
1139
11402000-05-15 David Edelsohn <edelsohn@gnu.org>
1141
1142 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1143 on $(enable_shared).
1144
11452000-05-10 Jakub Jelinek <jakub@redhat.com>
1146
1147 * config.table: Use mh-sparcpic for sparc*-*-*.
1148
11492000-05-08 Nick Clifton <nickc@cygnus.com>
1150
1151 * Makefile.in (CFILES): Add strncmp.c.
1152 (NEEDED): Add strncmp.
1153
11542000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1155
eb383413
L
1156 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1157 Cast the arguments to `islower' to `unsigned char'.
1158 (print_demangler_list): Prototype.
1159
1160Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1161
1162 * sort.c (UCHAR_MAX): Provide fallback definition.
1163
11642000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1165
1166 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1167 SUBDIRS.
1168
eb383413
L
11692000-04-28 Kenneth Block <block@zk3.dec.com>
1170 Jason Merrill <jason@casey.cygnus.com>
1171
ae7d06ad
NC
1172 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1173 (cplus_demangle_set_style): New function for setting style.
1174 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1175
11762000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1177
1178 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1179
1180 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1181 (libiberty_AC_FUNC_STRNCMP): Invoke.
1182
1183 * strncmp.c: New file.
1184
1185Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1186
1187 * hashtab.c (htab_expand): Add prototype.
1188 (find_empty_slot_for_expand): Likewise.
1189
11902000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1191
1192 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1193 match prototype.
1194 (htab_expand): Cast the return value of xcalloc.
1195
11962000-04-24 Mark Mitchell <mark@codesourcery.com>
1197
1198 * hashtab.c (hash_pointer): New function.
1199 (eq_pointer): Likewise.
1200 (htab_hash_pointer): New variable.
1201 (htab_eq_pointer): Likewise.
1202
12032000-04-23 Mark Mitchell <mark@codesourcery.com>
1204
1205 * sort.c (sort_pointers): Fix endianness bugs.
1206
1207 * sort.c: New file.
1208 * Makefile.in (CFILES): Add sort.c
1209 (REQUIRED_OFILES): Add sort.o.
1210 (sort.o): New target.
1211
19be4303
JL
12122000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1213
1214 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1215 4.3BSD systems.
1216
eb383413
L
1217Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1218
1219 * hashtab.c: Various minor cleanups.
1220 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1221 (htab_find_slot): Likewise.
1222
12232000-04-16 Dave Pitts <dpitts@cozx.com>
1224
1225 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1226
afe36a78
RH
12272000-04-05 Richard Henderson <rth@cygnus.com>
1228
1229 * splay-tree.c (splay_tree_remove): New.
1230
eb383413
L
12312000-03-30 Mark Mitchell <mark@codesourcery.com>
1232
1233 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1234 codes.
1235 (htab_find_with_hash): Likewise.
1236 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1237
eb383413
L
12382000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1239
1240 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1241 unless it will be used. Rearrange loop for better
1242 optimization.
1243 (higher_prime_number): Add static prototype.
1244
b4fe2683
JM
1245Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1246
1247 * Makefile.in (partition.o): Depend on config.h
1248
12492000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1250
1251 * hashtab.c (find_empty_slot_for_expand): New function.
1252 (htab_expand): Use it instead of htab_find_slot.
1253 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1254 argument HASH.
1255 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1256 (htab_find): New wrapper function.
1257 (htab_find_slot): Likewise.
1258 (htab_traverse): Pass slot, not entry, to called function.
1259
12602000-03-09 Alex Samuel <samuel@codesourcery.com>
1261
1262 * Makefile.in (CFILES): Add partition.c.
1263 (REQUIRED_OFILES): Add partition.o.
1264 (partition.o): New rule.
1265 * partition.c: New file.
ae7d06ad 1266
b4fe2683
JM
12672000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1268
1269 * hashtab.c (htab_create): Set del_f.
1270 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1271 Use it.
1272
12732000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1274
1275 * hashtab.c: Remove debugging variables (all_searches,
1276 all_collisions, all_expansions). Delete
1277 all_hash_table_collisions.
1278 (create_hash_table, delete_hash_table, empty_hash_table,
1279 find_hash_table_entry, remove_element_from_hash_table_entry,
1280 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1281 hash_table_elements_number, hash_table_collisions): Rename to:
1282 htab_create, htab_delete, htab_empty, htab_find_slot,
1283 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1284 htab_elements, htab_collisions.
1285 (htab_find): New function, handles common case where you don't
1286 plan to add or delete an entry.
1287 (htab_expand): Don't create a whole new table, just a new
1288 entry vector.
1289 (htab_find_slot): Simplify logic.
1290
08372f14
ILT
12911999-08-03 Ian Lance Taylor <ian@zembu.com>
1292
1293 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1294 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1295
1296 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1297 $(TARGETLIB)n so it works on MSDOS.
1298 (install_to_tooldir): Likewise.
1299
9c8ac5a9
ILT
13001999-07-21 Ian Lance Taylor <ian@zembu.com>
1301
1302 From Mark Elbrecht:
1303 * makefile.dos: Remove; obsolete.
8f36e47c 1304 * configure.bat: Remove; obsolete.
9c8ac5a9 1305
0c0a36a4
ILT
13061999-07-11 Ian Lance Taylor <ian@zembu.com>
1307
1308 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1309 warning.
1310
13112000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1312
1313 * pexecute.c: Conditionally include string.h.
b4fe2683 1314 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1315
13162000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1317
1318 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1319 we're using gcc.
1320
1321 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1322
13231999-12-27 Geoff Keating <geoffk@cygnus.com>
1324
1325 * vasprintf.c (int_vasprintf): Don't re-read the format character
1326 as this mishandles strings like '%%s'.
1327
13281999-12-05 Mark Mitchell <mark@codesourcery.com>
1329
1330 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1331 rather than struct splay_tree_node.
1332 (splay_tree_insert): Use struct splay_tree_s rather than struct
1333 splay_tree.
1334
1335Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1336
1337 * hashtab.c (sys/types.h): File included.
1338
13391999-11-22 Jason Merrill <jason@casey.cygnus.com>
1340
1341 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1342 BSD license, pursuant with
1343
1344 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1345
1346Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1347
1348 * hashtab.c: Include stdio.h.
1349
1350Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1351
1352 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1353
1354Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1355
1356 * xstrdup (sys/types.h): Include this file.
1357
13581999-10-28 Nathan Sidwell <nathan@acm.org>
1359
1360 * Makefile.in (SUBDIRS): New macro.
1361 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1362 avoid multiple subdirectory cleaning.
1363 (*-subdir): Use SUBDIRS.
1364
13651999-10-25 Jim Kingdon <http://developer.redhat.com/>
1366
1367 * cplus-dem.c: Move declarations of standard_symbol_characters and
1368 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1369 warnings.
1370
13711999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1372
1373 * hashtab.c (find_hash_table_entry): When returning a
1374 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1375 (clear_hash_table_slot): New function which deletes an entry
1376 by its position in the table, not its value.
1377 (traverse_hash_table): New function which calls a hook
1378 function for every live entry in the table.
1379
13801999-10-19 Mark Mitchell <mark@codesourcery.com>
1381
1382 * cplus-dem.c (INTBUF_SIZE): New macro.
1383 (string_append_template_idx): New function.
1384 (demangle_expression): Likewise.
1385 (demangle_integral_value): Use it.
1386 (demangle_real_value): New function, split out from ...
1387 (demangle_template_value_parm): ... here. Use
1388 string_append_template_idx. Use demangle_real_value.
1389 (demangle_template): Use string_append_template_idx.
1390 (demangle_qualified): Use consume_count_with_underscores.
1391 (get_count): Tweak formatting.
1392 (do_type): Use string_append_template_idx.
b4fe2683 1393
0c0a36a4
ILT
13941999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1395
1396 * calloc.c: Add a public domain notice.
1397
1398Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1399
1400 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1401
1402Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1403
1404 * Makefile.in (CFILES): Add hashtab.c
1405 (REQUIRED_OFILES): Add hashtab.o
1406 (hashtab.o): Add dependencies.
1407 * hashtab.c: New file
1408
1409Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1410
1411 * basename.c (DIR_SEPARATOR): New macro.
1412 (DIR_SEPARATOR_2): Likewise.
1413 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1414 (IS_DIR_SEPARATOR): Likewise.
1415 (main): Handle MSDOS style pathname.
1416
14171999-10-11 Mark Mitchell <mark@codesourcery.com>
1418
1419 * cplus-dem.c (do_type): Handle pointer to member types whose
1420 enclosing classes have namespace scope.
1421
1422Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1423
1424 * config.table: Provide a backup shell for executing move-if-change.
1425
14261999-10-02 Mark Mitchell <mark@codesourcery.com>
1427
1428 * xmalloc.c (xmalloc): Fix spelling error.
1429 (xcalloc, xrealloc): Likewise.
1430
14311999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1432
1433 * cplus-dem.c (fancy_abort, demangle_integral_value,
1434 demangle_arm_hp_template, recursively_demangle,
1435 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1436 (program_name, program_version, fatal): Constify a char*.
1437 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1438 (main): Call return, not exit.
1439
14401999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1441
1442 * choose-temp.c: Remove obsolete comment about gcc.
1443 (make_temp_file): Constify a char*.
1444
1445Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1446
1447 * xmemdup.c: Include sys/types.h.
1448
14491999-09-07 Jeff Garzik <jgarzik@pobox.com>
1450
1451 * xmemdup.c: New xmemdup function.
1452 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1453
1454Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1455
b4fe2683 1456 * config.table: Add openedition target.
0c0a36a4
ILT
1457 * config/mh-openedition: New file.
1458
1459Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1460
1461 * pexecute.c (pexecute): Fill in temp_base when needed.
1462
14631999-08-31 Richard Henderson <rth@cygnus.com>
1464
1465 * getpwd.c: Check HAVE_GETCWD before defining it away.
1466
14671999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1468
1469 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1470 (REQUIRED_OFILES): Add getpwd.o.
1471 (getpwd.o): Add target.
1472
1473 * configure.in (AC_PREREQ): Bump to 2.13.
1474 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1475
1476 * getpwd.c: New file, moved here from gcc.
1477
14781999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1479
1480 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1481 comparing against a signed quantity.
1482 (arm_special): Likewise.
1483 (demangle_fund_type): Likewise.
1484 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1485 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1486 (main): Constify variable `valid_symbols'.
1487
1488Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1489
1490 * strtoul.c (strtoul): Add parentheses around && within ||.
1491
1492Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1493
1494 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1495 libdir, libsubdir and tooldir.
1496
14971999-08-01 Mark Mitchell <mark@codesourcery.com>
1498
1499 * splay-tree.c (splay_tree_insert): Return the new node.
1500
35ca97ea
RH
15011999-07-14 Richard Henderson <rth@cygnus.com>
1502
b4fe2683 1503 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1504 prototyping directly.
1505 * choose-temp.c: Conditionally include string.h.
1506
0c0a36a4
ILT
15071999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1508
1509 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1510
af32ff69
ILT
15111999-07-11 Ian Lance Taylor <ian@zembu.com>
1512
1513 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1514 warning.
1515
0c0a36a4
ILT
15161999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1517
1518 * Makefile.in (needed-list): Only include stuff we actually need
1519 for libstdc++.
1520
15211999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1522
1523 * configure.in (checkfuncs): Add gettimeofday.
1524 * config.in, configure: Regenerated.
1525
1526Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1527
1528 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1529 the test fails.
1530 * configure: Regenerate.
1531
15321999-06-10 Mike Stump <mrs@wrs.com>
1533
1534 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1535 parallel builds.
1536
15371999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1538
1539 * putenv.c: Include ansidecl.h to define `const'.
1540 * setenv.c: Likewise.
1541
1542Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1543
1544 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1545 * configure.in (funcs): Add putenv and setenv.
1546 (AC_CHECK_FUNCS): Check for putenv and setenv.
1547 * configure: Rebuilt.
1548 * putenv.c setenv.c: New files.
1549
1550 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1551 bytes of space using malloc.
1552
1553Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1554
1555 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1556 the *mangled pointer beyond the end of the string. Clean up code to
1557 match prevailing coding style.
1558
15591999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1560
1561 * tmpnam.c (L_tmpnam): Fix typo.
1562
1563Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1564
1565 * cplus-dem.c (standard_symbol_characters): Renamed from
1566 standard_symbol_alphabet. No longer modify TABLE.
1567 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1568 modify TABLE.
1569 (main): Corresponding changes. Use strchr to determine if a
1570 character is valid.
1571
e9868447
JB
15721999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1573
1574 * cplus-dem.c (main): Use table lookup to distinguish identifier
1575 characters from non-identifier characters.
1576 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1577
33fbbfbc
RH
1578Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1579
1580 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1581 * getruntime.c: Only attempt to include sys/resource.h and
1582 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1583 are defined.
1584
0c0a36a4
ILT
1585Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1586
1587 * configure.in (alloca detection): Handle alloca directly for interix.
1588 * configure: Rebuilt.
1589
1590Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1591
1592 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1593
252b5132
RH
15941999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1595
1596 Fix from Dale Hawkins:
b4fe2683 1597 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
1598 reallocated properly if we use it again.
1599
1600 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1601 stricter about syntax. Always null-terminate string.
1602
c1687039
ILT
1603Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1604
1605 * configure.in (checkfuncs): Check for sbrk.
1606 * config.in: Rebuilt.
1607 * configure: Likewise.
1608 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1609
0c0a36a4
ILT
16101999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1611
1612 Fix from Marcus Daniels:
1613 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1614 identifier looking for another underscore.
1615
1616Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1617
1618 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1619 * xmalloc.c: Likewise.
1620 (xcalloc): UWIN has sbrk.
1621 (xrealloc): Fix guard macro.
1622
252b5132
RH
16231999-04-11 Richard Henderson <rth@cygnus.com>
1624
1625 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1626 or <alloca.h>.
1627 * clock.c (GNU_HZ): New definition.
1628 (clock): Use it.
1629 * getruntime.c: Likewise.
1630
1631 * config.table: Use mh-beos.
1632 * config/mh-beos: New file.
1633
0c0a36a4
ILT
16341999-04-11 Mark Mitchell <mark@codesourcery.com>
1635
1636 * cplus-dem.c (demangle_template_value_parm): Handle
1637 pointers-to-members.
1638 (do_type): Handle template parameters as qualifiers.
1639
252b5132
RH
16401999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1641
1642 * cplus-dem.c: Attempt to handle overflows in counts with some
1643 semblance of grace.
1644 (consume_count): Detect overflows. Return -1 to indicate errors,
1645 instead of zero.
1646 (demangle_template_value_parm, demangle_template): Handle change
1647 to consume_count's return convention.
1648
0c0a36a4
ILT
16491999-04-05 Tom Tromey <tromey@cygnus.com>
1650
1651 * testsuite/regress-demangle: New file.
1652 * testsuite/demangle-expected: New file.
252b5132 1653
0c0a36a4
ILT
1654 * Makefile.in (all, check, installcheck, info, install-info,
1655 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1656 distclean, maintainer-clean, realclean): Depend on corresponding
1657 `-subdir' target.
1658 (all-subdir check-subdir installcheck-subdir info-subdir
1659 install-info-subdir clean-info-subdir dvi-subdir
1660 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1661 distclean-subdir maintainer-clean-subdir): New target.
1662 * testsuite/Makefile.in: New file.
1663 * configure: Rebuilt.
1664 * configure.in: Create testsuite/Makefile.
252b5132
RH
1665
16661999-04-02 Mark Mitchell <mark@codesourcery.com>
1667
1668 * splay-tree.h (splay_tree_compare_pointers): Define.
1669
16701999-03-30 Mark Mitchell <mark@codesourcery.com>
1671
1672 * splay-tree.c (splay_tree_compare_ints): Define.
1673
16741999-03-30 Tom Tromey <tromey@cygnus.com>
1675
1676 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1677 don't advance input pointer.
1678 (demangle_class_name): If consume_count didn't find a count, do
1679 nothing. Don't bother with `strlen' sanity check; consume_count
1680 does it for us.
1681
16821999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1683
1684 From Art Haas <ahaas@neosoft.com>:
1685 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1686 when doing arm or hp style.
1687 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 1688
252b5132
RH
1689Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1690
1691 * pexecute.c (__CYGWIN32__): Rename to
1692 (__CYGWIN__): this.
1693 * xmalloc.c: Likewise.
1694
1695 Changes to support i386-pc-uwin.
1696 * configure.in (*-*-uwin*): Workaround for vfork bug.
1697 * configure: Regenerate.
1698 * pexecute.c (pexecute): Be like standard Unix.
1699 (pwait): Likewise.
1700 * xmalloc.c (first_break): Define.
1701 (xmalloc_set_program_name): Use.
1702 (xmalloc): Use.
1703
1704Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1705
1706 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1707
1708Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1709
1710 * config.table: Check cygwin*, not cygwin32*.
1711
1712Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1713
1714 * Makefile.in: Change mkstemp -> mkstemps.
1715
1716Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1717
1718 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1719 * configure.in (funcs): Check for and conditionally add mkstemps to
1720 the list of functions libiberty will provide.
1721 * configure: Rebuilt.
b4fe2683 1722
252b5132
RH
1723Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1724
b4fe2683 1725 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
1726 platforms that don't have HZ.
1727 * getruntime.c (HZ): Likewise.
1728
1729Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1730
1731 * Makefile.in (xstrdup.o): Depend on config.h.
1732
1733Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1734
1735 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1736 freeing it.
1737
1738Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1739
1740 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1741
1742Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1743
1744 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1745 splay-tree.o.
1746
17471999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1748
1749 * configure.in: Require autoconf 2.12.1 or higher.
1750
17511998-12-30 Michael Meissner <meissner@cygnus.com>
1752
1753 * random.c (NULL): Don't redefine NULL if it is already defined.
1754
1755Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1756
1757 * argv.c (buildargv): Cast the result of alloca in assignment.
1758
1759 * choose-temp.c: Include stdlib.h.
1760
1761 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
1762 (snarf_numeric_literal): Constify first parameter.
1763 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1764 int, not a char.
252b5132
RH
1765 (demangle_qualifier): Likewise.
1766 (demangle_signature): Cast the argument of a ctype function to
1767 unsigned char.
1768 (arm_pt): Add parens around assignment used as truth value.
1769 (demangle_arm_hp_template): Constify variable `args'.
1770 (do_hpacc_template_const_value): Cast the argument of a ctype
1771 function to unsigned char.
1772 (do_hpacc_template_literal): Remove unused variable `i'.
1773 (snarf_numeric_literal): Constify parameter `args'.
1774 Cast the argument of a ctype function to unsigned char.
1775
1776 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 1777 avoid ambiguous `else'.
252b5132
RH
1778
1779 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
1780 `cstart' and `cend' to unsigned char. Cast the argument of macro
1781 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
1782
1783 * objalloc.c (free): Add prototype.
1784
1785Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1786
1787 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1788
1789Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1790
1791 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 1792 doesn't exist.
252b5132 1793 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 1794
252b5132
RH
1795Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1796
1797 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1798 bumping the pointer we read from. Also prepend these codes,
1799 as we do in other places.
1800
18011998-12-18 Nick Clifton <nickc@cygnus.com>
1802
1803 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1804 'const char *' in order to match its usage when calling siblings.
1805 (snarf_numeric_literal): Make first arg 'const char **' in order
1806 to match usage.
1807
1808Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1809
1810 * choose-temp.c: Don't check IN_GCC anymore.
1811
1812 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1813 * memchr.c (memchr): Likewise.
1814 * memcpy.c (memcpy): Likewise.
1815 * memmove.c (memmove): Likewise.
1816
1817 * mkstemp.c: Don't check IN_GCC anymore.
1818 * pexecute.c: Likewise.
1819 * splay-tree.c: Likewise.
1820
1821 * strchr.c (strchr): Use `const', not `CONST'.
1822 * strrchr.c (strrchr): Likewise.
1823 * strtol.c (strtol): Likewise.
1824 * strtoul.c (strtoul): Likewise.
1825
1826Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1827 Elena Zannoni <ezannoni@cygnus.com>
1828 Stan Shebs <shebs@cygnus.com>
1829 Edith Epstein <eepstein@cygnus.com>
1830 Andres MacLeod <amacleod@cygnus.com>
1831 Satish Pai <pai@apollo.hp.com>
1832
1833 * HP aCC demangling support.
1834 * cplus-dem.c
1835 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
1836 demangling correctly when -edg specified; set the demangling style
1837 when user specifies 'edg'. Set strip_underscore to
1838 prepends_underscore, if not HPUXHPPA. Set
1839 current_demangling_style to hp_demangling if HPUXHPPA. Set
1840 current demangling style correctly if the switch is hp. Read
1841 label correctly also in the HP style case.
252b5132 1842 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 1843 function.
252b5132 1844 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 1845 style for this case is the same as ARM.
252b5132
RH
1846 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1847 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
1848 demangle_arm_pt.); check and set value of temp_start field in
1849 multiple places. Also, when ceching for end of template args,
1850 check to see if at end of static member of template class.
252b5132 1851 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 1852 include template args in string defining class.
252b5132
RH
1853 (demangle_class_name): use demangel_arm_hp_template.
1854 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
1855 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1856 Handle EDG_DEMANGLING style. Handle constructor and destructor
1857 ops for HP style.
252b5132 1858 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
1859 styles. global destructor and constructor for HP style are same
1860 as for ARM style. Same for local variables.
252b5132
RH
1861 (demangle_qualified): handle EDG_DEMANGLING style.
1862 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
1863 cases '1' - '9' : initialize the temp_start field to -1 and handle
1864 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1865 and AUTO_DEMANGLING styles. If expecting a function and managed
1866 to demangle the funct args, then handle the LUCID_DEMANGLING,
1867 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1868 class name after "Lnnn_ in HP style case. HP style too needs to
1869 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 1870 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 1871 value param for HP/aCC.
252b5132 1872 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 1873 literal parameter for HP aCC.
252b5132
RH
1874 (recursively_demangle): new function
1875 (snarf_numeric_literal): new function.
1876 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 1877 to message.
252b5132
RH
1878
1879Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1880
1881 * pexecute.c: Remove obsolete ifdefed cygwin code.
1882
1883Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1884
1885 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1886 * cplus-dem.c: Likewise. Conform to libiberty.h.
1887 * pexecute.c: Likewise.
1888 * splay-tree.c: Likewise.
1889
18901998-11-25 Mike Stump <mrs@wrs.com>
1891
1892 * Makefile.in (splay-tree.o): Add config.h dependency.
1893
1894Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1895
1896 * configure.in: Use AC_PREREQ(2.12.1).
1897
18981998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1899
b4fe2683 1900 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
1901
1902Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1903
1904 * mpw.c (mpw_access): Add missing parens.
1905
1906Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1907
1908 * configure.in: Call AC_HEADER_SYS_WAIT.
1909
1910 * pexecute.c: Include sys/wait.h when !IN_GCC.
1911
1912Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1913
1914 * pexecute.c: revert back to checking old Cygwin
1915 preprocessor symbol until some time has passed.
1916
1917Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1918
1919 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1920 since it will now support similar constructs.
1921
1922Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1923
1924 * configure.in: Check for calloc.
1925
1926 * calloc.c: New file.
1927
1928 * xmalloc.c (xcalloc): New function.
1929
1930Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1931
1932 *cplus-dem.c (demangle_prefix): Use the last "__"
1933 in the mangled name when looking for the signature. This allows
1934 template names to begin with "__".
1935
19361998-11-08 Mark Mitchell <mark@markmitchell.com>
1937
1938 * cplus-dem.c (type_kind_t): Add tk_reference.
1939 (demangle_template_value_parm): Handle it.
1940 (do_type): Use it for references, instead of tk_pointer.
1941
1942 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1943 not internal_cplus_demangle.
1944
1945Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1946
1947 * choose-temp.c: Don't include gansidecl.h.
1948 * mkstemp.c: Likewise.
1949 * pexecute.c: Likewise.
1950
1951Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1952
b4fe2683
JM
1953 * configure.in: detect cygwin* instead of cygwin32*
1954 * configure: regenerate
252b5132
RH
1955
1956Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1957
1958 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
1959 whether to include config.h. Possibly include unistd.h in the
1960 !IN_GCC case. Define VFORK_STRING as a printable function call
1961 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1962 defined, include vfork.h. If VMS is defined, define vfork()
1963 appropriately. Remove vfork check on USG, we're using autoconf.
1964 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1965 locally what string to use.
252b5132
RH
1966
19671998-10-26 Mark Mitchell <mark@markmitchell.com>
1968
1969 * splay-tree.c: Tweak include directives to make sure declarations of
1970 xmalloc and free are available.
1971
19721998-10-25 Mark Mitchell <mark@markmitchell.com>
1973
1974 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1975 anonymous namespaces.
1976
19771998-10-23 Mark Mitchell <mark@markmitchell.com>
1978
1979 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1980 with type_quals.
1981 (TYPE_UNQUALIFIED): New macro.
1982 (TYPE_QUAL_CONST): Likewise.
1983 (TYPE_QUAL_VOLATILE): Likewise.
1984 (TYPE_QUAL_RESTRICT): Likewise.
1985 (code_for_qualifier): New function.
1986 (qualifier_string): Likewise.
1987 (demangle_qualifier): Likewise.
1988 (internal_cplus_demangle): Use them.
1989 (demangle_signature): Likewise.
1990 (demangle_template_value_parm): Likewise.
1991 (do_type): Likewise.
1992 (demangle_fund_type)): Likewise.
1993
1994Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1995
1996 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1997 to match prototype.
1998
19991998-10-21 Mark Mitchell <mark@markmitchell.com>
2000
2001 * splay-tree.c: New file.
2002 * Makefile.in (CFILES): Add it.
2003 (REQUIRED_OFILES): Likewise.
2004 (splay-tree.o): Add dependencies.
2005
2006Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2007
2008 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2009 range of 'K' index.
2010
2011Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2012
2013 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2014
2015 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2016 `unsigned char'.
2017 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2018 comparing against one.
2019 (cplus_mangle_opname): Likewise.
2020 (demangle_integral_value): Cast argument of ctype macro to
2021 `unsigned char'.
2022 (demangle_template_value_parm): Likewise.
2023 (demangle_template): Initialize variable `bindex'. Cast the
2024 result of `strlen' to (int) when comparing against one. Remove
2025 unused variable `start_of_value_parm'.
2026 (demangle_class_name): Cast the result of `strlen' to (int) when
2027 comparing against one.
2028 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2029 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2030 when comparing against one.
2031 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2032 (get_count): Likewise.
2033 (do_type): Likewise. Cast the result of `strlen' to (int) when
2034 comparing against one.
2035 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2036 (demangle_function_name): Cast the result of `strlen' to (int)
2037 when comparing against one.
2038
2039 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2040 comparing against one.
2041
2042Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2043
b4fe2683
JM
2044 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2045 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2046 * config.in, configure: Rebuilt.
252b5132
RH
2047
2048 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2049 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2050 * config.in, configure: Rebuilt.
2051
2052Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2053
b4fe2683 2054 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2055
2056Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2057
2058 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2059
2060Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2061
2062 * Merge egcs & devo libiberty.
2063