]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
c-tree.texi, [...]: Consistently use "nonzero" instead of "non-zero".
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
7f8fa05d
JM
12001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2
3 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
4 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
5 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
6 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
7 spelling. Give names to function arguments in documentation. Use
8 (void) prototypes in documentation.
9 * functions.texi: Regenerate.
10
0be6abca
KG
112001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12
13 * argv.c (buildargv, tests, main): Const-ify.
14 * cp-demangle.c (operator_code): Likewise.
15 * cplus-dem.c (optable, libiberty_demanglers,
16 cplus_demangle_set_style, cplus_demangle_name_to_style,
17 print_demangler_list): Likewise.
18 * hashtab.c (higher_prime_number): Likewise.
19 * strcasecmp.c (charmap): Likewise.
20 * strerror.c (error_info, strerror, main): Likewise.
21 * strncasecmp.c (charmap): Likewise.
22 * strsignal.c (signal_info): Likewise.
23
0e30ffc5
DD
242001-09-29 DJ Delorie <dj@redhat.com>
25
26 * configure: Regenerate.
27
576fb787
KG
282001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29
30 * concat.c: Include stdlib.h.
31
e922f978
EZ
322001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
33
34 * libiberty.texi: (Top level): Add syncodeindex pg. Add
35 @dircategory and @direntry directives. Add @finalout.
36 (many nodes): Lose the next,prev,up pointers on the @nide line.
37 (Using, Supplemental Functions, Replacement Functions): Fix
38 markup.
39 (Functions): Move around, to allow makeinfo to build the manual
40 without next,prev,up pointers in thye node lines.
41 (Licenses): Fix typos.
42
43 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
44 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
45 * functions.texi: Regenerate.
46
47 * copying-lib.texi: Lose the next,prev,up pointers on the @node
48 line.
49
ae9092da
DD
502001-09-27 DJ Delorie <dj@redhat.com>
51
52 * configure.in: Don't use in-tree texinfo, because libiberty must
53 be built before it. Check for makeinfo version 4 or higher.
54 * functions.texi: Regenerate.
55
aaa5f039
DD
562001-09-20 DJ Delorie <dj@redhat.com>
57 Phil Edwards <pedwards@disaster.jaj.com>
58
59 * configure.in (MAKEINFO, PERL): Detect these.
60 (--enable-maintainer-mode): Add.
61 * configure: Regenerate.
62 * Makefile.in (MAKEINFO, PERL): Define.
63 (libiberty.info, libiberty.dvi, libiberty.html): New.
64 (CFILES): Add bsearch.c.
65 (CONFIGURED_OFILES): New, list of objects configure might add.
66 (maint-missing, maint-buildall): New, for maintainers only.
67 (clean, mostlyclean): Add info/dvi/html files.
68 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
69 * gather-docs: New, for maintainers.
70 * maint-tool: New, for maintainers.
71 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
72 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
73 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
74 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
75 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
76 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
77 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
78 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
79 documentation.
80
c1766881
KG
812001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
82
83 * concat.c (reconcat): Fix for traditional C.
84
ad43d46f
KG
852001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
86
87 * concat.c (reconcat): New function.
88
c1d49704
KG
892001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
90
c793eea7
KG
91 * concat.c (vconcat_length, vconcat_copy, concat_length,
92 concat_copy, concat_copy2): New functions.
93 (concat): Use vconcat_length/vconcat_copy.
94
c1d49704
KG
95 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
96 Define.
97
7a98d9b2
KG
982001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
99
100 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
101 VA_FIXEDARG & VA_CLOSE.
102
103 * vasprintf.c: Check HAVE_STRING_H when including string.h.
104 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
105 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
106
e2dff3f2
KG
1072001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
108
109 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
110
d0708dc1
UD
1112001-08-23 Ulrich Drepper <drepper@redhat.com>
112
113 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
114
1152001-08-23 Ulrich Drepper <drepper@redhat.com>
116
117 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
118 instead of mbrtowc.
119 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
120 wcslen, and __wcscoll instead of wcscoll.
121
ffb9435b
MK
1222001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
123
124 * fibheap.c (fibheap_init, fibnode_init): Remove.
125 (fibheap_new, fibnode_new): Use xcalloc to allocate and
126 initialize memory.
127 (fibheap_insert): Remove check for node allocation failure.
128
f379eac3
RH
1292001-08-21 Richard Henderson <rth@redhat.com>
130
131 * Makefile.in (fibheap.o): Depend on config.h.
132 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
133 functions for inlining.
134
b1c45ae4
CF
135Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
136
137 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
138 hosting on cygwin.
139 * configure: Regenerate.
140
0310e5ac
AC
1412001-08-20 Andrew Cagney <ac131313@redhat.com>
142
143 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
144 HARRIS_FLOAT_FORMAT.
145 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
146 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
147 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
148 (floatformat_m88110_harris_ext): New float formats.
149
8c23e0a4
DB
1502001-08-20 Daniel Berlin <dan@cgsoftware.com>
151
152 * fibheap.c: New file. Fibonacci heap.
153
154 * Makefile.in (CFILES): Add fibheap.c.
155 (REQUIRED_OFILES): Add fibheap.o.
156 (fibheap.o): Add dependencies for fibheap.o.
157
91625004
CF
1582001-08-17 Christopher Faylor <cgf@cygnus.com>
159
160 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
161 * configure: Regenerate.
162
9e0ba685
RH
1632001-08-16 Richard Henderson <rth@redhat.com>
164
165 * hashtab.c (htab_hash_string): New.
166
d80dedbe
AC
1672001-08-13 Andrew Cagney <ac131313@redhat.com>
168
169 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
170 name.
171
ccea0d85
IH
1722001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
173
174 * regex.c (wcs_regex_compile): Use appropriate string
175 to compare with collating element.
176 Fix the padding for the alignment.
177
b0e9bc8c 1782001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
179
180 * lbasename.c (lbasename): Change function definition to return a
181 const char pointer.
182
056400f1
JM
1832001-08-07 Jason Merrill <jason_merrill@redhat.com>
184
185 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
186 for".
187
4e627c41
RH
1882001-08-03 Richard Henderson <rth@redhat.com>
189
190 * Makefile.in (concat.o): Depend on config.h.
191
b6a2f884
AJ
1922001-07-30 Andreas Jaeger <aj@suse.de>
193
194 * concat.c: Include "config.h".
195
c4b9cfe0
AJ
1962001-07-30 Andreas Jaeger <aj@suse.de>
197
198 * regex.c: Declare wcs functions only if compiling with
199 MBS_SUPPORT.
200 Don't use #elif for traditional C.
201
2022001-07-23 Ulrich Drepper <drepper@redhat.com>
203
204 * regex.c: Revamp memory allocation for WCHAR functions to
205 not use too much stack.
206
2072001-07-30 Andreas Jaeger <aj@suse.de>
208
209 * regex.c: Declare wcs functions only if compiling with
210 MBS_SUPPORT.
211 Don't use #elif for traditional C.
212
2cf50fd3
DJ
2132001-07-25 Daniel Jacobowitz <drow@mvista.com>
214
215 * Makefile.in (regex.o): Add dependency on config.h.
216
27ffc806
DD
2172001-07-18 Andreas Schwab <schwab@suse.de>
218
219 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
220 underscore character.
221
2222001-07-18 Ulrich Drepper <drepper@redhat.com>
223
224 * regex.c: Limit string length printed in debug messages to 100
225 chars.
226
2272001-07-18 Andreas Jaeger <aj@suse.de>
228
229 * regex.c: Place under LGPL version 2.1.
230
dd771632
JJ
2312001-07-10 Jeff Johnston <jjohnstn@redhat.com>
232
233 * Makefile.in: Add support for regex code.
234 * regex.c: New file.
235
29650b2b
MK
2362001-07-05 Mark Klein <mklein@dis.com>
237
238 * Makefile.in: Add ffs.c dependency.
239 * configure.in: Add ffs.c.
240 * ffs.c: New file.
241
c8b28221
RH
2422001-06-18 Richard Henderson <rth@redhat.com>
243
244 * concat.c: Include <sys/types.h>.
245
473c2d0b
LR
2462001-06-11 Loren J. Rittle <ljrittle@acm.org>
247
a4c03da2 248 bootstrap/3106
473c2d0b
LR
249 * strerror.c (sys_nerr): Hide the OS header version.
250 * strsignal.c (sys_nsig): Likewise.
251
0bdcca68
RH
2522001-06-10 Richard Henderson <rth@redhat.com>
253
254 * concat.c: Include string.h. Fix int vs size_t usage.
255 Simplify the iteration loops. Use memcpy.
256
6de133d3
MK
2572001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
258
259 * partition.c: Fix misspelling of `implementation'.
260
8a153288
TS
2612001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
262
263 * md5.c (md5_init_ctx): Declare constants as unsigned.
264 (md5_process_block): Likewise.
265
641b2721
ZW
2662001-05-07 Zack Weinberg <zackw@stanford.edu>
267
268 * cp-demangle.c (demangle_v3_with_details,
269 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
270 function definition.
271 * ternary.c: Use K+R style function definitions. Use PTR, not
272 void *. Make arguments constant where possible.
273
5cdba4ff
MM
2742001-05-07 Mark Mitchell <mark@codesourcery.com>
275
276 * splay-tree.h (splay_tree_max): New function.
277 (splay_tree_min): Likewise.
278
9dab060e
DB
2792001-04-15 Daniel Berlin <dan@cgsoftware.com>
280
281 * ternary.c: New file - Ternary search tree implementation.
282
283 * Makefile.in: Add ternary.o, and ternary.c dependencies.
284
d02af173
ZW
2852001-04-03 Zack Weinberg <zackw@stanford.edu>
286
287 * make-temp-file.c (try): Inline.
288
94b68558
RH
2892001-02-28 Richard Henderson <rth@redhat.com>
290
291 * Makefile.in (make-temp-file.o): Depend on config.h.
292
27f66c0b
KG
2932001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
294
295 * memchr.c (memchr): Adjust condition to avoid infinite loop.
296
f1a0345c
JJ
2972001-03-23 Jakub Jelinek <jakub@redhat.com>
298
299 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
300 `_' not followed by a digit is invalid.
301
a519fba6
JB
3022001-03-22 Jim Blandy <jimb@redhat.com>
303
304 * cp-demangle.c (string_list_delete): Use dyn_string_delete
305 instead of free, to free the contents as well as the string
306 structure.
307
49ee944b
ZW
3082001-03-21 Zack Weinberg <zackw@stanford.edu>
309
310 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
311 Don't default P_tmpdir to anything. Try /var/tmp before
312 /usr/tmp.
313
33437dc7
ZW
3142001-03-20 Zack Weinberg <zackw@stanford.edu>
315
316 * choose-temp.c: Split off make_temp_file, and the code
317 duplicated between it and choose_temp_base, into...
318 * make-temp-file.c: ... here; new file.
319
320 * Makefile.in (CFILES): Add make-temp-file.c.
321 (REQUIRED_OFILES): Add make-temp-file.o.
322
7dce2eff
JB
3232001-03-20 Jim Blandy <jimb@redhat.com>
324
325 * cp-demangle.c (struct demangling_def): New fields:
326 is_constructor and is_destructor.
327 (demangling_new): Initialize them.
328 (demangle_ctor_dtor_name): Set them, if we detect a constructor
329 or destructor.
330 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
331 is_gnu_v3_mangled_dtor): New functions.
332
e03a61f1
JM
3332001-03-20 Jason Merrill <jason@redhat.com>
334
335 * cplus-dem.c (main): Skip initial $.
336
8860ddab
MM
3372001-03-15 Michael Meissner <meissner@redhat.com>
338
339 * hashtab.c (higher_prime_number): Silence warning that 4294967291
340 might be a signed integer under pre-ISO C systems.
341
2b757d51
NB
3422001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
343 John David Anglin <dave@hiauly1.hia.nrc.ca>
344
345 * libiberty/lbasename.c: New file.
346 * libiberty/Makefile.in: Update for lbasename.
347
1f50aafb
ZW
3482001-03-06 Zack Weinberg <zackw@stanford.edu>
349
350 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
351 * configure.in: Replace all alloca logic with a simple use of
352 the above new macro.
353 * config.table: Kill *-*-beos* entry.
354 * config/mh-beos: Delete.
355 * configure, config.in: Regenerate.
356
357 * Makefile.in (ALLOCA, HFILES): Kill.
358 (REQUIRED_OFILES): Add alloca.o.
359 (alloca.o): Depend on libiberty.h.
360 (argv.o): Don't depend on alloca-conf.h.
361 * alloca-conf.h: Delete.
362 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
363 blocks. Provide the C alloca unconditionally. Use PTR where
364 appropriate. Make i00afunc static.
365 * argv.c: Don't include alloca-conf.h.
366
d9fd5aae
JDA
3672001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
368
369 * cplus-dem.c (main): Cast enum style to int.
370
4031ed65
LR
3712001-02-16 Loren J. Rittle <ljrittle@acm.org>
372
373 * cplus-dem.c (main): Initialize style.
374
2ca46e8a
PE
3752001-02-02 Phil Edwards <pme@sources.redhat.com>
376
377 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
378
3b60dd8e
BM
3792001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
380
381 Add support for Java demangling under the v3 ABI:
382 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
383 (struct demangling_def): Add `style' field.
384 (demangling_new): New parameter `style'. Set it in demangling_t.
385 (demangle_prefix): Use NAMESPACE_SEPARATOR.
386 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
387 (cp_demangle): New parameter `style'. Pass it to demangling_new().
388 (main): Call cp_demangle with extra parameter.
389 (java_demangle_v3): New function.
390 (java_builtin_type_names): New. Table of primitive type names used
391 for Java demangling.
392 (demangle_builtin_type): Look up in java_builtin_type_names if doing
393 Java output.
1f50aafb 394 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
395 demangling.
396 (long_options): Remove obsolete `java' option.
397 (main): Remove explicit handling of `java' option. Instead, pass style
398 parameter in cplus_demangle flags as gdb does.
399 * testsuite/demangle.expected: Add some Java test cases.
400
584932e9
DD
4012000-12-29 DJ Delorie <dj@redhat.com>
402
403 * fnmatch.c: Make the note about the origins of this file more
404 accurate, at least until we can sync with glibc.
405 * getopt.c: Ditto.
406 * getopt1.c: Ditto.
407 * md5.c: Ditto.
408 * obstack.c: Ditto.
409
dac45916
MS
4102000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
411
412 * bsearch.c: New file.
413 * configure.in (funcs): Add bsearch.
414 (AC_CHECK_FUNCS): Likewise.
415 * configure, config.in: Regenerate.
416
a8e4a997
MS
4172000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
418
419 * safe-ctype.c: #include "ansidecl.h".
420 * strtod.c: Likewise.
421
75444da7
MS
4222000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
423
424 * strtoul.c: Include safe-ctype.h, not ctype.h.
425
f6bbde28
ZW
4262000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
427
428 * safe-ctype.c: New file.
429 * Makefile.in (CFILES): Add safe-ctype.c.
430 (REQUIRED_OFILES): Add safe-ctype.o.
431
432 * argv.c: Define ISBLANK and use it, not isspace.
433 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
434 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
435 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
436 before calling TOLOWER(c)/TOUPPER(c).
437
6c1ce62b 4382000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
439
440 * Makefile.in (distclean): When cleaning, remove testsuite.
441
b5d1497d
JM
4422000-12-05 Jason Merrill <jason@redhat.com>
443
444 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
445 name before allocating the dyn_string.
446
c6e13630
JM
4472000-12-04 Jason Merrill <jason@redhat.com>
448
449 * cp-demangle.c: s/new_abi/v3/.
450 * cplus-dem.c: Likewise.
451 (current_demangling_style): Now auto_demangling.
452 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 453 (main): Use standard symbol chars for auto_demangling.
c6e13630 454
a4c9b97e
MM
4552000-11-26 Mark Mitchell <mark@codesourcery.com>
456
457 * hashtab.c (higher_prime_number): Use a table, rather than a
458 seive, to find the next prime.
459
3b3bd9a7
L
4602000-11-22 H.J. Lu <hjl@gnu.org>
461
462 * cplus-dem.c (main): Handle gnat_demangling.
463
d1209685
ZW
4642000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
465
466 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
467 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
468 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
469 argument form of AC_DEFINE in dummy definitions block. Use
470 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
471 in dummy block. Preload cache variables instead of bypassing
472 tests, where possible.
473 * acconfig.h: Removed.
474
475 * xmalloc.c (xmalloc_failed): New function, does error
476 reporting on failed allocation.
477 (xmalloc, xcalloc, xrealloc): Use it.
478
cf183ac2
HPN
4792000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
480
481 * cplus-dem.c (cplus_demangle): Fix formatting.
482 (grow_vect): Ditto.
483 (ada_demangle): Ditto.
484 (internal_cplus_demangle): Ditto.
485 (mop_up): Ditto.
486
4872000-11-21 H.J. Lu <hjl@gnu.org>
488
489 * cplus-dem.c (main): Handle java_demangling.
490
8bcc782c
KG
4912000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
492
493 * cplus-dem.c (grow_vect): Prototype.
494 (ada_demangle): Cast the arg of ctype macros to unsigned char.
495
29120f44
HPN
4962000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
497
498 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
499 parameter `option'.
500
0437a5a8
KB
5012000-11-15 Kenneth Block <kenneth.block@compaq.com>
502
9e038f71 503 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
504 be used in GCC.
505
eab0c1ab 5062000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 507
29120f44 508 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
509 list.
510
d50d20ec
HPN
5112000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
512
513 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
514 xcalloc depending on htab->return_allocation_failure. Return zero
515 if calloc fails.
d50d20ec
HPN
516 (htab_create): Update comment to cover memory allocation.
517 (htab_try_create): New.
518 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 519 Update comment to cover this.
d50d20ec 520
35e9340f
HPN
5212000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
522
523 * hashtab.c: Change void * to PTR where necessary.
524 (htab_create, htab_expand): Correct formatting of comment before
525 function.
526
ea343d1a 5272000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
528
529 * cp-demangle.c (string_list_def): Add caret_position and comments.
530 (result_caret_pos): New macro.
531 (result_append_string): Rename to...
532 (result_add_string): ... this, and insert at caret position.
d1209685 533 Rename throughout.
0870bfd6
AS
534 (result_append): Rename to...
535 (result_add): ... this, and insert at caret position. Rename
d1209685 536 throughout.
0870bfd6
AS
537 (result_append_char): Rename to...
538 (result_add_char): ... this, and insert at caret position. Rename
d1209685 539 throughout.
0870bfd6
AS
540 (result_append_space): Remove.
541 (string_list_new): Initialize caret position.
542 (result_add_separated_char): Use caret position.
543 (result_get_caret): New funtion.
544 (result_set_caret): Likewise.
545 (result_shift_caret): Likewise.
546 (result_previous_char_is_space): Likewise.
547 (substitution_start): Use caret position.
548 (substitution_add): Likewise.
549 (demangling_new): Initialize caret position.
550 (demangle_encoding): Use caret position.
d1209685 551 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
552 (demangle_type_ptr): Use switch statement. Handle pointers to
553 arrays. Don't use result_append_space. Use caret position.
554 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
555 call to demangle_array_type.
556 (demangle_array_type): Add parameter to handle pointers to arrays.
557
f15b9af9
MM
5582000-10-01 Mark Mitchell <mark@codesourcery.com>
559
560 * splay-tree.c (splay_tree_insert): Fix formatting.
561
8f17b5c5
MM
5622000-09-16 Mark Mitchell <mark@codesourcery.com>
563
564 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
565
4eaa189a
MS
5662000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
567
568 * splay-tree.c: #include <stdio.h>.
569
29791078
HPN
5702000-09-14 Hans-Peter Nilsson <hp@axis.com>
571
572 * testsuite/demangle-expected: Add two tests for anonymous
573 namespaces.
574 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
575
2c9f4db7
MM
5762000-09-10 Mark Mitchell <mark@codesourcery.com>
577
578 * splay-tree.c (splay_tree_predecessor): New function.
579 (splay_tree_successor): Likewise.
580
bb22da4b
HPN
5812000-09-10 Hans-Peter Nilsson <hp@axis.com>
582
583 * testsuite/demangle-expected: Add four tests for type_info
584 mangling.
bb22da4b
HPN
585 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
586 for a non-template non-qualified type_info function or node.
587
759e8187
AS
5882000-09-08 Alex Samuel <samuel@codesourcery.com>
589
590 * cp-demangle.c: Fix copyright banner.
591
2ecd81ef
MS
5922000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
593
594 * md5.c: #include "ansidecl.h".
595
d93998ec
AS
5962000-09-06 Alex Samuel <samuel@codesourcery.com>
597
598 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
599 (demangle_type): Handle substitution candidates correctly in the
600 face of special substitutions.
601
1056d228
AS
6022000-09-05 Alex Samuel <samuel@codesourcery.com>
603
604 * cp-demangle.c (demangle_encoding): Rename variable.
605 (demangle_name): Rename parameter. Handle return type
606 suppression.
607 (demangle_nested_name): Rename parameter.
608 (demangle_prefix): Likewise. Change return type suppression.
609 (demangle_unqualified_name): Add parameter. Flag constructors and
610 conversion operators.
611 (demangle_special_name): Fix comment.
612 (demangle_type): Rename variable.
613 (demangle_bare_function_type): Check for missing return type and
d1209685 614 parameter.
1056d228
AS
615 (demangle_class_enum_type): Rename parameter.
616 (demangle_discriminator): Fix misspelling in comment.
617
2f31ed7e
DD
6182000-08-31 DJ Delorie <dj@redhat.com>
619
620 * configure.in (Cygwin): special case cygwin only when we're
621 building cygwin, not when we're hosting cygwin.
622
02bcb9c6
AS
6232000-09-04 Alex Samuel <samuel@codesourcery.com>
624
625 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
626 <expression>.
627
aee749cf
AS
6282000-09-04 Alex Samuel <samuel@codesourcery.com>
629
630 * cp-demangle.c (demangle_type_ptr): Increment position past
631 pointer and reference characters.
632
92a16bbe
AS
6332000-09-04 Alex Samuel <samuel@codesourcery.com>
634
635 * cp-demangle.c (demangle_nv_offset): New function.
636 (demangle_v_offset): Likewise.
637 (demangle_call_offset): Likewise.
638 (demangle_special_name): Update thunk demangling to comply with
639 ABI changes.
d1209685 640
31e0ab1f
AS
6412000-09-03 Alex Samuel <samuel@codesourcery.com>
642
643 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
644 (substitution_def): Remove template_parm_number.
645 (NOT_TEMPLATE_PARM): Remove.
646 (result_insert_string): New macro.
647 (result_insert): Likewise.
648 (result_insert_char): Likewise.
649 (substitution_add): Remove last parameter. Don't store template
d1209685 650 parm number.
31e0ab1f
AS
651 (BFT_NO_RETURN_TYPE): Define as NULL.
652 (demangle_encoding): Adjust call to demangle_bare_function_type.
653 (demangle_name): Adjust substitution. Adjust call to
d1209685 654 substitution_add.
31e0ab1f
AS
655 (demangle_prefix): Adjust call to substitution_add.
656 (demangle_identifier): Handle anonymous namespaces.
657 (demangle_operator_name): Change demangling of vendor-extended
658 operator to match ABI changes.
659 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 660 substitutions here.
31e0ab1f
AS
661 (demangle_type): Adjust calls to demangle_template_param,
662 substitution_add, and demangle_type_ptr. Fix substitution of
663 templated types.
664 (demangle_function_type): Change parameter to a pointer.
665 (demangle_bare_function_type): Likewise. Adjust insertion point.
666 (demangle_template_param): Remove last parameter.
667 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 668 demangle_template_param.
31e0ab1f
AS
669 (is_mangled_char): Accept `$' and `.'.
670 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
671 * dyn-string.c (dyn_string_insert_char): New function.
672
ccbc3eb7
HPN
6732000-08-31 Hans-Peter Nilsson <hp@axis.com>
674
675 * testsuite/demangle-expected: Add nine tests for
676 underscore-after-number followed by five tests for name-signature
677 delimiter.
678
53dce582
RH
6792000-08-28 Richard Henderson <rth@cygnus.com>
680
681 * Makefile.in (md5.o): Depend on config.h.
682
881c6935
JM
6832000-08-28 Jason Merrill <jason@redhat.com>
684
685 * Makefile.in (REQUIRED_OFILES): Add md5.o.
686 (CFILES): Add md5.c.
687 * md5.c: New file.
688
a440fd19
AS
6892000-08-27 Alex Samuel <samuel@codesourcery.com>
690
691 * cp-demangle.c (demangle_name): Initialize template_p in local
692 name case. Don't re-add substitutions as candidates.
693 (demangle_nested_name): Use <unqualified-name>.
694 (demangle_prefix): Likewise. Don't add template names as
695 substitution candidates twice, or re-add a substitution or the
696 last prefix component.
697 (demangle_local_name): Adjust output format.
698
d01ce591
AS
6992000-08-25 Alex Samuel <samuel@codesourcery.com>
700
701 * cp-demangle.c (result_add_separated_char): Change parameter to
702 int.
703 (substitution_add): Don't check for duplicates. Check if
704 previously allocated size is zero.
705 (demangle_name): Remove duplicate check for std substitution.
706 Clear template flag appropriately.
707 (demangle_prefix): Remove argument to demangle_substitution.
708 Don't check that template flag is already set.
709 (demangle_operator_name): Add pt operator.
710 (demangle_type): Don't treat r as built-in type. Remove argument
711 to demangle_substitution. Fix substitution candidate mechanics.
712 Handle <template-template-parm>s. Improve comments.
d1209685 713 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
714 (demangle_substitution): Remove parameter.
715 (print_usage): Remove extra fprintf option.
716
2f59c8eb
GM
7172000-08-24 Greg McGary <greg@mcgary.org>
718
719 * libiberty/random.c (end_ptr): Revert previous change.
720
2f26c11d
GM
7212000-08-24 Greg McGary <greg@mcgary.org>
722
723 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
724 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
725 * libiberty/random.c (end_ptr): Likewise.
726
e282c9c9
AS
7272000-08-23 Alex Samuel <samuel@codesourcery.com>
728
729 * cp-demangle.c (result_close_template_list): Remove function.
730 (result_add_separated_char): New function.
731 (result_open_template_list): New macro.
732 (result_close_template_list): Likewise.
733 (demangle_prefix): Don't set template_p if the
734 prefix ends with a ctor name.
735 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
736 (demangle_type): Check for template args after substitution.
737 (demangle_template_args): Use result_open_template_list.
d1209685 738
c9b6494a
ZW
7392000-08-02 Zack Weinberg <zack@wolery.cumb.org>
740
741 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
742
d1209685 7432000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
744
745 * config/mh-openedition.h: Added -DLE370 definition.
746
0aab2795
ME
7472000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
748
749 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
750 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
751 Cast program to 'char *' in errmsg_arg assignment.
752 (PWAIT_ERROR): Define.
753 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
754 to DJGPP's WIF* macros.
755
c2f275e4
RB
7562000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
757 Jeff Law <law@cygnus.com>
758
73aa9564
RB
759 * getcwd.c: Include string.h, stdlib.h for prototypes
760
c2f275e4 761 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
762 * rename.c: Include config.h, unistd.h
763 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 764
ccbc3eb7
HPN
7652000-07-24 Hans-Peter Nilsson <hp@axis.com>
766
767 * cplus-dem.c (work_stuff_copy_to_from): New.
768 (delete_non_B_K_work_stuff): New.
769 (delete_work_stuff): New.
770 (mop_up): Break out work_stuff partly destruction to
771 delete_non_B_K_work_stuff.
772 (iterate_demangle_function): New.
773 (demangle_prefix): Call iterate_demangle_function instead of
774 demangle_function_name. Leave handling of name-signature
775 __-delimiters to iterate_demangle_function.
776 (demangle_integral_value): Strip an optional
777 following underscore cautiously. Handle negative numbers.
778
3388651c
DB
7792000-07-24 Daniel Berlin <dberlin@redhat.com>
780
d1209685 781 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
782 if (AUTO_DEMANGLING || GNU_DEMANGLING)
783
0fac482e
AS
7842000-07-21 Alex Samuel <samuel@codesourcery.com>
785
786 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
787 allocating ctor mangling.
788 (demangle_array_type): Handle empty and non-constant array length.
789
8502a100 7902000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
791 Jeff Law <law@cygnus.com>
792
c6451ce1
MS
793 * configure.in (AC_CHECK_HEADERS): Add time.h.
794 (AC_HEADER_TIME): Add check.
795 * configure, config.in: Regenerate.
796 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
797
cd447360
MS
798 * configure.in (AC_CHECK_HEADERS): Add limits.h.
799 * configure, config.in: Regenerate.
800 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
801 * strtol.c, strtoul.c: #include "config.h". Portably #include
802 <limits.h> and/or <sys/param.h>.
803 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 804
3b58c099
MS
805 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
806 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
807 * configure, config.in: Regenerate.
808 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
809
8502a100
MS
810 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
811
da0c7743
MS
8122000-07-21 Mike Stump <mrs@wrs.com>
813
814 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 815 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 816
838f8562
KG
8172000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
818
819 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
820
821 * setenv.c (setenv): Initialize variable `ep'.
822
823 * sigsetmask.c (abort): Prototype.
824
825 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
826 __STDC__ for stdarg.h include.
827 (int_vasprintf): Prototype.
828 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
829 definition. Cast `global_total_width' in comparison.
830 (main): Prototype. Return a value.
831
832 * vfork.c (fork): Prototype.
833
834 * xexit.c: Include config.h.
835
e9958132
JM
8362000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
837
838 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
839 and print it with %u.
840
39a6492f
HPN
8412000-07-17 Hans-Peter Nilsson <hp@axis.com>
842
843 * testsuite/regress-demangle (failed test): Show result and
844 expected output.
845
6d0be369
AH
8462000-07-07 Andrew Haley <aph@cygnus.com>
847
848 * cplus-dem.c (main): fflush() after emitting last char before
849 waiting for input.
850
bece74bd
AS
8512000-06-28 Alex Samuel <samuel@codesourcery.com>
852
853 * cp-demangle.c (demangle_encoding): Accept no substitutions.
854 (demangle_name): Handle <substitution> followed by
855 <unqualified-template-name>.
856 (demangle_type): Follow special substitutions with
857 <class-enum-type>
858 (demangle_subtitution): Set template_p for special substitutions.
859 (main): Fix typos.
d1209685 860
229b8ec7
AS
8612000-06-27 Alex Samuel <samuel@codesourcery.com>
862
863 * cp-demangle.c (demangle_special_name): Swap base and derived
864 class when demangling construction vtables.
865
051664b0
AS
8662000-06-21 Alex Samuel <samuel@codesourcery.com>
867
868 * cp-demangle.c: Don't include ctype.h.
869 (IS_DIGIT): New macro.
870 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
871 instead of isdigit and isalpanum.
872 (demangling_def): Make name and next const pointers.
873 (STATUS_ALLOCATION_FAILED): New status code.
874 (dyn_string_append_space): Handle failure in
875 dyn_string_append_char.
876 (int_to_dyn_string): Likewise. Change return value to status_t.
877 (string_list_new): Handle failure of dyn_string_init.
878 (result_close_template_list): Change return type to status_t.
879 Handle failure in dyn_string_append.
880 (result_push): Change return value to status_t. Handle failure in
881 string_list_new. Handle failure of result_push throughout.
882 (substitution_add): Change return value to status_t. Handle
883 dyn_string failures. Handle failure of substitution_add
884 throughout.
885 (template_arg_list_new): Return NULL on allocation failure.
886 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
887 Handle error result throughout.
888 (result_append): Likewise.
889 (result_append_char): Likewise.
890 (result_append_space): Likewise.
891 (demangling_new): Make argument a const pointer. Handle
892 allocation failures.
893 (demangle_template_args): Handle failure in template_arg_list_new
894 and result_close_template_list.
895 (demangle_discriminator): Return if int_to_dyn_string fails.
896 (cp_demangle): Likewise.
897 (cp_demangle_type): New function.
898 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
899 memory allocation failure.
900 (main): Likewise.
901 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
902 IN_LIBGCC2.
903 (dyn_string_init): Change return value to int. Handle
904 RETURN_ON_ALLOCATION_FAILURE case.
905 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
906 (dyn_string_release): Delete the dyn_string.
907 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
908 (dyn_string_copy): Change return type to int.
909 (dyn_string_copy_cstr): Likewise.
910 (dyn_string_prepend): Likewise.
911 (dyn_string_prepend_cstr): Likewise.
912 (dyn_string_insert): Likewise.
913 (dyn_string_insert_cstr): Likewise.
914 (dyn_string_append): Likewise.
915 (dyn_string_append_cstr): Likewise.
916 (dyn_string_append_char): Likewise.
917 (dyn_string_substring): Likewise.
d1209685 918
fe06b696
ZW
9192000-06-09 Zack Weinberg <zack@wolery.cumb.org>
920
921 * cp-demangle.c (demangle_operator_name): Add spaces before
922 names beginning with a letter: delete, delete[], new, new[],
923 sizeof.
924 (demangle_special_name): Handle TF <type> and TJ <type>.
925
6223e158
PDM
926Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
927
928 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
929
48f3e29b
PDM
930Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
931
932 * cp-demangle.c (stdio.h): File included unconditionaly.
933 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
934 * dyn-string.c (stdio.h): File included.
935 * partition.c (partition_print): No `&' needed to take the address of
936 a function.
937
69197e7e
KG
9382000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
939
940 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 941
69197e7e
KG
942 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
943
944 * cp-demangle.c (demangle_char): Change parameter from char to int.
945 (demangle_expression, demangle_expr_primary): Remove extra
946 semi-colon in prototype.
947
948 * dyn-string.c (dyn_string_append_char): Change parameter from
949 char to int.
950
951 * memcmp.c (memcmp): Constify.
952
953 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
954 __extension__.
955
956 * partition.c (elem_compare): Prototype. Don't cast away
957 const-ness.
958
959 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 960
7eb23b1f
KG
9612000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
962
963 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
964
965 * cp-demangle.c: Include demangle.h.
966 (template_arg_list_new): DeANSIfy.
967 (cp_demangle): Make static and add prototype.
968 (operator_code, operators): Constify.
969 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
970
3faa108c
AS
9712000-06-05 Alex Samuel <samuel@codesourcery.com>
972
973 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
974 unsigned char.
975 (demangle_unqualified_name): Likewise.
976 (demangle_number_literally): Likewise.
977 (demangle_type): Likewise.
978 (demangle_substitution): Likewise.
979 (is_mangled_char): Likewise, for isalnum.
980
69afa80d
AS
9812000-06-04 Alex Samuel <samuel@codesourcery.com>
982
983 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
984 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
985 (cp-demangle.o): New dependency.
986 (dyn-string.o): Likewise.
987
988 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
989
990 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
991 demangler.
992 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
993 demangling mode.
994 (gnu_new_abi_symbol_characters): New function.
995 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
996 file.
997 * cp-demangle.c: New file.
d1209685 998
0b72c3df
AC
999Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1000
1001 * floatformat.c: Add name to each floatformat field.
1002
270cea06
JL
1003Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1004
1005 * Makefile.in (objalloc.o): Depend on config.h
1006
d11ec6f0
ZW
10072000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1008
1009 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1010 if HAVE_STRING_H.
1011 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1012 * objalloc.c: Include config.h. Include stdlib.h and don't
1013 declare malloc or free if HAVE_STDLIB_H.
1014 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1015 else declare malloc without prototype. Include string.h if
1016 HAVE_STRING_H, else declare memset without prototype. Don't
1017 include stddef.h.
1018
f8e2da56
MS
10192000-05-23 Mike Stump <mrs@wrs.com>
1020
1021 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1022 -j3.
f8e2da56 1023
650f3068
DA
10242000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1025
1026 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1027
1d2da2e1
HB
10282000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1029
d1209685 1030 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1031 probably zero, also eliminate a warning on alpha.
1032
47668d0a
DE
10332000-05-15 David Edelsohn <edelsohn@gnu.org>
1034
c7a79a32 1035 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1036 on $(enable_shared).
1037
36348eab
JJ
10382000-05-10 Jakub Jelinek <jakub@redhat.com>
1039
1040 * config.table: Use mh-sparcpic for sparc*-*-*.
1041
209bbe34
NC
10422000-05-08 Nick Clifton <nickc@cygnus.com>
1043
1044 * Makefile.in (CFILES): Add strncmp.c.
1045 (NEEDED): Add strncmp.
1046
a85a47fb
KG
10472000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1048
1049 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1050 Cast the arguments to `islower' to `unsigned char'.
1051 (print_demangler_list): Prototype.
1052
4aef973c
PDM
1053Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1054
1055 * sort.c (UCHAR_MAX): Provide fallback definition.
1056
3b94497c
AO
10572000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1058
1059 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1060 SUBDIRS.
1061
24eaa47a
KB
10622000-04-28 Kenneth Block <block@zk3.dec.com>
1063 Jason Merrill <jason@casey.cygnus.com>
1064
d1209685
ZW
1065 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1066 (cplus_demangle_set_style): New function for setting style.
1067 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1068
a9266bfa
KG
10692000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1070
1071 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1072
1073 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1074 (libiberty_AC_FUNC_STRNCMP): Invoke.
1075
1076 * strncmp.c: New file.
1077
8e02c4d0
JH
1078Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1079
1080 * hashtab.c (htab_expand): Add prototype.
1081 (find_empty_slot_for_expand): Likewise.
1082
4feeaae3
KG
10832000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1084
1085 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1086 match prototype.
1087 (htab_expand): Cast the return value of xcalloc.
1088
18a94a2f
MM
10892000-04-24 Mark Mitchell <mark@codesourcery.com>
1090
1091 * hashtab.c (hash_pointer): New function.
1092 (eq_pointer): Likewise.
1093 (htab_hash_pointer): New variable.
1094 (htab_eq_pointer): Likewise.
1095
eeb0656f
MM
10962000-04-23 Mark Mitchell <mark@codesourcery.com>
1097
b51024fc
MM
1098 * sort.c (sort_pointers): Fix endianness bugs.
1099
eeb0656f
MM
1100 * sort.c: New file.
1101 * Makefile.in (CFILES): Add sort.c
1102 (REQUIRED_OFILES): Add sort.o.
1103 (sort.o): New target.
1104
7277f72d
MS
11052000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1106
1107 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1108 4.3BSD systems.
1109
e38992e8
RK
1110Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1111
1112 * hashtab.c: Various minor cleanups.
1113 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1114 (htab_find_slot): Likewise.
1115
498e1ab1
DP
11162000-04-16 Dave Pitts <dpitts@cozx.com>
1117
1118 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1119
dc17cc7b
RH
11202000-04-05 Richard Henderson <rth@cygnus.com>
1121
1122 * splay-tree.c (splay_tree_remove): New.
1123
b13eb66b
MM
11242000-03-30 Mark Mitchell <mark@codesourcery.com>
1125
1126 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1127 codes.
1128 (htab_find_with_hash): Likewise.
1129 (htab_find_slot_with_hash): Likewise.
d1209685 1130
0194e877
ZW
11312000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1132
1133 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1134 unless it will be used. Rearrange loop for better
1135 optimization.
1136 (higher_prime_number): Add static prototype.
1137
abc61fd4
JL
1138Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1139
1140 * Makefile.in (partition.o): Depend on config.h
1141
8c5d513f
BS
11422000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1143
1144 * hashtab.c (find_empty_slot_for_expand): New function.
1145 (htab_expand): Use it instead of htab_find_slot.
1146 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1147 argument HASH.
1148 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1149 (htab_find): New wrapper function.
1150 (htab_find_slot): Likewise.
1151 (htab_traverse): Pass slot, not entry, to called function.
1152
d9d4fb43
AS
11532000-03-09 Alex Samuel <samuel@codesourcery.com>
1154
1155 * Makefile.in (CFILES): Add partition.c.
1156 (REQUIRED_OFILES): Add partition.o.
1157 (partition.o): New rule.
1158 * partition.c: New file.
d1209685 1159
5dc9cffd
ZW
11602000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1161
1162 * hashtab.c (htab_create): Set del_f.
1163 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1164 Use it.
1165
5194cf08
ZW
11662000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1167
1168 * hashtab.c: Remove debugging variables (all_searches,
1169 all_collisions, all_expansions). Delete
1170 all_hash_table_collisions.
1171 (create_hash_table, delete_hash_table, empty_hash_table,
1172 find_hash_table_entry, remove_element_from_hash_table_entry,
1173 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1174 hash_table_elements_number, hash_table_collisions): Rename to:
1175 htab_create, htab_delete, htab_empty, htab_find_slot,
1176 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1177 htab_elements, htab_collisions.
1178 (htab_find): New function, handles common case where you don't
1179 plan to add or delete an entry.
1180 (htab_expand): Don't create a whole new table, just a new
1181 entry vector.
1182 (htab_find_slot): Simplify logic.
1183
5ad5a984
ILT
11841999-08-03 Ian Lance Taylor <ian@zembu.com>
1185
1186 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1187 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1188
1189 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1190 $(TARGETLIB)n so it works on MSDOS.
1191 (install_to_tooldir): Likewise.
1192
11931999-07-21 Ian Lance Taylor <ian@zembu.com>
1194
1195 From Mark Elbrecht:
1196 * makefile.dos: Remove; obsolete.
1197 * configure.bat: Remove; obsolete.
1198
11991999-07-11 Ian Lance Taylor <ian@zembu.com>
1200
1201 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1202 warning.
1203
aeecce42
MK
12042000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1205
1206 * pexecute.c: Conditionally include string.h.
5194cf08 1207 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1208
1eaf7d9c
KG
12092000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1210
1211 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1212 we're using gcc.
1213
1214 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1215
0fadedb2
GK
12161999-12-27 Geoff Keating <geoffk@cygnus.com>
1217
1218 * vasprintf.c (int_vasprintf): Don't re-read the format character
1219 as this mishandles strings like '%%s'.
1220
08230f26
MM
12211999-12-05 Mark Mitchell <mark@codesourcery.com>
1222
1223 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1224 rather than struct splay_tree_node.
1225 (splay_tree_insert): Use struct splay_tree_s rather than struct
1226 splay_tree.
1227
6de9b8ff
PDM
1228Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1229
1230 * hashtab.c (sys/types.h): File included.
1231
f3636679
JM
12321999-11-22 Jason Merrill <jason@casey.cygnus.com>
1233
1234 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1235 BSD license, pursuant with
1236
1237 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1238
36dd3a44
JL
1239Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1240
1241 * hashtab.c: Include stdio.h.
1242
6e300472
JL
1243Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1244
1245 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1246
df548dfc
PDM
1247Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1248
1249 * xstrdup (sys/types.h): Include this file.
1250
2c375143
NS
12511999-10-28 Nathan Sidwell <nathan@acm.org>
1252
1253 * Makefile.in (SUBDIRS): New macro.
1254 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1255 avoid multiple subdirectory cleaning.
1256 (*-subdir): Use SUBDIRS.
1257
a82cecda
JK
12581999-10-25 Jim Kingdon <http://developer.redhat.com/>
1259
1260 * cplus-dem.c: Move declarations of standard_symbol_characters and
1261 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1262 warnings.
1263
ed38f5d5
ZW
12641999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1265
1266 * hashtab.c (find_hash_table_entry): When returning a
1267 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1268 (clear_hash_table_slot): New function which deletes an entry
1269 by its position in the table, not its value.
1270 (traverse_hash_table): New function which calls a hook
1271 function for every live entry in the table.
1272
b60fe4a7
MM
12731999-10-19 Mark Mitchell <mark@codesourcery.com>
1274
1275 * cplus-dem.c (INTBUF_SIZE): New macro.
1276 (string_append_template_idx): New function.
1277 (demangle_expression): Likewise.
1278 (demangle_integral_value): Use it.
1279 (demangle_real_value): New function, split out from ...
1280 (demangle_template_value_parm): ... here. Use
1281 string_append_template_idx. Use demangle_real_value.
1282 (demangle_template): Use string_append_template_idx.
1283 (demangle_qualified): Use consume_count_with_underscores.
1284 (get_count): Tweak formatting.
1285 (do_type): Use string_append_template_idx.
5194cf08 1286
3da5522a
KG
12871999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1288
1289 * calloc.c: Add a public domain notice.
1290
d7d36ea8
PDM
1291Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1292
1293 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1294
a2f945c6
VM
1295Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1296
1297 * Makefile.in (CFILES): Add hashtab.c
1298 (REQUIRED_OFILES): Add hashtab.o
1299 (hashtab.o): Add dependencies.
1300 * hashtab.c: New file
1301
7f22ec2e
MK
1302Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1303
1304 * basename.c (DIR_SEPARATOR): New macro.
1305 (DIR_SEPARATOR_2): Likewise.
1306 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1307 (IS_DIR_SEPARATOR): Likewise.
1308 (main): Handle MSDOS style pathname.
1309
7c56a6ce
MM
13101999-10-11 Mark Mitchell <mark@codesourcery.com>
1311
1312 * cplus-dem.c (do_type): Handle pointer to member types whose
1313 enclosing classes have namespace scope.
1314
cd32188b
ME
1315Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1316
1317 * config.table: Provide a backup shell for executing move-if-change.
1318
fc232f7a
MM
13191999-10-02 Mark Mitchell <mark@codesourcery.com>
1320
1321 * xmalloc.c (xmalloc): Fix spelling error.
1322 (xcalloc, xrealloc): Likewise.
1323
2a138827
KG
13241999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1325
1326 * cplus-dem.c (fancy_abort, demangle_integral_value,
1327 demangle_arm_hp_template, recursively_demangle,
1328 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1329 (program_name, program_version, fatal): Constify a char*.
1330 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1331 (main): Call return, not exit.
1332
5a657fc3
KG
13331999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1334
1335 * choose-temp.c: Remove obsolete comment about gcc.
1336 (make_temp_file): Constify a char*.
1337
33c5ddcd
KG
1338Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1339
1340 * xmemdup.c: Include sys/types.h.
1341
b10647f1
JG
13421999-09-07 Jeff Garzik <jgarzik@pobox.com>
1343
1344 * xmemdup.c: New xmemdup function.
1345 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1346
3dd6c3af
LV
1347Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1348
5194cf08 1349 * config.table: Add openedition target.
3dd6c3af
LV
1350 * config/mh-openedition: New file.
1351
19e28e2a
ME
1352Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1353
1354 * pexecute.c (pexecute): Fill in temp_base when needed.
1355
4dfeccf9
RH
13561999-08-31 Richard Henderson <rth@cygnus.com>
1357
1358 * getpwd.c: Check HAVE_GETCWD before defining it away.
1359
4ac3cb83
KG
13601999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1361
1362 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1363 (REQUIRED_OFILES): Add getpwd.o.
1364 (getpwd.o): Add target.
1365
1366 * configure.in (AC_PREREQ): Bump to 2.13.
1367 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1368
1369 * getpwd.c: New file, moved here from gcc.
1370
e797ff70
KG
13711999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1372
1373 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1374 comparing against a signed quantity.
1375 (arm_special): Likewise.
1376 (demangle_fund_type): Likewise.
1377 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 1378 ATTRIBUTE_UNUSED.
e797ff70
KG
1379 (main): Constify variable `valid_symbols'.
1380
55247fce
PDM
1381Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1382
1383 * strtoul.c (strtoul): Add parentheses around && within ||.
1384
76632dd0
DJ
1385Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1386
1387 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1388 libdir, libsubdir and tooldir.
1389
d080bbfa
MM
13901999-08-01 Mark Mitchell <mark@codesourcery.com>
1391
1392 * splay-tree.c (splay_tree_insert): Return the new node.
1393
a81c752a
RH
13941999-07-14 Richard Henderson <rth@cygnus.com>
1395
5194cf08 1396 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
1397 prototyping directly.
1398 * choose-temp.c: Conditionally include string.h.
1399
8f1824d9
JM
14001999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1401
1402 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1403
652374d3
ILT
14041999-07-11 Ian Lance Taylor <ian@zembu.com>
1405
1406 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1407 warning.
1408
a4494286
JM
14091999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1410
1411 * Makefile.in (needed-list): Only include stuff we actually need
1412 for libstdc++.
1413
90e72e20
AS
14141999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1415
1416 * configure.in (checkfuncs): Add gettimeofday.
1417 * config.in, configure: Regenerated.
1418
b569200e
MK
1419Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1420
1421 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1422 the test fails.
1423 * configure: Regenerate.
1424
73919448
MS
14251999-06-10 Mike Stump <mrs@wrs.com>
1426
1427 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1428 parallel builds.
1429
fee9125c
KG
14301999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1431
1432 * putenv.c: Include ansidecl.h to define `const'.
1433 * setenv.c: Likewise.
1434
71cce721
MN
1435Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1436
a7c9637f
JL
1437 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1438 * configure.in (funcs): Add putenv and setenv.
1439 (AC_CHECK_FUNCS): Check for putenv and setenv.
1440 * configure: Rebuilt.
1441 * putenv.c setenv.c: New files.
1442
71cce721
MN
1443 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1444 bytes of space using malloc.
1445
53504016
SG
1446Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1447
1448 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1449 the *mangled pointer beyond the end of the string. Clean up code to
1450 match prevailing coding style.
1451
34842539
MH
14521999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1453
1454 * tmpnam.c (L_tmpnam): Fix typo.
1455
3a08531d
ME
1456Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1457
1458 * cplus-dem.c (standard_symbol_characters): Renamed from
1459 standard_symbol_alphabet. No longer modify TABLE.
1460 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1461 modify TABLE.
1462 (main): Corresponding changes. Use strchr to determine if a
1463 character is valid.
1464
8db9d08b
JB
14651999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1466
1467 * cplus-dem.c (main): Use table lookup to distinguish identifier
1468 characters from non-identifier characters.
1469 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1470
6a071f4a
FF
1471Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1472
1473 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1474 * getruntime.c: Only attempt to include sys/resource.h and
1475 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1476 are defined.
1477
7dd88617
DT
1478Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1479
1480 * configure.in (alloca detection): Handle alloca directly for interix.
1481 * configure: Rebuilt.
1482
7a1528bc
MK
1483Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1484
1485 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1486
76409268
JB
14871999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1488
1489 Fix from Dale Hawkins:
5194cf08 1490 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
1491 reallocated properly if we use it again.
1492
1493 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1494 stricter about syntax. Always null-terminate string.
1495
acbbd80a
MK
1496Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1497
1498 * configure.in (checkfuncs): Check for sbrk.
1499 * config.in: Rebuilt.
1500 * configure: Likewise.
1501 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1502
92523551
JB
15031999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1504
1505 Fix from Marcus Daniels:
1506 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1507 identifier looking for another underscore.
1508
36eb4217
MK
1509Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1510
1511 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1512 * xmalloc.c: Likewise.
1513 (xcalloc): UWIN has sbrk.
1514 (xrealloc): Fix guard macro.
1515
2c45d1a0
RH
15161999-04-11 Richard Henderson <rth@cygnus.com>
1517
1518 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1519 or <alloca.h>.
1520 * clock.c (GNU_HZ): New definition.
1521 (clock): Use it.
1522 * getruntime.c: Likewise.
1523
1524 * config.table: Use mh-beos.
1525 * config/mh-beos: New file.
1526
391cdef0
MM
15271999-04-11 Mark Mitchell <mark@codesourcery.com>
1528
1529 * cplus-dem.c (demangle_template_value_parm): Handle
1530 pointers-to-members.
1531 (do_type): Handle template parameters as qualifiers.
1532
9d229989
JB
15331999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1534
1535 * cplus-dem.c: Attempt to handle overflows in counts with some
1536 semblance of grace.
1537 (consume_count): Detect overflows. Return -1 to indicate errors,
1538 instead of zero.
1539 (demangle_template_value_parm, demangle_template): Handle change
1540 to consume_count's return convention.
1541
7c72138a
TT
15421999-04-05 Tom Tromey <tromey@cygnus.com>
1543
1544 * testsuite/regress-demangle: New file.
1545 * testsuite/demangle-expected: New file.
1546
1547 * Makefile.in (all, check, installcheck, info, install-info,
1548 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1549 distclean, maintainer-clean, realclean): Depend on corresponding
1550 `-subdir' target.
1551 (all-subdir check-subdir installcheck-subdir info-subdir
1552 install-info-subdir clean-info-subdir dvi-subdir
1553 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1554 distclean-subdir maintainer-clean-subdir): New target.
1555 * testsuite/Makefile.in: New file.
1556 * configure: Rebuilt.
1557 * configure.in: Create testsuite/Makefile.
1558
ae7f7270
MM
15591999-04-02 Mark Mitchell <mark@codesourcery.com>
1560
1561 * splay-tree.h (splay_tree_compare_pointers): Define.
1562
30f72379
MM
15631999-03-30 Mark Mitchell <mark@codesourcery.com>
1564
1565 * splay-tree.c (splay_tree_compare_ints): Define.
1566
4cc48683
TT
15671999-03-30 Tom Tromey <tromey@cygnus.com>
1568
1569 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1570 don't advance input pointer.
1571 (demangle_class_name): If consume_count didn't find a count, do
1572 nothing. Don't bother with `strlen' sanity check; consume_count
1573 does it for us.
1574
3510075c
JL
15751999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1576
1577 From Art Haas <ahaas@neosoft.com>:
1578 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1579 when doing arm or hp style.
1580 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 1581
89f602a7
MK
1582Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1583
1584 * pexecute.c (__CYGWIN32__): Rename to
1585 (__CYGWIN__): this.
1586 * xmalloc.c: Likewise.
1587
1588 Changes to support i386-pc-uwin.
1589 * configure.in (*-*-uwin*): Workaround for vfork bug.
1590 * configure: Regenerate.
1591 * pexecute.c (pexecute): Be like standard Unix.
1592 (pwait): Likewise.
1593 * xmalloc.c (first_break): Define.
1594 (xmalloc_set_program_name): Use.
1595 (xmalloc): Use.
1596
9346c824
FS
1597Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1598
1599 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1600
3510075c
JL
1601Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1602
1603 * config.table: Check cygwin*, not cygwin32*.
1604
8ec65f13
DB
1605Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1606
1607 * Makefile.in: Change mkstemp -> mkstemps.
1608
687361c8
ME
1609Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1610
1611 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1612 * configure.in (funcs): Check for and conditionally add mkstemps to
1613 the list of functions libiberty will provide.
1614 * configure: Rebuilt.
5194cf08 1615
b207e09c
MK
1616Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1617
5194cf08 1618 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
1619 platforms that don't have HZ.
1620 * getruntime.c (HZ): Likewise.
1621
16b4c15e
RH
1622Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1623
1624 * Makefile.in (xstrdup.o): Depend on config.h.
1625
38beb75c
UD
1626Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1627
1628 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1629 freeing it.
1630
7e4311a3
KG
1631Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1632
1633 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1634
3510075c
JL
1635Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1636
1637 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1638 splay-tree.o.
1639
16401999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1641
1642 * configure.in: Require autoconf 2.12.1 or higher.
1643
fb9939b8
MM
16441998-12-30 Michael Meissner <meissner@cygnus.com>
1645
1646 * random.c (NULL): Don't redefine NULL if it is already defined.
1647
087aa398
KG
1648Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1649
1650 * argv.c (buildargv): Cast the result of alloca in assignment.
1651
1652 * choose-temp.c: Include stdlib.h.
38beb75c 1653
087aa398 1654 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
1655 (snarf_numeric_literal): Constify first parameter.
1656 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1657 int, not a char.
087aa398
KG
1658 (demangle_qualifier): Likewise.
1659 (demangle_signature): Cast the argument of a ctype function to
1660 unsigned char.
1661 (arm_pt): Add parens around assignment used as truth value.
1662 (demangle_arm_hp_template): Constify variable `args'.
1663 (do_hpacc_template_const_value): Cast the argument of a ctype
1664 function to unsigned char.
1665 (do_hpacc_template_literal): Remove unused variable `i'.
1666 (snarf_numeric_literal): Constify parameter `args'.
1667 Cast the argument of a ctype function to unsigned char.
1668
1669 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 1670 avoid ambiguous `else'.
38beb75c 1671
087aa398 1672 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
1673 `cstart' and `cend' to unsigned char. Cast the argument of macro
1674 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
1675
1676 * objalloc.c (free): Add prototype.
1677
21f2174d
HPN
1678Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1679
1680 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1681
3510075c
JL
1682Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1683
1684 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 1685 doesn't exist.
3510075c 1686 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 1687
e8fc8222
AM
1688Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1689
1690 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1691 bumping the pointer we read from. Also prepend these codes,
1692 as we do in other places.
1693
3510075c
JL
16941998-12-18 Nick Clifton <nickc@cygnus.com>
1695
1696 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1697 'const char *' in order to match its usage when calling siblings.
1698 (snarf_numeric_literal): Make first arg 'const char **' in order
1699 to match usage.
11a0bb74 1700
f4f30aa1
JL
1701Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1702
11a0bb74
KG
1703 * choose-temp.c: Don't check IN_GCC anymore.
1704
1705 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1706 * memchr.c (memchr): Likewise.
1707 * memcpy.c (memcpy): Likewise.
1708 * memmove.c (memmove): Likewise.
38beb75c 1709
11a0bb74
KG
1710 * mkstemp.c: Don't check IN_GCC anymore.
1711 * pexecute.c: Likewise.
1712 * splay-tree.c: Likewise.
38beb75c 1713
11a0bb74
KG
1714 * strchr.c (strchr): Use `const', not `CONST'.
1715 * strrchr.c (strrchr): Likewise.
1716 * strtol.c (strtol): Likewise.
1717 * strtoul.c (strtoul): Likewise.
1718
70d5ccef
DT
1719Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1720 Elena Zannoni <ezannoni@cygnus.com>
1721 Stan Shebs <shebs@cygnus.com>
1722 Edith Epstein <eepstein@cygnus.com>
1723 Andres MacLeod <amacleod@cygnus.com>
1724 Satish Pai <pai@apollo.hp.com>
1725
1726 * HP aCC demangling support.
1727 * cplus-dem.c
1728 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
1729 demangling correctly when -edg specified; set the demangling style
1730 when user specifies 'edg'. Set strip_underscore to
1731 prepends_underscore, if not HPUXHPPA. Set
1732 current_demangling_style to hp_demangling if HPUXHPPA. Set
1733 current demangling style correctly if the switch is hp. Read
1734 label correctly also in the HP style case.
70d5ccef 1735 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 1736 function.
70d5ccef 1737 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 1738 style for this case is the same as ARM.
70d5ccef
DT
1739 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1740 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
1741 demangle_arm_pt.); check and set value of temp_start field in
1742 multiple places. Also, when ceching for end of template args,
1743 check to see if at end of static member of template class.
70d5ccef 1744 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 1745 include template args in string defining class.
70d5ccef
DT
1746 (demangle_class_name): use demangel_arm_hp_template.
1747 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
1748 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1749 Handle EDG_DEMANGLING style. Handle constructor and destructor
1750 ops for HP style.
70d5ccef 1751 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
1752 styles. global destructor and constructor for HP style are same
1753 as for ARM style. Same for local variables.
70d5ccef
DT
1754 (demangle_qualified): handle EDG_DEMANGLING style.
1755 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
1756 cases '1' - '9' : initialize the temp_start field to -1 and handle
1757 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1758 and AUTO_DEMANGLING styles. If expecting a function and managed
1759 to demangle the funct args, then handle the LUCID_DEMANGLING,
1760 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1761 class name after "Lnnn_ in HP style case. HP style too needs to
1762 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 1763 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 1764 value param for HP/aCC.
70d5ccef 1765 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 1766 literal parameter for HP aCC.
70d5ccef
DT
1767 (recursively_demangle): new function
1768 (snarf_numeric_literal): new function.
1769 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 1770 to message.
70d5ccef 1771
8d525fa8
CF
1772Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1773
1774 * pexecute.c: Remove obsolete ifdefed cygwin code.
1775
9b1a92d8
KG
1776Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1777
1778 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1779 * cplus-dem.c: Likewise. Conform to libiberty.h.
1780 * pexecute.c: Likewise.
1781 * splay-tree.c: Likewise.
1782
c85c3232
MS
17831998-11-25 Mike Stump <mrs@wrs.com>
1784
1785 * Makefile.in (splay-tree.o): Add config.h dependency.
1786
35a6cd99
KG
1787Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1788
1789 * configure.in: Use AC_PREREQ(2.12.1).
1790
6e6e34b7
BK
17911998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1792
5194cf08 1793 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 1794
59b67c11
JL
1795Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1796
1797 * mpw.c (mpw_access): Add missing parens.
1798
a6458d1d
KG
1799Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1800
1801 * configure.in: Call AC_HEADER_SYS_WAIT.
1802
1803 * pexecute.c: Include sys/wait.h when !IN_GCC.
1804
3510075c
JL
1805Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1806
1807 * pexecute.c: revert back to checking old Cygwin
1808 preprocessor symbol until some time has passed.
1809
1810Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1811
1812 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1813 since it will now support similar constructs.
1814
a9acf741
KG
1815Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1816
1817 * configure.in: Check for calloc.
1818
1819 * calloc.c: New file.
1820
1821 * xmalloc.c (xcalloc): New function.
1822
a49fb37a
AM
1823Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1824
1825 *cplus-dem.c (demangle_prefix): Use the last "__"
1826 in the mangled name when looking for the signature. This allows
1827 template names to begin with "__".
1828
0e714131
MM
18291998-11-08 Mark Mitchell <mark@markmitchell.com>
1830
ec2288ff
MM
1831 * cplus-dem.c (type_kind_t): Add tk_reference.
1832 (demangle_template_value_parm): Handle it.
1833 (do_type): Use it for references, instead of tk_pointer.
1834
0e714131
MM
1835 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1836 not internal_cplus_demangle.
1837
2931b6d4
KG
1838Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1839
1840 * choose-temp.c: Don't include gansidecl.h.
1841 * mkstemp.c: Likewise.
1842 * pexecute.c: Likewise.
1843
dd8f3ed5
GN
1844Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1845
5194cf08
ZW
1846 * configure.in: detect cygwin* instead of cygwin32*
1847 * configure: regenerate
dd8f3ed5 1848
c5f7c445
KG
1849Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1850
1851 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
1852 whether to include config.h. Possibly include unistd.h in the
1853 !IN_GCC case. Define VFORK_STRING as a printable function call
1854 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1855 defined, include vfork.h. If VMS is defined, define vfork()
1856 appropriately. Remove vfork check on USG, we're using autoconf.
1857 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1858 locally what string to use.
c5f7c445 1859
ad3ef78e
MM
18601998-10-26 Mark Mitchell <mark@markmitchell.com>
1861
1862 * splay-tree.c: Tweak include directives to make sure declarations of
1863 xmalloc and free are available.
1864
224301c1
MM
18651998-10-25 Mark Mitchell <mark@markmitchell.com>
1866
1867 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1868 anonymous namespaces.
38beb75c 1869
d9db46fd
MM
18701998-10-23 Mark Mitchell <mark@markmitchell.com>
1871
1872 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1873 with type_quals.
1874 (TYPE_UNQUALIFIED): New macro.
1875 (TYPE_QUAL_CONST): Likewise.
1876 (TYPE_QUAL_VOLATILE): Likewise.
1877 (TYPE_QUAL_RESTRICT): Likewise.
1878 (code_for_qualifier): New function.
1879 (qualifier_string): Likewise.
1880 (demangle_qualifier): Likewise.
1881 (internal_cplus_demangle): Use them.
1882 (demangle_signature): Likewise.
1883 (demangle_template_value_parm): Likewise.
1884 (do_type): Likewise.
1885 (demangle_fund_type)): Likewise.
224301c1 1886
b056ad1c
KG
1887Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1888
1889 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1890 to match prototype.
1891
ed87f9c8
MM
18921998-10-21 Mark Mitchell <mark@markmitchell.com>
1893
1894 * splay-tree.c: New file.
1895 * Makefile.in (CFILES): Add it.
1896 (REQUIRED_OFILES): Likewise.
1897 (splay-tree.o): Add dependencies.
1898
e0c13971
AS
1899Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1900
1901 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1902 range of 'K' index.
1903
91e0f659
KG
1904Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1905
1906 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1907
1908 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1909 `unsigned char'.
1910 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1911 comparing against one.
1912 (cplus_mangle_opname): Likewise.
1913 (demangle_integral_value): Cast argument of ctype macro to
1914 `unsigned char'.
1915 (demangle_template_value_parm): Likewise.
1916 (demangle_template): Initialize variable `bindex'. Cast the
1917 result of `strlen' to (int) when comparing against one. Remove
1918 unused variable `start_of_value_parm'.
1919 (demangle_class_name): Cast the result of `strlen' to (int) when
1920 comparing against one.
1921 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1922 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1923 when comparing against one.
1924 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1925 (get_count): Likewise.
1926 (do_type): Likewise. Cast the result of `strlen' to (int) when
1927 comparing against one.
1928 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1929 (demangle_function_name): Cast the result of `strlen' to (int)
1930 when comparing against one.
1931
1932 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1933 comparing against one.
1934
73aeb2ff
JL
1935Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1936
5194cf08
ZW
1937 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1938 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1939 * config.in, configure: Rebuilt.
ae76f1be 1940
73aeb2ff
JL
1941 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1942 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1943 * config.in, configure: Rebuilt.
1944
dd8f3ed5
GN
1945Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1946
5194cf08 1947 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 1948
f77d8413
MT
1949Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1950
1951 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1952
ca6b370d
JL
1953Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1954
1955 * Merge egcs & devo libiberty.
1956
ab4856b1
ML
1957