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