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