merge from gcc
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
99b58139
DD
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
e6450fe5
DD
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
da191b5b
DD
242001-09-29 DJ Delorie <dj@redhat.com>
25
26 * configure: Regenerate.
27
916aaa12
DD
282001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29
30 * concat.c: Include stdlib.h.
31
fa9f0e33
DD
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
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
39423523
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
66c94e19
DD
812001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
82
83 * concat.c (reconcat): Fix for traditional C.
84
99ee3a8f
DD
852001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
86
87 * concat.c (reconcat): New function.
88
54c20242
DD
892001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
90
91 * concat.c (vconcat_length, vconcat_copy, concat_length,
92 concat_copy, concat_copy2): New functions.
93 (concat): Use vconcat_length/vconcat_copy.
94
95 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
96 Define.
97
982001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
99
100 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
101 Define.
102
843f21be
DD
1032001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
104
105 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
106 VA_FIXEDARG & VA_CLOSE.
107
108 * vasprintf.c: Check HAVE_STRING_H when including string.h.
109 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
110 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
111
8a423cb3
DD
1122001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
113
114 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
115
dc676635
DD
1162001-08-23 Ulrich Drepper <drepper@redhat.com>
117
118 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
119
1202001-08-23 Ulrich Drepper <drepper@redhat.com>
121
122 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
123 instead of mbrtowc.
124 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
125 wcslen, and __wcscoll instead of wcscoll.
126
f080c76d
DD
1272001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
128
129 * fibheap.c (fibheap_init, fibnode_init): Remove.
130 (fibheap_new, fibnode_new): Use xcalloc to allocate and
131 initialize memory.
132 (fibheap_insert): Remove check for node allocation failure.
133
f01b59ed
DD
1342001-08-21 Richard Henderson <rth@redhat.com>
135
136 * Makefile.in (fibheap.o): Depend on config.h.
137 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
138 functions for inlining.
139
140Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
141
142 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
143 hosting on cygwin.
144 * configure: Regenerate.
145
8e777d6a
DD
1462001-08-20 Daniel Berlin <dan@cgsoftware.com>
147
148 * fibheap.c: New file. Fibonacci heap.
149
150 * Makefile.in (CFILES): Add fibheap.c.
151 (REQUIRED_OFILES): Add fibheap.o.
152 (fibheap.o): Add dependencies for fibheap.o.
153
eb828599
AC
1542001-08-20 Andrew Cagney <ac131313@redhat.com>
155
156 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
157 HARRIS_FLOAT_FORMAT.
158 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
159 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
160 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
161 (floatformat_m88110_harris_ext): New float formats.
162
68a41de7
DD
1632001-08-17 Christopher Faylor <cgf@cygnus.com>
164
165 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
166 * configure: Regenerate.
167
8fc34799
DD
1682001-08-16 Richard Henderson <rth@redhat.com>
169
170 * hashtab.c (htab_hash_string): New.
171
16bad250
AC
1722001-08-13 Andrew Cagney <ac131313@redhat.com>
173
174 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
175 name.
176
a9022147
DD
1772001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
178
179 * regex.c (wcs_regex_compile): Use appropriate string
180 to compare with collating element.
181 Fix the padding for the alignment.
182
8aefe91a 1832001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
184
185 * lbasename.c (lbasename): Change function definition to return a
186 const char pointer.
187
e7e9b069
DD
1882001-08-07 Jason Merrill <jason_merrill@redhat.com>
189
190 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
191 for".
192
cc5144f8
DD
1932001-08-03 Richard Henderson <rth@redhat.com>
194
195 * Makefile.in (concat.o): Depend on config.h.
196
8aefe91a
DD
1972001-07-30 Andreas Jaeger <aj@suse.de>
198
199 * concat.c: Include "config.h".
200
86710ce2
DD
2012001-07-30 Andreas Jaeger <aj@suse.de>
202
203 * regex.c: Declare wcs functions only if compiling with
204 MBS_SUPPORT.
205 Don't use #elif for traditional C.
206
2072001-07-23 Ulrich Drepper <drepper@redhat.com>
208
209 * regex.c: Revamp memory allocation for WCHAR functions to
210 not use too much stack.
211
2122001-07-30 Andreas Jaeger <aj@suse.de>
213
214 * regex.c: Declare wcs functions only if compiling with
215 MBS_SUPPORT.
216 Don't use #elif for traditional C.
217
a5d8f731
DD
2182001-07-25 Daniel Jacobowitz <drow@mvista.com>
219
220 * Makefile.in (regex.o): Add dependency on config.h.
221
6ad8a379
DD
2222001-07-18 Andreas Schwab <schwab@suse.de>
223
224 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
225 underscore character.
226
2272001-07-18 Ulrich Drepper <drepper@redhat.com>
228
229 * regex.c: Limit string length printed in debug messages to 100
230 chars.
231
2322001-07-18 Andreas Jaeger <aj@suse.de>
233
234 * regex.c: Place under LGPL version 2.1.
235
2a6ef469
DD
2362001-07-10 Jeff Johnston <jjohnstn@redhat.com>
237
238 * Makefile.in: Add support for regex code.
239 * regex.c: New file.
240
7b78baae
DD
2412001-07-05 Mark Klein <mklein@dis.com>
242
243 * Makefile.in: Add ffs.c dependency.
244 * configure.in: Add ffs.c.
245 * ffs.c: New file.
246
926150e2
DD
2472001-06-18 Richard Henderson <rth@redhat.com>
248
249 * concat.c: Include <sys/types.h>.
250
11f6f21d
DD
2512001-06-11 Loren J. Rittle <ljrittle@acm.org>
252
253 bootstrap/3106
254 * strerror.c (sys_nerr): Hide the OS header version.
255 * strsignal.c (sys_nsig): Likewise.
256
d42dae6c
DD
2572001-06-10 Richard Henderson <rth@redhat.com>
258
259 * concat.c: Include string.h. Fix int vs size_t usage.
260 Simplify the iteration loops. Use memcpy.
261
e05c6d27
DD
2622001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
263
264 * partition.c: Fix misspelling of `implementation'.
265
b50c4073
DD
2662001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
267
268 * md5.c (md5_init_ctx): Declare constants as unsigned.
269 (md5_process_block): Likewise.
270
457161bf
DD
2712001-05-07 Zack Weinberg <zackw@stanford.edu>
272
273 * cp-demangle.c (demangle_v3_with_details,
274 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
275 function definition.
276 * ternary.c: Use K+R style function definitions. Use PTR, not
277 void *. Make arguments constant where possible.
278
e00bc6a7
DD
2792001-05-07 Mark Mitchell <mark@codesourcery.com>
280
281 * splay-tree.h (splay_tree_max): New function.
282 (splay_tree_min): Likewise.
283
400ee7e1
DB
2842001-04-15 Daniel Berlin <dan@cgsoftware.com>
285
286 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
287
288 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 289
d9697354
DD
2902001-04-03 Zack Weinberg <zackw@stanford.edu>
291
292 * make-temp-file.c (try): Inline.
293
a7bf099b
DD
2942001-02-28 Richard Henderson <rth@redhat.com>
295
296 * Makefile.in (make-temp-file.o): Depend on config.h.
297
30a1def2
DD
2982001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
299
300 * memchr.c (memchr): Adjust condition to avoid infinite loop.
301
079c672a
DD
3022001-03-23 Jakub Jelinek <jakub@redhat.com>
303
304 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
305 `_' not followed by a digit is invalid.
306
a88e356a
JB
3072001-03-22 Jim Blandy <jimb@redhat.com>
308
309 * cp-demangle.c (string_list_delete): Use dyn_string_delete
310 instead of free, to free the contents as well as the string
311 structure.
312
1dffcc66
DD
3132001-03-21 Zack Weinberg <zackw@stanford.edu>
314
315 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
316 Don't default P_tmpdir to anything. Try /var/tmp before
317 /usr/tmp.
318
3192001-03-20 Zack Weinberg <zackw@stanford.edu>
320
321 * choose-temp.c: Split off make_temp_file, and the code
322 duplicated between it and choose_temp_base, into...
323 * make-temp-file.c: ... here; new file.
324
325 * Makefile.in (CFILES): Add make-temp-file.c.
326 (REQUIRED_OFILES): Add make-temp-file.o.
327
e61231f1
JB
3282001-03-20 Jim Blandy <jimb@redhat.com>
329
330 * cp-demangle.c (struct demangling_def): New fields:
331 is_constructor and is_destructor.
332 (demangling_new): Initialize them.
333 (demangle_ctor_dtor_name): Set them, if we detect a constructor
334 or destructor.
335 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
336 is_gnu_v3_mangled_dtor): New functions.
337
a9cbbe6d
DD
3382001-03-20 Jason Merrill <jason@redhat.com>
339
340 * cplus-dem.c (main): Skip initial $.
341
b1e51b3c
DD
3422001-03-15 Michael Meissner <meissner@redhat.com>
343
344 * hashtab.c (higher_prime_number): Silence warning that 4294967291
345 might be a signed integer under pre-ISO C systems.
346
8aa30e60 3472001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 348 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 349
8aa30e60
DD
350 * libiberty/lbasename.c: New file.
351 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 352
30673bf5
DD
3532001-03-06 Zack Weinberg <zackw@stanford.edu>
354
355 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
356 * configure.in: Replace all alloca logic with a simple use of
357 the above new macro.
358 * config.table: Kill *-*-beos* entry.
359 * config/mh-beos: Delete.
360 * configure, config.in: Regenerate.
fa03f0a7 361
30673bf5
DD
362 * Makefile.in (ALLOCA, HFILES): Kill.
363 (REQUIRED_OFILES): Add alloca.o.
364 (alloca.o): Depend on libiberty.h.
365 (argv.o): Don't depend on alloca-conf.h.
366 * alloca-conf.h: Delete.
367 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
368 blocks. Provide the C alloca unconditionally. Use PTR where
369 appropriate. Make i00afunc static.
370 * argv.c: Don't include alloca-conf.h.
fa03f0a7 371
5810f394
DD
3722001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
373
374 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 375
a9db032a
DD
3762001-02-16 Loren J. Rittle <ljrittle@acm.org>
377
378 * cplus-dem.c (main): Initialize style.
fa03f0a7 379
8aefe91a
DD
3802001-02-02 Phil Edwards <pme@sources.redhat.com>
381
382 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
383
bc9bf259
DD
3842001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
385
386 Add support for Java demangling under the v3 ABI:
387 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
388 (struct demangling_def): Add `style' field.
389 (demangling_new): New parameter `style'. Set it in demangling_t.
390 (demangle_prefix): Use NAMESPACE_SEPARATOR.
391 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
392 (cp_demangle): New parameter `style'. Pass it to demangling_new().
393 (main): Call cp_demangle with extra parameter.
394 (java_demangle_v3): New function.
395 (java_builtin_type_names): New. Table of primitive type names used
396 for Java demangling.
397 (demangle_builtin_type): Look up in java_builtin_type_names if doing
398 Java output.
399 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
400 demangling.
401 (long_options): Remove obsolete `java' option.
402 (main): Remove explicit handling of `java' option. Instead, pass style
403 parameter in cplus_demangle flags as gdb does.
404 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 405
f6528837
DD
4062000-12-29 DJ Delorie <dj@redhat.com>
407
408 * fnmatch.c: Make the note about the origins of this file more
409 accurate, at least until we can sync with glibc.
410 * getopt.c: Ditto.
411 * getopt1.c: Ditto.
412 * md5.c: Ditto.
413 * obstack.c: Ditto.
9d969b59 414
c6da642e
DD
4152000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
416
417 * bsearch.c: New file.
418 * configure.in (funcs): Add bsearch.
419 (AC_CHECK_FUNCS): Likewise.
420 * configure, config.in: Regenerate.
421
ae7d06ad 4222000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
423
424 * safe-ctype.c: #include "ansidecl.h".
425 * strtod.c: Likewise.
426
ae7d06ad 4272000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
428
429 * strtoul.c: Include safe-ctype.h, not ctype.h.
430
ac424eb3
DD
4312000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
432
433 * safe-ctype.c: New file.
434 * Makefile.in (CFILES): Add safe-ctype.c.
435 (REQUIRED_OFILES): Add safe-ctype.o.
436
437 * argv.c: Define ISBLANK and use it, not isspace.
438 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
439 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
440 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
441 before calling TOLOWER(c)/TOUPPER(c).
442
4415a860
DD
4432000-12-07 Mike Stump <mrs@wrs.com>
444
445 * Makefile.in (distclean): When cleaning, remove testsuite.
446
849ee224
DD
4472000-12-05 Jason Merrill <jason@redhat.com>
448
449 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
450 name before allocating the dyn_string.
451
ae7d06ad 4522000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
453
454 * cp-demangle.c: s/new_abi/v3/.
455 * cplus-dem.c: Likewise.
456 (current_demangling_style): Now auto_demangling.
457 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 458 (main): Use standard symbol chars for auto_demangling.
e49a569c 459
ae7d06ad 4602000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
461
462 * hashtab.c (higher_prime_number): Use a table, rather than a
463 seive, to find the next prime.
ae7d06ad
NC
464
4652000-11-22 H.J. Lu <hjl@gnu.org>
466
467 * cplus-dem.c (main): Handle gnat_demangling.
468
4692000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
470
471 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
472 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
473 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
474 argument form of AC_DEFINE in dummy definitions block. Use
475 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
476 in dummy block. Preload cache variables instead of bypassing
477 tests, where possible.
478 * acconfig.h: Removed.
ae7d06ad 479
2ea7befd
DD
480 * xmalloc.c (xmalloc_failed): New function, does error
481 reporting on failed allocation.
482 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 483
f1775526
HPN
4842000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
485
486 * cplus-dem.c (cplus_demangle): Fix formatting.
487 (grow_vect): Ditto.
488 (ada_demangle): Ditto.
489 (internal_cplus_demangle): Ditto.
490 (mop_up): Ditto.
491
4922000-11-21 H.J. Lu <hjl@gnu.org>
493
494 * cplus-dem.c (main): Handle java_demangling.
495
ae7d06ad 4962000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
497
498 * cplus-dem.c (grow_vect): Prototype.
499 (ada_demangle): Cast the arg of ctype macros to unsigned char.
500
5dd42ef4
HPN
5012000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
502
503 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
504 parameter `option'.
505
296731c1
DD
5062000-11-15 Kenneth Block <kenneth.block@compaq.com>
507
8944fb9d 508 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
509 be used in GCC.
510
6e53a714 5112000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 512
5dd42ef4 513 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
514 list.
515
99a4c1bd
HPN
5162000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
517
518 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
519 xcalloc depending on htab->return_allocation_failure. Return zero
520 if calloc fails.
99a4c1bd
HPN
521 (htab_create): Update comment to cover memory allocation.
522 (htab_try_create): New.
523 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 524 Update comment to cover this.
99a4c1bd 525
e0f3df8f
HPN
5262000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
527
528 * hashtab.c: Change void * to PTR where necessary.
529 (htab_create, htab_expand): Correct formatting of comment before
530 function.
531
ae7d06ad 5322000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
533
534 * cp-demangle.c (string_list_def): Add caret_position and comments.
535 (result_caret_pos): New macro.
536 (result_append_string): Rename to...
537 (result_add_string): ... this, and insert at caret position.
ae7d06ad 538 Rename throughout.
59666b35
DD
539 (result_append): Rename to...
540 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 541 throughout.
59666b35
DD
542 (result_append_char): Rename to...
543 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 544 throughout.
59666b35
DD
545 (result_append_space): Remove.
546 (string_list_new): Initialize caret position.
547 (result_add_separated_char): Use caret position.
548 (result_get_caret): New funtion.
549 (result_set_caret): Likewise.
550 (result_shift_caret): Likewise.
551 (result_previous_char_is_space): Likewise.
552 (substitution_start): Use caret position.
553 (substitution_add): Likewise.
554 (demangling_new): Initialize caret position.
555 (demangle_encoding): Use caret position.
ae7d06ad 556 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
557 (demangle_type_ptr): Use switch statement. Handle pointers to
558 arrays. Don't use result_append_space. Use caret position.
559 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
560 call to demangle_array_type.
561 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 562
ae7d06ad 5632000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
564
565 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
566
5672000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
568
569 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
570
5712000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
572
573 * splay-tree.c: #include <stdio.h>.
574
5752000-09-14 Hans-Peter Nilsson <hp@axis.com>
576
577 * testsuite/demangle-expected: Add two tests for anonymous
578 namespaces.
579 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
580
5812000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
582
583 * splay-tree.c (splay_tree_predecessor): New function.
584 (splay_tree_successor): Likewise.
ae7d06ad
NC
585
5862000-09-10 Hans-Peter Nilsson <hp@axis.com>
587
588 * testsuite/demangle-expected: Add four tests for type_info
589 mangling.
590 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
591 for a non-template non-qualified type_info function or node.
592
5932000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
594
595 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
596
5972000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
598
599 * md5.c: #include "ansidecl.h".
600
6012000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
602
603 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
604 (demangle_type): Handle substitution candidates correctly in the
605 face of special substitutions.
ae7d06ad
NC
606
6072000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
608
609 * cp-demangle.c (demangle_encoding): Rename variable.
610 (demangle_name): Rename parameter. Handle return type
611 suppression.
612 (demangle_nested_name): Rename parameter.
613 (demangle_prefix): Likewise. Change return type suppression.
614 (demangle_unqualified_name): Add parameter. Flag constructors and
615 conversion operators.
616 (demangle_special_name): Fix comment.
617 (demangle_type): Rename variable.
618 (demangle_bare_function_type): Check for missing return type and
619 parameter.
620 (demangle_class_enum_type): Rename parameter.
621 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
622
6232000-08-31 DJ Delorie <dj@redhat.com>
624
625 * configure.in (Cygwin): special case cygwin only when we're
626 building cygwin, not when we're hosting cygwin.
627
6282000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
629
630 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
631 <expression>.
ae7d06ad
NC
632
6332000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
634
635 * cp-demangle.c (demangle_type_ptr): Increment position past
636 pointer and reference characters.
ae7d06ad
NC
637
6382000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
639
640 * cp-demangle.c (demangle_nv_offset): New function.
641 (demangle_v_offset): Likewise.
642 (demangle_call_offset): Likewise.
643 (demangle_special_name): Update thunk demangling to comply with
644 ABI changes.
ae7d06ad
NC
645
6462000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
647
648 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
649 (substitution_def): Remove template_parm_number.
650 (NOT_TEMPLATE_PARM): Remove.
651 (result_insert_string): New macro.
652 (result_insert): Likewise.
653 (result_insert_char): Likewise.
654 (substitution_add): Remove last parameter. Don't store template
655 parm number.
656 (BFT_NO_RETURN_TYPE): Define as NULL.
657 (demangle_encoding): Adjust call to demangle_bare_function_type.
658 (demangle_name): Adjust substitution. Adjust call to
659 substitution_add.
660 (demangle_prefix): Adjust call to substitution_add.
661 (demangle_identifier): Handle anonymous namespaces.
662 (demangle_operator_name): Change demangling of vendor-extended
663 operator to match ABI changes.
664 (demangle_type_ptr): Change parameters. Make recursive. Handle
665 substitutions here.
666 (demangle_type): Adjust calls to demangle_template_param,
667 substitution_add, and demangle_type_ptr. Fix substitution of
668 templated types.
669 (demangle_function_type): Change parameter to a pointer.
670 (demangle_bare_function_type): Likewise. Adjust insertion point.
671 (demangle_template_param): Remove last parameter.
672 (demangle_expr_primary): Remove unused variable. Adjust call to
673 demangle_template_param.
674 (is_mangled_char): Accept `$' and `.'.
675 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
676 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
677
6782000-08-31 Hans-Peter Nilsson <hp@axis.com>
679
680 * testsuite/demangle-expected: Add nine tests for
681 underscore-after-number followed by five tests for name-signature
682 delimiter.
683
6842000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
685
686 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
687
6882000-08-28 Jason Merrill <jason@redhat.com>
689
690 * Makefile.in (REQUIRED_OFILES): Add md5.o.
691 (CFILES): Add md5.c.
692 * md5.c: New file.
693
6942000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
695
696 * cp-demangle.c (demangle_name): Initialize template_p in local
697 name case. Don't re-add substitutions as candidates.
698 (demangle_nested_name): Use <unqualified-name>.
699 (demangle_prefix): Likewise. Don't add template names as
700 substitution candidates twice, or re-add a substitution or the
701 last prefix component.
702 (demangle_local_name): Adjust output format.
ae7d06ad
NC
703
7042000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
705
706 * cp-demangle.c (result_add_separated_char): Change parameter to
707 int.
708 (substitution_add): Don't check for duplicates. Check if
709 previously allocated size is zero.
710 (demangle_name): Remove duplicate check for std substitution.
711 Clear template flag appropriately.
712 (demangle_prefix): Remove argument to demangle_substitution.
713 Don't check that template flag is already set.
714 (demangle_operator_name): Add pt operator.
715 (demangle_type): Don't treat r as built-in type. Remove argument
716 to demangle_substitution. Fix substitution candidate mechanics.
717 Handle <template-template-parm>s. Improve comments.
718 (demangle_template_param): Don't handle template arg lists here.
719 (demangle_substitution): Remove parameter.
720 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
721
7222000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
723
724 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
725
7262000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
727
728 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
729 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
730 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
731
7322000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
733
734 * cp-demangle.c (result_close_template_list): Remove function.
735 (result_add_separated_char): New function.
736 (result_open_template_list): New macro.
737 (result_close_template_list): Likewise.
738 (demangle_prefix): Don't set template_p if the
739 prefix ends with a ctor name.
740 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
741 (demangle_type): Check for template args after substitution.
742 (demangle_template_args): Use result_open_template_list.
d3e85005 743
ae7d06ad 7442000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 745
ae7d06ad 746 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 747
ae7d06ad 7482000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
749
750 * config/mh-openedition.h: Added -DLE370 definition.
751
a9f34fb6
JL
7522000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
753
754 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
755 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
756 Cast program to 'char *' in errmsg_arg assignment.
757 (PWAIT_ERROR): Define.
758 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
759 to DJGPP's WIF* macros.
760
90aaccd1 7612000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 762 Jeff Law <law@cygnus.com>
90aaccd1 763
ae7d06ad 764 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 765
90aaccd1 766 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
767 * rename.c: Include config.h, unistd.h
768 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 769
6ef554e3
HPN
7702000-07-24 Hans-Peter Nilsson <hp@axis.com>
771
772 * cplus-dem.c (work_stuff_copy_to_from): New.
773 (delete_non_B_K_work_stuff): New.
774 (delete_work_stuff): New.
775 (mop_up): Break out work_stuff partly destruction to
776 delete_non_B_K_work_stuff.
777 (iterate_demangle_function): New.
778 (demangle_prefix): Call iterate_demangle_function instead of
779 demangle_function_name. Leave handling of name-signature
780 __-delimiters to iterate_demangle_function.
781 (demangle_integral_value): Strip an optional
782 following underscore cautiously. Handle negative numbers.
783
ae7d06ad 7842000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 785
ae7d06ad 786 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
787 if (AUTO_DEMANGLING || GNU_DEMANGLING)
788
ae7d06ad
NC
7892000-07-21 Alex Samuel <samuel@codesourcery.com>
790
791 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
792 allocating ctor mangling.
793 (demangle_array_type): Handle empty and non-constant array length.
794
b1233257 7952000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
796 Jeff Law <law@cygnus.com>
797
798 * configure.in (AC_CHECK_HEADERS): Add time.h.
799 (AC_HEADER_TIME): Add check.
800 * configure, config.in: Regenerate.
801 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
802
803 * configure.in (AC_CHECK_HEADERS): Add limits.h.
804 * configure, config.in: Regenerate.
805 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
806 * strtol.c, strtoul.c: #include "config.h". Portably #include
807 <limits.h> and/or <sys/param.h>.
808 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 809
7d3ffcaf
JL
810 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
811 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
812 * configure, config.in: Regenerate.
813 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
814
b1233257
JL
815 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
816
ae7d06ad
NC
8172000-07-21 Mike Stump <mrs@wrs.com>
818
819 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
820 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
821
8222000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
823
824 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
825
826 * setenv.c (setenv): Initialize variable `ep'.
827
828 * sigsetmask.c (abort): Prototype.
829
830 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
831 __STDC__ for stdarg.h include.
832 (int_vasprintf): Prototype.
833 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
834 definition. Cast `global_total_width' in comparison.
835 (main): Prototype. Return a value.
836
837 * vfork.c (fork): Prototype.
838
839 * xexit.c: Include config.h.
840
9adf30b2
JL
8412000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
842
843 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
844 and print it with %u.
845
2ed78d1b
HPN
8462000-07-17 Hans-Peter Nilsson <hp@axis.com>
847
848 * testsuite/regress-demangle (failed test): Show result and
849 expected output.
850
0473bdf7
AH
8512000-07-07 Andrew Haley <aph@cygnus.com>
852
853 * cplus-dem.c (main): fflush() after emitting last char before
854 waiting for input.
855
03d5f569
JM
8562000-06-28 Alex Samuel <samuel@codesourcery.com>
857
858 * cp-demangle.c (demangle_encoding): Accept no substitutions.
859 (demangle_name): Handle <substitution> followed by
860 <unqualified-template-name>.
861 (demangle_type): Follow special substitutions with
862 <class-enum-type>
863 (demangle_subtitution): Set template_p for special substitutions.
864 (main): Fix typos.
ae7d06ad 865
03d5f569
JM
8662000-06-27 Alex Samuel <samuel@codesourcery.com>
867
868 * cp-demangle.c (demangle_special_name): Swap base and derived
869 class when demangling construction vtables.
870
8712000-06-21 Alex Samuel <samuel@codesourcery.com>
872
873 * cp-demangle.c: Don't include ctype.h.
874 (IS_DIGIT): New macro.
875 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
876 instead of isdigit and isalpanum.
877 (demangling_def): Make name and next const pointers.
878 (STATUS_ALLOCATION_FAILED): New status code.
879 (dyn_string_append_space): Handle failure in
880 dyn_string_append_char.
881 (int_to_dyn_string): Likewise. Change return value to status_t.
882 (string_list_new): Handle failure of dyn_string_init.
883 (result_close_template_list): Change return type to status_t.
884 Handle failure in dyn_string_append.
885 (result_push): Change return value to status_t. Handle failure in
886 string_list_new. Handle failure of result_push throughout.
887 (substitution_add): Change return value to status_t. Handle
888 dyn_string failures. Handle failure of substitution_add
889 throughout.
890 (template_arg_list_new): Return NULL on allocation failure.
891 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
892 Handle error result throughout.
893 (result_append): Likewise.
894 (result_append_char): Likewise.
895 (result_append_space): Likewise.
896 (demangling_new): Make argument a const pointer. Handle
897 allocation failures.
898 (demangle_template_args): Handle failure in template_arg_list_new
899 and result_close_template_list.
900 (demangle_discriminator): Return if int_to_dyn_string fails.
901 (cp_demangle): Likewise.
902 (cp_demangle_type): New function.
903 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
904 memory allocation failure.
905 (main): Likewise.
906 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
907 IN_LIBGCC2.
908 (dyn_string_init): Change return value to int. Handle
909 RETURN_ON_ALLOCATION_FAILURE case.
910 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
911 (dyn_string_release): Delete the dyn_string.
912 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
913 (dyn_string_copy): Change return type to int.
914 (dyn_string_copy_cstr): Likewise.
915 (dyn_string_prepend): Likewise.
916 (dyn_string_prepend_cstr): Likewise.
917 (dyn_string_insert): Likewise.
918 (dyn_string_insert_cstr): Likewise.
919 (dyn_string_append): Likewise.
920 (dyn_string_append_cstr): Likewise.
921 (dyn_string_append_char): Likewise.
922 (dyn_string_substring): Likewise.
ae7d06ad 923
eb383413 9242000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 925
eb383413
L
926 * cp-demangle.c (demangle_operator_name): Add spaces before
927 names beginning with a letter: delete, delete[], new, new[],
928 sizeof.
929 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 930
eb383413
L
931Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
932
933 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
934
935Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
936
937 * cp-demangle.c (stdio.h): File included unconditionaly.
938 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
939 * dyn-string.c (stdio.h): File included.
940 * partition.c (partition_print): No `&' needed to take the address of
941 a function.
942
9432000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
944
945 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 946
eb383413
L
947 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
948
949 * cp-demangle.c (demangle_char): Change parameter from char to int.
950 (demangle_expression, demangle_expr_primary): Remove extra
951 semi-colon in prototype.
952
953 * dyn-string.c (dyn_string_append_char): Change parameter from
954 char to int.
955
956 * memcmp.c (memcmp): Constify.
957
958 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
959 __extension__.
960
961 * partition.c (elem_compare): Prototype. Don't cast away
962 const-ness.
963
964 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 965
eb383413
L
9662000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
967
968 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
969
970 * cp-demangle.c: Include demangle.h.
971 (template_arg_list_new): DeANSIfy.
972 (cp_demangle): Make static and add prototype.
973 (operator_code, operators): Constify.
974 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
975
9762000-06-05 Alex Samuel <samuel@codesourcery.com>
977
978 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
979 unsigned char.
980 (demangle_unqualified_name): Likewise.
981 (demangle_number_literally): Likewise.
982 (demangle_type): Likewise.
983 (demangle_substitution): Likewise.
984 (is_mangled_char): Likewise, for isalnum.
985
9862000-06-04 Alex Samuel <samuel@codesourcery.com>
987
988 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
989 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
990 (cp-demangle.o): New dependency.
991 (dyn-string.o): Likewise.
992
993 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
994
995 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
996 demangler.
997 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
998 demangling mode.
999 (gnu_new_abi_symbol_characters): New function.
1000 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1001 file.
1002 * cp-demangle.c: New file.
ae7d06ad 1003
f03aa80d
AC
1004Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1005
1006 * floatformat.c: Add name to each floatformat field.
1007
77bfb694
JL
1008Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1009
1010 * Makefile.in (objalloc.o): Depend on config.h
1011
5c82d20a
ZW
10122000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1013
eb383413 1014 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1015 if HAVE_STRING_H.
1016 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1017 * objalloc.c: Include config.h. Include stdlib.h and don't
1018 declare malloc or free if HAVE_STDLIB_H.
1019 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1020 else declare malloc without prototype. Include string.h if
1021 HAVE_STRING_H, else declare memset without prototype. Don't
1022 include stddef.h.
1023
eb383413
L
10242000-05-23 Mike Stump <mrs@wrs.com>
1025
1026 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1027 -j3.
eb383413
L
1028
10292000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1030
1031 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1032
10332000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1034
ae7d06ad 1035 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1036 probably zero, also eliminate a warning on alpha.
1037
10382000-05-15 David Edelsohn <edelsohn@gnu.org>
1039
1040 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1041 on $(enable_shared).
1042
10432000-05-10 Jakub Jelinek <jakub@redhat.com>
1044
1045 * config.table: Use mh-sparcpic for sparc*-*-*.
1046
10472000-05-08 Nick Clifton <nickc@cygnus.com>
1048
1049 * Makefile.in (CFILES): Add strncmp.c.
1050 (NEEDED): Add strncmp.
1051
10522000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1053
eb383413
L
1054 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1055 Cast the arguments to `islower' to `unsigned char'.
1056 (print_demangler_list): Prototype.
1057
1058Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1059
1060 * sort.c (UCHAR_MAX): Provide fallback definition.
1061
10622000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1063
1064 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1065 SUBDIRS.
1066
eb383413
L
10672000-04-28 Kenneth Block <block@zk3.dec.com>
1068 Jason Merrill <jason@casey.cygnus.com>
1069
ae7d06ad
NC
1070 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1071 (cplus_demangle_set_style): New function for setting style.
1072 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1073
10742000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1075
1076 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1077
1078 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1079 (libiberty_AC_FUNC_STRNCMP): Invoke.
1080
1081 * strncmp.c: New file.
1082
1083Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1084
1085 * hashtab.c (htab_expand): Add prototype.
1086 (find_empty_slot_for_expand): Likewise.
1087
10882000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1089
1090 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1091 match prototype.
1092 (htab_expand): Cast the return value of xcalloc.
1093
10942000-04-24 Mark Mitchell <mark@codesourcery.com>
1095
1096 * hashtab.c (hash_pointer): New function.
1097 (eq_pointer): Likewise.
1098 (htab_hash_pointer): New variable.
1099 (htab_eq_pointer): Likewise.
1100
11012000-04-23 Mark Mitchell <mark@codesourcery.com>
1102
1103 * sort.c (sort_pointers): Fix endianness bugs.
1104
1105 * sort.c: New file.
1106 * Makefile.in (CFILES): Add sort.c
1107 (REQUIRED_OFILES): Add sort.o.
1108 (sort.o): New target.
1109
19be4303
JL
11102000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1111
1112 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1113 4.3BSD systems.
1114
eb383413
L
1115Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1116
1117 * hashtab.c: Various minor cleanups.
1118 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1119 (htab_find_slot): Likewise.
1120
11212000-04-16 Dave Pitts <dpitts@cozx.com>
1122
1123 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1124
afe36a78
RH
11252000-04-05 Richard Henderson <rth@cygnus.com>
1126
1127 * splay-tree.c (splay_tree_remove): New.
1128
eb383413
L
11292000-03-30 Mark Mitchell <mark@codesourcery.com>
1130
1131 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1132 codes.
1133 (htab_find_with_hash): Likewise.
1134 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1135
eb383413
L
11362000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1137
1138 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1139 unless it will be used. Rearrange loop for better
1140 optimization.
1141 (higher_prime_number): Add static prototype.
1142
b4fe2683
JM
1143Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1144
1145 * Makefile.in (partition.o): Depend on config.h
1146
11472000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1148
1149 * hashtab.c (find_empty_slot_for_expand): New function.
1150 (htab_expand): Use it instead of htab_find_slot.
1151 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1152 argument HASH.
1153 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1154 (htab_find): New wrapper function.
1155 (htab_find_slot): Likewise.
1156 (htab_traverse): Pass slot, not entry, to called function.
1157
11582000-03-09 Alex Samuel <samuel@codesourcery.com>
1159
1160 * Makefile.in (CFILES): Add partition.c.
1161 (REQUIRED_OFILES): Add partition.o.
1162 (partition.o): New rule.
1163 * partition.c: New file.
ae7d06ad 1164
b4fe2683
JM
11652000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1166
1167 * hashtab.c (htab_create): Set del_f.
1168 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1169 Use it.
1170
11712000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1172
1173 * hashtab.c: Remove debugging variables (all_searches,
1174 all_collisions, all_expansions). Delete
1175 all_hash_table_collisions.
1176 (create_hash_table, delete_hash_table, empty_hash_table,
1177 find_hash_table_entry, remove_element_from_hash_table_entry,
1178 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1179 hash_table_elements_number, hash_table_collisions): Rename to:
1180 htab_create, htab_delete, htab_empty, htab_find_slot,
1181 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1182 htab_elements, htab_collisions.
1183 (htab_find): New function, handles common case where you don't
1184 plan to add or delete an entry.
1185 (htab_expand): Don't create a whole new table, just a new
1186 entry vector.
1187 (htab_find_slot): Simplify logic.
1188
08372f14
ILT
11891999-08-03 Ian Lance Taylor <ian@zembu.com>
1190
1191 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1192 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1193
1194 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1195 $(TARGETLIB)n so it works on MSDOS.
1196 (install_to_tooldir): Likewise.
1197
9c8ac5a9
ILT
11981999-07-21 Ian Lance Taylor <ian@zembu.com>
1199
1200 From Mark Elbrecht:
1201 * makefile.dos: Remove; obsolete.
8f36e47c 1202 * configure.bat: Remove; obsolete.
9c8ac5a9 1203
0c0a36a4
ILT
12041999-07-11 Ian Lance Taylor <ian@zembu.com>
1205
1206 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1207 warning.
1208
12092000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1210
1211 * pexecute.c: Conditionally include string.h.
b4fe2683 1212 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1213
12142000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1215
1216 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1217 we're using gcc.
1218
1219 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1220
12211999-12-27 Geoff Keating <geoffk@cygnus.com>
1222
1223 * vasprintf.c (int_vasprintf): Don't re-read the format character
1224 as this mishandles strings like '%%s'.
1225
12261999-12-05 Mark Mitchell <mark@codesourcery.com>
1227
1228 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1229 rather than struct splay_tree_node.
1230 (splay_tree_insert): Use struct splay_tree_s rather than struct
1231 splay_tree.
1232
1233Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1234
1235 * hashtab.c (sys/types.h): File included.
1236
12371999-11-22 Jason Merrill <jason@casey.cygnus.com>
1238
1239 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1240 BSD license, pursuant with
1241
1242 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1243
1244Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1245
1246 * hashtab.c: Include stdio.h.
1247
1248Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1249
1250 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1251
1252Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1253
1254 * xstrdup (sys/types.h): Include this file.
1255
12561999-10-28 Nathan Sidwell <nathan@acm.org>
1257
1258 * Makefile.in (SUBDIRS): New macro.
1259 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1260 avoid multiple subdirectory cleaning.
1261 (*-subdir): Use SUBDIRS.
1262
12631999-10-25 Jim Kingdon <http://developer.redhat.com/>
1264
1265 * cplus-dem.c: Move declarations of standard_symbol_characters and
1266 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1267 warnings.
1268
12691999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1270
1271 * hashtab.c (find_hash_table_entry): When returning a
1272 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1273 (clear_hash_table_slot): New function which deletes an entry
1274 by its position in the table, not its value.
1275 (traverse_hash_table): New function which calls a hook
1276 function for every live entry in the table.
1277
12781999-10-19 Mark Mitchell <mark@codesourcery.com>
1279
1280 * cplus-dem.c (INTBUF_SIZE): New macro.
1281 (string_append_template_idx): New function.
1282 (demangle_expression): Likewise.
1283 (demangle_integral_value): Use it.
1284 (demangle_real_value): New function, split out from ...
1285 (demangle_template_value_parm): ... here. Use
1286 string_append_template_idx. Use demangle_real_value.
1287 (demangle_template): Use string_append_template_idx.
1288 (demangle_qualified): Use consume_count_with_underscores.
1289 (get_count): Tweak formatting.
1290 (do_type): Use string_append_template_idx.
b4fe2683 1291
0c0a36a4
ILT
12921999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1293
1294 * calloc.c: Add a public domain notice.
1295
1296Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1297
1298 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1299
1300Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1301
1302 * Makefile.in (CFILES): Add hashtab.c
1303 (REQUIRED_OFILES): Add hashtab.o
1304 (hashtab.o): Add dependencies.
1305 * hashtab.c: New file
1306
1307Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1308
1309 * basename.c (DIR_SEPARATOR): New macro.
1310 (DIR_SEPARATOR_2): Likewise.
1311 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1312 (IS_DIR_SEPARATOR): Likewise.
1313 (main): Handle MSDOS style pathname.
1314
13151999-10-11 Mark Mitchell <mark@codesourcery.com>
1316
1317 * cplus-dem.c (do_type): Handle pointer to member types whose
1318 enclosing classes have namespace scope.
1319
1320Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1321
1322 * config.table: Provide a backup shell for executing move-if-change.
1323
13241999-10-02 Mark Mitchell <mark@codesourcery.com>
1325
1326 * xmalloc.c (xmalloc): Fix spelling error.
1327 (xcalloc, xrealloc): Likewise.
1328
13291999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1330
1331 * cplus-dem.c (fancy_abort, demangle_integral_value,
1332 demangle_arm_hp_template, recursively_demangle,
1333 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1334 (program_name, program_version, fatal): Constify a char*.
1335 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1336 (main): Call return, not exit.
1337
13381999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1339
1340 * choose-temp.c: Remove obsolete comment about gcc.
1341 (make_temp_file): Constify a char*.
1342
1343Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1344
1345 * xmemdup.c: Include sys/types.h.
1346
13471999-09-07 Jeff Garzik <jgarzik@pobox.com>
1348
1349 * xmemdup.c: New xmemdup function.
1350 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1351
1352Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1353
b4fe2683 1354 * config.table: Add openedition target.
0c0a36a4
ILT
1355 * config/mh-openedition: New file.
1356
1357Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1358
1359 * pexecute.c (pexecute): Fill in temp_base when needed.
1360
13611999-08-31 Richard Henderson <rth@cygnus.com>
1362
1363 * getpwd.c: Check HAVE_GETCWD before defining it away.
1364
13651999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1366
1367 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1368 (REQUIRED_OFILES): Add getpwd.o.
1369 (getpwd.o): Add target.
1370
1371 * configure.in (AC_PREREQ): Bump to 2.13.
1372 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1373
1374 * getpwd.c: New file, moved here from gcc.
1375
13761999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1377
1378 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1379 comparing against a signed quantity.
1380 (arm_special): Likewise.
1381 (demangle_fund_type): Likewise.
1382 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1383 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1384 (main): Constify variable `valid_symbols'.
1385
1386Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1387
1388 * strtoul.c (strtoul): Add parentheses around && within ||.
1389
1390Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1391
1392 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1393 libdir, libsubdir and tooldir.
1394
13951999-08-01 Mark Mitchell <mark@codesourcery.com>
1396
1397 * splay-tree.c (splay_tree_insert): Return the new node.
1398
35ca97ea
RH
13991999-07-14 Richard Henderson <rth@cygnus.com>
1400
b4fe2683 1401 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1402 prototyping directly.
1403 * choose-temp.c: Conditionally include string.h.
1404
0c0a36a4
ILT
14051999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1406
1407 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1408
af32ff69
ILT
14091999-07-11 Ian Lance Taylor <ian@zembu.com>
1410
1411 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1412 warning.
1413
0c0a36a4
ILT
14141999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1415
1416 * Makefile.in (needed-list): Only include stuff we actually need
1417 for libstdc++.
1418
14191999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1420
1421 * configure.in (checkfuncs): Add gettimeofday.
1422 * config.in, configure: Regenerated.
1423
1424Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1425
1426 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1427 the test fails.
1428 * configure: Regenerate.
1429
14301999-06-10 Mike Stump <mrs@wrs.com>
1431
1432 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1433 parallel builds.
1434
14351999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1436
1437 * putenv.c: Include ansidecl.h to define `const'.
1438 * setenv.c: Likewise.
1439
1440Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1441
1442 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1443 * configure.in (funcs): Add putenv and setenv.
1444 (AC_CHECK_FUNCS): Check for putenv and setenv.
1445 * configure: Rebuilt.
1446 * putenv.c setenv.c: New files.
1447
1448 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1449 bytes of space using malloc.
1450
1451Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1452
1453 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1454 the *mangled pointer beyond the end of the string. Clean up code to
1455 match prevailing coding style.
1456
14571999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1458
1459 * tmpnam.c (L_tmpnam): Fix typo.
1460
1461Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1462
1463 * cplus-dem.c (standard_symbol_characters): Renamed from
1464 standard_symbol_alphabet. No longer modify TABLE.
1465 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1466 modify TABLE.
1467 (main): Corresponding changes. Use strchr to determine if a
1468 character is valid.
1469
e9868447
JB
14701999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1471
1472 * cplus-dem.c (main): Use table lookup to distinguish identifier
1473 characters from non-identifier characters.
1474 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1475
33fbbfbc
RH
1476Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1477
1478 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1479 * getruntime.c: Only attempt to include sys/resource.h and
1480 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1481 are defined.
1482
0c0a36a4
ILT
1483Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1484
1485 * configure.in (alloca detection): Handle alloca directly for interix.
1486 * configure: Rebuilt.
1487
1488Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1489
1490 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1491
252b5132
RH
14921999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1493
1494 Fix from Dale Hawkins:
b4fe2683 1495 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
1496 reallocated properly if we use it again.
1497
1498 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1499 stricter about syntax. Always null-terminate string.
1500
c1687039
ILT
1501Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1502
1503 * configure.in (checkfuncs): Check for sbrk.
1504 * config.in: Rebuilt.
1505 * configure: Likewise.
1506 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1507
0c0a36a4
ILT
15081999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1509
1510 Fix from Marcus Daniels:
1511 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1512 identifier looking for another underscore.
1513
1514Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1515
1516 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1517 * xmalloc.c: Likewise.
1518 (xcalloc): UWIN has sbrk.
1519 (xrealloc): Fix guard macro.
1520
252b5132
RH
15211999-04-11 Richard Henderson <rth@cygnus.com>
1522
1523 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1524 or <alloca.h>.
1525 * clock.c (GNU_HZ): New definition.
1526 (clock): Use it.
1527 * getruntime.c: Likewise.
1528
1529 * config.table: Use mh-beos.
1530 * config/mh-beos: New file.
1531
0c0a36a4
ILT
15321999-04-11 Mark Mitchell <mark@codesourcery.com>
1533
1534 * cplus-dem.c (demangle_template_value_parm): Handle
1535 pointers-to-members.
1536 (do_type): Handle template parameters as qualifiers.
1537
252b5132
RH
15381999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1539
1540 * cplus-dem.c: Attempt to handle overflows in counts with some
1541 semblance of grace.
1542 (consume_count): Detect overflows. Return -1 to indicate errors,
1543 instead of zero.
1544 (demangle_template_value_parm, demangle_template): Handle change
1545 to consume_count's return convention.
1546
0c0a36a4
ILT
15471999-04-05 Tom Tromey <tromey@cygnus.com>
1548
1549 * testsuite/regress-demangle: New file.
1550 * testsuite/demangle-expected: New file.
252b5132 1551
0c0a36a4
ILT
1552 * Makefile.in (all, check, installcheck, info, install-info,
1553 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1554 distclean, maintainer-clean, realclean): Depend on corresponding
1555 `-subdir' target.
1556 (all-subdir check-subdir installcheck-subdir info-subdir
1557 install-info-subdir clean-info-subdir dvi-subdir
1558 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1559 distclean-subdir maintainer-clean-subdir): New target.
1560 * testsuite/Makefile.in: New file.
1561 * configure: Rebuilt.
1562 * configure.in: Create testsuite/Makefile.
252b5132
RH
1563
15641999-04-02 Mark Mitchell <mark@codesourcery.com>
1565
1566 * splay-tree.h (splay_tree_compare_pointers): Define.
1567
15681999-03-30 Mark Mitchell <mark@codesourcery.com>
1569
1570 * splay-tree.c (splay_tree_compare_ints): Define.
1571
15721999-03-30 Tom Tromey <tromey@cygnus.com>
1573
1574 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1575 don't advance input pointer.
1576 (demangle_class_name): If consume_count didn't find a count, do
1577 nothing. Don't bother with `strlen' sanity check; consume_count
1578 does it for us.
1579
15801999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1581
1582 From Art Haas <ahaas@neosoft.com>:
1583 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1584 when doing arm or hp style.
1585 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 1586
252b5132
RH
1587Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1588
1589 * pexecute.c (__CYGWIN32__): Rename to
1590 (__CYGWIN__): this.
1591 * xmalloc.c: Likewise.
1592
1593 Changes to support i386-pc-uwin.
1594 * configure.in (*-*-uwin*): Workaround for vfork bug.
1595 * configure: Regenerate.
1596 * pexecute.c (pexecute): Be like standard Unix.
1597 (pwait): Likewise.
1598 * xmalloc.c (first_break): Define.
1599 (xmalloc_set_program_name): Use.
1600 (xmalloc): Use.
1601
1602Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1603
1604 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1605
1606Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1607
1608 * config.table: Check cygwin*, not cygwin32*.
1609
1610Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1611
1612 * Makefile.in: Change mkstemp -> mkstemps.
1613
1614Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1615
1616 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1617 * configure.in (funcs): Check for and conditionally add mkstemps to
1618 the list of functions libiberty will provide.
1619 * configure: Rebuilt.
b4fe2683 1620
252b5132
RH
1621Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1622
b4fe2683 1623 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
1624 platforms that don't have HZ.
1625 * getruntime.c (HZ): Likewise.
1626
1627Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1628
1629 * Makefile.in (xstrdup.o): Depend on config.h.
1630
1631Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1632
1633 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1634 freeing it.
1635
1636Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1637
1638 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1639
1640Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1641
1642 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1643 splay-tree.o.
1644
16451999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1646
1647 * configure.in: Require autoconf 2.12.1 or higher.
1648
16491998-12-30 Michael Meissner <meissner@cygnus.com>
1650
1651 * random.c (NULL): Don't redefine NULL if it is already defined.
1652
1653Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1654
1655 * argv.c (buildargv): Cast the result of alloca in assignment.
1656
1657 * choose-temp.c: Include stdlib.h.
1658
1659 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
1660 (snarf_numeric_literal): Constify first parameter.
1661 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1662 int, not a char.
252b5132
RH
1663 (demangle_qualifier): Likewise.
1664 (demangle_signature): Cast the argument of a ctype function to
1665 unsigned char.
1666 (arm_pt): Add parens around assignment used as truth value.
1667 (demangle_arm_hp_template): Constify variable `args'.
1668 (do_hpacc_template_const_value): Cast the argument of a ctype
1669 function to unsigned char.
1670 (do_hpacc_template_literal): Remove unused variable `i'.
1671 (snarf_numeric_literal): Constify parameter `args'.
1672 Cast the argument of a ctype function to unsigned char.
1673
1674 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 1675 avoid ambiguous `else'.
252b5132
RH
1676
1677 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
1678 `cstart' and `cend' to unsigned char. Cast the argument of macro
1679 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
1680
1681 * objalloc.c (free): Add prototype.
1682
1683Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1684
1685 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1686
1687Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1688
1689 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 1690 doesn't exist.
252b5132 1691 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 1692
252b5132
RH
1693Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1694
1695 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1696 bumping the pointer we read from. Also prepend these codes,
1697 as we do in other places.
1698
16991998-12-18 Nick Clifton <nickc@cygnus.com>
1700
1701 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1702 'const char *' in order to match its usage when calling siblings.
1703 (snarf_numeric_literal): Make first arg 'const char **' in order
1704 to match usage.
1705
1706Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1707
1708 * choose-temp.c: Don't check IN_GCC anymore.
1709
1710 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1711 * memchr.c (memchr): Likewise.
1712 * memcpy.c (memcpy): Likewise.
1713 * memmove.c (memmove): Likewise.
1714
1715 * mkstemp.c: Don't check IN_GCC anymore.
1716 * pexecute.c: Likewise.
1717 * splay-tree.c: Likewise.
1718
1719 * strchr.c (strchr): Use `const', not `CONST'.
1720 * strrchr.c (strrchr): Likewise.
1721 * strtol.c (strtol): Likewise.
1722 * strtoul.c (strtoul): Likewise.
1723
1724Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1725 Elena Zannoni <ezannoni@cygnus.com>
1726 Stan Shebs <shebs@cygnus.com>
1727 Edith Epstein <eepstein@cygnus.com>
1728 Andres MacLeod <amacleod@cygnus.com>
1729 Satish Pai <pai@apollo.hp.com>
1730
1731 * HP aCC demangling support.
1732 * cplus-dem.c
1733 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
1734 demangling correctly when -edg specified; set the demangling style
1735 when user specifies 'edg'. Set strip_underscore to
1736 prepends_underscore, if not HPUXHPPA. Set
1737 current_demangling_style to hp_demangling if HPUXHPPA. Set
1738 current demangling style correctly if the switch is hp. Read
1739 label correctly also in the HP style case.
252b5132 1740 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 1741 function.
252b5132 1742 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 1743 style for this case is the same as ARM.
252b5132
RH
1744 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1745 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
1746 demangle_arm_pt.); check and set value of temp_start field in
1747 multiple places. Also, when ceching for end of template args,
1748 check to see if at end of static member of template class.
252b5132 1749 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 1750 include template args in string defining class.
252b5132
RH
1751 (demangle_class_name): use demangel_arm_hp_template.
1752 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
1753 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1754 Handle EDG_DEMANGLING style. Handle constructor and destructor
1755 ops for HP style.
252b5132 1756 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
1757 styles. global destructor and constructor for HP style are same
1758 as for ARM style. Same for local variables.
252b5132
RH
1759 (demangle_qualified): handle EDG_DEMANGLING style.
1760 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
1761 cases '1' - '9' : initialize the temp_start field to -1 and handle
1762 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1763 and AUTO_DEMANGLING styles. If expecting a function and managed
1764 to demangle the funct args, then handle the LUCID_DEMANGLING,
1765 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1766 class name after "Lnnn_ in HP style case. HP style too needs to
1767 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 1768 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 1769 value param for HP/aCC.
252b5132 1770 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 1771 literal parameter for HP aCC.
252b5132
RH
1772 (recursively_demangle): new function
1773 (snarf_numeric_literal): new function.
1774 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 1775 to message.
252b5132
RH
1776
1777Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1778
1779 * pexecute.c: Remove obsolete ifdefed cygwin code.
1780
1781Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1782
1783 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1784 * cplus-dem.c: Likewise. Conform to libiberty.h.
1785 * pexecute.c: Likewise.
1786 * splay-tree.c: Likewise.
1787
17881998-11-25 Mike Stump <mrs@wrs.com>
1789
1790 * Makefile.in (splay-tree.o): Add config.h dependency.
1791
1792Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1793
1794 * configure.in: Use AC_PREREQ(2.12.1).
1795
17961998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1797
b4fe2683 1798 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
1799
1800Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1801
1802 * mpw.c (mpw_access): Add missing parens.
1803
1804Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1805
1806 * configure.in: Call AC_HEADER_SYS_WAIT.
1807
1808 * pexecute.c: Include sys/wait.h when !IN_GCC.
1809
1810Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1811
1812 * pexecute.c: revert back to checking old Cygwin
1813 preprocessor symbol until some time has passed.
1814
1815Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1816
1817 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1818 since it will now support similar constructs.
1819
1820Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1821
1822 * configure.in: Check for calloc.
1823
1824 * calloc.c: New file.
1825
1826 * xmalloc.c (xcalloc): New function.
1827
1828Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1829
1830 *cplus-dem.c (demangle_prefix): Use the last "__"
1831 in the mangled name when looking for the signature. This allows
1832 template names to begin with "__".
1833
18341998-11-08 Mark Mitchell <mark@markmitchell.com>
1835
1836 * cplus-dem.c (type_kind_t): Add tk_reference.
1837 (demangle_template_value_parm): Handle it.
1838 (do_type): Use it for references, instead of tk_pointer.
1839
1840 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1841 not internal_cplus_demangle.
1842
1843Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1844
1845 * choose-temp.c: Don't include gansidecl.h.
1846 * mkstemp.c: Likewise.
1847 * pexecute.c: Likewise.
1848
1849Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1850
b4fe2683
JM
1851 * configure.in: detect cygwin* instead of cygwin32*
1852 * configure: regenerate
252b5132
RH
1853
1854Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1855
1856 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
1857 whether to include config.h. Possibly include unistd.h in the
1858 !IN_GCC case. Define VFORK_STRING as a printable function call
1859 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1860 defined, include vfork.h. If VMS is defined, define vfork()
1861 appropriately. Remove vfork check on USG, we're using autoconf.
1862 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1863 locally what string to use.
252b5132
RH
1864
18651998-10-26 Mark Mitchell <mark@markmitchell.com>
1866
1867 * splay-tree.c: Tweak include directives to make sure declarations of
1868 xmalloc and free are available.
1869
18701998-10-25 Mark Mitchell <mark@markmitchell.com>
1871
1872 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1873 anonymous namespaces.
1874
18751998-10-23 Mark Mitchell <mark@markmitchell.com>
1876
1877 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1878 with type_quals.
1879 (TYPE_UNQUALIFIED): New macro.
1880 (TYPE_QUAL_CONST): Likewise.
1881 (TYPE_QUAL_VOLATILE): Likewise.
1882 (TYPE_QUAL_RESTRICT): Likewise.
1883 (code_for_qualifier): New function.
1884 (qualifier_string): Likewise.
1885 (demangle_qualifier): Likewise.
1886 (internal_cplus_demangle): Use them.
1887 (demangle_signature): Likewise.
1888 (demangle_template_value_parm): Likewise.
1889 (do_type): Likewise.
1890 (demangle_fund_type)): Likewise.
1891
1892Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1893
1894 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1895 to match prototype.
1896
18971998-10-21 Mark Mitchell <mark@markmitchell.com>
1898
1899 * splay-tree.c: New file.
1900 * Makefile.in (CFILES): Add it.
1901 (REQUIRED_OFILES): Likewise.
1902 (splay-tree.o): Add dependencies.
1903
1904Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1905
1906 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1907 range of 'K' index.
1908
1909Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1910
1911 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1912
1913 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1914 `unsigned char'.
1915 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1916 comparing against one.
1917 (cplus_mangle_opname): Likewise.
1918 (demangle_integral_value): Cast argument of ctype macro to
1919 `unsigned char'.
1920 (demangle_template_value_parm): Likewise.
1921 (demangle_template): Initialize variable `bindex'. Cast the
1922 result of `strlen' to (int) when comparing against one. Remove
1923 unused variable `start_of_value_parm'.
1924 (demangle_class_name): Cast the result of `strlen' to (int) when
1925 comparing against one.
1926 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1927 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1928 when comparing against one.
1929 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1930 (get_count): Likewise.
1931 (do_type): Likewise. Cast the result of `strlen' to (int) when
1932 comparing against one.
1933 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1934 (demangle_function_name): Cast the result of `strlen' to (int)
1935 when comparing against one.
1936
1937 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1938 comparing against one.
1939
1940Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1941
b4fe2683
JM
1942 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1943 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1944 * config.in, configure: Rebuilt.
252b5132
RH
1945
1946 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1947 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1948 * config.in, configure: Rebuilt.
1949
1950Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1951
b4fe2683 1952 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
1953
1954Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1955
1956 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1957
1958Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1959
1960 * Merge egcs & devo libiberty.
1961