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