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