]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* expmed.c (store_bit_field): Consider naturally aligned
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
78631810 12000-09-14 Hans-Peter Nilsson <hp@axis.com>
2
3 * testsuite/demangle-expected: Add two tests for anonymous
4 namespaces.
5 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
6
508f18c8 72000-09-10 Mark Mitchell <mark@codesourcery.com>
8
9 * splay-tree.c (splay_tree_predecessor): New function.
10 (splay_tree_successor): Likewise.
11
1a2d2193 122000-09-10 Hans-Peter Nilsson <hp@axis.com>
13
14 * testsuite/demangle-expected: Add four tests for type_info
15 mangling.
1a2d2193 16 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
17 for a non-template non-qualified type_info function or node.
18
09656987 192000-09-08 Alex Samuel <samuel@codesourcery.com>
20
21 * cp-demangle.c: Fix copyright banner.
22
7cc2d24b 232000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
24
25 * md5.c: #include "ansidecl.h".
26
b83e8722 272000-09-06 Alex Samuel <samuel@codesourcery.com>
28
29 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
30 (demangle_type): Handle substitution candidates correctly in the
31 face of special substitutions.
32
cf70278e 332000-09-05 Alex Samuel <samuel@codesourcery.com>
34
35 * cp-demangle.c (demangle_encoding): Rename variable.
36 (demangle_name): Rename parameter. Handle return type
37 suppression.
38 (demangle_nested_name): Rename parameter.
39 (demangle_prefix): Likewise. Change return type suppression.
40 (demangle_unqualified_name): Add parameter. Flag constructors and
41 conversion operators.
42 (demangle_special_name): Fix comment.
43 (demangle_type): Rename variable.
44 (demangle_bare_function_type): Check for missing return type and
45 parameter.
46 (demangle_class_enum_type): Rename parameter.
47 (demangle_discriminator): Fix misspelling in comment.
48
4aabc076 492000-08-31 DJ Delorie <dj@redhat.com>
50
51 * configure.in (Cygwin): special case cygwin only when we're
52 building cygwin, not when we're hosting cygwin.
53
804ddfd1 542000-09-04 Alex Samuel <samuel@codesourcery.com>
55
56 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
57 <expression>.
58
e015a852 592000-09-04 Alex Samuel <samuel@codesourcery.com>
60
61 * cp-demangle.c (demangle_type_ptr): Increment position past
62 pointer and reference characters.
63
2b6805b4 642000-09-04 Alex Samuel <samuel@codesourcery.com>
65
66 * cp-demangle.c (demangle_nv_offset): New function.
67 (demangle_v_offset): Likewise.
68 (demangle_call_offset): Likewise.
69 (demangle_special_name): Update thunk demangling to comply with
70 ABI changes.
71
40e00cb0 722000-09-03 Alex Samuel <samuel@codesourcery.com>
73
74 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
75 (substitution_def): Remove template_parm_number.
76 (NOT_TEMPLATE_PARM): Remove.
77 (result_insert_string): New macro.
78 (result_insert): Likewise.
79 (result_insert_char): Likewise.
80 (substitution_add): Remove last parameter. Don't store template
81 parm number.
82 (BFT_NO_RETURN_TYPE): Define as NULL.
83 (demangle_encoding): Adjust call to demangle_bare_function_type.
84 (demangle_name): Adjust substitution. Adjust call to
85 substitution_add.
86 (demangle_prefix): Adjust call to substitution_add.
87 (demangle_identifier): Handle anonymous namespaces.
88 (demangle_operator_name): Change demangling of vendor-extended
89 operator to match ABI changes.
90 (demangle_type_ptr): Change parameters. Make recursive. Handle
91 substitutions here.
92 (demangle_type): Adjust calls to demangle_template_param,
93 substitution_add, and demangle_type_ptr. Fix substitution of
94 templated types.
95 (demangle_function_type): Change parameter to a pointer.
96 (demangle_bare_function_type): Likewise. Adjust insertion point.
97 (demangle_template_param): Remove last parameter.
98 (demangle_expr_primary): Remove unused variable. Adjust call to
99 demangle_template_param.
100 (is_mangled_char): Accept `$' and `.'.
101 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
102 * dyn-string.c (dyn_string_insert_char): New function.
103
01f404a2 1042000-08-31 Hans-Peter Nilsson <hp@axis.com>
105
106 * testsuite/demangle-expected: Add nine tests for
107 underscore-after-number followed by five tests for name-signature
108 delimiter.
109
d74245d4 1102000-08-28 Richard Henderson <rth@cygnus.com>
111
112 * Makefile.in (md5.o): Depend on config.h.
113
19f716e5 1142000-08-28 Jason Merrill <jason@redhat.com>
115
116 * Makefile.in (REQUIRED_OFILES): Add md5.o.
117 (CFILES): Add md5.c.
118 * md5.c: New file.
119
f8aeab41 1202000-08-27 Alex Samuel <samuel@codesourcery.com>
121
122 * cp-demangle.c (demangle_name): Initialize template_p in local
123 name case. Don't re-add substitutions as candidates.
124 (demangle_nested_name): Use <unqualified-name>.
125 (demangle_prefix): Likewise. Don't add template names as
126 substitution candidates twice, or re-add a substitution or the
127 last prefix component.
128 (demangle_local_name): Adjust output format.
129
62c2feed 1302000-08-25 Alex Samuel <samuel@codesourcery.com>
131
132 * cp-demangle.c (result_add_separated_char): Change parameter to
133 int.
134 (substitution_add): Don't check for duplicates. Check if
135 previously allocated size is zero.
136 (demangle_name): Remove duplicate check for std substitution.
137 Clear template flag appropriately.
138 (demangle_prefix): Remove argument to demangle_substitution.
139 Don't check that template flag is already set.
140 (demangle_operator_name): Add pt operator.
141 (demangle_type): Don't treat r as built-in type. Remove argument
142 to demangle_substitution. Fix substitution candidate mechanics.
143 Handle <template-template-parm>s. Improve comments.
144 (demangle_template_param): Don't handle template arg lists here.
145 (demangle_substitution): Remove parameter.
146 (print_usage): Remove extra fprintf option.
147
ee1d4c3d 1482000-08-24 Greg McGary <greg@mcgary.org>
149
150 * libiberty/random.c (end_ptr): Revert previous change.
151
f0bff53d 1522000-08-24 Greg McGary <greg@mcgary.org>
153
154 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
155 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
156 * libiberty/random.c (end_ptr): Likewise.
157
c1b316c0 1582000-08-23 Alex Samuel <samuel@codesourcery.com>
159
160 * cp-demangle.c (result_close_template_list): Remove function.
161 (result_add_separated_char): New function.
162 (result_open_template_list): New macro.
163 (result_close_template_list): Likewise.
164 (demangle_prefix): Don't set template_p if the
165 prefix ends with a ctor name.
166 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
167 (demangle_type): Check for template args after substitution.
168 (demangle_template_args): Use result_open_template_list.
169
385b48fc 1702000-08-02 Zack Weinberg <zack@wolery.cumb.org>
171
172 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
173
d0ed2203 1742000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 175
176 * config/mh-openedition.h: Added -DLE370 definition.
177
8fc0efd2 1782000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
179
180 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
181 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
182 Cast program to 'char *' in errmsg_arg assignment.
183 (PWAIT_ERROR): Define.
184 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
185 to DJGPP's WIF* macros.
186
a1d4f79a 1872000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
188 Jeff Law <law@cygnus.com>
189
98b4c197 190 * getcwd.c: Include string.h, stdlib.h for prototypes
191
a1d4f79a 192 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 193 * rename.c: Include config.h, unistd.h
194 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 195
01f404a2 1962000-07-24 Hans-Peter Nilsson <hp@axis.com>
197
198 * cplus-dem.c (work_stuff_copy_to_from): New.
199 (delete_non_B_K_work_stuff): New.
200 (delete_work_stuff): New.
201 (mop_up): Break out work_stuff partly destruction to
202 delete_non_B_K_work_stuff.
203 (iterate_demangle_function): New.
204 (demangle_prefix): Call iterate_demangle_function instead of
205 demangle_function_name. Leave handling of name-signature
206 __-delimiters to iterate_demangle_function.
207 (demangle_integral_value): Strip an optional
208 following underscore cautiously. Handle negative numbers.
209
f2e5a608 2102000-07-24 Daniel Berlin <dberlin@redhat.com>
211
212 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
213 if (AUTO_DEMANGLING || GNU_DEMANGLING)
214
65bcf503 2152000-07-21 Alex Samuel <samuel@codesourcery.com>
216
217 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
218 allocating ctor mangling.
219 (demangle_array_type): Handle empty and non-constant array length.
220
68e6b6e1 2212000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 222 Jeff Law <law@cygnus.com>
223
1a163ca8 224 * configure.in (AC_CHECK_HEADERS): Add time.h.
225 (AC_HEADER_TIME): Add check.
226 * configure, config.in: Regenerate.
227 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
228
a451eef0 229 * configure.in (AC_CHECK_HEADERS): Add limits.h.
230 * configure, config.in: Regenerate.
231 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
232 * strtol.c, strtoul.c: #include "config.h". Portably #include
233 <limits.h> and/or <sys/param.h>.
234 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 235
fb758229 236 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
237 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
238 * configure, config.in: Regenerate.
239 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
240
68e6b6e1 241 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
242
ad46fec4 2432000-07-21 Mike Stump <mrs@wrs.com>
244
245 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 246 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 247
bb37062f 2482000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
249
250 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
251
252 * setenv.c (setenv): Initialize variable `ep'.
253
254 * sigsetmask.c (abort): Prototype.
255
256 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
257 __STDC__ for stdarg.h include.
258 (int_vasprintf): Prototype.
259 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
260 definition. Cast `global_total_width' in comparison.
261 (main): Prototype. Return a value.
262
263 * vfork.c (fork): Prototype.
264
265 * xexit.c: Include config.h.
266
6cb730c2 2672000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
268
269 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
270 and print it with %u.
271
e42d7fe1 2722000-07-17 Hans-Peter Nilsson <hp@axis.com>
273
274 * testsuite/regress-demangle (failed test): Show result and
275 expected output.
276
04ef60ef 2772000-07-07 Andrew Haley <aph@cygnus.com>
278
279 * cplus-dem.c (main): fflush() after emitting last char before
280 waiting for input.
281
b7f68aff 2822000-06-28 Alex Samuel <samuel@codesourcery.com>
283
284 * cp-demangle.c (demangle_encoding): Accept no substitutions.
285 (demangle_name): Handle <substitution> followed by
286 <unqualified-template-name>.
287 (demangle_type): Follow special substitutions with
288 <class-enum-type>
289 (demangle_subtitution): Set template_p for special substitutions.
290 (main): Fix typos.
291
597f928d 2922000-06-27 Alex Samuel <samuel@codesourcery.com>
293
294 * cp-demangle.c (demangle_special_name): Swap base and derived
295 class when demangling construction vtables.
296
140d75d7 2972000-06-21 Alex Samuel <samuel@codesourcery.com>
298
299 * cp-demangle.c: Don't include ctype.h.
300 (IS_DIGIT): New macro.
301 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
302 instead of isdigit and isalpanum.
303 (demangling_def): Make name and next const pointers.
304 (STATUS_ALLOCATION_FAILED): New status code.
305 (dyn_string_append_space): Handle failure in
306 dyn_string_append_char.
307 (int_to_dyn_string): Likewise. Change return value to status_t.
308 (string_list_new): Handle failure of dyn_string_init.
309 (result_close_template_list): Change return type to status_t.
310 Handle failure in dyn_string_append.
311 (result_push): Change return value to status_t. Handle failure in
312 string_list_new. Handle failure of result_push throughout.
313 (substitution_add): Change return value to status_t. Handle
314 dyn_string failures. Handle failure of substitution_add
315 throughout.
316 (template_arg_list_new): Return NULL on allocation failure.
317 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
318 Handle error result throughout.
319 (result_append): Likewise.
320 (result_append_char): Likewise.
321 (result_append_space): Likewise.
322 (demangling_new): Make argument a const pointer. Handle
323 allocation failures.
324 (demangle_template_args): Handle failure in template_arg_list_new
325 and result_close_template_list.
326 (demangle_discriminator): Return if int_to_dyn_string fails.
327 (cp_demangle): Likewise.
328 (cp_demangle_type): New function.
329 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
330 memory allocation failure.
331 (main): Likewise.
332 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
333 IN_LIBGCC2.
334 (dyn_string_init): Change return value to int. Handle
335 RETURN_ON_ALLOCATION_FAILURE case.
336 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
337 (dyn_string_release): Delete the dyn_string.
338 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
339 (dyn_string_copy): Change return type to int.
340 (dyn_string_copy_cstr): Likewise.
341 (dyn_string_prepend): Likewise.
342 (dyn_string_prepend_cstr): Likewise.
343 (dyn_string_insert): Likewise.
344 (dyn_string_insert_cstr): Likewise.
345 (dyn_string_append): Likewise.
346 (dyn_string_append_cstr): Likewise.
347 (dyn_string_append_char): Likewise.
348 (dyn_string_substring): Likewise.
349
210aba33 3502000-06-09 Zack Weinberg <zack@wolery.cumb.org>
351
352 * cp-demangle.c (demangle_operator_name): Add spaces before
353 names beginning with a letter: delete, delete[], new, new[],
354 sizeof.
355 (demangle_special_name): Handle TF <type> and TJ <type>.
356
0b4450c1 357Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
358
359 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
360
e5d6924a 361Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
362
363 * cp-demangle.c (stdio.h): File included unconditionaly.
364 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
365 * dyn-string.c (stdio.h): File included.
366 * partition.c (partition_print): No `&' needed to take the address of
367 a function.
368
da8bd873 3692000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
370
371 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
372
373 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
374
375 * cp-demangle.c (demangle_char): Change parameter from char to int.
376 (demangle_expression, demangle_expr_primary): Remove extra
377 semi-colon in prototype.
378
379 * dyn-string.c (dyn_string_append_char): Change parameter from
380 char to int.
381
382 * memcmp.c (memcmp): Constify.
383
384 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
385 __extension__.
386
387 * partition.c (elem_compare): Prototype. Don't cast away
388 const-ness.
389
390 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
391
4b7bc488 3922000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
393
394 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
395
396 * cp-demangle.c: Include demangle.h.
397 (template_arg_list_new): DeANSIfy.
398 (cp_demangle): Make static and add prototype.
399 (operator_code, operators): Constify.
400 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
401
7ae7b54c 4022000-06-05 Alex Samuel <samuel@codesourcery.com>
403
404 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
405 unsigned char.
406 (demangle_unqualified_name): Likewise.
407 (demangle_number_literally): Likewise.
408 (demangle_type): Likewise.
409 (demangle_substitution): Likewise.
410 (is_mangled_char): Likewise, for isalnum.
411
168d63e5 4122000-06-04 Alex Samuel <samuel@codesourcery.com>
413
414 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
415 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
416 (cp-demangle.o): New dependency.
417 (dyn-string.o): Likewise.
418
419 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
420
421 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
422 demangler.
423 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
424 demangling mode.
425 (gnu_new_abi_symbol_characters): New function.
426 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
427 file.
428 * cp-demangle.c: New file.
429
b5495c1d 430Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
431
432 * floatformat.c: Add name to each floatformat field.
433
8fab1737 434Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
435
436 * Makefile.in (objalloc.o): Depend on config.h
437
317ab997 4382000-05-29 Zack Weinberg <zack@wolery.cumb.org>
439
440 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
441 if HAVE_STRING_H.
442 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
443 * objalloc.c: Include config.h. Include stdlib.h and don't
444 declare malloc or free if HAVE_STDLIB_H.
445 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
446 else declare malloc without prototype. Include string.h if
447 HAVE_STRING_H, else declare memset without prototype. Don't
448 include stddef.h.
449
874478ba 4502000-05-23 Mike Stump <mrs@wrs.com>
451
452 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
453 -j3.
454
55de1520 4552000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
456
457 * xmalloc.c: Include config.h for HAVE_SBRK definition.
458
e51b357b 4592000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
460
461 * hashtab.c (hash_pointer): Delete low-order bits which are
462 probably zero, also eliminate a warning on alpha.
463
9e362499 4642000-05-15 David Edelsohn <edelsohn@gnu.org>
465
e390e838 466 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 467 on $(enable_shared).
468
06c6487f 4692000-05-10 Jakub Jelinek <jakub@redhat.com>
470
471 * config.table: Use mh-sparcpic for sparc*-*-*.
472
0baf89fb 4732000-05-08 Nick Clifton <nickc@cygnus.com>
474
475 * Makefile.in (CFILES): Add strncmp.c.
476 (NEEDED): Add strncmp.
477
59f72e4d 4782000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
479
480 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
481 Cast the arguments to `islower' to `unsigned char'.
482 (print_demangler_list): Prototype.
483
fb0c90ed 484Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
485
486 * sort.c (UCHAR_MAX): Provide fallback definition.
487
167a5f18 4882000-04-29 Alexandre Oliva <aoliva@cygnus.com>
489
490 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
491 SUBDIRS.
492
6f572555 4932000-04-28 Kenneth Block <block@zk3.dec.com>
494 Jason Merrill <jason@casey.cygnus.com>
495
496 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
497 (cplus_demangle_set_style): New function for setting style.
498 (cplus_demangle_name_to_style): New function to translate name.
499
b3524c8f 5002000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
501
502 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
503
504 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
505 (libiberty_AC_FUNC_STRNCMP): Invoke.
506
507 * strncmp.c: New file.
508
a5f725a3 509Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
510
511 * hashtab.c (htab_expand): Add prototype.
512 (find_empty_slot_for_expand): Likewise.
513
8afd4145 5142000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
515
516 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
517 match prototype.
518 (htab_expand): Cast the return value of xcalloc.
519
c9dfb8ae 5202000-04-24 Mark Mitchell <mark@codesourcery.com>
521
522 * hashtab.c (hash_pointer): New function.
523 (eq_pointer): Likewise.
524 (htab_hash_pointer): New variable.
525 (htab_eq_pointer): Likewise.
526
85993fc6 5272000-04-23 Mark Mitchell <mark@codesourcery.com>
528
9517f453 529 * sort.c (sort_pointers): Fix endianness bugs.
530
85993fc6 531 * sort.c: New file.
532 * Makefile.in (CFILES): Add sort.c
533 (REQUIRED_OFILES): Add sort.o.
534 (sort.o): New target.
535
c9b2f47c 5362000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
537
538 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
539 4.3BSD systems.
540
2b3dbc20 541Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
542
543 * hashtab.c: Various minor cleanups.
544 (htab_find_slot_with_hash): INSERT is now enum insert_option.
545 (htab_find_slot): Likewise.
546
6ea8a864 5472000-04-16 Dave Pitts <dpitts@cozx.com>
548
549 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
550
105211e5 5512000-04-05 Richard Henderson <rth@cygnus.com>
552
553 * splay-tree.c (splay_tree_remove): New.
554
7669680f 5552000-03-30 Mark Mitchell <mark@codesourcery.com>
556
557 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
558 codes.
559 (htab_find_with_hash): Likewise.
560 (htab_find_slot_with_hash): Likewise.
561
07c797e3 5622000-03-29 Zack Weinberg <zack@wolery.cumb.org>
563
564 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
565 unless it will be used. Rearrange loop for better
566 optimization.
567 (higher_prime_number): Add static prototype.
568
8ef1b8d1 569Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
570
571 * Makefile.in (partition.o): Depend on config.h
572
ed26da85 5732000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
574
575 * hashtab.c (find_empty_slot_for_expand): New function.
576 (htab_expand): Use it instead of htab_find_slot.
577 (htab_find_with_hash): Renamed from htab_find; now accepts extra
578 argument HASH.
579 (htab_find_slot_with_hash): Likewise for htab_find_slot.
580 (htab_find): New wrapper function.
581 (htab_find_slot): Likewise.
582 (htab_traverse): Pass slot, not entry, to called function.
583
dadde703 5842000-03-09 Alex Samuel <samuel@codesourcery.com>
585
586 * Makefile.in (CFILES): Add partition.c.
587 (REQUIRED_OFILES): Add partition.o.
588 (partition.o): New rule.
589 * partition.c: New file.
590
3fdd387a 5912000-03-09 Zack Weinberg <zack@wolery.cumb.org>
592
593 * hashtab.c (htab_create): Set del_f.
594 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
595 Use it.
596
07c967f9 5972000-03-08 Zack Weinberg <zack@wolery.cumb.org>
598
599 * hashtab.c: Remove debugging variables (all_searches,
600 all_collisions, all_expansions). Delete
601 all_hash_table_collisions.
602 (create_hash_table, delete_hash_table, empty_hash_table,
603 find_hash_table_entry, remove_element_from_hash_table_entry,
604 clear_hash_table_slot, traverse_hash_table, hash_table_size,
605 hash_table_elements_number, hash_table_collisions): Rename to:
606 htab_create, htab_delete, htab_empty, htab_find_slot,
607 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
608 htab_elements, htab_collisions.
609 (htab_find): New function, handles common case where you don't
610 plan to add or delete an entry.
611 (htab_expand): Don't create a whole new table, just a new
612 entry vector.
613 (htab_find_slot): Simplify logic.
614
1f33a375 6151999-08-03 Ian Lance Taylor <ian@zembu.com>
616
617 * floatformat.c: Add casts to avoid signed/unsigned warnings.
618 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
619
620 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
621 $(TARGETLIB)n so it works on MSDOS.
622 (install_to_tooldir): Likewise.
623
6241999-07-21 Ian Lance Taylor <ian@zembu.com>
625
626 From Mark Elbrecht:
627 * makefile.dos: Remove; obsolete.
628 * configure.bat: Remove; obsolete.
629
6301999-07-11 Ian Lance Taylor <ian@zembu.com>
631
632 * splay-tree.c (splay_tree_insert): Add initialization to avoid
633 warning.
634
b99e5aef 6352000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
636
637 * pexecute.c: Conditionally include string.h.
07c967f9 638 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 639
6d93ad38 6402000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
641
642 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
643 we're using gcc.
644
645 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
646
59dfb43e 6471999-12-27 Geoff Keating <geoffk@cygnus.com>
648
649 * vasprintf.c (int_vasprintf): Don't re-read the format character
650 as this mishandles strings like '%%s'.
651
b04bbebb 6521999-12-05 Mark Mitchell <mark@codesourcery.com>
653
654 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
655 rather than struct splay_tree_node.
656 (splay_tree_insert): Use struct splay_tree_s rather than struct
657 splay_tree.
658
d7f8de75 659Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
660
661 * hashtab.c (sys/types.h): File included.
662
7202ac7d 6631999-11-22 Jason Merrill <jason@casey.cygnus.com>
664
665 * strtoul.c, strtol.c, random.c: Remove advertising clause from
666 BSD license, pursuant with
667
668 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
669
bd41a79e 670Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
671
672 * hashtab.c: Include stdio.h.
673
b77d3fd0 674Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
675
676 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
677
1b4391fe 678Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
679
680 * xstrdup (sys/types.h): Include this file.
681
4bc57096 6821999-10-28 Nathan Sidwell <nathan@acm.org>
683
684 * Makefile.in (SUBDIRS): New macro.
685 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
686 avoid multiple subdirectory cleaning.
687 (*-subdir): Use SUBDIRS.
688
9087cad2 6891999-10-25 Jim Kingdon <http://developer.redhat.com/>
690
691 * cplus-dem.c: Move declarations of standard_symbol_characters and
692 hp_symbol_characters inside #ifdef MAIN to avoid compiler
693 warnings.
694
21a7d507 6951999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
696
697 * hashtab.c (find_hash_table_entry): When returning a
698 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
699 (clear_hash_table_slot): New function which deletes an entry
700 by its position in the table, not its value.
701 (traverse_hash_table): New function which calls a hook
702 function for every live entry in the table.
703
42c870f1 7041999-10-19 Mark Mitchell <mark@codesourcery.com>
705
706 * cplus-dem.c (INTBUF_SIZE): New macro.
707 (string_append_template_idx): New function.
708 (demangle_expression): Likewise.
709 (demangle_integral_value): Use it.
710 (demangle_real_value): New function, split out from ...
711 (demangle_template_value_parm): ... here. Use
712 string_append_template_idx. Use demangle_real_value.
713 (demangle_template): Use string_append_template_idx.
714 (demangle_qualified): Use consume_count_with_underscores.
715 (get_count): Tweak formatting.
716 (do_type): Use string_append_template_idx.
07c967f9 717
33b090eb 7181999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
719
720 * calloc.c: Add a public domain notice.
721
9879c2ce 722Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
723
724 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
725
5da6c26f 726Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
727
728 * Makefile.in (CFILES): Add hashtab.c
729 (REQUIRED_OFILES): Add hashtab.o
730 (hashtab.o): Add dependencies.
731 * hashtab.c: New file
732
be42b79e 733Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
734
735 * basename.c (DIR_SEPARATOR): New macro.
736 (DIR_SEPARATOR_2): Likewise.
737 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
738 (IS_DIR_SEPARATOR): Likewise.
739 (main): Handle MSDOS style pathname.
740
6c65e8d7 7411999-10-11 Mark Mitchell <mark@codesourcery.com>
742
743 * cplus-dem.c (do_type): Handle pointer to member types whose
744 enclosing classes have namespace scope.
745
278929f3 746Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
747
748 * config.table: Provide a backup shell for executing move-if-change.
749
a7599ac8 7501999-10-02 Mark Mitchell <mark@codesourcery.com>
751
752 * xmalloc.c (xmalloc): Fix spelling error.
753 (xcalloc, xrealloc): Likewise.
754
4d84eafd 7551999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
756
757 * cplus-dem.c (fancy_abort, demangle_integral_value,
758 demangle_arm_hp_template, recursively_demangle,
759 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
760 (program_name, program_version, fatal): Constify a char*.
761 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
762 (main): Call return, not exit.
763
8f376364 7641999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
765
766 * choose-temp.c: Remove obsolete comment about gcc.
767 (make_temp_file): Constify a char*.
768
3a4fff76 769Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
770
771 * xmemdup.c: Include sys/types.h.
772
7570bccb 7731999-09-07 Jeff Garzik <jgarzik@pobox.com>
774
775 * xmemdup.c: New xmemdup function.
776 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
777
b50c7be3 778Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
779
07c967f9 780 * config.table: Add openedition target.
b50c7be3 781 * config/mh-openedition: New file.
782
fd0c1d22 783Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
784
785 * pexecute.c (pexecute): Fill in temp_base when needed.
786
be342bf0 7871999-08-31 Richard Henderson <rth@cygnus.com>
788
789 * getpwd.c: Check HAVE_GETCWD before defining it away.
790
71774460 7911999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
792
793 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
794 (REQUIRED_OFILES): Add getpwd.o.
795 (getpwd.o): Add target.
796
797 * configure.in (AC_PREREQ): Bump to 2.13.
798 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
799
800 * getpwd.c: New file, moved here from gcc.
801
ac126d82 8021999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
803
804 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
805 comparing against a signed quantity.
806 (arm_special): Likewise.
807 (demangle_fund_type): Likewise.
808 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 809 ATTRIBUTE_UNUSED.
ac126d82 810 (main): Constify variable `valid_symbols'.
811
4f3b4661 812Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
813
814 * strtoul.c (strtoul): Add parentheses around && within ||.
815
f92ff492 816Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
817
818 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
819 libdir, libsubdir and tooldir.
820
a9f46aed 8211999-08-01 Mark Mitchell <mark@codesourcery.com>
822
823 * splay-tree.c (splay_tree_insert): Return the new node.
824
db081298 8251999-07-14 Richard Henderson <rth@cygnus.com>
826
07c967f9 827 * argv.c: Include stdlib.h and string.h instead of
db081298 828 prototyping directly.
829 * choose-temp.c: Conditionally include string.h.
830
e5aa3a54 8311999-07-12 Jason Merrill <jason@yorick.cygnus.com>
832
833 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
834
4ef402f7 8351999-07-11 Ian Lance Taylor <ian@zembu.com>
836
837 * splay-tree.c (splay_tree_insert): Add initialization to avoid
838 warning.
839
d65034bd 8401999-07-07 Jason Merrill <jason@yorick.cygnus.com>
841
842 * Makefile.in (needed-list): Only include stuff we actually need
843 for libstdc++.
844
18912799 8451999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
846
847 * configure.in (checkfuncs): Add gettimeofday.
848 * config.in, configure: Regenerated.
849
d96f58b6 850Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
851
852 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
853 the test fails.
854 * configure: Regenerate.
855
4248b202 8561999-06-10 Mike Stump <mrs@wrs.com>
857
858 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
859 parallel builds.
860
3c243ded 8611999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
862
863 * putenv.c: Include ansidecl.h to define `const'.
864 * setenv.c: Likewise.
865
654c70ae 866Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
867
34f75864 868 * Makefile.in (CFILES): Add putenv.c and setenv.c.
869 * configure.in (funcs): Add putenv and setenv.
870 (AC_CHECK_FUNCS): Check for putenv and setenv.
871 * configure: Rebuilt.
872 * putenv.c setenv.c: New files.
873
654c70ae 874 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
875 bytes of space using malloc.
876
41980611 877Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
878
879 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
880 the *mangled pointer beyond the end of the string. Clean up code to
881 match prevailing coding style.
882
08b8ada9 8831999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
884
885 * tmpnam.c (L_tmpnam): Fix typo.
886
2fb1c6e9 887Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
888
889 * cplus-dem.c (standard_symbol_characters): Renamed from
890 standard_symbol_alphabet. No longer modify TABLE.
891 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
892 modify TABLE.
893 (main): Corresponding changes. Use strchr to determine if a
894 character is valid.
895
25398e41 8961999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
897
898 * cplus-dem.c (main): Use table lookup to distinguish identifier
899 characters from non-identifier characters.
900 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
901
29723d26 902Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
903
904 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
905 * getruntime.c: Only attempt to include sys/resource.h and
906 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
907 are defined.
908
dde96550 909Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
910
911 * configure.in (alloca detection): Handle alloca directly for interix.
912 * configure: Rebuilt.
913
e98ba651 914Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
915
916 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
917
3460a017 9181999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
919
920 Fix from Dale Hawkins:
07c967f9 921 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 922 reallocated properly if we use it again.
923
924 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
925 stricter about syntax. Always null-terminate string.
926
b01c0955 927Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
928
929 * configure.in (checkfuncs): Check for sbrk.
930 * config.in: Rebuilt.
931 * configure: Likewise.
932 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
933
87c2e884 9341999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
935
936 Fix from Marcus Daniels:
937 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
938 identifier looking for another underscore.
939
16b8e80f 940Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
941
942 * pexecute.c: Change all references to __UWIN__ to _UWIN.
943 * xmalloc.c: Likewise.
944 (xcalloc): UWIN has sbrk.
945 (xrealloc): Fix guard macro.
946
4d0cfb7e 9471999-04-11 Richard Henderson <rth@cygnus.com>
948
949 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
950 or <alloca.h>.
951 * clock.c (GNU_HZ): New definition.
952 (clock): Use it.
953 * getruntime.c: Likewise.
954
955 * config.table: Use mh-beos.
956 * config/mh-beos: New file.
957
0dc64970 9581999-04-11 Mark Mitchell <mark@codesourcery.com>
959
960 * cplus-dem.c (demangle_template_value_parm): Handle
961 pointers-to-members.
962 (do_type): Handle template parameters as qualifiers.
963
9fec6063 9641999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
965
966 * cplus-dem.c: Attempt to handle overflows in counts with some
967 semblance of grace.
968 (consume_count): Detect overflows. Return -1 to indicate errors,
969 instead of zero.
970 (demangle_template_value_parm, demangle_template): Handle change
971 to consume_count's return convention.
972
715f424c 9731999-04-05 Tom Tromey <tromey@cygnus.com>
974
975 * testsuite/regress-demangle: New file.
976 * testsuite/demangle-expected: New file.
977
978 * Makefile.in (all, check, installcheck, info, install-info,
979 clean-info, dvi, install, etags, tags, mostlyclean, clean,
980 distclean, maintainer-clean, realclean): Depend on corresponding
981 `-subdir' target.
982 (all-subdir check-subdir installcheck-subdir info-subdir
983 install-info-subdir clean-info-subdir dvi-subdir
984 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
985 distclean-subdir maintainer-clean-subdir): New target.
986 * testsuite/Makefile.in: New file.
987 * configure: Rebuilt.
988 * configure.in: Create testsuite/Makefile.
989
71c5948c 9901999-04-02 Mark Mitchell <mark@codesourcery.com>
991
992 * splay-tree.h (splay_tree_compare_pointers): Define.
993
d1264606 9941999-03-30 Mark Mitchell <mark@codesourcery.com>
995
996 * splay-tree.c (splay_tree_compare_ints): Define.
997
6fd618e7 9981999-03-30 Tom Tromey <tromey@cygnus.com>
999
1000 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1001 don't advance input pointer.
1002 (demangle_class_name): If consume_count didn't find a count, do
1003 nothing. Don't bother with `strlen' sanity check; consume_count
1004 does it for us.
1005
bdaa26ad 10061999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1007
1008 From Art Haas <ahaas@neosoft.com>:
1009 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1010 when doing arm or hp style.
1011 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 1012
d267f778 1013Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1014
1015 * pexecute.c (__CYGWIN32__): Rename to
1016 (__CYGWIN__): this.
1017 * xmalloc.c: Likewise.
1018
1019 Changes to support i386-pc-uwin.
1020 * configure.in (*-*-uwin*): Workaround for vfork bug.
1021 * configure: Regenerate.
1022 * pexecute.c (pexecute): Be like standard Unix.
1023 (pwait): Likewise.
1024 * xmalloc.c (first_break): Define.
1025 (xmalloc_set_program_name): Use.
1026 (xmalloc): Use.
1027
90405950 1028Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1029
1030 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1031
bdaa26ad 1032Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1033
1034 * config.table: Check cygwin*, not cygwin32*.
1035
e6ed8194 1036Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1037
1038 * Makefile.in: Change mkstemp -> mkstemps.
1039
301e59c9 1040Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1041
1042 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1043 * configure.in (funcs): Check for and conditionally add mkstemps to
1044 the list of functions libiberty will provide.
1045 * configure: Rebuilt.
07c967f9 1046
89e305f9 1047Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1048
07c967f9 1049 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 1050 platforms that don't have HZ.
1051 * getruntime.c (HZ): Likewise.
1052
ecfe64e7 1053Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1054
1055 * Makefile.in (xstrdup.o): Depend on config.h.
1056
2e5e2114 1057Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1058
1059 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1060 freeing it.
1061
6aa62a59 1062Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1063
1064 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1065
bdaa26ad 1066Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1067
1068 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1069 splay-tree.o.
1070
10711999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1072
1073 * configure.in: Require autoconf 2.12.1 or higher.
1074
9e1ed734 10751998-12-30 Michael Meissner <meissner@cygnus.com>
1076
1077 * random.c (NULL): Don't redefine NULL if it is already defined.
1078
7c8c70e9 1079Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1080
1081 * argv.c (buildargv): Cast the result of alloca in assignment.
1082
1083 * choose-temp.c: Include stdlib.h.
2e5e2114 1084
7c8c70e9 1085 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
1086 (snarf_numeric_literal): Constify first parameter.
1087 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1088 int, not a char.
1089 (demangle_qualifier): Likewise.
1090 (demangle_signature): Cast the argument of a ctype function to
1091 unsigned char.
1092 (arm_pt): Add parens around assignment used as truth value.
1093 (demangle_arm_hp_template): Constify variable `args'.
1094 (do_hpacc_template_const_value): Cast the argument of a ctype
1095 function to unsigned char.
1096 (do_hpacc_template_literal): Remove unused variable `i'.
1097 (snarf_numeric_literal): Constify parameter `args'.
1098 Cast the argument of a ctype function to unsigned char.
1099
1100 * floatformat.c (floatformat_to_double): Add explicit braces to
1101 avoid ambiguous `else'.
2e5e2114 1102
7c8c70e9 1103 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
1104 `cstart' and `cend' to unsigned char. Cast the argument of macro
1105 `FOLD', which uses ctype functions, to unsigned char.
1106
1107 * objalloc.c (free): Add prototype.
1108
9070a37e 1109Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1110
1111 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1112
bdaa26ad 1113Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1114
1115 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
1116 doesn't exist.
1117 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 1118
0a5a5994 1119Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1120
1121 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1122 bumping the pointer we read from. Also prepend these codes,
1123 as we do in other places.
1124
bdaa26ad 11251998-12-18 Nick Clifton <nickc@cygnus.com>
1126
1127 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1128 'const char *' in order to match its usage when calling siblings.
1129 (snarf_numeric_literal): Make first arg 'const char **' in order
1130 to match usage.
4ed77eec 1131
50cbddd6 1132Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1133
4ed77eec 1134 * choose-temp.c: Don't check IN_GCC anymore.
1135
1136 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1137 * memchr.c (memchr): Likewise.
1138 * memcpy.c (memcpy): Likewise.
1139 * memmove.c (memmove): Likewise.
2e5e2114 1140
4ed77eec 1141 * mkstemp.c: Don't check IN_GCC anymore.
1142 * pexecute.c: Likewise.
1143 * splay-tree.c: Likewise.
2e5e2114 1144
4ed77eec 1145 * strchr.c (strchr): Use `const', not `CONST'.
1146 * strrchr.c (strrchr): Likewise.
1147 * strtol.c (strtol): Likewise.
1148 * strtoul.c (strtoul): Likewise.
1149
f75dc4de 1150Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1151 Elena Zannoni <ezannoni@cygnus.com>
1152 Stan Shebs <shebs@cygnus.com>
1153 Edith Epstein <eepstein@cygnus.com>
1154 Andres MacLeod <amacleod@cygnus.com>
1155 Satish Pai <pai@apollo.hp.com>
1156
1157 * HP aCC demangling support.
1158 * cplus-dem.c
1159 (main): Remove default to HP style demangling, set to EDG
1160 demangling correctly when -edg specified; set the demangling style
1161 when user specifies 'edg'. Set strip_underscore to
1162 prepends_underscore, if not HPUXHPPA. Set
1163 current_demangling_style to hp_demangling if HPUXHPPA. Set
1164 current demangling style correctly if the switch is hp. Read
1165 label correctly also in the HP style case.
1166 (work_stuff): add temp_start field; add field for volatile member
1167 function.
1168 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
1169 style for this case is the same as ARM.
1170 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1171 (demangle_arm_hp_template): new function. (It was
1172 demangle_arm_pt.); check and set value of temp_start field in
1173 multiple places. Also, when ceching for end of template args,
1174 check to see if at end of static member of template class.
1175 (demangle_class): new local variable : save_class_name_end Don't
1176 include template args in string defining class.
1177 (demangle_class_name): use demangel_arm_hp_template.
1178 (demangle_function_name): handle case where demangling style is
1179 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1180 Handle EDG_DEMANGLING style. Handle constructor and destructor
1181 ops for HP style.
1182 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
1183 styles. global destructor and constructor for HP style are same
1184 as for ARM style. Same for local variables.
1185 (demangle_qualified): handle EDG_DEMANGLING style.
1186 (demangle_signature): add case for volatile member function. For
1187 cases '1' - '9' : initialize the temp_start field to -1 and handle
1188 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1189 and AUTO_DEMANGLING styles. If expecting a function and managed
1190 to demangle the funct args, then handle the LUCID_DEMANGLING,
1191 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1192 class name after "Lnnn_ in HP style case. HP style too needs to
1193 forget types. _nnn is OK for HP style, so don't report failure.
1194 (do_hpacc_template_const_value): new function. Handle template's
1195 value param for HP/aCC.
1196 (do_hpacc_template_literal): new function. Handle a template's
1197 literal parameter for HP aCC.
1198 (recursively_demangle): new function
1199 (snarf_numeric_literal): new function.
1200 (usage): add 'edg' to the list of demangling styles; add hp switch
1201 to message.
1202
a5c56042 1203Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1204
1205 * pexecute.c: Remove obsolete ifdefed cygwin code.
1206
4ae63959 1207Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1208
1209 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1210 * cplus-dem.c: Likewise. Conform to libiberty.h.
1211 * pexecute.c: Likewise.
1212 * splay-tree.c: Likewise.
1213
b41b6b67 12141998-11-25 Mike Stump <mrs@wrs.com>
1215
1216 * Makefile.in (splay-tree.o): Add config.h dependency.
1217
a1dd5bff 1218Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1219
1220 * configure.in: Use AC_PREREQ(2.12.1).
1221
d54546fb 12221998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1223
07c967f9 1224 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 1225
9fdb1080 1226Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1227
1228 * mpw.c (mpw_access): Add missing parens.
1229
1ed7db2f 1230Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1231
1232 * configure.in: Call AC_HEADER_SYS_WAIT.
1233
1234 * pexecute.c: Include sys/wait.h when !IN_GCC.
1235
bdaa26ad 1236Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1237
1238 * pexecute.c: revert back to checking old Cygwin
1239 preprocessor symbol until some time has passed.
1240
1241Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1242
1243 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1244 since it will now support similar constructs.
1245
34fa8831 1246Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1247
1248 * configure.in: Check for calloc.
1249
1250 * calloc.c: New file.
1251
1252 * xmalloc.c (xcalloc): New function.
1253
75ebb412 1254Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1255
1256 *cplus-dem.c (demangle_prefix): Use the last "__"
1257 in the mangled name when looking for the signature. This allows
1258 template names to begin with "__".
1259
5b546829 12601998-11-08 Mark Mitchell <mark@markmitchell.com>
1261
73bea962 1262 * cplus-dem.c (type_kind_t): Add tk_reference.
1263 (demangle_template_value_parm): Handle it.
1264 (do_type): Use it for references, instead of tk_pointer.
1265
5b546829 1266 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1267 not internal_cplus_demangle.
1268
0e4558d2 1269Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1270
1271 * choose-temp.c: Don't include gansidecl.h.
1272 * mkstemp.c: Likewise.
1273 * pexecute.c: Likewise.
1274
7b8b8d43 1275Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1276
07c967f9 1277 * configure.in: detect cygwin* instead of cygwin32*
1278 * configure: regenerate
7b8b8d43 1279
f9a39df1 1280Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1281
1282 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
1283 whether to include config.h. Possibly include unistd.h in the
1284 !IN_GCC case. Define VFORK_STRING as a printable function call
1285 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1286 defined, include vfork.h. If VMS is defined, define vfork()
1287 appropriately. Remove vfork check on USG, we're using autoconf.
1288 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1289 locally what string to use.
1290
797ba725 12911998-10-26 Mark Mitchell <mark@markmitchell.com>
1292
1293 * splay-tree.c: Tweak include directives to make sure declarations of
1294 xmalloc and free are available.
1295
3662c79b 12961998-10-25 Mark Mitchell <mark@markmitchell.com>
1297
1298 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1299 anonymous namespaces.
2e5e2114 1300
af5199c0 13011998-10-23 Mark Mitchell <mark@markmitchell.com>
1302
1303 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1304 with type_quals.
1305 (TYPE_UNQUALIFIED): New macro.
1306 (TYPE_QUAL_CONST): Likewise.
1307 (TYPE_QUAL_VOLATILE): Likewise.
1308 (TYPE_QUAL_RESTRICT): Likewise.
1309 (code_for_qualifier): New function.
1310 (qualifier_string): Likewise.
1311 (demangle_qualifier): Likewise.
1312 (internal_cplus_demangle): Use them.
1313 (demangle_signature): Likewise.
1314 (demangle_template_value_parm): Likewise.
1315 (do_type): Likewise.
1316 (demangle_fund_type)): Likewise.
3662c79b 1317
e61da89d 1318Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1319
1320 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1321 to match prototype.
1322
9a4eb61d 13231998-10-21 Mark Mitchell <mark@markmitchell.com>
1324
1325 * splay-tree.c: New file.
1326 * Makefile.in (CFILES): Add it.
1327 (REQUIRED_OFILES): Likewise.
1328 (splay-tree.o): Add dependencies.
1329
e5d3a45b 1330Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1331
1332 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1333 range of 'K' index.
1334
4350e959 1335Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1336
1337 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1338
1339 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1340 `unsigned char'.
1341 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1342 comparing against one.
1343 (cplus_mangle_opname): Likewise.
1344 (demangle_integral_value): Cast argument of ctype macro to
1345 `unsigned char'.
1346 (demangle_template_value_parm): Likewise.
1347 (demangle_template): Initialize variable `bindex'. Cast the
1348 result of `strlen' to (int) when comparing against one. Remove
1349 unused variable `start_of_value_parm'.
1350 (demangle_class_name): Cast the result of `strlen' to (int) when
1351 comparing against one.
1352 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1353 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1354 when comparing against one.
1355 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1356 (get_count): Likewise.
1357 (do_type): Likewise. Cast the result of `strlen' to (int) when
1358 comparing against one.
1359 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1360 (demangle_function_name): Cast the result of `strlen' to (int)
1361 when comparing against one.
1362
1363 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1364 comparing against one.
1365
5dfe2c03 1366Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1367
07c967f9 1368 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1369 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1370 * config.in, configure: Rebuilt.
0be6f86d 1371
5dfe2c03 1372 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1373 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1374 * config.in, configure: Rebuilt.
1375
7b8b8d43 1376Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1377
07c967f9 1378 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 1379
68b78c88 1380Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1381
1382 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1383
804ec1bf 1384Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1385
1386 * Merge egcs & devo libiberty.
1387
7a1ec54f 1388