merge from gcc
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
d42dae6c
DD
12001-06-10 Richard Henderson <rth@redhat.com>
2
3 * concat.c: Include string.h. Fix int vs size_t usage.
4 Simplify the iteration loops. Use memcpy.
5
e05c6d27
DD
62001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
7
8 * partition.c: Fix misspelling of `implementation'.
9
b50c4073
DD
102001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
11
12 * md5.c (md5_init_ctx): Declare constants as unsigned.
13 (md5_process_block): Likewise.
14
457161bf
DD
152001-05-07 Zack Weinberg <zackw@stanford.edu>
16
17 * cp-demangle.c (demangle_v3_with_details,
18 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
19 function definition.
20 * ternary.c: Use K+R style function definitions. Use PTR, not
21 void *. Make arguments constant where possible.
22
e00bc6a7
DD
232001-05-07 Mark Mitchell <mark@codesourcery.com>
24
25 * splay-tree.h (splay_tree_max): New function.
26 (splay_tree_min): Likewise.
27
400ee7e1
DB
282001-04-15 Daniel Berlin <dan@cgsoftware.com>
29
30 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
31
32 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 33
d9697354
DD
342001-04-03 Zack Weinberg <zackw@stanford.edu>
35
36 * make-temp-file.c (try): Inline.
37
a7bf099b
DD
382001-02-28 Richard Henderson <rth@redhat.com>
39
40 * Makefile.in (make-temp-file.o): Depend on config.h.
41
30a1def2
DD
422001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
43
44 * memchr.c (memchr): Adjust condition to avoid infinite loop.
45
079c672a
DD
462001-03-23 Jakub Jelinek <jakub@redhat.com>
47
48 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
49 `_' not followed by a digit is invalid.
50
a88e356a
JB
512001-03-22 Jim Blandy <jimb@redhat.com>
52
53 * cp-demangle.c (string_list_delete): Use dyn_string_delete
54 instead of free, to free the contents as well as the string
55 structure.
56
1dffcc66
DD
572001-03-21 Zack Weinberg <zackw@stanford.edu>
58
59 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
60 Don't default P_tmpdir to anything. Try /var/tmp before
61 /usr/tmp.
62
632001-03-20 Zack Weinberg <zackw@stanford.edu>
64
65 * choose-temp.c: Split off make_temp_file, and the code
66 duplicated between it and choose_temp_base, into...
67 * make-temp-file.c: ... here; new file.
68
69 * Makefile.in (CFILES): Add make-temp-file.c.
70 (REQUIRED_OFILES): Add make-temp-file.o.
71
e61231f1
JB
722001-03-20 Jim Blandy <jimb@redhat.com>
73
74 * cp-demangle.c (struct demangling_def): New fields:
75 is_constructor and is_destructor.
76 (demangling_new): Initialize them.
77 (demangle_ctor_dtor_name): Set them, if we detect a constructor
78 or destructor.
79 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
80 is_gnu_v3_mangled_dtor): New functions.
81
a9cbbe6d
DD
822001-03-20 Jason Merrill <jason@redhat.com>
83
84 * cplus-dem.c (main): Skip initial $.
85
b1e51b3c
DD
862001-03-15 Michael Meissner <meissner@redhat.com>
87
88 * hashtab.c (higher_prime_number): Silence warning that 4294967291
89 might be a signed integer under pre-ISO C systems.
90
8aa30e60 912001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 92 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 93
8aa30e60
DD
94 * libiberty/lbasename.c: New file.
95 * libiberty/Makefile.in: Update for lbasename.
96
30673bf5
DD
972001-03-06 Zack Weinberg <zackw@stanford.edu>
98
99 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
100 * configure.in: Replace all alloca logic with a simple use of
101 the above new macro.
102 * config.table: Kill *-*-beos* entry.
103 * config/mh-beos: Delete.
104 * configure, config.in: Regenerate.
fa03f0a7 105
30673bf5
DD
106 * Makefile.in (ALLOCA, HFILES): Kill.
107 (REQUIRED_OFILES): Add alloca.o.
108 (alloca.o): Depend on libiberty.h.
109 (argv.o): Don't depend on alloca-conf.h.
110 * alloca-conf.h: Delete.
111 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
112 blocks. Provide the C alloca unconditionally. Use PTR where
113 appropriate. Make i00afunc static.
114 * argv.c: Don't include alloca-conf.h.
fa03f0a7 115
5810f394
DD
1162001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
117
118 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 119
a9db032a
DD
1202001-02-16 Loren J. Rittle <ljrittle@acm.org>
121
122 * cplus-dem.c (main): Initialize style.
fa03f0a7 123
bc9bf259
DD
1242001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
125
126 Add support for Java demangling under the v3 ABI:
127 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
128 (struct demangling_def): Add `style' field.
129 (demangling_new): New parameter `style'. Set it in demangling_t.
130 (demangle_prefix): Use NAMESPACE_SEPARATOR.
131 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
132 (cp_demangle): New parameter `style'. Pass it to demangling_new().
133 (main): Call cp_demangle with extra parameter.
134 (java_demangle_v3): New function.
135 (java_builtin_type_names): New. Table of primitive type names used
136 for Java demangling.
137 (demangle_builtin_type): Look up in java_builtin_type_names if doing
138 Java output.
139 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
140 demangling.
141 (long_options): Remove obsolete `java' option.
142 (main): Remove explicit handling of `java' option. Instead, pass style
143 parameter in cplus_demangle flags as gdb does.
144 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 145
bc9bf259
DD
1462001-01-29 Phil Edwards <pme@sources.redhat.com>
147
148 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
fa03f0a7 149
f6528837
DD
1502000-12-29 DJ Delorie <dj@redhat.com>
151
152 * fnmatch.c: Make the note about the origins of this file more
153 accurate, at least until we can sync with glibc.
154 * getopt.c: Ditto.
155 * getopt1.c: Ditto.
156 * md5.c: Ditto.
157 * obstack.c: Ditto.
9d969b59 158
c6da642e
DD
1592000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
160
161 * bsearch.c: New file.
162 * configure.in (funcs): Add bsearch.
163 (AC_CHECK_FUNCS): Likewise.
164 * configure, config.in: Regenerate.
165
ae7d06ad 1662000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
167
168 * safe-ctype.c: #include "ansidecl.h".
169 * strtod.c: Likewise.
170
ae7d06ad 1712000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
172
173 * strtoul.c: Include safe-ctype.h, not ctype.h.
174
ac424eb3
DD
1752000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
176
177 * safe-ctype.c: New file.
178 * Makefile.in (CFILES): Add safe-ctype.c.
179 (REQUIRED_OFILES): Add safe-ctype.o.
180
181 * argv.c: Define ISBLANK and use it, not isspace.
182 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
183 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
184 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
185 before calling TOLOWER(c)/TOUPPER(c).
186
4415a860
DD
1872000-12-07 Mike Stump <mrs@wrs.com>
188
189 * Makefile.in (distclean): When cleaning, remove testsuite.
190
849ee224
DD
1912000-12-05 Jason Merrill <jason@redhat.com>
192
193 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
194 name before allocating the dyn_string.
195
ae7d06ad 1962000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
197
198 * cp-demangle.c: s/new_abi/v3/.
199 * cplus-dem.c: Likewise.
200 (current_demangling_style): Now auto_demangling.
201 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 202 (main): Use standard symbol chars for auto_demangling.
e49a569c 203
ae7d06ad 2042000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
205
206 * hashtab.c (higher_prime_number): Use a table, rather than a
207 seive, to find the next prime.
ae7d06ad
NC
208
2092000-11-22 H.J. Lu <hjl@gnu.org>
210
211 * cplus-dem.c (main): Handle gnat_demangling.
212
2132000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
214
215 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
216 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
217 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
218 argument form of AC_DEFINE in dummy definitions block. Use
219 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
220 in dummy block. Preload cache variables instead of bypassing
221 tests, where possible.
222 * acconfig.h: Removed.
ae7d06ad 223
2ea7befd
DD
224 * xmalloc.c (xmalloc_failed): New function, does error
225 reporting on failed allocation.
226 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 227
f1775526
HPN
2282000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
229
230 * cplus-dem.c (cplus_demangle): Fix formatting.
231 (grow_vect): Ditto.
232 (ada_demangle): Ditto.
233 (internal_cplus_demangle): Ditto.
234 (mop_up): Ditto.
235
2362000-11-21 H.J. Lu <hjl@gnu.org>
237
238 * cplus-dem.c (main): Handle java_demangling.
239
ae7d06ad 2402000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
241
242 * cplus-dem.c (grow_vect): Prototype.
243 (ada_demangle): Cast the arg of ctype macros to unsigned char.
244
5dd42ef4
HPN
2452000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
246
247 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
248 parameter `option'.
249
296731c1
DD
2502000-11-15 Kenneth Block <kenneth.block@compaq.com>
251
8944fb9d 252 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
253 be used in GCC.
254
6e53a714 2552000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 256
5dd42ef4 257 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
258 list.
259
99a4c1bd
HPN
2602000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
261
262 * hashtab.c (htab_expand): Change to return int. Use calloc or
263 xcalloc depending on htab->return_allocation_failure. Return zero
264 if calloc fails.
265 (htab_create): Update comment to cover memory allocation.
266 (htab_try_create): New.
267 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
268 Update comment to cover this.
269
e0f3df8f
HPN
2702000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
271
272 * hashtab.c: Change void * to PTR where necessary.
273 (htab_create, htab_expand): Correct formatting of comment before
274 function.
275
ae7d06ad 2762000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
277
278 * cp-demangle.c (string_list_def): Add caret_position and comments.
279 (result_caret_pos): New macro.
280 (result_append_string): Rename to...
281 (result_add_string): ... this, and insert at caret position.
ae7d06ad 282 Rename throughout.
59666b35
DD
283 (result_append): Rename to...
284 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 285 throughout.
59666b35
DD
286 (result_append_char): Rename to...
287 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 288 throughout.
59666b35
DD
289 (result_append_space): Remove.
290 (string_list_new): Initialize caret position.
291 (result_add_separated_char): Use caret position.
292 (result_get_caret): New funtion.
293 (result_set_caret): Likewise.
294 (result_shift_caret): Likewise.
295 (result_previous_char_is_space): Likewise.
296 (substitution_start): Use caret position.
297 (substitution_add): Likewise.
298 (demangling_new): Initialize caret position.
299 (demangle_encoding): Use caret position.
ae7d06ad 300 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
301 (demangle_type_ptr): Use switch statement. Handle pointers to
302 arrays. Don't use result_append_space. Use caret position.
303 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
304 call to demangle_array_type.
305 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 306
ae7d06ad 3072000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
308
309 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
310
3112000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
312
313 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
314
3152000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
316
317 * splay-tree.c: #include <stdio.h>.
318
3192000-09-14 Hans-Peter Nilsson <hp@axis.com>
320
321 * testsuite/demangle-expected: Add two tests for anonymous
322 namespaces.
323 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
324
3252000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
326
327 * splay-tree.c (splay_tree_predecessor): New function.
328 (splay_tree_successor): Likewise.
ae7d06ad
NC
329
3302000-09-10 Hans-Peter Nilsson <hp@axis.com>
331
332 * testsuite/demangle-expected: Add four tests for type_info
333 mangling.
334 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
335 for a non-template non-qualified type_info function or node.
336
3372000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
338
339 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
340
3412000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
342
343 * md5.c: #include "ansidecl.h".
344
3452000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
346
347 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
348 (demangle_type): Handle substitution candidates correctly in the
349 face of special substitutions.
ae7d06ad
NC
350
3512000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
352
353 * cp-demangle.c (demangle_encoding): Rename variable.
354 (demangle_name): Rename parameter. Handle return type
355 suppression.
356 (demangle_nested_name): Rename parameter.
357 (demangle_prefix): Likewise. Change return type suppression.
358 (demangle_unqualified_name): Add parameter. Flag constructors and
359 conversion operators.
360 (demangle_special_name): Fix comment.
361 (demangle_type): Rename variable.
362 (demangle_bare_function_type): Check for missing return type and
363 parameter.
364 (demangle_class_enum_type): Rename parameter.
365 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
366
3672000-08-31 DJ Delorie <dj@redhat.com>
368
369 * configure.in (Cygwin): special case cygwin only when we're
370 building cygwin, not when we're hosting cygwin.
371
3722000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
373
374 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
375 <expression>.
ae7d06ad
NC
376
3772000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
378
379 * cp-demangle.c (demangle_type_ptr): Increment position past
380 pointer and reference characters.
ae7d06ad
NC
381
3822000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
383
384 * cp-demangle.c (demangle_nv_offset): New function.
385 (demangle_v_offset): Likewise.
386 (demangle_call_offset): Likewise.
387 (demangle_special_name): Update thunk demangling to comply with
388 ABI changes.
ae7d06ad
NC
389
3902000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
391
392 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
393 (substitution_def): Remove template_parm_number.
394 (NOT_TEMPLATE_PARM): Remove.
395 (result_insert_string): New macro.
396 (result_insert): Likewise.
397 (result_insert_char): Likewise.
398 (substitution_add): Remove last parameter. Don't store template
399 parm number.
400 (BFT_NO_RETURN_TYPE): Define as NULL.
401 (demangle_encoding): Adjust call to demangle_bare_function_type.
402 (demangle_name): Adjust substitution. Adjust call to
403 substitution_add.
404 (demangle_prefix): Adjust call to substitution_add.
405 (demangle_identifier): Handle anonymous namespaces.
406 (demangle_operator_name): Change demangling of vendor-extended
407 operator to match ABI changes.
408 (demangle_type_ptr): Change parameters. Make recursive. Handle
409 substitutions here.
410 (demangle_type): Adjust calls to demangle_template_param,
411 substitution_add, and demangle_type_ptr. Fix substitution of
412 templated types.
413 (demangle_function_type): Change parameter to a pointer.
414 (demangle_bare_function_type): Likewise. Adjust insertion point.
415 (demangle_template_param): Remove last parameter.
416 (demangle_expr_primary): Remove unused variable. Adjust call to
417 demangle_template_param.
418 (is_mangled_char): Accept `$' and `.'.
419 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
420 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
421
4222000-08-31 Hans-Peter Nilsson <hp@axis.com>
423
424 * testsuite/demangle-expected: Add nine tests for
425 underscore-after-number followed by five tests for name-signature
426 delimiter.
427
4282000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
429
430 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
431
4322000-08-28 Jason Merrill <jason@redhat.com>
433
434 * Makefile.in (REQUIRED_OFILES): Add md5.o.
435 (CFILES): Add md5.c.
436 * md5.c: New file.
437
4382000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
439
440 * cp-demangle.c (demangle_name): Initialize template_p in local
441 name case. Don't re-add substitutions as candidates.
442 (demangle_nested_name): Use <unqualified-name>.
443 (demangle_prefix): Likewise. Don't add template names as
444 substitution candidates twice, or re-add a substitution or the
445 last prefix component.
446 (demangle_local_name): Adjust output format.
ae7d06ad
NC
447
4482000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
449
450 * cp-demangle.c (result_add_separated_char): Change parameter to
451 int.
452 (substitution_add): Don't check for duplicates. Check if
453 previously allocated size is zero.
454 (demangle_name): Remove duplicate check for std substitution.
455 Clear template flag appropriately.
456 (demangle_prefix): Remove argument to demangle_substitution.
457 Don't check that template flag is already set.
458 (demangle_operator_name): Add pt operator.
459 (demangle_type): Don't treat r as built-in type. Remove argument
460 to demangle_substitution. Fix substitution candidate mechanics.
461 Handle <template-template-parm>s. Improve comments.
462 (demangle_template_param): Don't handle template arg lists here.
463 (demangle_substitution): Remove parameter.
464 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
465
4662000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
467
468 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
469
4702000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
471
472 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
473 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
474 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
475
4762000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
477
478 * cp-demangle.c (result_close_template_list): Remove function.
479 (result_add_separated_char): New function.
480 (result_open_template_list): New macro.
481 (result_close_template_list): Likewise.
482 (demangle_prefix): Don't set template_p if the
483 prefix ends with a ctor name.
484 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
485 (demangle_type): Check for template args after substitution.
486 (demangle_template_args): Use result_open_template_list.
d3e85005 487
ae7d06ad 4882000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 489
ae7d06ad 490 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 491
ae7d06ad 4922000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
493
494 * config/mh-openedition.h: Added -DLE370 definition.
495
a9f34fb6
JL
4962000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
497
498 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
499 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
500 Cast program to 'char *' in errmsg_arg assignment.
501 (PWAIT_ERROR): Define.
502 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
503 to DJGPP's WIF* macros.
504
90aaccd1 5052000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 506 Jeff Law <law@cygnus.com>
90aaccd1 507
ae7d06ad 508 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 509
90aaccd1 510 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
511 * rename.c: Include config.h, unistd.h
512 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 513
6ef554e3
HPN
5142000-07-24 Hans-Peter Nilsson <hp@axis.com>
515
516 * cplus-dem.c (work_stuff_copy_to_from): New.
517 (delete_non_B_K_work_stuff): New.
518 (delete_work_stuff): New.
519 (mop_up): Break out work_stuff partly destruction to
520 delete_non_B_K_work_stuff.
521 (iterate_demangle_function): New.
522 (demangle_prefix): Call iterate_demangle_function instead of
523 demangle_function_name. Leave handling of name-signature
524 __-delimiters to iterate_demangle_function.
525 (demangle_integral_value): Strip an optional
526 following underscore cautiously. Handle negative numbers.
527
ae7d06ad 5282000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 529
ae7d06ad 530 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
531 if (AUTO_DEMANGLING || GNU_DEMANGLING)
532
ae7d06ad
NC
5332000-07-21 Alex Samuel <samuel@codesourcery.com>
534
535 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
536 allocating ctor mangling.
537 (demangle_array_type): Handle empty and non-constant array length.
538
b1233257 5392000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
540 Jeff Law <law@cygnus.com>
541
542 * configure.in (AC_CHECK_HEADERS): Add time.h.
543 (AC_HEADER_TIME): Add check.
544 * configure, config.in: Regenerate.
545 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
546
547 * configure.in (AC_CHECK_HEADERS): Add limits.h.
548 * configure, config.in: Regenerate.
549 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
550 * strtol.c, strtoul.c: #include "config.h". Portably #include
551 <limits.h> and/or <sys/param.h>.
552 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 553
7d3ffcaf
JL
554 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
555 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
556 * configure, config.in: Regenerate.
557 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
558
b1233257
JL
559 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
560
ae7d06ad
NC
5612000-07-21 Mike Stump <mrs@wrs.com>
562
563 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
564 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
565
5662000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
567
568 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
569
570 * setenv.c (setenv): Initialize variable `ep'.
571
572 * sigsetmask.c (abort): Prototype.
573
574 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
575 __STDC__ for stdarg.h include.
576 (int_vasprintf): Prototype.
577 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
578 definition. Cast `global_total_width' in comparison.
579 (main): Prototype. Return a value.
580
581 * vfork.c (fork): Prototype.
582
583 * xexit.c: Include config.h.
584
9adf30b2
JL
5852000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
586
587 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
588 and print it with %u.
589
2ed78d1b
HPN
5902000-07-17 Hans-Peter Nilsson <hp@axis.com>
591
592 * testsuite/regress-demangle (failed test): Show result and
593 expected output.
594
0473bdf7
AH
5952000-07-07 Andrew Haley <aph@cygnus.com>
596
597 * cplus-dem.c (main): fflush() after emitting last char before
598 waiting for input.
599
03d5f569
JM
6002000-06-28 Alex Samuel <samuel@codesourcery.com>
601
602 * cp-demangle.c (demangle_encoding): Accept no substitutions.
603 (demangle_name): Handle <substitution> followed by
604 <unqualified-template-name>.
605 (demangle_type): Follow special substitutions with
606 <class-enum-type>
607 (demangle_subtitution): Set template_p for special substitutions.
608 (main): Fix typos.
ae7d06ad 609
03d5f569
JM
6102000-06-27 Alex Samuel <samuel@codesourcery.com>
611
612 * cp-demangle.c (demangle_special_name): Swap base and derived
613 class when demangling construction vtables.
614
6152000-06-21 Alex Samuel <samuel@codesourcery.com>
616
617 * cp-demangle.c: Don't include ctype.h.
618 (IS_DIGIT): New macro.
619 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
620 instead of isdigit and isalpanum.
621 (demangling_def): Make name and next const pointers.
622 (STATUS_ALLOCATION_FAILED): New status code.
623 (dyn_string_append_space): Handle failure in
624 dyn_string_append_char.
625 (int_to_dyn_string): Likewise. Change return value to status_t.
626 (string_list_new): Handle failure of dyn_string_init.
627 (result_close_template_list): Change return type to status_t.
628 Handle failure in dyn_string_append.
629 (result_push): Change return value to status_t. Handle failure in
630 string_list_new. Handle failure of result_push throughout.
631 (substitution_add): Change return value to status_t. Handle
632 dyn_string failures. Handle failure of substitution_add
633 throughout.
634 (template_arg_list_new): Return NULL on allocation failure.
635 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
636 Handle error result throughout.
637 (result_append): Likewise.
638 (result_append_char): Likewise.
639 (result_append_space): Likewise.
640 (demangling_new): Make argument a const pointer. Handle
641 allocation failures.
642 (demangle_template_args): Handle failure in template_arg_list_new
643 and result_close_template_list.
644 (demangle_discriminator): Return if int_to_dyn_string fails.
645 (cp_demangle): Likewise.
646 (cp_demangle_type): New function.
647 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
648 memory allocation failure.
649 (main): Likewise.
650 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
651 IN_LIBGCC2.
652 (dyn_string_init): Change return value to int. Handle
653 RETURN_ON_ALLOCATION_FAILURE case.
654 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
655 (dyn_string_release): Delete the dyn_string.
656 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
657 (dyn_string_copy): Change return type to int.
658 (dyn_string_copy_cstr): Likewise.
659 (dyn_string_prepend): Likewise.
660 (dyn_string_prepend_cstr): Likewise.
661 (dyn_string_insert): Likewise.
662 (dyn_string_insert_cstr): Likewise.
663 (dyn_string_append): Likewise.
664 (dyn_string_append_cstr): Likewise.
665 (dyn_string_append_char): Likewise.
666 (dyn_string_substring): Likewise.
ae7d06ad 667
eb383413 6682000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 669
eb383413
L
670 * cp-demangle.c (demangle_operator_name): Add spaces before
671 names beginning with a letter: delete, delete[], new, new[],
672 sizeof.
673 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 674
eb383413
L
675Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
676
677 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
678
679Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
680
681 * cp-demangle.c (stdio.h): File included unconditionaly.
682 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
683 * dyn-string.c (stdio.h): File included.
684 * partition.c (partition_print): No `&' needed to take the address of
685 a function.
686
6872000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
688
689 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 690
eb383413
L
691 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
692
693 * cp-demangle.c (demangle_char): Change parameter from char to int.
694 (demangle_expression, demangle_expr_primary): Remove extra
695 semi-colon in prototype.
696
697 * dyn-string.c (dyn_string_append_char): Change parameter from
698 char to int.
699
700 * memcmp.c (memcmp): Constify.
701
702 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
703 __extension__.
704
705 * partition.c (elem_compare): Prototype. Don't cast away
706 const-ness.
707
708 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 709
eb383413
L
7102000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
711
712 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
713
714 * cp-demangle.c: Include demangle.h.
715 (template_arg_list_new): DeANSIfy.
716 (cp_demangle): Make static and add prototype.
717 (operator_code, operators): Constify.
718 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
719
7202000-06-05 Alex Samuel <samuel@codesourcery.com>
721
722 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
723 unsigned char.
724 (demangle_unqualified_name): Likewise.
725 (demangle_number_literally): Likewise.
726 (demangle_type): Likewise.
727 (demangle_substitution): Likewise.
728 (is_mangled_char): Likewise, for isalnum.
729
7302000-06-04 Alex Samuel <samuel@codesourcery.com>
731
732 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
733 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
734 (cp-demangle.o): New dependency.
735 (dyn-string.o): Likewise.
736
737 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
738
739 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
740 demangler.
741 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
742 demangling mode.
743 (gnu_new_abi_symbol_characters): New function.
744 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
745 file.
746 * cp-demangle.c: New file.
ae7d06ad 747
f03aa80d
AC
748Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
749
750 * floatformat.c: Add name to each floatformat field.
751
77bfb694
JL
752Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
753
754 * Makefile.in (objalloc.o): Depend on config.h
755
5c82d20a
ZW
7562000-05-29 Zack Weinberg <zack@wolery.cumb.org>
757
eb383413 758 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
759 if HAVE_STRING_H.
760 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
761 * objalloc.c: Include config.h. Include stdlib.h and don't
762 declare malloc or free if HAVE_STDLIB_H.
763 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
764 else declare malloc without prototype. Include string.h if
765 HAVE_STRING_H, else declare memset without prototype. Don't
766 include stddef.h.
767
eb383413
L
7682000-05-23 Mike Stump <mrs@wrs.com>
769
770 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
771 -j3.
772
7732000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
774
775 * xmalloc.c: Include config.h for HAVE_SBRK definition.
776
7772000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
778
ae7d06ad 779 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
780 probably zero, also eliminate a warning on alpha.
781
7822000-05-15 David Edelsohn <edelsohn@gnu.org>
783
784 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
785 on $(enable_shared).
786
7872000-05-10 Jakub Jelinek <jakub@redhat.com>
788
789 * config.table: Use mh-sparcpic for sparc*-*-*.
790
7912000-05-08 Nick Clifton <nickc@cygnus.com>
792
793 * Makefile.in (CFILES): Add strncmp.c.
794 (NEEDED): Add strncmp.
795
7962000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 797
eb383413
L
798 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
799 Cast the arguments to `islower' to `unsigned char'.
800 (print_demangler_list): Prototype.
801
802Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
803
804 * sort.c (UCHAR_MAX): Provide fallback definition.
805
8062000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
807
808 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
809 SUBDIRS.
810
eb383413
L
8112000-04-28 Kenneth Block <block@zk3.dec.com>
812 Jason Merrill <jason@casey.cygnus.com>
813
ae7d06ad
NC
814 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
815 (cplus_demangle_set_style): New function for setting style.
816 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
817
8182000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
819
820 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
821
822 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
823 (libiberty_AC_FUNC_STRNCMP): Invoke.
824
825 * strncmp.c: New file.
826
827Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
828
829 * hashtab.c (htab_expand): Add prototype.
830 (find_empty_slot_for_expand): Likewise.
831
8322000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
833
834 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
835 match prototype.
836 (htab_expand): Cast the return value of xcalloc.
837
8382000-04-24 Mark Mitchell <mark@codesourcery.com>
839
840 * hashtab.c (hash_pointer): New function.
841 (eq_pointer): Likewise.
842 (htab_hash_pointer): New variable.
843 (htab_eq_pointer): Likewise.
844
8452000-04-23 Mark Mitchell <mark@codesourcery.com>
846
847 * sort.c (sort_pointers): Fix endianness bugs.
848
849 * sort.c: New file.
850 * Makefile.in (CFILES): Add sort.c
851 (REQUIRED_OFILES): Add sort.o.
852 (sort.o): New target.
853
19be4303
JL
8542000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
855
856 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
857 4.3BSD systems.
858
eb383413
L
859Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
860
861 * hashtab.c: Various minor cleanups.
862 (htab_find_slot_with_hash): INSERT is now enum insert_option.
863 (htab_find_slot): Likewise.
864
8652000-04-16 Dave Pitts <dpitts@cozx.com>
866
867 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 868
afe36a78
RH
8692000-04-05 Richard Henderson <rth@cygnus.com>
870
871 * splay-tree.c (splay_tree_remove): New.
872
eb383413
L
8732000-03-30 Mark Mitchell <mark@codesourcery.com>
874
875 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
876 codes.
877 (htab_find_with_hash): Likewise.
878 (htab_find_slot_with_hash): Likewise.
ae7d06ad 879
eb383413
L
8802000-03-29 Zack Weinberg <zack@wolery.cumb.org>
881
882 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
883 unless it will be used. Rearrange loop for better
884 optimization.
885 (higher_prime_number): Add static prototype.
886
b4fe2683
JM
887Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
888
889 * Makefile.in (partition.o): Depend on config.h
890
8912000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
892
893 * hashtab.c (find_empty_slot_for_expand): New function.
894 (htab_expand): Use it instead of htab_find_slot.
895 (htab_find_with_hash): Renamed from htab_find; now accepts extra
896 argument HASH.
897 (htab_find_slot_with_hash): Likewise for htab_find_slot.
898 (htab_find): New wrapper function.
899 (htab_find_slot): Likewise.
900 (htab_traverse): Pass slot, not entry, to called function.
901
9022000-03-09 Alex Samuel <samuel@codesourcery.com>
903
904 * Makefile.in (CFILES): Add partition.c.
905 (REQUIRED_OFILES): Add partition.o.
906 (partition.o): New rule.
907 * partition.c: New file.
ae7d06ad 908
b4fe2683
JM
9092000-03-09 Zack Weinberg <zack@wolery.cumb.org>
910
911 * hashtab.c (htab_create): Set del_f.
912 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
913 Use it.
914
9152000-03-08 Zack Weinberg <zack@wolery.cumb.org>
916
917 * hashtab.c: Remove debugging variables (all_searches,
918 all_collisions, all_expansions). Delete
919 all_hash_table_collisions.
920 (create_hash_table, delete_hash_table, empty_hash_table,
921 find_hash_table_entry, remove_element_from_hash_table_entry,
922 clear_hash_table_slot, traverse_hash_table, hash_table_size,
923 hash_table_elements_number, hash_table_collisions): Rename to:
924 htab_create, htab_delete, htab_empty, htab_find_slot,
925 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
926 htab_elements, htab_collisions.
927 (htab_find): New function, handles common case where you don't
928 plan to add or delete an entry.
929 (htab_expand): Don't create a whole new table, just a new
930 entry vector.
931 (htab_find_slot): Simplify logic.
932
08372f14
ILT
9331999-08-03 Ian Lance Taylor <ian@zembu.com>
934
935 * floatformat.c: Add casts to avoid signed/unsigned warnings.
936 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
937
938 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
939 $(TARGETLIB)n so it works on MSDOS.
940 (install_to_tooldir): Likewise.
941
9c8ac5a9
ILT
9421999-07-21 Ian Lance Taylor <ian@zembu.com>
943
944 From Mark Elbrecht:
945 * makefile.dos: Remove; obsolete.
8f36e47c 946 * configure.bat: Remove; obsolete.
9c8ac5a9 947
0c0a36a4
ILT
9481999-07-11 Ian Lance Taylor <ian@zembu.com>
949
950 * splay-tree.c (splay_tree_insert): Add initialization to avoid
951 warning.
952
9532000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
954
955 * pexecute.c: Conditionally include string.h.
b4fe2683 956 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
957
9582000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
959
960 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
961 we're using gcc.
962
963 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
964
9651999-12-27 Geoff Keating <geoffk@cygnus.com>
966
967 * vasprintf.c (int_vasprintf): Don't re-read the format character
968 as this mishandles strings like '%%s'.
969
9701999-12-05 Mark Mitchell <mark@codesourcery.com>
971
972 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
973 rather than struct splay_tree_node.
974 (splay_tree_insert): Use struct splay_tree_s rather than struct
975 splay_tree.
976
977Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
978
979 * hashtab.c (sys/types.h): File included.
980
9811999-11-22 Jason Merrill <jason@casey.cygnus.com>
982
983 * strtoul.c, strtol.c, random.c: Remove advertising clause from
984 BSD license, pursuant with
985
986 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
987
988Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
989
990 * hashtab.c: Include stdio.h.
991
992Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
993
994 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
995
996Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
997
998 * xstrdup (sys/types.h): Include this file.
999
10001999-10-28 Nathan Sidwell <nathan@acm.org>
1001
1002 * Makefile.in (SUBDIRS): New macro.
1003 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1004 avoid multiple subdirectory cleaning.
1005 (*-subdir): Use SUBDIRS.
1006
10071999-10-25 Jim Kingdon <http://developer.redhat.com/>
1008
1009 * cplus-dem.c: Move declarations of standard_symbol_characters and
1010 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1011 warnings.
1012
10131999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1014
1015 * hashtab.c (find_hash_table_entry): When returning a
1016 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1017 (clear_hash_table_slot): New function which deletes an entry
1018 by its position in the table, not its value.
1019 (traverse_hash_table): New function which calls a hook
1020 function for every live entry in the table.
1021
10221999-10-19 Mark Mitchell <mark@codesourcery.com>
1023
1024 * cplus-dem.c (INTBUF_SIZE): New macro.
1025 (string_append_template_idx): New function.
1026 (demangle_expression): Likewise.
1027 (demangle_integral_value): Use it.
1028 (demangle_real_value): New function, split out from ...
1029 (demangle_template_value_parm): ... here. Use
1030 string_append_template_idx. Use demangle_real_value.
1031 (demangle_template): Use string_append_template_idx.
1032 (demangle_qualified): Use consume_count_with_underscores.
1033 (get_count): Tweak formatting.
1034 (do_type): Use string_append_template_idx.
b4fe2683 1035
0c0a36a4
ILT
10361999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1037
1038 * calloc.c: Add a public domain notice.
1039
1040Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1041
1042 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1043
1044Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1045
1046 * Makefile.in (CFILES): Add hashtab.c
1047 (REQUIRED_OFILES): Add hashtab.o
1048 (hashtab.o): Add dependencies.
1049 * hashtab.c: New file
1050
1051Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1052
1053 * basename.c (DIR_SEPARATOR): New macro.
1054 (DIR_SEPARATOR_2): Likewise.
1055 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1056 (IS_DIR_SEPARATOR): Likewise.
1057 (main): Handle MSDOS style pathname.
1058
10591999-10-11 Mark Mitchell <mark@codesourcery.com>
1060
1061 * cplus-dem.c (do_type): Handle pointer to member types whose
1062 enclosing classes have namespace scope.
1063
1064Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1065
1066 * config.table: Provide a backup shell for executing move-if-change.
1067
10681999-10-02 Mark Mitchell <mark@codesourcery.com>
1069
1070 * xmalloc.c (xmalloc): Fix spelling error.
1071 (xcalloc, xrealloc): Likewise.
1072
10731999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1074
1075 * cplus-dem.c (fancy_abort, demangle_integral_value,
1076 demangle_arm_hp_template, recursively_demangle,
1077 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1078 (program_name, program_version, fatal): Constify a char*.
1079 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1080 (main): Call return, not exit.
1081
10821999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1083
1084 * choose-temp.c: Remove obsolete comment about gcc.
1085 (make_temp_file): Constify a char*.
1086
1087Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1088
1089 * xmemdup.c: Include sys/types.h.
1090
10911999-09-07 Jeff Garzik <jgarzik@pobox.com>
1092
1093 * xmemdup.c: New xmemdup function.
1094 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1095
1096Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1097
b4fe2683 1098 * config.table: Add openedition target.
0c0a36a4
ILT
1099 * config/mh-openedition: New file.
1100
1101Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1102
1103 * pexecute.c (pexecute): Fill in temp_base when needed.
1104
11051999-08-31 Richard Henderson <rth@cygnus.com>
1106
1107 * getpwd.c: Check HAVE_GETCWD before defining it away.
1108
11091999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1110
1111 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1112 (REQUIRED_OFILES): Add getpwd.o.
1113 (getpwd.o): Add target.
1114
1115 * configure.in (AC_PREREQ): Bump to 2.13.
1116 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1117
1118 * getpwd.c: New file, moved here from gcc.
1119
11201999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1121
1122 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1123 comparing against a signed quantity.
1124 (arm_special): Likewise.
1125 (demangle_fund_type): Likewise.
1126 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1127 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1128 (main): Constify variable `valid_symbols'.
1129
1130Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1131
1132 * strtoul.c (strtoul): Add parentheses around && within ||.
1133
1134Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1135
1136 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1137 libdir, libsubdir and tooldir.
1138
11391999-08-01 Mark Mitchell <mark@codesourcery.com>
1140
1141 * splay-tree.c (splay_tree_insert): Return the new node.
1142
35ca97ea
RH
11431999-07-14 Richard Henderson <rth@cygnus.com>
1144
b4fe2683 1145 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1146 prototyping directly.
1147 * choose-temp.c: Conditionally include string.h.
1148
0c0a36a4
ILT
11491999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1150
1151 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1152
af32ff69
ILT
11531999-07-11 Ian Lance Taylor <ian@zembu.com>
1154
1155 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1156 warning.
1157
0c0a36a4
ILT
11581999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1159
1160 * Makefile.in (needed-list): Only include stuff we actually need
1161 for libstdc++.
1162
11631999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1164
1165 * configure.in (checkfuncs): Add gettimeofday.
1166 * config.in, configure: Regenerated.
1167
1168Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1169
1170 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1171 the test fails.
1172 * configure: Regenerate.
1173
11741999-06-10 Mike Stump <mrs@wrs.com>
1175
1176 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1177 parallel builds.
1178
11791999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1180
1181 * putenv.c: Include ansidecl.h to define `const'.
1182 * setenv.c: Likewise.
1183
1184Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1185
1186 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1187 * configure.in (funcs): Add putenv and setenv.
1188 (AC_CHECK_FUNCS): Check for putenv and setenv.
1189 * configure: Rebuilt.
1190 * putenv.c setenv.c: New files.
1191
1192 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1193 bytes of space using malloc.
1194
1195Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1196
1197 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1198 the *mangled pointer beyond the end of the string. Clean up code to
1199 match prevailing coding style.
1200
12011999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1202
1203 * tmpnam.c (L_tmpnam): Fix typo.
1204
1205Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1206
1207 * cplus-dem.c (standard_symbol_characters): Renamed from
1208 standard_symbol_alphabet. No longer modify TABLE.
1209 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1210 modify TABLE.
1211 (main): Corresponding changes. Use strchr to determine if a
1212 character is valid.
1213
e9868447
JB
12141999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1215
1216 * cplus-dem.c (main): Use table lookup to distinguish identifier
1217 characters from non-identifier characters.
1218 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1219
33fbbfbc
RH
1220Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1221
1222 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1223 * getruntime.c: Only attempt to include sys/resource.h and
1224 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1225 are defined.
1226
0c0a36a4
ILT
1227Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1228
1229 * configure.in (alloca detection): Handle alloca directly for interix.
1230 * configure: Rebuilt.
1231
1232Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1233
1234 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1235
252b5132
RH
12361999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1237
1238 Fix from Dale Hawkins:
b4fe2683 1239 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
1240 reallocated properly if we use it again.
1241
1242 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1243 stricter about syntax. Always null-terminate string.
1244
c1687039
ILT
1245Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1246
1247 * configure.in (checkfuncs): Check for sbrk.
1248 * config.in: Rebuilt.
1249 * configure: Likewise.
1250 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1251
0c0a36a4
ILT
12521999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1253
1254 Fix from Marcus Daniels:
1255 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1256 identifier looking for another underscore.
1257
1258Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1259
1260 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1261 * xmalloc.c: Likewise.
1262 (xcalloc): UWIN has sbrk.
1263 (xrealloc): Fix guard macro.
1264
252b5132
RH
12651999-04-11 Richard Henderson <rth@cygnus.com>
1266
1267 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1268 or <alloca.h>.
1269 * clock.c (GNU_HZ): New definition.
1270 (clock): Use it.
1271 * getruntime.c: Likewise.
1272
1273 * config.table: Use mh-beos.
1274 * config/mh-beos: New file.
1275
0c0a36a4
ILT
12761999-04-11 Mark Mitchell <mark@codesourcery.com>
1277
1278 * cplus-dem.c (demangle_template_value_parm): Handle
1279 pointers-to-members.
1280 (do_type): Handle template parameters as qualifiers.
1281
252b5132
RH
12821999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1283
1284 * cplus-dem.c: Attempt to handle overflows in counts with some
1285 semblance of grace.
1286 (consume_count): Detect overflows. Return -1 to indicate errors,
1287 instead of zero.
1288 (demangle_template_value_parm, demangle_template): Handle change
1289 to consume_count's return convention.
1290
0c0a36a4
ILT
12911999-04-05 Tom Tromey <tromey@cygnus.com>
1292
1293 * testsuite/regress-demangle: New file.
1294 * testsuite/demangle-expected: New file.
252b5132 1295
0c0a36a4
ILT
1296 * Makefile.in (all, check, installcheck, info, install-info,
1297 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1298 distclean, maintainer-clean, realclean): Depend on corresponding
1299 `-subdir' target.
1300 (all-subdir check-subdir installcheck-subdir info-subdir
1301 install-info-subdir clean-info-subdir dvi-subdir
1302 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1303 distclean-subdir maintainer-clean-subdir): New target.
1304 * testsuite/Makefile.in: New file.
1305 * configure: Rebuilt.
1306 * configure.in: Create testsuite/Makefile.
252b5132
RH
1307
13081999-04-02 Mark Mitchell <mark@codesourcery.com>
1309
1310 * splay-tree.h (splay_tree_compare_pointers): Define.
1311
13121999-03-30 Mark Mitchell <mark@codesourcery.com>
1313
1314 * splay-tree.c (splay_tree_compare_ints): Define.
1315
13161999-03-30 Tom Tromey <tromey@cygnus.com>
1317
1318 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1319 don't advance input pointer.
1320 (demangle_class_name): If consume_count didn't find a count, do
1321 nothing. Don't bother with `strlen' sanity check; consume_count
1322 does it for us.
1323
13241999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1325
1326 From Art Haas <ahaas@neosoft.com>:
1327 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1328 when doing arm or hp style.
1329 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 1330
252b5132
RH
1331Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1332
1333 * pexecute.c (__CYGWIN32__): Rename to
1334 (__CYGWIN__): this.
1335 * xmalloc.c: Likewise.
1336
1337 Changes to support i386-pc-uwin.
1338 * configure.in (*-*-uwin*): Workaround for vfork bug.
1339 * configure: Regenerate.
1340 * pexecute.c (pexecute): Be like standard Unix.
1341 (pwait): Likewise.
1342 * xmalloc.c (first_break): Define.
1343 (xmalloc_set_program_name): Use.
1344 (xmalloc): Use.
1345
1346Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1347
1348 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1349
1350Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1351
1352 * config.table: Check cygwin*, not cygwin32*.
1353
1354Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1355
1356 * Makefile.in: Change mkstemp -> mkstemps.
1357
1358Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1359
1360 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1361 * configure.in (funcs): Check for and conditionally add mkstemps to
1362 the list of functions libiberty will provide.
1363 * configure: Rebuilt.
b4fe2683 1364
252b5132
RH
1365Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1366
b4fe2683 1367 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
1368 platforms that don't have HZ.
1369 * getruntime.c (HZ): Likewise.
1370
1371Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1372
1373 * Makefile.in (xstrdup.o): Depend on config.h.
1374
1375Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1376
1377 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1378 freeing it.
1379
1380Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1381
1382 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1383
1384Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1385
1386 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1387 splay-tree.o.
1388
13891999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1390
1391 * configure.in: Require autoconf 2.12.1 or higher.
1392
13931998-12-30 Michael Meissner <meissner@cygnus.com>
1394
1395 * random.c (NULL): Don't redefine NULL if it is already defined.
1396
1397Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1398
1399 * argv.c (buildargv): Cast the result of alloca in assignment.
1400
1401 * choose-temp.c: Include stdlib.h.
1402
1403 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
1404 (snarf_numeric_literal): Constify first parameter.
1405 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1406 int, not a char.
1407 (demangle_qualifier): Likewise.
1408 (demangle_signature): Cast the argument of a ctype function to
1409 unsigned char.
1410 (arm_pt): Add parens around assignment used as truth value.
1411 (demangle_arm_hp_template): Constify variable `args'.
1412 (do_hpacc_template_const_value): Cast the argument of a ctype
1413 function to unsigned char.
1414 (do_hpacc_template_literal): Remove unused variable `i'.
1415 (snarf_numeric_literal): Constify parameter `args'.
1416 Cast the argument of a ctype function to unsigned char.
1417
1418 * floatformat.c (floatformat_to_double): Add explicit braces to
1419 avoid ambiguous `else'.
1420
1421 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
1422 `cstart' and `cend' to unsigned char. Cast the argument of macro
1423 `FOLD', which uses ctype functions, to unsigned char.
1424
1425 * objalloc.c (free): Add prototype.
1426
1427Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1428
1429 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1430
1431Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1432
1433 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
1434 doesn't exist.
1435 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 1436
252b5132
RH
1437Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1438
1439 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1440 bumping the pointer we read from. Also prepend these codes,
1441 as we do in other places.
1442
14431998-12-18 Nick Clifton <nickc@cygnus.com>
1444
1445 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1446 'const char *' in order to match its usage when calling siblings.
1447 (snarf_numeric_literal): Make first arg 'const char **' in order
1448 to match usage.
1449
1450Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1451
1452 * choose-temp.c: Don't check IN_GCC anymore.
1453
1454 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1455 * memchr.c (memchr): Likewise.
1456 * memcpy.c (memcpy): Likewise.
1457 * memmove.c (memmove): Likewise.
1458
1459 * mkstemp.c: Don't check IN_GCC anymore.
1460 * pexecute.c: Likewise.
1461 * splay-tree.c: Likewise.
1462
1463 * strchr.c (strchr): Use `const', not `CONST'.
1464 * strrchr.c (strrchr): Likewise.
1465 * strtol.c (strtol): Likewise.
1466 * strtoul.c (strtoul): Likewise.
1467
1468Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1469 Elena Zannoni <ezannoni@cygnus.com>
1470 Stan Shebs <shebs@cygnus.com>
1471 Edith Epstein <eepstein@cygnus.com>
1472 Andres MacLeod <amacleod@cygnus.com>
1473 Satish Pai <pai@apollo.hp.com>
1474
1475 * HP aCC demangling support.
1476 * cplus-dem.c
1477 (main): Remove default to HP style demangling, set to EDG
1478 demangling correctly when -edg specified; set the demangling style
1479 when user specifies 'edg'. Set strip_underscore to
1480 prepends_underscore, if not HPUXHPPA. Set
1481 current_demangling_style to hp_demangling if HPUXHPPA. Set
1482 current demangling style correctly if the switch is hp. Read
1483 label correctly also in the HP style case.
1484 (work_stuff): add temp_start field; add field for volatile member
1485 function.
1486 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
1487 style for this case is the same as ARM.
1488 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1489 (demangle_arm_hp_template): new function. (It was
1490 demangle_arm_pt.); check and set value of temp_start field in
1491 multiple places. Also, when ceching for end of template args,
1492 check to see if at end of static member of template class.
1493 (demangle_class): new local variable : save_class_name_end Don't
1494 include template args in string defining class.
1495 (demangle_class_name): use demangel_arm_hp_template.
1496 (demangle_function_name): handle case where demangling style is
1497 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1498 Handle EDG_DEMANGLING style. Handle constructor and destructor
1499 ops for HP style.
1500 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
1501 styles. global destructor and constructor for HP style are same
1502 as for ARM style. Same for local variables.
1503 (demangle_qualified): handle EDG_DEMANGLING style.
1504 (demangle_signature): add case for volatile member function. For
1505 cases '1' - '9' : initialize the temp_start field to -1 and handle
1506 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1507 and AUTO_DEMANGLING styles. If expecting a function and managed
1508 to demangle the funct args, then handle the LUCID_DEMANGLING,
1509 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1510 class name after "Lnnn_ in HP style case. HP style too needs to
1511 forget types. _nnn is OK for HP style, so don't report failure.
1512 (do_hpacc_template_const_value): new function. Handle template's
1513 value param for HP/aCC.
1514 (do_hpacc_template_literal): new function. Handle a template's
1515 literal parameter for HP aCC.
1516 (recursively_demangle): new function
1517 (snarf_numeric_literal): new function.
1518 (usage): add 'edg' to the list of demangling styles; add hp switch
1519 to message.
1520
1521Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1522
1523 * pexecute.c: Remove obsolete ifdefed cygwin code.
1524
1525Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1526
1527 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1528 * cplus-dem.c: Likewise. Conform to libiberty.h.
1529 * pexecute.c: Likewise.
1530 * splay-tree.c: Likewise.
1531
15321998-11-25 Mike Stump <mrs@wrs.com>
1533
1534 * Makefile.in (splay-tree.o): Add config.h dependency.
1535
1536Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1537
1538 * configure.in: Use AC_PREREQ(2.12.1).
1539
15401998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1541
b4fe2683 1542 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
1543
1544Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1545
1546 * mpw.c (mpw_access): Add missing parens.
1547
1548Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1549
1550 * configure.in: Call AC_HEADER_SYS_WAIT.
1551
1552 * pexecute.c: Include sys/wait.h when !IN_GCC.
1553
1554Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1555
1556 * pexecute.c: revert back to checking old Cygwin
1557 preprocessor symbol until some time has passed.
1558
1559Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1560
1561 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1562 since it will now support similar constructs.
1563
1564Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1565
1566 * configure.in: Check for calloc.
1567
1568 * calloc.c: New file.
1569
1570 * xmalloc.c (xcalloc): New function.
1571
1572Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1573
1574 *cplus-dem.c (demangle_prefix): Use the last "__"
1575 in the mangled name when looking for the signature. This allows
1576 template names to begin with "__".
1577
15781998-11-08 Mark Mitchell <mark@markmitchell.com>
1579
1580 * cplus-dem.c (type_kind_t): Add tk_reference.
1581 (demangle_template_value_parm): Handle it.
1582 (do_type): Use it for references, instead of tk_pointer.
1583
1584 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1585 not internal_cplus_demangle.
1586
1587Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1588
1589 * choose-temp.c: Don't include gansidecl.h.
1590 * mkstemp.c: Likewise.
1591 * pexecute.c: Likewise.
1592
1593Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1594
b4fe2683
JM
1595 * configure.in: detect cygwin* instead of cygwin32*
1596 * configure: regenerate
252b5132
RH
1597
1598Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1599
1600 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
1601 whether to include config.h. Possibly include unistd.h in the
1602 !IN_GCC case. Define VFORK_STRING as a printable function call
1603 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1604 defined, include vfork.h. If VMS is defined, define vfork()
1605 appropriately. Remove vfork check on USG, we're using autoconf.
1606 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1607 locally what string to use.
1608
16091998-10-26 Mark Mitchell <mark@markmitchell.com>
1610
1611 * splay-tree.c: Tweak include directives to make sure declarations of
1612 xmalloc and free are available.
1613
16141998-10-25 Mark Mitchell <mark@markmitchell.com>
1615
1616 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1617 anonymous namespaces.
1618
16191998-10-23 Mark Mitchell <mark@markmitchell.com>
1620
1621 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1622 with type_quals.
1623 (TYPE_UNQUALIFIED): New macro.
1624 (TYPE_QUAL_CONST): Likewise.
1625 (TYPE_QUAL_VOLATILE): Likewise.
1626 (TYPE_QUAL_RESTRICT): Likewise.
1627 (code_for_qualifier): New function.
1628 (qualifier_string): Likewise.
1629 (demangle_qualifier): Likewise.
1630 (internal_cplus_demangle): Use them.
1631 (demangle_signature): Likewise.
1632 (demangle_template_value_parm): Likewise.
1633 (do_type): Likewise.
1634 (demangle_fund_type)): Likewise.
1635
1636Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1637
1638 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1639 to match prototype.
1640
16411998-10-21 Mark Mitchell <mark@markmitchell.com>
1642
1643 * splay-tree.c: New file.
1644 * Makefile.in (CFILES): Add it.
1645 (REQUIRED_OFILES): Likewise.
1646 (splay-tree.o): Add dependencies.
1647
1648Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1649
1650 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1651 range of 'K' index.
1652
1653Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1654
1655 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1656
1657 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1658 `unsigned char'.
1659 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1660 comparing against one.
1661 (cplus_mangle_opname): Likewise.
1662 (demangle_integral_value): Cast argument of ctype macro to
1663 `unsigned char'.
1664 (demangle_template_value_parm): Likewise.
1665 (demangle_template): Initialize variable `bindex'. Cast the
1666 result of `strlen' to (int) when comparing against one. Remove
1667 unused variable `start_of_value_parm'.
1668 (demangle_class_name): Cast the result of `strlen' to (int) when
1669 comparing against one.
1670 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1671 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1672 when comparing against one.
1673 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1674 (get_count): Likewise.
1675 (do_type): Likewise. Cast the result of `strlen' to (int) when
1676 comparing against one.
1677 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1678 (demangle_function_name): Cast the result of `strlen' to (int)
1679 when comparing against one.
1680
1681 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1682 comparing against one.
1683
1684Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1685
b4fe2683
JM
1686 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1687 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1688 * config.in, configure: Rebuilt.
252b5132
RH
1689
1690 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1691 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1692 * config.in, configure: Rebuilt.
1693
1694Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1695
b4fe2683 1696 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
1697
1698Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1699
1700 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1701
1702Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1703
1704 * Merge egcs & devo libiberty.
1705