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