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