]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
Add commentary.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
9e0ba685
RH
12001-08-16 Richard Henderson <rth@redhat.com>
2
3 * hashtab.c (htab_hash_string): New.
4
d80dedbe
AC
52001-08-13 Andrew Cagney <ac131313@redhat.com>
6
7 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
8 name.
9
ccea0d85
IH
102001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
11
12 * regex.c (wcs_regex_compile): Use appropriate string
13 to compare with collating element.
14 Fix the padding for the alignment.
15
b0e9bc8c 162001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
17
18 * lbasename.c (lbasename): Change function definition to return a
19 const char pointer.
20
056400f1
JM
212001-08-07 Jason Merrill <jason_merrill@redhat.com>
22
23 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
24 for".
25
4e627c41
RH
262001-08-03 Richard Henderson <rth@redhat.com>
27
28 * Makefile.in (concat.o): Depend on config.h.
29
b6a2f884
AJ
302001-07-30 Andreas Jaeger <aj@suse.de>
31
32 * concat.c: Include "config.h".
33
c4b9cfe0
AJ
342001-07-30 Andreas Jaeger <aj@suse.de>
35
36 * regex.c: Declare wcs functions only if compiling with
37 MBS_SUPPORT.
38 Don't use #elif for traditional C.
39
402001-07-23 Ulrich Drepper <drepper@redhat.com>
41
42 * regex.c: Revamp memory allocation for WCHAR functions to
43 not use too much stack.
44
452001-07-30 Andreas Jaeger <aj@suse.de>
46
47 * regex.c: Declare wcs functions only if compiling with
48 MBS_SUPPORT.
49 Don't use #elif for traditional C.
50
2cf50fd3
DJ
512001-07-25 Daniel Jacobowitz <drow@mvista.com>
52
53 * Makefile.in (regex.o): Add dependency on config.h.
54
27ffc806
DD
552001-07-18 Andreas Schwab <schwab@suse.de>
56
57 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
58 underscore character.
59
602001-07-18 Ulrich Drepper <drepper@redhat.com>
61
62 * regex.c: Limit string length printed in debug messages to 100
63 chars.
64
652001-07-18 Andreas Jaeger <aj@suse.de>
66
67 * regex.c: Place under LGPL version 2.1.
68
dd771632
JJ
692001-07-10 Jeff Johnston <jjohnstn@redhat.com>
70
71 * Makefile.in: Add support for regex code.
72 * regex.c: New file.
73
29650b2b
MK
742001-07-05 Mark Klein <mklein@dis.com>
75
76 * Makefile.in: Add ffs.c dependency.
77 * configure.in: Add ffs.c.
78 * ffs.c: New file.
79
c8b28221
RH
802001-06-18 Richard Henderson <rth@redhat.com>
81
82 * concat.c: Include <sys/types.h>.
83
473c2d0b
LR
842001-06-11 Loren J. Rittle <ljrittle@acm.org>
85
a4c03da2 86 bootstrap/3106
473c2d0b
LR
87 * strerror.c (sys_nerr): Hide the OS header version.
88 * strsignal.c (sys_nsig): Likewise.
89
0bdcca68
RH
902001-06-10 Richard Henderson <rth@redhat.com>
91
92 * concat.c: Include string.h. Fix int vs size_t usage.
93 Simplify the iteration loops. Use memcpy.
94
6de133d3
MK
952001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
96
97 * partition.c: Fix misspelling of `implementation'.
98
8a153288
TS
992001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
100
101 * md5.c (md5_init_ctx): Declare constants as unsigned.
102 (md5_process_block): Likewise.
103
641b2721
ZW
1042001-05-07 Zack Weinberg <zackw@stanford.edu>
105
106 * cp-demangle.c (demangle_v3_with_details,
107 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
108 function definition.
109 * ternary.c: Use K+R style function definitions. Use PTR, not
110 void *. Make arguments constant where possible.
111
5cdba4ff
MM
1122001-05-07 Mark Mitchell <mark@codesourcery.com>
113
114 * splay-tree.h (splay_tree_max): New function.
115 (splay_tree_min): Likewise.
116
9dab060e
DB
1172001-04-15 Daniel Berlin <dan@cgsoftware.com>
118
119 * ternary.c: New file - Ternary search tree implementation.
120
121 * Makefile.in: Add ternary.o, and ternary.c dependencies.
122
d02af173
ZW
1232001-04-03 Zack Weinberg <zackw@stanford.edu>
124
125 * make-temp-file.c (try): Inline.
126
94b68558
RH
1272001-02-28 Richard Henderson <rth@redhat.com>
128
129 * Makefile.in (make-temp-file.o): Depend on config.h.
130
27f66c0b
KG
1312001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
132
133 * memchr.c (memchr): Adjust condition to avoid infinite loop.
134
f1a0345c
JJ
1352001-03-23 Jakub Jelinek <jakub@redhat.com>
136
137 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
138 `_' not followed by a digit is invalid.
139
a519fba6
JB
1402001-03-22 Jim Blandy <jimb@redhat.com>
141
142 * cp-demangle.c (string_list_delete): Use dyn_string_delete
143 instead of free, to free the contents as well as the string
144 structure.
145
49ee944b
ZW
1462001-03-21 Zack Weinberg <zackw@stanford.edu>
147
148 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
149 Don't default P_tmpdir to anything. Try /var/tmp before
150 /usr/tmp.
151
33437dc7
ZW
1522001-03-20 Zack Weinberg <zackw@stanford.edu>
153
154 * choose-temp.c: Split off make_temp_file, and the code
155 duplicated between it and choose_temp_base, into...
156 * make-temp-file.c: ... here; new file.
157
158 * Makefile.in (CFILES): Add make-temp-file.c.
159 (REQUIRED_OFILES): Add make-temp-file.o.
160
7dce2eff
JB
1612001-03-20 Jim Blandy <jimb@redhat.com>
162
163 * cp-demangle.c (struct demangling_def): New fields:
164 is_constructor and is_destructor.
165 (demangling_new): Initialize them.
166 (demangle_ctor_dtor_name): Set them, if we detect a constructor
167 or destructor.
168 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
169 is_gnu_v3_mangled_dtor): New functions.
170
e03a61f1
JM
1712001-03-20 Jason Merrill <jason@redhat.com>
172
173 * cplus-dem.c (main): Skip initial $.
174
8860ddab
MM
1752001-03-15 Michael Meissner <meissner@redhat.com>
176
177 * hashtab.c (higher_prime_number): Silence warning that 4294967291
178 might be a signed integer under pre-ISO C systems.
179
2b757d51
NB
1802001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
181 John David Anglin <dave@hiauly1.hia.nrc.ca>
182
183 * libiberty/lbasename.c: New file.
184 * libiberty/Makefile.in: Update for lbasename.
185
1f50aafb
ZW
1862001-03-06 Zack Weinberg <zackw@stanford.edu>
187
188 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
189 * configure.in: Replace all alloca logic with a simple use of
190 the above new macro.
191 * config.table: Kill *-*-beos* entry.
192 * config/mh-beos: Delete.
193 * configure, config.in: Regenerate.
194
195 * Makefile.in (ALLOCA, HFILES): Kill.
196 (REQUIRED_OFILES): Add alloca.o.
197 (alloca.o): Depend on libiberty.h.
198 (argv.o): Don't depend on alloca-conf.h.
199 * alloca-conf.h: Delete.
200 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
201 blocks. Provide the C alloca unconditionally. Use PTR where
202 appropriate. Make i00afunc static.
203 * argv.c: Don't include alloca-conf.h.
204
d9fd5aae
JDA
2052001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
206
207 * cplus-dem.c (main): Cast enum style to int.
208
4031ed65
LR
2092001-02-16 Loren J. Rittle <ljrittle@acm.org>
210
211 * cplus-dem.c (main): Initialize style.
212
2ca46e8a
PE
2132001-02-02 Phil Edwards <pme@sources.redhat.com>
214
215 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
216
3b60dd8e
BM
2172001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
218
219 Add support for Java demangling under the v3 ABI:
220 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
221 (struct demangling_def): Add `style' field.
222 (demangling_new): New parameter `style'. Set it in demangling_t.
223 (demangle_prefix): Use NAMESPACE_SEPARATOR.
224 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
225 (cp_demangle): New parameter `style'. Pass it to demangling_new().
226 (main): Call cp_demangle with extra parameter.
227 (java_demangle_v3): New function.
228 (java_builtin_type_names): New. Table of primitive type names used
229 for Java demangling.
230 (demangle_builtin_type): Look up in java_builtin_type_names if doing
231 Java output.
1f50aafb 232 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
233 demangling.
234 (long_options): Remove obsolete `java' option.
235 (main): Remove explicit handling of `java' option. Instead, pass style
236 parameter in cplus_demangle flags as gdb does.
237 * testsuite/demangle.expected: Add some Java test cases.
238
584932e9
DD
2392000-12-29 DJ Delorie <dj@redhat.com>
240
241 * fnmatch.c: Make the note about the origins of this file more
242 accurate, at least until we can sync with glibc.
243 * getopt.c: Ditto.
244 * getopt1.c: Ditto.
245 * md5.c: Ditto.
246 * obstack.c: Ditto.
247
dac45916
MS
2482000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
249
250 * bsearch.c: New file.
251 * configure.in (funcs): Add bsearch.
252 (AC_CHECK_FUNCS): Likewise.
253 * configure, config.in: Regenerate.
254
a8e4a997
MS
2552000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
256
257 * safe-ctype.c: #include "ansidecl.h".
258 * strtod.c: Likewise.
259
75444da7
MS
2602000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
261
262 * strtoul.c: Include safe-ctype.h, not ctype.h.
263
f6bbde28
ZW
2642000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
265
266 * safe-ctype.c: New file.
267 * Makefile.in (CFILES): Add safe-ctype.c.
268 (REQUIRED_OFILES): Add safe-ctype.o.
269
270 * argv.c: Define ISBLANK and use it, not isspace.
271 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
272 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
273 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
274 before calling TOLOWER(c)/TOUPPER(c).
275
6c1ce62b 2762000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
277
278 * Makefile.in (distclean): When cleaning, remove testsuite.
279
b5d1497d
JM
2802000-12-05 Jason Merrill <jason@redhat.com>
281
282 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
283 name before allocating the dyn_string.
284
c6e13630
JM
2852000-12-04 Jason Merrill <jason@redhat.com>
286
287 * cp-demangle.c: s/new_abi/v3/.
288 * cplus-dem.c: Likewise.
289 (current_demangling_style): Now auto_demangling.
290 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 291 (main): Use standard symbol chars for auto_demangling.
c6e13630 292
a4c9b97e
MM
2932000-11-26 Mark Mitchell <mark@codesourcery.com>
294
295 * hashtab.c (higher_prime_number): Use a table, rather than a
296 seive, to find the next prime.
297
3b3bd9a7
L
2982000-11-22 H.J. Lu <hjl@gnu.org>
299
300 * cplus-dem.c (main): Handle gnat_demangling.
301
d1209685
ZW
3022000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
303
304 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
305 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
306 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
307 argument form of AC_DEFINE in dummy definitions block. Use
308 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
309 in dummy block. Preload cache variables instead of bypassing
310 tests, where possible.
311 * acconfig.h: Removed.
312
313 * xmalloc.c (xmalloc_failed): New function, does error
314 reporting on failed allocation.
315 (xmalloc, xcalloc, xrealloc): Use it.
316
cf183ac2
HPN
3172000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
318
319 * cplus-dem.c (cplus_demangle): Fix formatting.
320 (grow_vect): Ditto.
321 (ada_demangle): Ditto.
322 (internal_cplus_demangle): Ditto.
323 (mop_up): Ditto.
324
3252000-11-21 H.J. Lu <hjl@gnu.org>
326
327 * cplus-dem.c (main): Handle java_demangling.
328
8bcc782c
KG
3292000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
330
331 * cplus-dem.c (grow_vect): Prototype.
332 (ada_demangle): Cast the arg of ctype macros to unsigned char.
333
29120f44
HPN
3342000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
335
336 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
337 parameter `option'.
338
0437a5a8
KB
3392000-11-15 Kenneth Block <kenneth.block@compaq.com>
340
9e038f71 341 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
342 be used in GCC.
343
eab0c1ab 3442000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 345
29120f44 346 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
347 list.
348
d50d20ec
HPN
3492000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
350
351 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
352 xcalloc depending on htab->return_allocation_failure. Return zero
353 if calloc fails.
d50d20ec
HPN
354 (htab_create): Update comment to cover memory allocation.
355 (htab_try_create): New.
356 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 357 Update comment to cover this.
d50d20ec 358
35e9340f
HPN
3592000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
360
361 * hashtab.c: Change void * to PTR where necessary.
362 (htab_create, htab_expand): Correct formatting of comment before
363 function.
364
ea343d1a 3652000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
366
367 * cp-demangle.c (string_list_def): Add caret_position and comments.
368 (result_caret_pos): New macro.
369 (result_append_string): Rename to...
370 (result_add_string): ... this, and insert at caret position.
d1209685 371 Rename throughout.
0870bfd6
AS
372 (result_append): Rename to...
373 (result_add): ... this, and insert at caret position. Rename
d1209685 374 throughout.
0870bfd6
AS
375 (result_append_char): Rename to...
376 (result_add_char): ... this, and insert at caret position. Rename
d1209685 377 throughout.
0870bfd6
AS
378 (result_append_space): Remove.
379 (string_list_new): Initialize caret position.
380 (result_add_separated_char): Use caret position.
381 (result_get_caret): New funtion.
382 (result_set_caret): Likewise.
383 (result_shift_caret): Likewise.
384 (result_previous_char_is_space): Likewise.
385 (substitution_start): Use caret position.
386 (substitution_add): Likewise.
387 (demangling_new): Initialize caret position.
388 (demangle_encoding): Use caret position.
d1209685 389 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
390 (demangle_type_ptr): Use switch statement. Handle pointers to
391 arrays. Don't use result_append_space. Use caret position.
392 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
393 call to demangle_array_type.
394 (demangle_array_type): Add parameter to handle pointers to arrays.
395
f15b9af9
MM
3962000-10-01 Mark Mitchell <mark@codesourcery.com>
397
398 * splay-tree.c (splay_tree_insert): Fix formatting.
399
8f17b5c5
MM
4002000-09-16 Mark Mitchell <mark@codesourcery.com>
401
402 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
403
4eaa189a
MS
4042000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
405
406 * splay-tree.c: #include <stdio.h>.
407
29791078
HPN
4082000-09-14 Hans-Peter Nilsson <hp@axis.com>
409
410 * testsuite/demangle-expected: Add two tests for anonymous
411 namespaces.
412 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
413
2c9f4db7
MM
4142000-09-10 Mark Mitchell <mark@codesourcery.com>
415
416 * splay-tree.c (splay_tree_predecessor): New function.
417 (splay_tree_successor): Likewise.
418
bb22da4b
HPN
4192000-09-10 Hans-Peter Nilsson <hp@axis.com>
420
421 * testsuite/demangle-expected: Add four tests for type_info
422 mangling.
bb22da4b
HPN
423 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
424 for a non-template non-qualified type_info function or node.
425
759e8187
AS
4262000-09-08 Alex Samuel <samuel@codesourcery.com>
427
428 * cp-demangle.c: Fix copyright banner.
429
2ecd81ef
MS
4302000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
431
432 * md5.c: #include "ansidecl.h".
433
d93998ec
AS
4342000-09-06 Alex Samuel <samuel@codesourcery.com>
435
436 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
437 (demangle_type): Handle substitution candidates correctly in the
438 face of special substitutions.
439
1056d228
AS
4402000-09-05 Alex Samuel <samuel@codesourcery.com>
441
442 * cp-demangle.c (demangle_encoding): Rename variable.
443 (demangle_name): Rename parameter. Handle return type
444 suppression.
445 (demangle_nested_name): Rename parameter.
446 (demangle_prefix): Likewise. Change return type suppression.
447 (demangle_unqualified_name): Add parameter. Flag constructors and
448 conversion operators.
449 (demangle_special_name): Fix comment.
450 (demangle_type): Rename variable.
451 (demangle_bare_function_type): Check for missing return type and
d1209685 452 parameter.
1056d228
AS
453 (demangle_class_enum_type): Rename parameter.
454 (demangle_discriminator): Fix misspelling in comment.
455
2f31ed7e
DD
4562000-08-31 DJ Delorie <dj@redhat.com>
457
458 * configure.in (Cygwin): special case cygwin only when we're
459 building cygwin, not when we're hosting cygwin.
460
02bcb9c6
AS
4612000-09-04 Alex Samuel <samuel@codesourcery.com>
462
463 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
464 <expression>.
465
aee749cf
AS
4662000-09-04 Alex Samuel <samuel@codesourcery.com>
467
468 * cp-demangle.c (demangle_type_ptr): Increment position past
469 pointer and reference characters.
470
92a16bbe
AS
4712000-09-04 Alex Samuel <samuel@codesourcery.com>
472
473 * cp-demangle.c (demangle_nv_offset): New function.
474 (demangle_v_offset): Likewise.
475 (demangle_call_offset): Likewise.
476 (demangle_special_name): Update thunk demangling to comply with
477 ABI changes.
d1209685 478
31e0ab1f
AS
4792000-09-03 Alex Samuel <samuel@codesourcery.com>
480
481 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
482 (substitution_def): Remove template_parm_number.
483 (NOT_TEMPLATE_PARM): Remove.
484 (result_insert_string): New macro.
485 (result_insert): Likewise.
486 (result_insert_char): Likewise.
487 (substitution_add): Remove last parameter. Don't store template
d1209685 488 parm number.
31e0ab1f
AS
489 (BFT_NO_RETURN_TYPE): Define as NULL.
490 (demangle_encoding): Adjust call to demangle_bare_function_type.
491 (demangle_name): Adjust substitution. Adjust call to
d1209685 492 substitution_add.
31e0ab1f
AS
493 (demangle_prefix): Adjust call to substitution_add.
494 (demangle_identifier): Handle anonymous namespaces.
495 (demangle_operator_name): Change demangling of vendor-extended
496 operator to match ABI changes.
497 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 498 substitutions here.
31e0ab1f
AS
499 (demangle_type): Adjust calls to demangle_template_param,
500 substitution_add, and demangle_type_ptr. Fix substitution of
501 templated types.
502 (demangle_function_type): Change parameter to a pointer.
503 (demangle_bare_function_type): Likewise. Adjust insertion point.
504 (demangle_template_param): Remove last parameter.
505 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 506 demangle_template_param.
31e0ab1f
AS
507 (is_mangled_char): Accept `$' and `.'.
508 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
509 * dyn-string.c (dyn_string_insert_char): New function.
510
ccbc3eb7
HPN
5112000-08-31 Hans-Peter Nilsson <hp@axis.com>
512
513 * testsuite/demangle-expected: Add nine tests for
514 underscore-after-number followed by five tests for name-signature
515 delimiter.
516
53dce582
RH
5172000-08-28 Richard Henderson <rth@cygnus.com>
518
519 * Makefile.in (md5.o): Depend on config.h.
520
881c6935
JM
5212000-08-28 Jason Merrill <jason@redhat.com>
522
523 * Makefile.in (REQUIRED_OFILES): Add md5.o.
524 (CFILES): Add md5.c.
525 * md5.c: New file.
526
a440fd19
AS
5272000-08-27 Alex Samuel <samuel@codesourcery.com>
528
529 * cp-demangle.c (demangle_name): Initialize template_p in local
530 name case. Don't re-add substitutions as candidates.
531 (demangle_nested_name): Use <unqualified-name>.
532 (demangle_prefix): Likewise. Don't add template names as
533 substitution candidates twice, or re-add a substitution or the
534 last prefix component.
535 (demangle_local_name): Adjust output format.
536
d01ce591
AS
5372000-08-25 Alex Samuel <samuel@codesourcery.com>
538
539 * cp-demangle.c (result_add_separated_char): Change parameter to
540 int.
541 (substitution_add): Don't check for duplicates. Check if
542 previously allocated size is zero.
543 (demangle_name): Remove duplicate check for std substitution.
544 Clear template flag appropriately.
545 (demangle_prefix): Remove argument to demangle_substitution.
546 Don't check that template flag is already set.
547 (demangle_operator_name): Add pt operator.
548 (demangle_type): Don't treat r as built-in type. Remove argument
549 to demangle_substitution. Fix substitution candidate mechanics.
550 Handle <template-template-parm>s. Improve comments.
d1209685 551 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
552 (demangle_substitution): Remove parameter.
553 (print_usage): Remove extra fprintf option.
554
2f59c8eb
GM
5552000-08-24 Greg McGary <greg@mcgary.org>
556
557 * libiberty/random.c (end_ptr): Revert previous change.
558
2f26c11d
GM
5592000-08-24 Greg McGary <greg@mcgary.org>
560
561 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
562 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
563 * libiberty/random.c (end_ptr): Likewise.
564
e282c9c9
AS
5652000-08-23 Alex Samuel <samuel@codesourcery.com>
566
567 * cp-demangle.c (result_close_template_list): Remove function.
568 (result_add_separated_char): New function.
569 (result_open_template_list): New macro.
570 (result_close_template_list): Likewise.
571 (demangle_prefix): Don't set template_p if the
572 prefix ends with a ctor name.
573 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
574 (demangle_type): Check for template args after substitution.
575 (demangle_template_args): Use result_open_template_list.
d1209685 576
c9b6494a
ZW
5772000-08-02 Zack Weinberg <zack@wolery.cumb.org>
578
579 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
580
d1209685 5812000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
582
583 * config/mh-openedition.h: Added -DLE370 definition.
584
0aab2795
ME
5852000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
586
587 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
588 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
589 Cast program to 'char *' in errmsg_arg assignment.
590 (PWAIT_ERROR): Define.
591 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
592 to DJGPP's WIF* macros.
593
c2f275e4
RB
5942000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
595 Jeff Law <law@cygnus.com>
596
73aa9564
RB
597 * getcwd.c: Include string.h, stdlib.h for prototypes
598
c2f275e4 599 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
600 * rename.c: Include config.h, unistd.h
601 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 602
ccbc3eb7
HPN
6032000-07-24 Hans-Peter Nilsson <hp@axis.com>
604
605 * cplus-dem.c (work_stuff_copy_to_from): New.
606 (delete_non_B_K_work_stuff): New.
607 (delete_work_stuff): New.
608 (mop_up): Break out work_stuff partly destruction to
609 delete_non_B_K_work_stuff.
610 (iterate_demangle_function): New.
611 (demangle_prefix): Call iterate_demangle_function instead of
612 demangle_function_name. Leave handling of name-signature
613 __-delimiters to iterate_demangle_function.
614 (demangle_integral_value): Strip an optional
615 following underscore cautiously. Handle negative numbers.
616
3388651c
DB
6172000-07-24 Daniel Berlin <dberlin@redhat.com>
618
d1209685 619 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
620 if (AUTO_DEMANGLING || GNU_DEMANGLING)
621
0fac482e
AS
6222000-07-21 Alex Samuel <samuel@codesourcery.com>
623
624 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
625 allocating ctor mangling.
626 (demangle_array_type): Handle empty and non-constant array length.
627
8502a100 6282000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
629 Jeff Law <law@cygnus.com>
630
c6451ce1
MS
631 * configure.in (AC_CHECK_HEADERS): Add time.h.
632 (AC_HEADER_TIME): Add check.
633 * configure, config.in: Regenerate.
634 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
635
cd447360
MS
636 * configure.in (AC_CHECK_HEADERS): Add limits.h.
637 * configure, config.in: Regenerate.
638 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
639 * strtol.c, strtoul.c: #include "config.h". Portably #include
640 <limits.h> and/or <sys/param.h>.
641 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 642
3b58c099
MS
643 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
644 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
645 * configure, config.in: Regenerate.
646 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
647
8502a100
MS
648 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
649
da0c7743
MS
6502000-07-21 Mike Stump <mrs@wrs.com>
651
652 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 653 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 654
838f8562
KG
6552000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
656
657 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
658
659 * setenv.c (setenv): Initialize variable `ep'.
660
661 * sigsetmask.c (abort): Prototype.
662
663 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
664 __STDC__ for stdarg.h include.
665 (int_vasprintf): Prototype.
666 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
667 definition. Cast `global_total_width' in comparison.
668 (main): Prototype. Return a value.
669
670 * vfork.c (fork): Prototype.
671
672 * xexit.c: Include config.h.
673
e9958132
JM
6742000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
675
676 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
677 and print it with %u.
678
39a6492f
HPN
6792000-07-17 Hans-Peter Nilsson <hp@axis.com>
680
681 * testsuite/regress-demangle (failed test): Show result and
682 expected output.
683
6d0be369
AH
6842000-07-07 Andrew Haley <aph@cygnus.com>
685
686 * cplus-dem.c (main): fflush() after emitting last char before
687 waiting for input.
688
bece74bd
AS
6892000-06-28 Alex Samuel <samuel@codesourcery.com>
690
691 * cp-demangle.c (demangle_encoding): Accept no substitutions.
692 (demangle_name): Handle <substitution> followed by
693 <unqualified-template-name>.
694 (demangle_type): Follow special substitutions with
695 <class-enum-type>
696 (demangle_subtitution): Set template_p for special substitutions.
697 (main): Fix typos.
d1209685 698
229b8ec7
AS
6992000-06-27 Alex Samuel <samuel@codesourcery.com>
700
701 * cp-demangle.c (demangle_special_name): Swap base and derived
702 class when demangling construction vtables.
703
051664b0
AS
7042000-06-21 Alex Samuel <samuel@codesourcery.com>
705
706 * cp-demangle.c: Don't include ctype.h.
707 (IS_DIGIT): New macro.
708 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
709 instead of isdigit and isalpanum.
710 (demangling_def): Make name and next const pointers.
711 (STATUS_ALLOCATION_FAILED): New status code.
712 (dyn_string_append_space): Handle failure in
713 dyn_string_append_char.
714 (int_to_dyn_string): Likewise. Change return value to status_t.
715 (string_list_new): Handle failure of dyn_string_init.
716 (result_close_template_list): Change return type to status_t.
717 Handle failure in dyn_string_append.
718 (result_push): Change return value to status_t. Handle failure in
719 string_list_new. Handle failure of result_push throughout.
720 (substitution_add): Change return value to status_t. Handle
721 dyn_string failures. Handle failure of substitution_add
722 throughout.
723 (template_arg_list_new): Return NULL on allocation failure.
724 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
725 Handle error result throughout.
726 (result_append): Likewise.
727 (result_append_char): Likewise.
728 (result_append_space): Likewise.
729 (demangling_new): Make argument a const pointer. Handle
730 allocation failures.
731 (demangle_template_args): Handle failure in template_arg_list_new
732 and result_close_template_list.
733 (demangle_discriminator): Return if int_to_dyn_string fails.
734 (cp_demangle): Likewise.
735 (cp_demangle_type): New function.
736 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
737 memory allocation failure.
738 (main): Likewise.
739 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
740 IN_LIBGCC2.
741 (dyn_string_init): Change return value to int. Handle
742 RETURN_ON_ALLOCATION_FAILURE case.
743 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
744 (dyn_string_release): Delete the dyn_string.
745 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
746 (dyn_string_copy): Change return type to int.
747 (dyn_string_copy_cstr): Likewise.
748 (dyn_string_prepend): Likewise.
749 (dyn_string_prepend_cstr): Likewise.
750 (dyn_string_insert): Likewise.
751 (dyn_string_insert_cstr): Likewise.
752 (dyn_string_append): Likewise.
753 (dyn_string_append_cstr): Likewise.
754 (dyn_string_append_char): Likewise.
755 (dyn_string_substring): Likewise.
d1209685 756
fe06b696
ZW
7572000-06-09 Zack Weinberg <zack@wolery.cumb.org>
758
759 * cp-demangle.c (demangle_operator_name): Add spaces before
760 names beginning with a letter: delete, delete[], new, new[],
761 sizeof.
762 (demangle_special_name): Handle TF <type> and TJ <type>.
763
6223e158
PDM
764Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
765
766 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
767
48f3e29b
PDM
768Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
769
770 * cp-demangle.c (stdio.h): File included unconditionaly.
771 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
772 * dyn-string.c (stdio.h): File included.
773 * partition.c (partition_print): No `&' needed to take the address of
774 a function.
775
69197e7e
KG
7762000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
777
778 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 779
69197e7e
KG
780 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
781
782 * cp-demangle.c (demangle_char): Change parameter from char to int.
783 (demangle_expression, demangle_expr_primary): Remove extra
784 semi-colon in prototype.
785
786 * dyn-string.c (dyn_string_append_char): Change parameter from
787 char to int.
788
789 * memcmp.c (memcmp): Constify.
790
791 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
792 __extension__.
793
794 * partition.c (elem_compare): Prototype. Don't cast away
795 const-ness.
796
797 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 798
7eb23b1f
KG
7992000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
800
801 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
802
803 * cp-demangle.c: Include demangle.h.
804 (template_arg_list_new): DeANSIfy.
805 (cp_demangle): Make static and add prototype.
806 (operator_code, operators): Constify.
807 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
808
3faa108c
AS
8092000-06-05 Alex Samuel <samuel@codesourcery.com>
810
811 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
812 unsigned char.
813 (demangle_unqualified_name): Likewise.
814 (demangle_number_literally): Likewise.
815 (demangle_type): Likewise.
816 (demangle_substitution): Likewise.
817 (is_mangled_char): Likewise, for isalnum.
818
69afa80d
AS
8192000-06-04 Alex Samuel <samuel@codesourcery.com>
820
821 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
822 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
823 (cp-demangle.o): New dependency.
824 (dyn-string.o): Likewise.
825
826 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
827
828 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
829 demangler.
830 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
831 demangling mode.
832 (gnu_new_abi_symbol_characters): New function.
833 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
834 file.
835 * cp-demangle.c: New file.
d1209685 836
0b72c3df
AC
837Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
838
839 * floatformat.c: Add name to each floatformat field.
840
270cea06
JL
841Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
842
843 * Makefile.in (objalloc.o): Depend on config.h
844
d11ec6f0
ZW
8452000-05-29 Zack Weinberg <zack@wolery.cumb.org>
846
847 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
848 if HAVE_STRING_H.
849 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
850 * objalloc.c: Include config.h. Include stdlib.h and don't
851 declare malloc or free if HAVE_STDLIB_H.
852 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
853 else declare malloc without prototype. Include string.h if
854 HAVE_STRING_H, else declare memset without prototype. Don't
855 include stddef.h.
856
f8e2da56
MS
8572000-05-23 Mike Stump <mrs@wrs.com>
858
859 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 860 -j3.
f8e2da56 861
650f3068
DA
8622000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
863
864 * xmalloc.c: Include config.h for HAVE_SBRK definition.
865
1d2da2e1
HB
8662000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
867
d1209685 868 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
869 probably zero, also eliminate a warning on alpha.
870
47668d0a
DE
8712000-05-15 David Edelsohn <edelsohn@gnu.org>
872
c7a79a32 873 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
874 on $(enable_shared).
875
36348eab
JJ
8762000-05-10 Jakub Jelinek <jakub@redhat.com>
877
878 * config.table: Use mh-sparcpic for sparc*-*-*.
879
209bbe34
NC
8802000-05-08 Nick Clifton <nickc@cygnus.com>
881
882 * Makefile.in (CFILES): Add strncmp.c.
883 (NEEDED): Add strncmp.
884
a85a47fb
KG
8852000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
886
887 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
888 Cast the arguments to `islower' to `unsigned char'.
889 (print_demangler_list): Prototype.
890
4aef973c
PDM
891Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
892
893 * sort.c (UCHAR_MAX): Provide fallback definition.
894
3b94497c
AO
8952000-04-29 Alexandre Oliva <aoliva@cygnus.com>
896
897 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
898 SUBDIRS.
899
24eaa47a
KB
9002000-04-28 Kenneth Block <block@zk3.dec.com>
901 Jason Merrill <jason@casey.cygnus.com>
902
d1209685
ZW
903 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
904 (cplus_demangle_set_style): New function for setting style.
905 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 906
a9266bfa
KG
9072000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
908
909 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
910
911 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
912 (libiberty_AC_FUNC_STRNCMP): Invoke.
913
914 * strncmp.c: New file.
915
8e02c4d0
JH
916Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
917
918 * hashtab.c (htab_expand): Add prototype.
919 (find_empty_slot_for_expand): Likewise.
920
4feeaae3
KG
9212000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
922
923 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
924 match prototype.
925 (htab_expand): Cast the return value of xcalloc.
926
18a94a2f
MM
9272000-04-24 Mark Mitchell <mark@codesourcery.com>
928
929 * hashtab.c (hash_pointer): New function.
930 (eq_pointer): Likewise.
931 (htab_hash_pointer): New variable.
932 (htab_eq_pointer): Likewise.
933
eeb0656f
MM
9342000-04-23 Mark Mitchell <mark@codesourcery.com>
935
b51024fc
MM
936 * sort.c (sort_pointers): Fix endianness bugs.
937
eeb0656f
MM
938 * sort.c: New file.
939 * Makefile.in (CFILES): Add sort.c
940 (REQUIRED_OFILES): Add sort.o.
941 (sort.o): New target.
942
7277f72d
MS
9432000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
944
945 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
946 4.3BSD systems.
947
e38992e8
RK
948Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
949
950 * hashtab.c: Various minor cleanups.
951 (htab_find_slot_with_hash): INSERT is now enum insert_option.
952 (htab_find_slot): Likewise.
953
498e1ab1
DP
9542000-04-16 Dave Pitts <dpitts@cozx.com>
955
956 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 957
dc17cc7b
RH
9582000-04-05 Richard Henderson <rth@cygnus.com>
959
960 * splay-tree.c (splay_tree_remove): New.
961
b13eb66b
MM
9622000-03-30 Mark Mitchell <mark@codesourcery.com>
963
964 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
965 codes.
966 (htab_find_with_hash): Likewise.
967 (htab_find_slot_with_hash): Likewise.
d1209685 968
0194e877
ZW
9692000-03-29 Zack Weinberg <zack@wolery.cumb.org>
970
971 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
972 unless it will be used. Rearrange loop for better
973 optimization.
974 (higher_prime_number): Add static prototype.
975
abc61fd4
JL
976Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
977
978 * Makefile.in (partition.o): Depend on config.h
979
8c5d513f
BS
9802000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
981
982 * hashtab.c (find_empty_slot_for_expand): New function.
983 (htab_expand): Use it instead of htab_find_slot.
984 (htab_find_with_hash): Renamed from htab_find; now accepts extra
985 argument HASH.
986 (htab_find_slot_with_hash): Likewise for htab_find_slot.
987 (htab_find): New wrapper function.
988 (htab_find_slot): Likewise.
989 (htab_traverse): Pass slot, not entry, to called function.
990
d9d4fb43
AS
9912000-03-09 Alex Samuel <samuel@codesourcery.com>
992
993 * Makefile.in (CFILES): Add partition.c.
994 (REQUIRED_OFILES): Add partition.o.
995 (partition.o): New rule.
996 * partition.c: New file.
d1209685 997
5dc9cffd
ZW
9982000-03-09 Zack Weinberg <zack@wolery.cumb.org>
999
1000 * hashtab.c (htab_create): Set del_f.
1001 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1002 Use it.
1003
5194cf08
ZW
10042000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1005
1006 * hashtab.c: Remove debugging variables (all_searches,
1007 all_collisions, all_expansions). Delete
1008 all_hash_table_collisions.
1009 (create_hash_table, delete_hash_table, empty_hash_table,
1010 find_hash_table_entry, remove_element_from_hash_table_entry,
1011 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1012 hash_table_elements_number, hash_table_collisions): Rename to:
1013 htab_create, htab_delete, htab_empty, htab_find_slot,
1014 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1015 htab_elements, htab_collisions.
1016 (htab_find): New function, handles common case where you don't
1017 plan to add or delete an entry.
1018 (htab_expand): Don't create a whole new table, just a new
1019 entry vector.
1020 (htab_find_slot): Simplify logic.
1021
5ad5a984
ILT
10221999-08-03 Ian Lance Taylor <ian@zembu.com>
1023
1024 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1025 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1026
1027 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1028 $(TARGETLIB)n so it works on MSDOS.
1029 (install_to_tooldir): Likewise.
1030
10311999-07-21 Ian Lance Taylor <ian@zembu.com>
1032
1033 From Mark Elbrecht:
1034 * makefile.dos: Remove; obsolete.
1035 * configure.bat: Remove; obsolete.
1036
10371999-07-11 Ian Lance Taylor <ian@zembu.com>
1038
1039 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1040 warning.
1041
aeecce42
MK
10422000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1043
1044 * pexecute.c: Conditionally include string.h.
5194cf08 1045 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1046
1eaf7d9c
KG
10472000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1048
1049 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1050 we're using gcc.
1051
1052 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1053
0fadedb2
GK
10541999-12-27 Geoff Keating <geoffk@cygnus.com>
1055
1056 * vasprintf.c (int_vasprintf): Don't re-read the format character
1057 as this mishandles strings like '%%s'.
1058
08230f26
MM
10591999-12-05 Mark Mitchell <mark@codesourcery.com>
1060
1061 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1062 rather than struct splay_tree_node.
1063 (splay_tree_insert): Use struct splay_tree_s rather than struct
1064 splay_tree.
1065
6de9b8ff
PDM
1066Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1067
1068 * hashtab.c (sys/types.h): File included.
1069
f3636679
JM
10701999-11-22 Jason Merrill <jason@casey.cygnus.com>
1071
1072 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1073 BSD license, pursuant with
1074
1075 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1076
36dd3a44
JL
1077Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1078
1079 * hashtab.c: Include stdio.h.
1080
6e300472
JL
1081Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1082
1083 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1084
df548dfc
PDM
1085Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1086
1087 * xstrdup (sys/types.h): Include this file.
1088
2c375143
NS
10891999-10-28 Nathan Sidwell <nathan@acm.org>
1090
1091 * Makefile.in (SUBDIRS): New macro.
1092 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1093 avoid multiple subdirectory cleaning.
1094 (*-subdir): Use SUBDIRS.
1095
a82cecda
JK
10961999-10-25 Jim Kingdon <http://developer.redhat.com/>
1097
1098 * cplus-dem.c: Move declarations of standard_symbol_characters and
1099 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1100 warnings.
1101
ed38f5d5
ZW
11021999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1103
1104 * hashtab.c (find_hash_table_entry): When returning a
1105 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1106 (clear_hash_table_slot): New function which deletes an entry
1107 by its position in the table, not its value.
1108 (traverse_hash_table): New function which calls a hook
1109 function for every live entry in the table.
1110
b60fe4a7
MM
11111999-10-19 Mark Mitchell <mark@codesourcery.com>
1112
1113 * cplus-dem.c (INTBUF_SIZE): New macro.
1114 (string_append_template_idx): New function.
1115 (demangle_expression): Likewise.
1116 (demangle_integral_value): Use it.
1117 (demangle_real_value): New function, split out from ...
1118 (demangle_template_value_parm): ... here. Use
1119 string_append_template_idx. Use demangle_real_value.
1120 (demangle_template): Use string_append_template_idx.
1121 (demangle_qualified): Use consume_count_with_underscores.
1122 (get_count): Tweak formatting.
1123 (do_type): Use string_append_template_idx.
5194cf08 1124
3da5522a
KG
11251999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1126
1127 * calloc.c: Add a public domain notice.
1128
d7d36ea8
PDM
1129Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1130
1131 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1132
a2f945c6
VM
1133Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1134
1135 * Makefile.in (CFILES): Add hashtab.c
1136 (REQUIRED_OFILES): Add hashtab.o
1137 (hashtab.o): Add dependencies.
1138 * hashtab.c: New file
1139
7f22ec2e
MK
1140Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1141
1142 * basename.c (DIR_SEPARATOR): New macro.
1143 (DIR_SEPARATOR_2): Likewise.
1144 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1145 (IS_DIR_SEPARATOR): Likewise.
1146 (main): Handle MSDOS style pathname.
1147
7c56a6ce
MM
11481999-10-11 Mark Mitchell <mark@codesourcery.com>
1149
1150 * cplus-dem.c (do_type): Handle pointer to member types whose
1151 enclosing classes have namespace scope.
1152
cd32188b
ME
1153Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1154
1155 * config.table: Provide a backup shell for executing move-if-change.
1156
fc232f7a
MM
11571999-10-02 Mark Mitchell <mark@codesourcery.com>
1158
1159 * xmalloc.c (xmalloc): Fix spelling error.
1160 (xcalloc, xrealloc): Likewise.
1161
2a138827
KG
11621999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1163
1164 * cplus-dem.c (fancy_abort, demangle_integral_value,
1165 demangle_arm_hp_template, recursively_demangle,
1166 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1167 (program_name, program_version, fatal): Constify a char*.
1168 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1169 (main): Call return, not exit.
1170
5a657fc3
KG
11711999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1172
1173 * choose-temp.c: Remove obsolete comment about gcc.
1174 (make_temp_file): Constify a char*.
1175
33c5ddcd
KG
1176Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1177
1178 * xmemdup.c: Include sys/types.h.
1179
b10647f1
JG
11801999-09-07 Jeff Garzik <jgarzik@pobox.com>
1181
1182 * xmemdup.c: New xmemdup function.
1183 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1184
3dd6c3af
LV
1185Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1186
5194cf08 1187 * config.table: Add openedition target.
3dd6c3af
LV
1188 * config/mh-openedition: New file.
1189
19e28e2a
ME
1190Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1191
1192 * pexecute.c (pexecute): Fill in temp_base when needed.
1193
4dfeccf9
RH
11941999-08-31 Richard Henderson <rth@cygnus.com>
1195
1196 * getpwd.c: Check HAVE_GETCWD before defining it away.
1197
4ac3cb83
KG
11981999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1199
1200 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1201 (REQUIRED_OFILES): Add getpwd.o.
1202 (getpwd.o): Add target.
1203
1204 * configure.in (AC_PREREQ): Bump to 2.13.
1205 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1206
1207 * getpwd.c: New file, moved here from gcc.
1208
e797ff70
KG
12091999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1210
1211 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1212 comparing against a signed quantity.
1213 (arm_special): Likewise.
1214 (demangle_fund_type): Likewise.
1215 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 1216 ATTRIBUTE_UNUSED.
e797ff70
KG
1217 (main): Constify variable `valid_symbols'.
1218
55247fce
PDM
1219Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1220
1221 * strtoul.c (strtoul): Add parentheses around && within ||.
1222
76632dd0
DJ
1223Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1224
1225 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1226 libdir, libsubdir and tooldir.
1227
d080bbfa
MM
12281999-08-01 Mark Mitchell <mark@codesourcery.com>
1229
1230 * splay-tree.c (splay_tree_insert): Return the new node.
1231
a81c752a
RH
12321999-07-14 Richard Henderson <rth@cygnus.com>
1233
5194cf08 1234 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
1235 prototyping directly.
1236 * choose-temp.c: Conditionally include string.h.
1237
8f1824d9
JM
12381999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1239
1240 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1241
652374d3
ILT
12421999-07-11 Ian Lance Taylor <ian@zembu.com>
1243
1244 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1245 warning.
1246
a4494286
JM
12471999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1248
1249 * Makefile.in (needed-list): Only include stuff we actually need
1250 for libstdc++.
1251
90e72e20
AS
12521999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1253
1254 * configure.in (checkfuncs): Add gettimeofday.
1255 * config.in, configure: Regenerated.
1256
b569200e
MK
1257Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1258
1259 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1260 the test fails.
1261 * configure: Regenerate.
1262
73919448
MS
12631999-06-10 Mike Stump <mrs@wrs.com>
1264
1265 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1266 parallel builds.
1267
fee9125c
KG
12681999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1269
1270 * putenv.c: Include ansidecl.h to define `const'.
1271 * setenv.c: Likewise.
1272
71cce721
MN
1273Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1274
a7c9637f
JL
1275 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1276 * configure.in (funcs): Add putenv and setenv.
1277 (AC_CHECK_FUNCS): Check for putenv and setenv.
1278 * configure: Rebuilt.
1279 * putenv.c setenv.c: New files.
1280
71cce721
MN
1281 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1282 bytes of space using malloc.
1283
53504016
SG
1284Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1285
1286 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1287 the *mangled pointer beyond the end of the string. Clean up code to
1288 match prevailing coding style.
1289
34842539
MH
12901999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1291
1292 * tmpnam.c (L_tmpnam): Fix typo.
1293
3a08531d
ME
1294Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1295
1296 * cplus-dem.c (standard_symbol_characters): Renamed from
1297 standard_symbol_alphabet. No longer modify TABLE.
1298 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1299 modify TABLE.
1300 (main): Corresponding changes. Use strchr to determine if a
1301 character is valid.
1302
8db9d08b
JB
13031999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1304
1305 * cplus-dem.c (main): Use table lookup to distinguish identifier
1306 characters from non-identifier characters.
1307 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1308
6a071f4a
FF
1309Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1310
1311 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1312 * getruntime.c: Only attempt to include sys/resource.h and
1313 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1314 are defined.
1315
7dd88617
DT
1316Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1317
1318 * configure.in (alloca detection): Handle alloca directly for interix.
1319 * configure: Rebuilt.
1320
7a1528bc
MK
1321Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1322
1323 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1324
76409268
JB
13251999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1326
1327 Fix from Dale Hawkins:
5194cf08 1328 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
1329 reallocated properly if we use it again.
1330
1331 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1332 stricter about syntax. Always null-terminate string.
1333
acbbd80a
MK
1334Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1335
1336 * configure.in (checkfuncs): Check for sbrk.
1337 * config.in: Rebuilt.
1338 * configure: Likewise.
1339 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1340
92523551
JB
13411999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1342
1343 Fix from Marcus Daniels:
1344 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1345 identifier looking for another underscore.
1346
36eb4217
MK
1347Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1348
1349 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1350 * xmalloc.c: Likewise.
1351 (xcalloc): UWIN has sbrk.
1352 (xrealloc): Fix guard macro.
1353
2c45d1a0
RH
13541999-04-11 Richard Henderson <rth@cygnus.com>
1355
1356 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1357 or <alloca.h>.
1358 * clock.c (GNU_HZ): New definition.
1359 (clock): Use it.
1360 * getruntime.c: Likewise.
1361
1362 * config.table: Use mh-beos.
1363 * config/mh-beos: New file.
1364
391cdef0
MM
13651999-04-11 Mark Mitchell <mark@codesourcery.com>
1366
1367 * cplus-dem.c (demangle_template_value_parm): Handle
1368 pointers-to-members.
1369 (do_type): Handle template parameters as qualifiers.
1370
9d229989
JB
13711999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1372
1373 * cplus-dem.c: Attempt to handle overflows in counts with some
1374 semblance of grace.
1375 (consume_count): Detect overflows. Return -1 to indicate errors,
1376 instead of zero.
1377 (demangle_template_value_parm, demangle_template): Handle change
1378 to consume_count's return convention.
1379
7c72138a
TT
13801999-04-05 Tom Tromey <tromey@cygnus.com>
1381
1382 * testsuite/regress-demangle: New file.
1383 * testsuite/demangle-expected: New file.
1384
1385 * Makefile.in (all, check, installcheck, info, install-info,
1386 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1387 distclean, maintainer-clean, realclean): Depend on corresponding
1388 `-subdir' target.
1389 (all-subdir check-subdir installcheck-subdir info-subdir
1390 install-info-subdir clean-info-subdir dvi-subdir
1391 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1392 distclean-subdir maintainer-clean-subdir): New target.
1393 * testsuite/Makefile.in: New file.
1394 * configure: Rebuilt.
1395 * configure.in: Create testsuite/Makefile.
1396
ae7f7270
MM
13971999-04-02 Mark Mitchell <mark@codesourcery.com>
1398
1399 * splay-tree.h (splay_tree_compare_pointers): Define.
1400
30f72379
MM
14011999-03-30 Mark Mitchell <mark@codesourcery.com>
1402
1403 * splay-tree.c (splay_tree_compare_ints): Define.
1404
4cc48683
TT
14051999-03-30 Tom Tromey <tromey@cygnus.com>
1406
1407 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1408 don't advance input pointer.
1409 (demangle_class_name): If consume_count didn't find a count, do
1410 nothing. Don't bother with `strlen' sanity check; consume_count
1411 does it for us.
1412
3510075c
JL
14131999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1414
1415 From Art Haas <ahaas@neosoft.com>:
1416 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1417 when doing arm or hp style.
1418 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 1419
89f602a7
MK
1420Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1421
1422 * pexecute.c (__CYGWIN32__): Rename to
1423 (__CYGWIN__): this.
1424 * xmalloc.c: Likewise.
1425
1426 Changes to support i386-pc-uwin.
1427 * configure.in (*-*-uwin*): Workaround for vfork bug.
1428 * configure: Regenerate.
1429 * pexecute.c (pexecute): Be like standard Unix.
1430 (pwait): Likewise.
1431 * xmalloc.c (first_break): Define.
1432 (xmalloc_set_program_name): Use.
1433 (xmalloc): Use.
1434
9346c824
FS
1435Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1436
1437 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1438
3510075c
JL
1439Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1440
1441 * config.table: Check cygwin*, not cygwin32*.
1442
8ec65f13
DB
1443Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1444
1445 * Makefile.in: Change mkstemp -> mkstemps.
1446
687361c8
ME
1447Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1448
1449 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1450 * configure.in (funcs): Check for and conditionally add mkstemps to
1451 the list of functions libiberty will provide.
1452 * configure: Rebuilt.
5194cf08 1453
b207e09c
MK
1454Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1455
5194cf08 1456 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
1457 platforms that don't have HZ.
1458 * getruntime.c (HZ): Likewise.
1459
16b4c15e
RH
1460Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1461
1462 * Makefile.in (xstrdup.o): Depend on config.h.
1463
38beb75c
UD
1464Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1465
1466 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1467 freeing it.
1468
7e4311a3
KG
1469Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1470
1471 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1472
3510075c
JL
1473Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1474
1475 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1476 splay-tree.o.
1477
14781999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1479
1480 * configure.in: Require autoconf 2.12.1 or higher.
1481
fb9939b8
MM
14821998-12-30 Michael Meissner <meissner@cygnus.com>
1483
1484 * random.c (NULL): Don't redefine NULL if it is already defined.
1485
087aa398
KG
1486Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1487
1488 * argv.c (buildargv): Cast the result of alloca in assignment.
1489
1490 * choose-temp.c: Include stdlib.h.
38beb75c 1491
087aa398 1492 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
1493 (snarf_numeric_literal): Constify first parameter.
1494 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1495 int, not a char.
087aa398
KG
1496 (demangle_qualifier): Likewise.
1497 (demangle_signature): Cast the argument of a ctype function to
1498 unsigned char.
1499 (arm_pt): Add parens around assignment used as truth value.
1500 (demangle_arm_hp_template): Constify variable `args'.
1501 (do_hpacc_template_const_value): Cast the argument of a ctype
1502 function to unsigned char.
1503 (do_hpacc_template_literal): Remove unused variable `i'.
1504 (snarf_numeric_literal): Constify parameter `args'.
1505 Cast the argument of a ctype function to unsigned char.
1506
1507 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 1508 avoid ambiguous `else'.
38beb75c 1509
087aa398 1510 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
1511 `cstart' and `cend' to unsigned char. Cast the argument of macro
1512 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
1513
1514 * objalloc.c (free): Add prototype.
1515
21f2174d
HPN
1516Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1517
1518 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1519
3510075c
JL
1520Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1521
1522 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 1523 doesn't exist.
3510075c 1524 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 1525
e8fc8222
AM
1526Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1527
1528 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1529 bumping the pointer we read from. Also prepend these codes,
1530 as we do in other places.
1531
3510075c
JL
15321998-12-18 Nick Clifton <nickc@cygnus.com>
1533
1534 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1535 'const char *' in order to match its usage when calling siblings.
1536 (snarf_numeric_literal): Make first arg 'const char **' in order
1537 to match usage.
11a0bb74 1538
f4f30aa1
JL
1539Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1540
11a0bb74
KG
1541 * choose-temp.c: Don't check IN_GCC anymore.
1542
1543 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1544 * memchr.c (memchr): Likewise.
1545 * memcpy.c (memcpy): Likewise.
1546 * memmove.c (memmove): Likewise.
38beb75c 1547
11a0bb74
KG
1548 * mkstemp.c: Don't check IN_GCC anymore.
1549 * pexecute.c: Likewise.
1550 * splay-tree.c: Likewise.
38beb75c 1551
11a0bb74
KG
1552 * strchr.c (strchr): Use `const', not `CONST'.
1553 * strrchr.c (strrchr): Likewise.
1554 * strtol.c (strtol): Likewise.
1555 * strtoul.c (strtoul): Likewise.
1556
70d5ccef
DT
1557Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1558 Elena Zannoni <ezannoni@cygnus.com>
1559 Stan Shebs <shebs@cygnus.com>
1560 Edith Epstein <eepstein@cygnus.com>
1561 Andres MacLeod <amacleod@cygnus.com>
1562 Satish Pai <pai@apollo.hp.com>
1563
1564 * HP aCC demangling support.
1565 * cplus-dem.c
1566 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
1567 demangling correctly when -edg specified; set the demangling style
1568 when user specifies 'edg'. Set strip_underscore to
1569 prepends_underscore, if not HPUXHPPA. Set
1570 current_demangling_style to hp_demangling if HPUXHPPA. Set
1571 current demangling style correctly if the switch is hp. Read
1572 label correctly also in the HP style case.
70d5ccef 1573 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 1574 function.
70d5ccef 1575 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 1576 style for this case is the same as ARM.
70d5ccef
DT
1577 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1578 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
1579 demangle_arm_pt.); check and set value of temp_start field in
1580 multiple places. Also, when ceching for end of template args,
1581 check to see if at end of static member of template class.
70d5ccef 1582 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 1583 include template args in string defining class.
70d5ccef
DT
1584 (demangle_class_name): use demangel_arm_hp_template.
1585 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
1586 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1587 Handle EDG_DEMANGLING style. Handle constructor and destructor
1588 ops for HP style.
70d5ccef 1589 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
1590 styles. global destructor and constructor for HP style are same
1591 as for ARM style. Same for local variables.
70d5ccef
DT
1592 (demangle_qualified): handle EDG_DEMANGLING style.
1593 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
1594 cases '1' - '9' : initialize the temp_start field to -1 and handle
1595 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1596 and AUTO_DEMANGLING styles. If expecting a function and managed
1597 to demangle the funct args, then handle the LUCID_DEMANGLING,
1598 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1599 class name after "Lnnn_ in HP style case. HP style too needs to
1600 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 1601 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 1602 value param for HP/aCC.
70d5ccef 1603 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 1604 literal parameter for HP aCC.
70d5ccef
DT
1605 (recursively_demangle): new function
1606 (snarf_numeric_literal): new function.
1607 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 1608 to message.
70d5ccef 1609
8d525fa8
CF
1610Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1611
1612 * pexecute.c: Remove obsolete ifdefed cygwin code.
1613
9b1a92d8
KG
1614Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1615
1616 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1617 * cplus-dem.c: Likewise. Conform to libiberty.h.
1618 * pexecute.c: Likewise.
1619 * splay-tree.c: Likewise.
1620
c85c3232
MS
16211998-11-25 Mike Stump <mrs@wrs.com>
1622
1623 * Makefile.in (splay-tree.o): Add config.h dependency.
1624
35a6cd99
KG
1625Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1626
1627 * configure.in: Use AC_PREREQ(2.12.1).
1628
6e6e34b7
BK
16291998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1630
5194cf08 1631 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 1632
59b67c11
JL
1633Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1634
1635 * mpw.c (mpw_access): Add missing parens.
1636
a6458d1d
KG
1637Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1638
1639 * configure.in: Call AC_HEADER_SYS_WAIT.
1640
1641 * pexecute.c: Include sys/wait.h when !IN_GCC.
1642
3510075c
JL
1643Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1644
1645 * pexecute.c: revert back to checking old Cygwin
1646 preprocessor symbol until some time has passed.
1647
1648Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1649
1650 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1651 since it will now support similar constructs.
1652
a9acf741
KG
1653Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1654
1655 * configure.in: Check for calloc.
1656
1657 * calloc.c: New file.
1658
1659 * xmalloc.c (xcalloc): New function.
1660
a49fb37a
AM
1661Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1662
1663 *cplus-dem.c (demangle_prefix): Use the last "__"
1664 in the mangled name when looking for the signature. This allows
1665 template names to begin with "__".
1666
0e714131
MM
16671998-11-08 Mark Mitchell <mark@markmitchell.com>
1668
ec2288ff
MM
1669 * cplus-dem.c (type_kind_t): Add tk_reference.
1670 (demangle_template_value_parm): Handle it.
1671 (do_type): Use it for references, instead of tk_pointer.
1672
0e714131
MM
1673 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1674 not internal_cplus_demangle.
1675
2931b6d4
KG
1676Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1677
1678 * choose-temp.c: Don't include gansidecl.h.
1679 * mkstemp.c: Likewise.
1680 * pexecute.c: Likewise.
1681
dd8f3ed5
GN
1682Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1683
5194cf08
ZW
1684 * configure.in: detect cygwin* instead of cygwin32*
1685 * configure: regenerate
dd8f3ed5 1686
c5f7c445
KG
1687Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1688
1689 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
1690 whether to include config.h. Possibly include unistd.h in the
1691 !IN_GCC case. Define VFORK_STRING as a printable function call
1692 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1693 defined, include vfork.h. If VMS is defined, define vfork()
1694 appropriately. Remove vfork check on USG, we're using autoconf.
1695 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1696 locally what string to use.
c5f7c445 1697
ad3ef78e
MM
16981998-10-26 Mark Mitchell <mark@markmitchell.com>
1699
1700 * splay-tree.c: Tweak include directives to make sure declarations of
1701 xmalloc and free are available.
1702
224301c1
MM
17031998-10-25 Mark Mitchell <mark@markmitchell.com>
1704
1705 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1706 anonymous namespaces.
38beb75c 1707
d9db46fd
MM
17081998-10-23 Mark Mitchell <mark@markmitchell.com>
1709
1710 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1711 with type_quals.
1712 (TYPE_UNQUALIFIED): New macro.
1713 (TYPE_QUAL_CONST): Likewise.
1714 (TYPE_QUAL_VOLATILE): Likewise.
1715 (TYPE_QUAL_RESTRICT): Likewise.
1716 (code_for_qualifier): New function.
1717 (qualifier_string): Likewise.
1718 (demangle_qualifier): Likewise.
1719 (internal_cplus_demangle): Use them.
1720 (demangle_signature): Likewise.
1721 (demangle_template_value_parm): Likewise.
1722 (do_type): Likewise.
1723 (demangle_fund_type)): Likewise.
224301c1 1724
b056ad1c
KG
1725Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1726
1727 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1728 to match prototype.
1729
ed87f9c8
MM
17301998-10-21 Mark Mitchell <mark@markmitchell.com>
1731
1732 * splay-tree.c: New file.
1733 * Makefile.in (CFILES): Add it.
1734 (REQUIRED_OFILES): Likewise.
1735 (splay-tree.o): Add dependencies.
1736
e0c13971
AS
1737Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1738
1739 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1740 range of 'K' index.
1741
91e0f659
KG
1742Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1743
1744 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1745
1746 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1747 `unsigned char'.
1748 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1749 comparing against one.
1750 (cplus_mangle_opname): Likewise.
1751 (demangle_integral_value): Cast argument of ctype macro to
1752 `unsigned char'.
1753 (demangle_template_value_parm): Likewise.
1754 (demangle_template): Initialize variable `bindex'. Cast the
1755 result of `strlen' to (int) when comparing against one. Remove
1756 unused variable `start_of_value_parm'.
1757 (demangle_class_name): Cast the result of `strlen' to (int) when
1758 comparing against one.
1759 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1760 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1761 when comparing against one.
1762 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1763 (get_count): Likewise.
1764 (do_type): Likewise. Cast the result of `strlen' to (int) when
1765 comparing against one.
1766 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1767 (demangle_function_name): Cast the result of `strlen' to (int)
1768 when comparing against one.
1769
1770 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1771 comparing against one.
1772
73aeb2ff
JL
1773Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1774
5194cf08
ZW
1775 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1776 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1777 * config.in, configure: Rebuilt.
ae76f1be 1778
73aeb2ff
JL
1779 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1780 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1781 * config.in, configure: Rebuilt.
1782
dd8f3ed5
GN
1783Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1784
5194cf08 1785 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 1786
f77d8413
MT
1787Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1788
1789 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1790
ca6b370d
JL
1791Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1792
1793 * Merge egcs & devo libiberty.
1794
ab4856b1
ML
1795