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