]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* partition.c: Fix misspelling of `implementation'.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
cb6758b9 12001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2
3 * partition.c: Fix misspelling of `implementation'.
4
091eef96 52001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6
7 * md5.c (md5_init_ctx): Declare constants as unsigned.
8 (md5_process_block): Likewise.
9
e5f55ef4 102001-05-07 Zack Weinberg <zackw@stanford.edu>
11
12 * cp-demangle.c (demangle_v3_with_details,
13 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
14 function definition.
15 * ternary.c: Use K+R style function definitions. Use PTR, not
16 void *. Make arguments constant where possible.
17
c99b4ef9 182001-05-07 Mark Mitchell <mark@codesourcery.com>
19
20 * splay-tree.h (splay_tree_max): New function.
21 (splay_tree_min): Likewise.
22
eec19420 232001-04-15 Daniel Berlin <dan@cgsoftware.com>
24
25 * ternary.c: New file - Ternary search tree implementation.
26
27 * Makefile.in: Add ternary.o, and ternary.c dependencies.
28
673b6e5a 292001-04-03 Zack Weinberg <zackw@stanford.edu>
30
31 * make-temp-file.c (try): Inline.
32
b8f02fb2 332001-02-28 Richard Henderson <rth@redhat.com>
34
35 * Makefile.in (make-temp-file.o): Depend on config.h.
36
b130ede9 372001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38
39 * memchr.c (memchr): Adjust condition to avoid infinite loop.
40
5a4fcef0 412001-03-23 Jakub Jelinek <jakub@redhat.com>
42
43 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
44 `_' not followed by a digit is invalid.
45
c83c8218 462001-03-22 Jim Blandy <jimb@redhat.com>
47
48 * cp-demangle.c (string_list_delete): Use dyn_string_delete
49 instead of free, to free the contents as well as the string
50 structure.
51
7e660a1b 522001-03-21 Zack Weinberg <zackw@stanford.edu>
53
54 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
55 Don't default P_tmpdir to anything. Try /var/tmp before
56 /usr/tmp.
57
e6351181 582001-03-20 Zack Weinberg <zackw@stanford.edu>
59
60 * choose-temp.c: Split off make_temp_file, and the code
61 duplicated between it and choose_temp_base, into...
62 * make-temp-file.c: ... here; new file.
63
64 * Makefile.in (CFILES): Add make-temp-file.c.
65 (REQUIRED_OFILES): Add make-temp-file.o.
66
3a18c9fc 672001-03-20 Jim Blandy <jimb@redhat.com>
68
69 * cp-demangle.c (struct demangling_def): New fields:
70 is_constructor and is_destructor.
71 (demangling_new): Initialize them.
72 (demangle_ctor_dtor_name): Set them, if we detect a constructor
73 or destructor.
74 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
75 is_gnu_v3_mangled_dtor): New functions.
76
d219f684 772001-03-20 Jason Merrill <jason@redhat.com>
78
79 * cplus-dem.c (main): Skip initial $.
80
dfc58e62 812001-03-15 Michael Meissner <meissner@redhat.com>
82
83 * hashtab.c (higher_prime_number): Silence warning that 4294967291
84 might be a signed integer under pre-ISO C systems.
85
0bce9b89 862001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
87 John David Anglin <dave@hiauly1.hia.nrc.ca>
88
89 * libiberty/lbasename.c: New file.
90 * libiberty/Makefile.in: Update for lbasename.
91
012f1707 922001-03-06 Zack Weinberg <zackw@stanford.edu>
93
94 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
95 * configure.in: Replace all alloca logic with a simple use of
96 the above new macro.
97 * config.table: Kill *-*-beos* entry.
98 * config/mh-beos: Delete.
99 * configure, config.in: Regenerate.
100
101 * Makefile.in (ALLOCA, HFILES): Kill.
102 (REQUIRED_OFILES): Add alloca.o.
103 (alloca.o): Depend on libiberty.h.
104 (argv.o): Don't depend on alloca-conf.h.
105 * alloca-conf.h: Delete.
106 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
107 blocks. Provide the C alloca unconditionally. Use PTR where
108 appropriate. Make i00afunc static.
109 * argv.c: Don't include alloca-conf.h.
110
163369e7 1112001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
112
113 * cplus-dem.c (main): Cast enum style to int.
114
39fb1bb6 1152001-02-16 Loren J. Rittle <ljrittle@acm.org>
116
117 * cplus-dem.c (main): Initialize style.
118
bace101a 1192001-02-02 Phil Edwards <pme@sources.redhat.com>
120
121 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
122
1c1033dd 1232001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
124
125 Add support for Java demangling under the v3 ABI:
126 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
127 (struct demangling_def): Add `style' field.
128 (demangling_new): New parameter `style'. Set it in demangling_t.
129 (demangle_prefix): Use NAMESPACE_SEPARATOR.
130 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
131 (cp_demangle): New parameter `style'. Pass it to demangling_new().
132 (main): Call cp_demangle with extra parameter.
133 (java_demangle_v3): New function.
134 (java_builtin_type_names): New. Table of primitive type names used
135 for Java demangling.
136 (demangle_builtin_type): Look up in java_builtin_type_names if doing
137 Java output.
012f1707 138 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1c1033dd 139 demangling.
140 (long_options): Remove obsolete `java' option.
141 (main): Remove explicit handling of `java' option. Instead, pass style
142 parameter in cplus_demangle flags as gdb does.
143 * testsuite/demangle.expected: Add some Java test cases.
144
fec9182b 1452000-12-29 DJ Delorie <dj@redhat.com>
146
147 * fnmatch.c: Make the note about the origins of this file more
148 accurate, at least until we can sync with glibc.
149 * getopt.c: Ditto.
150 * getopt1.c: Ditto.
151 * md5.c: Ditto.
152 * obstack.c: Ditto.
153
5b9c32cc 1542000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
155
156 * bsearch.c: New file.
157 * configure.in (funcs): Add bsearch.
158 (AC_CHECK_FUNCS): Likewise.
159 * configure, config.in: Regenerate.
160
a973e2b1 1612000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
162
163 * safe-ctype.c: #include "ansidecl.h".
164 * strtod.c: Likewise.
165
14282c1a 1662000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
167
168 * strtoul.c: Include safe-ctype.h, not ctype.h.
169
93ce8ce4 1702000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
171
172 * safe-ctype.c: New file.
173 * Makefile.in (CFILES): Add safe-ctype.c.
174 (REQUIRED_OFILES): Add safe-ctype.o.
175
176 * argv.c: Define ISBLANK and use it, not isspace.
177 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
178 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
179 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
180 before calling TOLOWER(c)/TOUPPER(c).
181
be6afa8f 1822000-12-07 Mike Stump <mrs@wrs.com>
e5fb0a98 183
184 * Makefile.in (distclean): When cleaning, remove testsuite.
185
cf0ad6a8 1862000-12-05 Jason Merrill <jason@redhat.com>
187
188 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
189 name before allocating the dyn_string.
190
bb505139 1912000-12-04 Jason Merrill <jason@redhat.com>
192
193 * cp-demangle.c: s/new_abi/v3/.
194 * cplus-dem.c: Likewise.
195 (current_demangling_style): Now auto_demangling.
196 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
93ce8ce4 197 (main): Use standard symbol chars for auto_demangling.
bb505139 198
54b3a5af 1992000-11-26 Mark Mitchell <mark@codesourcery.com>
200
201 * hashtab.c (higher_prime_number): Use a table, rather than a
202 seive, to find the next prime.
203
9628d706 2042000-11-22 H.J. Lu <hjl@gnu.org>
205
206 * cplus-dem.c (main): Handle gnat_demangling.
207
ec255163 2082000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
209
210 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
211 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
212 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
213 argument form of AC_DEFINE in dummy definitions block. Use
214 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
215 in dummy block. Preload cache variables instead of bypassing
216 tests, where possible.
217 * acconfig.h: Removed.
218
219 * xmalloc.c (xmalloc_failed): New function, does error
220 reporting on failed allocation.
221 (xmalloc, xcalloc, xrealloc): Use it.
222
626946fb 2232000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
224
225 * cplus-dem.c (cplus_demangle): Fix formatting.
226 (grow_vect): Ditto.
227 (ada_demangle): Ditto.
228 (internal_cplus_demangle): Ditto.
229 (mop_up): Ditto.
230
2312000-11-21 H.J. Lu <hjl@gnu.org>
232
233 * cplus-dem.c (main): Handle java_demangling.
234
918a89ef 2352000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
236
237 * cplus-dem.c (grow_vect): Prototype.
238 (ada_demangle): Cast the arg of ctype macros to unsigned char.
239
582f72ad 2402000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
241
242 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
243 parameter `option'.
244
0d6e3c59 2452000-11-15 Kenneth Block <kenneth.block@compaq.com>
246
42ded3a1 247 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 248 be used in GCC.
249
9df8b754 2502000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 251
582f72ad 252 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 253 list.
254
e4c2dc6e 2552000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
256
257 * hashtab.c (htab_expand): Change to return int. Use calloc or
258 xcalloc depending on htab->return_allocation_failure. Return zero
259 if calloc fails.
260 (htab_create): Update comment to cover memory allocation.
261 (htab_try_create): New.
262 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
263 Update comment to cover this.
264
696d6593 2652000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
266
267 * hashtab.c: Change void * to PTR where necessary.
268 (htab_create, htab_expand): Correct formatting of comment before
269 function.
270
8f2b45d4 2712000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 272
273 * cp-demangle.c (string_list_def): Add caret_position and comments.
274 (result_caret_pos): New macro.
275 (result_append_string): Rename to...
276 (result_add_string): ... this, and insert at caret position.
ec255163 277 Rename throughout.
f99edf23 278 (result_append): Rename to...
279 (result_add): ... this, and insert at caret position. Rename
ec255163 280 throughout.
f99edf23 281 (result_append_char): Rename to...
282 (result_add_char): ... this, and insert at caret position. Rename
ec255163 283 throughout.
f99edf23 284 (result_append_space): Remove.
285 (string_list_new): Initialize caret position.
286 (result_add_separated_char): Use caret position.
287 (result_get_caret): New funtion.
288 (result_set_caret): Likewise.
289 (result_shift_caret): Likewise.
290 (result_previous_char_is_space): Likewise.
291 (substitution_start): Use caret position.
292 (substitution_add): Likewise.
293 (demangling_new): Initialize caret position.
294 (demangle_encoding): Use caret position.
ec255163 295 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 296 (demangle_type_ptr): Use switch statement. Handle pointers to
297 arrays. Don't use result_append_space. Use caret position.
298 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 299 call to demangle_array_type.
300 (demangle_array_type): Add parameter to handle pointers to arrays.
301
a4e59c31 3022000-10-01 Mark Mitchell <mark@codesourcery.com>
303
304 * splay-tree.c (splay_tree_insert): Fix formatting.
305
e41f0d80 3062000-09-16 Mark Mitchell <mark@codesourcery.com>
307
308 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
309
83d86ada 3102000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
311
312 * splay-tree.c: #include <stdio.h>.
313
78631810 3142000-09-14 Hans-Peter Nilsson <hp@axis.com>
315
316 * testsuite/demangle-expected: Add two tests for anonymous
317 namespaces.
318 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
319
508f18c8 3202000-09-10 Mark Mitchell <mark@codesourcery.com>
321
322 * splay-tree.c (splay_tree_predecessor): New function.
323 (splay_tree_successor): Likewise.
324
1a2d2193 3252000-09-10 Hans-Peter Nilsson <hp@axis.com>
326
327 * testsuite/demangle-expected: Add four tests for type_info
328 mangling.
1a2d2193 329 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
330 for a non-template non-qualified type_info function or node.
331
09656987 3322000-09-08 Alex Samuel <samuel@codesourcery.com>
333
334 * cp-demangle.c: Fix copyright banner.
335
7cc2d24b 3362000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
337
338 * md5.c: #include "ansidecl.h".
339
b83e8722 3402000-09-06 Alex Samuel <samuel@codesourcery.com>
341
342 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
343 (demangle_type): Handle substitution candidates correctly in the
344 face of special substitutions.
345
cf70278e 3462000-09-05 Alex Samuel <samuel@codesourcery.com>
347
348 * cp-demangle.c (demangle_encoding): Rename variable.
349 (demangle_name): Rename parameter. Handle return type
350 suppression.
351 (demangle_nested_name): Rename parameter.
352 (demangle_prefix): Likewise. Change return type suppression.
353 (demangle_unqualified_name): Add parameter. Flag constructors and
354 conversion operators.
355 (demangle_special_name): Fix comment.
356 (demangle_type): Rename variable.
357 (demangle_bare_function_type): Check for missing return type and
ec255163 358 parameter.
cf70278e 359 (demangle_class_enum_type): Rename parameter.
360 (demangle_discriminator): Fix misspelling in comment.
361
4aabc076 3622000-08-31 DJ Delorie <dj@redhat.com>
363
364 * configure.in (Cygwin): special case cygwin only when we're
365 building cygwin, not when we're hosting cygwin.
366
804ddfd1 3672000-09-04 Alex Samuel <samuel@codesourcery.com>
368
369 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 370 <expression>.
371
e015a852 3722000-09-04 Alex Samuel <samuel@codesourcery.com>
373
374 * cp-demangle.c (demangle_type_ptr): Increment position past
375 pointer and reference characters.
376
2b6805b4 3772000-09-04 Alex Samuel <samuel@codesourcery.com>
378
379 * cp-demangle.c (demangle_nv_offset): New function.
380 (demangle_v_offset): Likewise.
381 (demangle_call_offset): Likewise.
382 (demangle_special_name): Update thunk demangling to comply with
383 ABI changes.
ec255163 384
40e00cb0 3852000-09-03 Alex Samuel <samuel@codesourcery.com>
386
387 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
388 (substitution_def): Remove template_parm_number.
389 (NOT_TEMPLATE_PARM): Remove.
390 (result_insert_string): New macro.
391 (result_insert): Likewise.
392 (result_insert_char): Likewise.
393 (substitution_add): Remove last parameter. Don't store template
ec255163 394 parm number.
40e00cb0 395 (BFT_NO_RETURN_TYPE): Define as NULL.
396 (demangle_encoding): Adjust call to demangle_bare_function_type.
397 (demangle_name): Adjust substitution. Adjust call to
ec255163 398 substitution_add.
40e00cb0 399 (demangle_prefix): Adjust call to substitution_add.
400 (demangle_identifier): Handle anonymous namespaces.
401 (demangle_operator_name): Change demangling of vendor-extended
402 operator to match ABI changes.
403 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 404 substitutions here.
40e00cb0 405 (demangle_type): Adjust calls to demangle_template_param,
406 substitution_add, and demangle_type_ptr. Fix substitution of
407 templated types.
408 (demangle_function_type): Change parameter to a pointer.
409 (demangle_bare_function_type): Likewise. Adjust insertion point.
410 (demangle_template_param): Remove last parameter.
411 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 412 demangle_template_param.
40e00cb0 413 (is_mangled_char): Accept `$' and `.'.
414 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
415 * dyn-string.c (dyn_string_insert_char): New function.
416
01f404a2 4172000-08-31 Hans-Peter Nilsson <hp@axis.com>
418
419 * testsuite/demangle-expected: Add nine tests for
420 underscore-after-number followed by five tests for name-signature
421 delimiter.
422
d74245d4 4232000-08-28 Richard Henderson <rth@cygnus.com>
424
425 * Makefile.in (md5.o): Depend on config.h.
426
19f716e5 4272000-08-28 Jason Merrill <jason@redhat.com>
428
429 * Makefile.in (REQUIRED_OFILES): Add md5.o.
430 (CFILES): Add md5.c.
431 * md5.c: New file.
432
f8aeab41 4332000-08-27 Alex Samuel <samuel@codesourcery.com>
434
435 * cp-demangle.c (demangle_name): Initialize template_p in local
436 name case. Don't re-add substitutions as candidates.
437 (demangle_nested_name): Use <unqualified-name>.
438 (demangle_prefix): Likewise. Don't add template names as
439 substitution candidates twice, or re-add a substitution or the
440 last prefix component.
441 (demangle_local_name): Adjust output format.
442
62c2feed 4432000-08-25 Alex Samuel <samuel@codesourcery.com>
444
445 * cp-demangle.c (result_add_separated_char): Change parameter to
446 int.
447 (substitution_add): Don't check for duplicates. Check if
448 previously allocated size is zero.
449 (demangle_name): Remove duplicate check for std substitution.
450 Clear template flag appropriately.
451 (demangle_prefix): Remove argument to demangle_substitution.
452 Don't check that template flag is already set.
453 (demangle_operator_name): Add pt operator.
454 (demangle_type): Don't treat r as built-in type. Remove argument
455 to demangle_substitution. Fix substitution candidate mechanics.
456 Handle <template-template-parm>s. Improve comments.
ec255163 457 (demangle_template_param): Don't handle template arg lists here.
62c2feed 458 (demangle_substitution): Remove parameter.
459 (print_usage): Remove extra fprintf option.
460
ee1d4c3d 4612000-08-24 Greg McGary <greg@mcgary.org>
462
463 * libiberty/random.c (end_ptr): Revert previous change.
464
f0bff53d 4652000-08-24 Greg McGary <greg@mcgary.org>
466
467 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
468 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
469 * libiberty/random.c (end_ptr): Likewise.
470
c1b316c0 4712000-08-23 Alex Samuel <samuel@codesourcery.com>
472
473 * cp-demangle.c (result_close_template_list): Remove function.
474 (result_add_separated_char): New function.
475 (result_open_template_list): New macro.
476 (result_close_template_list): Likewise.
477 (demangle_prefix): Don't set template_p if the
478 prefix ends with a ctor name.
479 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
480 (demangle_type): Check for template args after substitution.
481 (demangle_template_args): Use result_open_template_list.
ec255163 482
385b48fc 4832000-08-02 Zack Weinberg <zack@wolery.cumb.org>
484
485 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
486
ec255163 4872000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 488
489 * config/mh-openedition.h: Added -DLE370 definition.
490
8fc0efd2 4912000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
492
493 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
494 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
495 Cast program to 'char *' in errmsg_arg assignment.
496 (PWAIT_ERROR): Define.
497 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
498 to DJGPP's WIF* macros.
499
a1d4f79a 5002000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
501 Jeff Law <law@cygnus.com>
502
98b4c197 503 * getcwd.c: Include string.h, stdlib.h for prototypes
504
a1d4f79a 505 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 506 * rename.c: Include config.h, unistd.h
507 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 508
01f404a2 5092000-07-24 Hans-Peter Nilsson <hp@axis.com>
510
511 * cplus-dem.c (work_stuff_copy_to_from): New.
512 (delete_non_B_K_work_stuff): New.
513 (delete_work_stuff): New.
514 (mop_up): Break out work_stuff partly destruction to
515 delete_non_B_K_work_stuff.
516 (iterate_demangle_function): New.
517 (demangle_prefix): Call iterate_demangle_function instead of
518 demangle_function_name. Leave handling of name-signature
519 __-delimiters to iterate_demangle_function.
520 (demangle_integral_value): Strip an optional
521 following underscore cautiously. Handle negative numbers.
522
f2e5a608 5232000-07-24 Daniel Berlin <dberlin@redhat.com>
524
ec255163 525 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 526 if (AUTO_DEMANGLING || GNU_DEMANGLING)
527
65bcf503 5282000-07-21 Alex Samuel <samuel@codesourcery.com>
529
530 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
531 allocating ctor mangling.
532 (demangle_array_type): Handle empty and non-constant array length.
533
68e6b6e1 5342000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 535 Jeff Law <law@cygnus.com>
536
1a163ca8 537 * configure.in (AC_CHECK_HEADERS): Add time.h.
538 (AC_HEADER_TIME): Add check.
539 * configure, config.in: Regenerate.
540 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
541
a451eef0 542 * configure.in (AC_CHECK_HEADERS): Add limits.h.
543 * configure, config.in: Regenerate.
544 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
545 * strtol.c, strtoul.c: #include "config.h". Portably #include
546 <limits.h> and/or <sys/param.h>.
547 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 548
fb758229 549 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
550 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
551 * configure, config.in: Regenerate.
552 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
553
68e6b6e1 554 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
555
ad46fec4 5562000-07-21 Mike Stump <mrs@wrs.com>
557
558 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 559 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 560
bb37062f 5612000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
562
563 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
564
565 * setenv.c (setenv): Initialize variable `ep'.
566
567 * sigsetmask.c (abort): Prototype.
568
569 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
570 __STDC__ for stdarg.h include.
571 (int_vasprintf): Prototype.
572 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
573 definition. Cast `global_total_width' in comparison.
574 (main): Prototype. Return a value.
575
576 * vfork.c (fork): Prototype.
577
578 * xexit.c: Include config.h.
579
6cb730c2 5802000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
581
582 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
583 and print it with %u.
584
e42d7fe1 5852000-07-17 Hans-Peter Nilsson <hp@axis.com>
586
587 * testsuite/regress-demangle (failed test): Show result and
588 expected output.
589
04ef60ef 5902000-07-07 Andrew Haley <aph@cygnus.com>
591
592 * cplus-dem.c (main): fflush() after emitting last char before
593 waiting for input.
594
b7f68aff 5952000-06-28 Alex Samuel <samuel@codesourcery.com>
596
597 * cp-demangle.c (demangle_encoding): Accept no substitutions.
598 (demangle_name): Handle <substitution> followed by
599 <unqualified-template-name>.
600 (demangle_type): Follow special substitutions with
601 <class-enum-type>
602 (demangle_subtitution): Set template_p for special substitutions.
603 (main): Fix typos.
ec255163 604
597f928d 6052000-06-27 Alex Samuel <samuel@codesourcery.com>
606
607 * cp-demangle.c (demangle_special_name): Swap base and derived
608 class when demangling construction vtables.
609
140d75d7 6102000-06-21 Alex Samuel <samuel@codesourcery.com>
611
612 * cp-demangle.c: Don't include ctype.h.
613 (IS_DIGIT): New macro.
614 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
615 instead of isdigit and isalpanum.
616 (demangling_def): Make name and next const pointers.
617 (STATUS_ALLOCATION_FAILED): New status code.
618 (dyn_string_append_space): Handle failure in
619 dyn_string_append_char.
620 (int_to_dyn_string): Likewise. Change return value to status_t.
621 (string_list_new): Handle failure of dyn_string_init.
622 (result_close_template_list): Change return type to status_t.
623 Handle failure in dyn_string_append.
624 (result_push): Change return value to status_t. Handle failure in
625 string_list_new. Handle failure of result_push throughout.
626 (substitution_add): Change return value to status_t. Handle
627 dyn_string failures. Handle failure of substitution_add
628 throughout.
629 (template_arg_list_new): Return NULL on allocation failure.
630 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
631 Handle error result throughout.
632 (result_append): Likewise.
633 (result_append_char): Likewise.
634 (result_append_space): Likewise.
635 (demangling_new): Make argument a const pointer. Handle
636 allocation failures.
637 (demangle_template_args): Handle failure in template_arg_list_new
638 and result_close_template_list.
639 (demangle_discriminator): Return if int_to_dyn_string fails.
640 (cp_demangle): Likewise.
641 (cp_demangle_type): New function.
642 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
643 memory allocation failure.
644 (main): Likewise.
645 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
646 IN_LIBGCC2.
647 (dyn_string_init): Change return value to int. Handle
648 RETURN_ON_ALLOCATION_FAILURE case.
649 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
650 (dyn_string_release): Delete the dyn_string.
651 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
652 (dyn_string_copy): Change return type to int.
653 (dyn_string_copy_cstr): Likewise.
654 (dyn_string_prepend): Likewise.
655 (dyn_string_prepend_cstr): Likewise.
656 (dyn_string_insert): Likewise.
657 (dyn_string_insert_cstr): Likewise.
658 (dyn_string_append): Likewise.
659 (dyn_string_append_cstr): Likewise.
660 (dyn_string_append_char): Likewise.
661 (dyn_string_substring): Likewise.
ec255163 662
210aba33 6632000-06-09 Zack Weinberg <zack@wolery.cumb.org>
664
665 * cp-demangle.c (demangle_operator_name): Add spaces before
666 names beginning with a letter: delete, delete[], new, new[],
667 sizeof.
668 (demangle_special_name): Handle TF <type> and TJ <type>.
669
0b4450c1 670Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
671
672 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
673
e5d6924a 674Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
675
676 * cp-demangle.c (stdio.h): File included unconditionaly.
677 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
678 * dyn-string.c (stdio.h): File included.
679 * partition.c (partition_print): No `&' needed to take the address of
680 a function.
681
da8bd873 6822000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
683
684 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 685
da8bd873 686 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
687
688 * cp-demangle.c (demangle_char): Change parameter from char to int.
689 (demangle_expression, demangle_expr_primary): Remove extra
690 semi-colon in prototype.
691
692 * dyn-string.c (dyn_string_append_char): Change parameter from
693 char to int.
694
695 * memcmp.c (memcmp): Constify.
696
697 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
698 __extension__.
699
700 * partition.c (elem_compare): Prototype. Don't cast away
701 const-ness.
702
703 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 704
4b7bc488 7052000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
706
707 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
708
709 * cp-demangle.c: Include demangle.h.
710 (template_arg_list_new): DeANSIfy.
711 (cp_demangle): Make static and add prototype.
712 (operator_code, operators): Constify.
713 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
714
7ae7b54c 7152000-06-05 Alex Samuel <samuel@codesourcery.com>
716
717 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
718 unsigned char.
719 (demangle_unqualified_name): Likewise.
720 (demangle_number_literally): Likewise.
721 (demangle_type): Likewise.
722 (demangle_substitution): Likewise.
723 (is_mangled_char): Likewise, for isalnum.
724
168d63e5 7252000-06-04 Alex Samuel <samuel@codesourcery.com>
726
727 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
728 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
729 (cp-demangle.o): New dependency.
730 (dyn-string.o): Likewise.
731
732 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
733
734 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
735 demangler.
736 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
737 demangling mode.
738 (gnu_new_abi_symbol_characters): New function.
739 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
740 file.
741 * cp-demangle.c: New file.
ec255163 742
b5495c1d 743Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
744
745 * floatformat.c: Add name to each floatformat field.
746
8fab1737 747Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
748
749 * Makefile.in (objalloc.o): Depend on config.h
750
317ab997 7512000-05-29 Zack Weinberg <zack@wolery.cumb.org>
752
753 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
754 if HAVE_STRING_H.
755 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
756 * objalloc.c: Include config.h. Include stdlib.h and don't
757 declare malloc or free if HAVE_STDLIB_H.
758 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
759 else declare malloc without prototype. Include string.h if
760 HAVE_STRING_H, else declare memset without prototype. Don't
761 include stddef.h.
762
874478ba 7632000-05-23 Mike Stump <mrs@wrs.com>
764
765 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
766 -j3.
767
55de1520 7682000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
769
770 * xmalloc.c: Include config.h for HAVE_SBRK definition.
771
e51b357b 7722000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
773
ec255163 774 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 775 probably zero, also eliminate a warning on alpha.
776
9e362499 7772000-05-15 David Edelsohn <edelsohn@gnu.org>
778
e390e838 779 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 780 on $(enable_shared).
781
06c6487f 7822000-05-10 Jakub Jelinek <jakub@redhat.com>
783
784 * config.table: Use mh-sparcpic for sparc*-*-*.
785
0baf89fb 7862000-05-08 Nick Clifton <nickc@cygnus.com>
787
788 * Makefile.in (CFILES): Add strncmp.c.
789 (NEEDED): Add strncmp.
790
59f72e4d 7912000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
792
793 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
794 Cast the arguments to `islower' to `unsigned char'.
795 (print_demangler_list): Prototype.
796
fb0c90ed 797Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
798
799 * sort.c (UCHAR_MAX): Provide fallback definition.
800
167a5f18 8012000-04-29 Alexandre Oliva <aoliva@cygnus.com>
802
803 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
804 SUBDIRS.
805
6f572555 8062000-04-28 Kenneth Block <block@zk3.dec.com>
807 Jason Merrill <jason@casey.cygnus.com>
808
ec255163 809 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
810 (cplus_demangle_set_style): New function for setting style.
811 (cplus_demangle_name_to_style): New function to translate name.
6f572555 812
b3524c8f 8132000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
814
815 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
816
817 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
818 (libiberty_AC_FUNC_STRNCMP): Invoke.
819
820 * strncmp.c: New file.
821
a5f725a3 822Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
823
824 * hashtab.c (htab_expand): Add prototype.
825 (find_empty_slot_for_expand): Likewise.
826
8afd4145 8272000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
828
829 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
830 match prototype.
831 (htab_expand): Cast the return value of xcalloc.
832
c9dfb8ae 8332000-04-24 Mark Mitchell <mark@codesourcery.com>
834
835 * hashtab.c (hash_pointer): New function.
836 (eq_pointer): Likewise.
837 (htab_hash_pointer): New variable.
838 (htab_eq_pointer): Likewise.
839
85993fc6 8402000-04-23 Mark Mitchell <mark@codesourcery.com>
841
9517f453 842 * sort.c (sort_pointers): Fix endianness bugs.
843
85993fc6 844 * sort.c: New file.
845 * Makefile.in (CFILES): Add sort.c
846 (REQUIRED_OFILES): Add sort.o.
847 (sort.o): New target.
848
c9b2f47c 8492000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
850
851 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
852 4.3BSD systems.
853
2b3dbc20 854Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
855
856 * hashtab.c: Various minor cleanups.
857 (htab_find_slot_with_hash): INSERT is now enum insert_option.
858 (htab_find_slot): Likewise.
859
6ea8a864 8602000-04-16 Dave Pitts <dpitts@cozx.com>
861
862 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 863
105211e5 8642000-04-05 Richard Henderson <rth@cygnus.com>
865
866 * splay-tree.c (splay_tree_remove): New.
867
7669680f 8682000-03-30 Mark Mitchell <mark@codesourcery.com>
869
870 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
871 codes.
872 (htab_find_with_hash): Likewise.
873 (htab_find_slot_with_hash): Likewise.
ec255163 874
07c797e3 8752000-03-29 Zack Weinberg <zack@wolery.cumb.org>
876
877 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
878 unless it will be used. Rearrange loop for better
879 optimization.
880 (higher_prime_number): Add static prototype.
881
8ef1b8d1 882Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
883
884 * Makefile.in (partition.o): Depend on config.h
885
ed26da85 8862000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
887
888 * hashtab.c (find_empty_slot_for_expand): New function.
889 (htab_expand): Use it instead of htab_find_slot.
890 (htab_find_with_hash): Renamed from htab_find; now accepts extra
891 argument HASH.
892 (htab_find_slot_with_hash): Likewise for htab_find_slot.
893 (htab_find): New wrapper function.
894 (htab_find_slot): Likewise.
895 (htab_traverse): Pass slot, not entry, to called function.
896
dadde703 8972000-03-09 Alex Samuel <samuel@codesourcery.com>
898
899 * Makefile.in (CFILES): Add partition.c.
900 (REQUIRED_OFILES): Add partition.o.
901 (partition.o): New rule.
902 * partition.c: New file.
ec255163 903
3fdd387a 9042000-03-09 Zack Weinberg <zack@wolery.cumb.org>
905
906 * hashtab.c (htab_create): Set del_f.
907 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
908 Use it.
909
07c967f9 9102000-03-08 Zack Weinberg <zack@wolery.cumb.org>
911
912 * hashtab.c: Remove debugging variables (all_searches,
913 all_collisions, all_expansions). Delete
914 all_hash_table_collisions.
915 (create_hash_table, delete_hash_table, empty_hash_table,
916 find_hash_table_entry, remove_element_from_hash_table_entry,
917 clear_hash_table_slot, traverse_hash_table, hash_table_size,
918 hash_table_elements_number, hash_table_collisions): Rename to:
919 htab_create, htab_delete, htab_empty, htab_find_slot,
920 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
921 htab_elements, htab_collisions.
922 (htab_find): New function, handles common case where you don't
923 plan to add or delete an entry.
924 (htab_expand): Don't create a whole new table, just a new
925 entry vector.
926 (htab_find_slot): Simplify logic.
927
1f33a375 9281999-08-03 Ian Lance Taylor <ian@zembu.com>
929
930 * floatformat.c: Add casts to avoid signed/unsigned warnings.
931 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
932
933 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
934 $(TARGETLIB)n so it works on MSDOS.
935 (install_to_tooldir): Likewise.
936
9371999-07-21 Ian Lance Taylor <ian@zembu.com>
938
939 From Mark Elbrecht:
940 * makefile.dos: Remove; obsolete.
941 * configure.bat: Remove; obsolete.
942
9431999-07-11 Ian Lance Taylor <ian@zembu.com>
944
945 * splay-tree.c (splay_tree_insert): Add initialization to avoid
946 warning.
947
b99e5aef 9482000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
949
950 * pexecute.c: Conditionally include string.h.
07c967f9 951 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 952
6d93ad38 9532000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
954
955 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
956 we're using gcc.
957
958 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
959
59dfb43e 9601999-12-27 Geoff Keating <geoffk@cygnus.com>
961
962 * vasprintf.c (int_vasprintf): Don't re-read the format character
963 as this mishandles strings like '%%s'.
964
b04bbebb 9651999-12-05 Mark Mitchell <mark@codesourcery.com>
966
967 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
968 rather than struct splay_tree_node.
969 (splay_tree_insert): Use struct splay_tree_s rather than struct
970 splay_tree.
971
d7f8de75 972Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
973
974 * hashtab.c (sys/types.h): File included.
975
7202ac7d 9761999-11-22 Jason Merrill <jason@casey.cygnus.com>
977
978 * strtoul.c, strtol.c, random.c: Remove advertising clause from
979 BSD license, pursuant with
980
981 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
982
bd41a79e 983Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
984
985 * hashtab.c: Include stdio.h.
986
b77d3fd0 987Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
988
989 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
990
1b4391fe 991Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
992
993 * xstrdup (sys/types.h): Include this file.
994
4bc57096 9951999-10-28 Nathan Sidwell <nathan@acm.org>
996
997 * Makefile.in (SUBDIRS): New macro.
998 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
999 avoid multiple subdirectory cleaning.
1000 (*-subdir): Use SUBDIRS.
1001
9087cad2 10021999-10-25 Jim Kingdon <http://developer.redhat.com/>
1003
1004 * cplus-dem.c: Move declarations of standard_symbol_characters and
1005 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1006 warnings.
1007
21a7d507 10081999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1009
1010 * hashtab.c (find_hash_table_entry): When returning a
1011 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1012 (clear_hash_table_slot): New function which deletes an entry
1013 by its position in the table, not its value.
1014 (traverse_hash_table): New function which calls a hook
1015 function for every live entry in the table.
1016
42c870f1 10171999-10-19 Mark Mitchell <mark@codesourcery.com>
1018
1019 * cplus-dem.c (INTBUF_SIZE): New macro.
1020 (string_append_template_idx): New function.
1021 (demangle_expression): Likewise.
1022 (demangle_integral_value): Use it.
1023 (demangle_real_value): New function, split out from ...
1024 (demangle_template_value_parm): ... here. Use
1025 string_append_template_idx. Use demangle_real_value.
1026 (demangle_template): Use string_append_template_idx.
1027 (demangle_qualified): Use consume_count_with_underscores.
1028 (get_count): Tweak formatting.
1029 (do_type): Use string_append_template_idx.
07c967f9 1030
33b090eb 10311999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1032
1033 * calloc.c: Add a public domain notice.
1034
9879c2ce 1035Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1036
1037 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1038
5da6c26f 1039Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1040
1041 * Makefile.in (CFILES): Add hashtab.c
1042 (REQUIRED_OFILES): Add hashtab.o
1043 (hashtab.o): Add dependencies.
1044 * hashtab.c: New file
1045
be42b79e 1046Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1047
1048 * basename.c (DIR_SEPARATOR): New macro.
1049 (DIR_SEPARATOR_2): Likewise.
1050 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1051 (IS_DIR_SEPARATOR): Likewise.
1052 (main): Handle MSDOS style pathname.
1053
6c65e8d7 10541999-10-11 Mark Mitchell <mark@codesourcery.com>
1055
1056 * cplus-dem.c (do_type): Handle pointer to member types whose
1057 enclosing classes have namespace scope.
1058
278929f3 1059Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1060
1061 * config.table: Provide a backup shell for executing move-if-change.
1062
a7599ac8 10631999-10-02 Mark Mitchell <mark@codesourcery.com>
1064
1065 * xmalloc.c (xmalloc): Fix spelling error.
1066 (xcalloc, xrealloc): Likewise.
1067
4d84eafd 10681999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1069
1070 * cplus-dem.c (fancy_abort, demangle_integral_value,
1071 demangle_arm_hp_template, recursively_demangle,
1072 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1073 (program_name, program_version, fatal): Constify a char*.
1074 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1075 (main): Call return, not exit.
1076
8f376364 10771999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1078
1079 * choose-temp.c: Remove obsolete comment about gcc.
1080 (make_temp_file): Constify a char*.
1081
3a4fff76 1082Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1083
1084 * xmemdup.c: Include sys/types.h.
1085
7570bccb 10861999-09-07 Jeff Garzik <jgarzik@pobox.com>
1087
1088 * xmemdup.c: New xmemdup function.
1089 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1090
b50c7be3 1091Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1092
07c967f9 1093 * config.table: Add openedition target.
b50c7be3 1094 * config/mh-openedition: New file.
1095
fd0c1d22 1096Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1097
1098 * pexecute.c (pexecute): Fill in temp_base when needed.
1099
be342bf0 11001999-08-31 Richard Henderson <rth@cygnus.com>
1101
1102 * getpwd.c: Check HAVE_GETCWD before defining it away.
1103
71774460 11041999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1105
1106 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1107 (REQUIRED_OFILES): Add getpwd.o.
1108 (getpwd.o): Add target.
1109
1110 * configure.in (AC_PREREQ): Bump to 2.13.
1111 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1112
1113 * getpwd.c: New file, moved here from gcc.
1114
ac126d82 11151999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1116
1117 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1118 comparing against a signed quantity.
1119 (arm_special): Likewise.
1120 (demangle_fund_type): Likewise.
1121 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 1122 ATTRIBUTE_UNUSED.
ac126d82 1123 (main): Constify variable `valid_symbols'.
1124
4f3b4661 1125Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1126
1127 * strtoul.c (strtoul): Add parentheses around && within ||.
1128
f92ff492 1129Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1130
1131 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1132 libdir, libsubdir and tooldir.
1133
a9f46aed 11341999-08-01 Mark Mitchell <mark@codesourcery.com>
1135
1136 * splay-tree.c (splay_tree_insert): Return the new node.
1137
db081298 11381999-07-14 Richard Henderson <rth@cygnus.com>
1139
07c967f9 1140 * argv.c: Include stdlib.h and string.h instead of
db081298 1141 prototyping directly.
1142 * choose-temp.c: Conditionally include string.h.
1143
e5aa3a54 11441999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1145
1146 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1147
4ef402f7 11481999-07-11 Ian Lance Taylor <ian@zembu.com>
1149
1150 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1151 warning.
1152
d65034bd 11531999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1154
1155 * Makefile.in (needed-list): Only include stuff we actually need
1156 for libstdc++.
1157
18912799 11581999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1159
1160 * configure.in (checkfuncs): Add gettimeofday.
1161 * config.in, configure: Regenerated.
1162
d96f58b6 1163Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1164
1165 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1166 the test fails.
1167 * configure: Regenerate.
1168
4248b202 11691999-06-10 Mike Stump <mrs@wrs.com>
1170
1171 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1172 parallel builds.
1173
3c243ded 11741999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1175
1176 * putenv.c: Include ansidecl.h to define `const'.
1177 * setenv.c: Likewise.
1178
654c70ae 1179Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1180
34f75864 1181 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1182 * configure.in (funcs): Add putenv and setenv.
1183 (AC_CHECK_FUNCS): Check for putenv and setenv.
1184 * configure: Rebuilt.
1185 * putenv.c setenv.c: New files.
1186
654c70ae 1187 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1188 bytes of space using malloc.
1189
41980611 1190Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1191
1192 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1193 the *mangled pointer beyond the end of the string. Clean up code to
1194 match prevailing coding style.
1195
08b8ada9 11961999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1197
1198 * tmpnam.c (L_tmpnam): Fix typo.
1199
2fb1c6e9 1200Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1201
1202 * cplus-dem.c (standard_symbol_characters): Renamed from
1203 standard_symbol_alphabet. No longer modify TABLE.
1204 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1205 modify TABLE.
1206 (main): Corresponding changes. Use strchr to determine if a
1207 character is valid.
1208
25398e41 12091999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1210
1211 * cplus-dem.c (main): Use table lookup to distinguish identifier
1212 characters from non-identifier characters.
1213 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1214
29723d26 1215Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1216
1217 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1218 * getruntime.c: Only attempt to include sys/resource.h and
1219 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1220 are defined.
1221
dde96550 1222Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1223
1224 * configure.in (alloca detection): Handle alloca directly for interix.
1225 * configure: Rebuilt.
1226
e98ba651 1227Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1228
1229 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1230
3460a017 12311999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1232
1233 Fix from Dale Hawkins:
07c967f9 1234 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 1235 reallocated properly if we use it again.
1236
1237 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1238 stricter about syntax. Always null-terminate string.
1239
b01c0955 1240Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1241
1242 * configure.in (checkfuncs): Check for sbrk.
1243 * config.in: Rebuilt.
1244 * configure: Likewise.
1245 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1246
87c2e884 12471999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1248
1249 Fix from Marcus Daniels:
1250 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1251 identifier looking for another underscore.
1252
16b8e80f 1253Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1254
1255 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1256 * xmalloc.c: Likewise.
1257 (xcalloc): UWIN has sbrk.
1258 (xrealloc): Fix guard macro.
1259
4d0cfb7e 12601999-04-11 Richard Henderson <rth@cygnus.com>
1261
1262 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1263 or <alloca.h>.
1264 * clock.c (GNU_HZ): New definition.
1265 (clock): Use it.
1266 * getruntime.c: Likewise.
1267
1268 * config.table: Use mh-beos.
1269 * config/mh-beos: New file.
1270
0dc64970 12711999-04-11 Mark Mitchell <mark@codesourcery.com>
1272
1273 * cplus-dem.c (demangle_template_value_parm): Handle
1274 pointers-to-members.
1275 (do_type): Handle template parameters as qualifiers.
1276
9fec6063 12771999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1278
1279 * cplus-dem.c: Attempt to handle overflows in counts with some
1280 semblance of grace.
1281 (consume_count): Detect overflows. Return -1 to indicate errors,
1282 instead of zero.
1283 (demangle_template_value_parm, demangle_template): Handle change
1284 to consume_count's return convention.
1285
715f424c 12861999-04-05 Tom Tromey <tromey@cygnus.com>
1287
1288 * testsuite/regress-demangle: New file.
1289 * testsuite/demangle-expected: New file.
1290
1291 * Makefile.in (all, check, installcheck, info, install-info,
1292 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1293 distclean, maintainer-clean, realclean): Depend on corresponding
1294 `-subdir' target.
1295 (all-subdir check-subdir installcheck-subdir info-subdir
1296 install-info-subdir clean-info-subdir dvi-subdir
1297 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1298 distclean-subdir maintainer-clean-subdir): New target.
1299 * testsuite/Makefile.in: New file.
1300 * configure: Rebuilt.
1301 * configure.in: Create testsuite/Makefile.
1302
71c5948c 13031999-04-02 Mark Mitchell <mark@codesourcery.com>
1304
1305 * splay-tree.h (splay_tree_compare_pointers): Define.
1306
d1264606 13071999-03-30 Mark Mitchell <mark@codesourcery.com>
1308
1309 * splay-tree.c (splay_tree_compare_ints): Define.
1310
6fd618e7 13111999-03-30 Tom Tromey <tromey@cygnus.com>
1312
1313 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1314 don't advance input pointer.
1315 (demangle_class_name): If consume_count didn't find a count, do
1316 nothing. Don't bother with `strlen' sanity check; consume_count
1317 does it for us.
1318
bdaa26ad 13191999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1320
1321 From Art Haas <ahaas@neosoft.com>:
1322 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1323 when doing arm or hp style.
1324 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 1325
d267f778 1326Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1327
1328 * pexecute.c (__CYGWIN32__): Rename to
1329 (__CYGWIN__): this.
1330 * xmalloc.c: Likewise.
1331
1332 Changes to support i386-pc-uwin.
1333 * configure.in (*-*-uwin*): Workaround for vfork bug.
1334 * configure: Regenerate.
1335 * pexecute.c (pexecute): Be like standard Unix.
1336 (pwait): Likewise.
1337 * xmalloc.c (first_break): Define.
1338 (xmalloc_set_program_name): Use.
1339 (xmalloc): Use.
1340
90405950 1341Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1342
1343 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1344
bdaa26ad 1345Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1346
1347 * config.table: Check cygwin*, not cygwin32*.
1348
e6ed8194 1349Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1350
1351 * Makefile.in: Change mkstemp -> mkstemps.
1352
301e59c9 1353Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1354
1355 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1356 * configure.in (funcs): Check for and conditionally add mkstemps to
1357 the list of functions libiberty will provide.
1358 * configure: Rebuilt.
07c967f9 1359
89e305f9 1360Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1361
07c967f9 1362 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 1363 platforms that don't have HZ.
1364 * getruntime.c (HZ): Likewise.
1365
ecfe64e7 1366Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1367
1368 * Makefile.in (xstrdup.o): Depend on config.h.
1369
2e5e2114 1370Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1371
1372 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1373 freeing it.
1374
6aa62a59 1375Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1376
1377 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1378
bdaa26ad 1379Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1380
1381 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1382 splay-tree.o.
1383
13841999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1385
1386 * configure.in: Require autoconf 2.12.1 or higher.
1387
9e1ed734 13881998-12-30 Michael Meissner <meissner@cygnus.com>
1389
1390 * random.c (NULL): Don't redefine NULL if it is already defined.
1391
7c8c70e9 1392Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1393
1394 * argv.c (buildargv): Cast the result of alloca in assignment.
1395
1396 * choose-temp.c: Include stdlib.h.
2e5e2114 1397
7c8c70e9 1398 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
1399 (snarf_numeric_literal): Constify first parameter.
1400 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1401 int, not a char.
1402 (demangle_qualifier): Likewise.
1403 (demangle_signature): Cast the argument of a ctype function to
1404 unsigned char.
1405 (arm_pt): Add parens around assignment used as truth value.
1406 (demangle_arm_hp_template): Constify variable `args'.
1407 (do_hpacc_template_const_value): Cast the argument of a ctype
1408 function to unsigned char.
1409 (do_hpacc_template_literal): Remove unused variable `i'.
1410 (snarf_numeric_literal): Constify parameter `args'.
1411 Cast the argument of a ctype function to unsigned char.
1412
1413 * floatformat.c (floatformat_to_double): Add explicit braces to
1414 avoid ambiguous `else'.
2e5e2114 1415
7c8c70e9 1416 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
1417 `cstart' and `cend' to unsigned char. Cast the argument of macro
1418 `FOLD', which uses ctype functions, to unsigned char.
1419
1420 * objalloc.c (free): Add prototype.
1421
9070a37e 1422Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1423
1424 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1425
bdaa26ad 1426Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1427
1428 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
1429 doesn't exist.
1430 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 1431
0a5a5994 1432Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1433
1434 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1435 bumping the pointer we read from. Also prepend these codes,
1436 as we do in other places.
1437
bdaa26ad 14381998-12-18 Nick Clifton <nickc@cygnus.com>
1439
1440 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1441 'const char *' in order to match its usage when calling siblings.
1442 (snarf_numeric_literal): Make first arg 'const char **' in order
1443 to match usage.
4ed77eec 1444
50cbddd6 1445Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1446
4ed77eec 1447 * choose-temp.c: Don't check IN_GCC anymore.
1448
1449 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1450 * memchr.c (memchr): Likewise.
1451 * memcpy.c (memcpy): Likewise.
1452 * memmove.c (memmove): Likewise.
2e5e2114 1453
4ed77eec 1454 * mkstemp.c: Don't check IN_GCC anymore.
1455 * pexecute.c: Likewise.
1456 * splay-tree.c: Likewise.
2e5e2114 1457
4ed77eec 1458 * strchr.c (strchr): Use `const', not `CONST'.
1459 * strrchr.c (strrchr): Likewise.
1460 * strtol.c (strtol): Likewise.
1461 * strtoul.c (strtoul): Likewise.
1462
f75dc4de 1463Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1464 Elena Zannoni <ezannoni@cygnus.com>
1465 Stan Shebs <shebs@cygnus.com>
1466 Edith Epstein <eepstein@cygnus.com>
1467 Andres MacLeod <amacleod@cygnus.com>
1468 Satish Pai <pai@apollo.hp.com>
1469
1470 * HP aCC demangling support.
1471 * cplus-dem.c
1472 (main): Remove default to HP style demangling, set to EDG
1473 demangling correctly when -edg specified; set the demangling style
1474 when user specifies 'edg'. Set strip_underscore to
1475 prepends_underscore, if not HPUXHPPA. Set
1476 current_demangling_style to hp_demangling if HPUXHPPA. Set
1477 current demangling style correctly if the switch is hp. Read
1478 label correctly also in the HP style case.
1479 (work_stuff): add temp_start field; add field for volatile member
1480 function.
1481 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
1482 style for this case is the same as ARM.
1483 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1484 (demangle_arm_hp_template): new function. (It was
1485 demangle_arm_pt.); check and set value of temp_start field in
1486 multiple places. Also, when ceching for end of template args,
1487 check to see if at end of static member of template class.
1488 (demangle_class): new local variable : save_class_name_end Don't
1489 include template args in string defining class.
1490 (demangle_class_name): use demangel_arm_hp_template.
1491 (demangle_function_name): handle case where demangling style is
1492 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1493 Handle EDG_DEMANGLING style. Handle constructor and destructor
1494 ops for HP style.
1495 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
1496 styles. global destructor and constructor for HP style are same
1497 as for ARM style. Same for local variables.
1498 (demangle_qualified): handle EDG_DEMANGLING style.
1499 (demangle_signature): add case for volatile member function. For
1500 cases '1' - '9' : initialize the temp_start field to -1 and handle
1501 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1502 and AUTO_DEMANGLING styles. If expecting a function and managed
1503 to demangle the funct args, then handle the LUCID_DEMANGLING,
1504 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1505 class name after "Lnnn_ in HP style case. HP style too needs to
1506 forget types. _nnn is OK for HP style, so don't report failure.
1507 (do_hpacc_template_const_value): new function. Handle template's
1508 value param for HP/aCC.
1509 (do_hpacc_template_literal): new function. Handle a template's
1510 literal parameter for HP aCC.
1511 (recursively_demangle): new function
1512 (snarf_numeric_literal): new function.
1513 (usage): add 'edg' to the list of demangling styles; add hp switch
1514 to message.
1515
a5c56042 1516Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1517
1518 * pexecute.c: Remove obsolete ifdefed cygwin code.
1519
4ae63959 1520Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1521
1522 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1523 * cplus-dem.c: Likewise. Conform to libiberty.h.
1524 * pexecute.c: Likewise.
1525 * splay-tree.c: Likewise.
1526
b41b6b67 15271998-11-25 Mike Stump <mrs@wrs.com>
1528
1529 * Makefile.in (splay-tree.o): Add config.h dependency.
1530
a1dd5bff 1531Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1532
1533 * configure.in: Use AC_PREREQ(2.12.1).
1534
d54546fb 15351998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1536
07c967f9 1537 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 1538
9fdb1080 1539Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1540
1541 * mpw.c (mpw_access): Add missing parens.
1542
1ed7db2f 1543Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1544
1545 * configure.in: Call AC_HEADER_SYS_WAIT.
1546
1547 * pexecute.c: Include sys/wait.h when !IN_GCC.
1548
bdaa26ad 1549Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1550
1551 * pexecute.c: revert back to checking old Cygwin
1552 preprocessor symbol until some time has passed.
1553
1554Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1555
1556 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1557 since it will now support similar constructs.
1558
34fa8831 1559Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1560
1561 * configure.in: Check for calloc.
1562
1563 * calloc.c: New file.
1564
1565 * xmalloc.c (xcalloc): New function.
1566
75ebb412 1567Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1568
1569 *cplus-dem.c (demangle_prefix): Use the last "__"
1570 in the mangled name when looking for the signature. This allows
1571 template names to begin with "__".
1572
5b546829 15731998-11-08 Mark Mitchell <mark@markmitchell.com>
1574
73bea962 1575 * cplus-dem.c (type_kind_t): Add tk_reference.
1576 (demangle_template_value_parm): Handle it.
1577 (do_type): Use it for references, instead of tk_pointer.
1578
5b546829 1579 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1580 not internal_cplus_demangle.
1581
0e4558d2 1582Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1583
1584 * choose-temp.c: Don't include gansidecl.h.
1585 * mkstemp.c: Likewise.
1586 * pexecute.c: Likewise.
1587
7b8b8d43 1588Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1589
07c967f9 1590 * configure.in: detect cygwin* instead of cygwin32*
1591 * configure: regenerate
7b8b8d43 1592
f9a39df1 1593Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1594
1595 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
1596 whether to include config.h. Possibly include unistd.h in the
1597 !IN_GCC case. Define VFORK_STRING as a printable function call
1598 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1599 defined, include vfork.h. If VMS is defined, define vfork()
1600 appropriately. Remove vfork check on USG, we're using autoconf.
1601 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1602 locally what string to use.
1603
797ba725 16041998-10-26 Mark Mitchell <mark@markmitchell.com>
1605
1606 * splay-tree.c: Tweak include directives to make sure declarations of
1607 xmalloc and free are available.
1608
3662c79b 16091998-10-25 Mark Mitchell <mark@markmitchell.com>
1610
1611 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1612 anonymous namespaces.
2e5e2114 1613
af5199c0 16141998-10-23 Mark Mitchell <mark@markmitchell.com>
1615
1616 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1617 with type_quals.
1618 (TYPE_UNQUALIFIED): New macro.
1619 (TYPE_QUAL_CONST): Likewise.
1620 (TYPE_QUAL_VOLATILE): Likewise.
1621 (TYPE_QUAL_RESTRICT): Likewise.
1622 (code_for_qualifier): New function.
1623 (qualifier_string): Likewise.
1624 (demangle_qualifier): Likewise.
1625 (internal_cplus_demangle): Use them.
1626 (demangle_signature): Likewise.
1627 (demangle_template_value_parm): Likewise.
1628 (do_type): Likewise.
1629 (demangle_fund_type)): Likewise.
3662c79b 1630
e61da89d 1631Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1632
1633 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1634 to match prototype.
1635
9a4eb61d 16361998-10-21 Mark Mitchell <mark@markmitchell.com>
1637
1638 * splay-tree.c: New file.
1639 * Makefile.in (CFILES): Add it.
1640 (REQUIRED_OFILES): Likewise.
1641 (splay-tree.o): Add dependencies.
1642
e5d3a45b 1643Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1644
1645 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1646 range of 'K' index.
1647
4350e959 1648Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1649
1650 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1651
1652 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1653 `unsigned char'.
1654 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1655 comparing against one.
1656 (cplus_mangle_opname): Likewise.
1657 (demangle_integral_value): Cast argument of ctype macro to
1658 `unsigned char'.
1659 (demangle_template_value_parm): Likewise.
1660 (demangle_template): Initialize variable `bindex'. Cast the
1661 result of `strlen' to (int) when comparing against one. Remove
1662 unused variable `start_of_value_parm'.
1663 (demangle_class_name): Cast the result of `strlen' to (int) when
1664 comparing against one.
1665 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1666 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1667 when comparing against one.
1668 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1669 (get_count): Likewise.
1670 (do_type): Likewise. Cast the result of `strlen' to (int) when
1671 comparing against one.
1672 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1673 (demangle_function_name): Cast the result of `strlen' to (int)
1674 when comparing against one.
1675
1676 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1677 comparing against one.
1678
5dfe2c03 1679Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1680
07c967f9 1681 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1682 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1683 * config.in, configure: Rebuilt.
0be6f86d 1684
5dfe2c03 1685 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1686 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1687 * config.in, configure: Rebuilt.
1688
7b8b8d43 1689Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1690
07c967f9 1691 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 1692
68b78c88 1693Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1694
1695 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1696
804ec1bf 1697Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1698
1699 * Merge egcs & devo libiberty.
1700
7a1ec54f 1701