]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
MMX/SSE patterns for i386
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
2ecd81ef
MS
12000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2
3 * md5.c: #include "ansidecl.h".
4
d93998ec
AS
52000-09-06 Alex Samuel <samuel@codesourcery.com>
6
7 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
8 (demangle_type): Handle substitution candidates correctly in the
9 face of special substitutions.
10
1056d228
AS
112000-09-05 Alex Samuel <samuel@codesourcery.com>
12
13 * cp-demangle.c (demangle_encoding): Rename variable.
14 (demangle_name): Rename parameter. Handle return type
15 suppression.
16 (demangle_nested_name): Rename parameter.
17 (demangle_prefix): Likewise. Change return type suppression.
18 (demangle_unqualified_name): Add parameter. Flag constructors and
19 conversion operators.
20 (demangle_special_name): Fix comment.
21 (demangle_type): Rename variable.
22 (demangle_bare_function_type): Check for missing return type and
23 parameter.
24 (demangle_class_enum_type): Rename parameter.
25 (demangle_discriminator): Fix misspelling in comment.
26
2f31ed7e
DD
272000-08-31 DJ Delorie <dj@redhat.com>
28
29 * configure.in (Cygwin): special case cygwin only when we're
30 building cygwin, not when we're hosting cygwin.
31
02bcb9c6
AS
322000-09-04 Alex Samuel <samuel@codesourcery.com>
33
34 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
35 <expression>.
36
aee749cf
AS
372000-09-04 Alex Samuel <samuel@codesourcery.com>
38
39 * cp-demangle.c (demangle_type_ptr): Increment position past
40 pointer and reference characters.
41
92a16bbe
AS
422000-09-04 Alex Samuel <samuel@codesourcery.com>
43
44 * cp-demangle.c (demangle_nv_offset): New function.
45 (demangle_v_offset): Likewise.
46 (demangle_call_offset): Likewise.
47 (demangle_special_name): Update thunk demangling to comply with
48 ABI changes.
49
31e0ab1f
AS
502000-09-03 Alex Samuel <samuel@codesourcery.com>
51
52 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
53 (substitution_def): Remove template_parm_number.
54 (NOT_TEMPLATE_PARM): Remove.
55 (result_insert_string): New macro.
56 (result_insert): Likewise.
57 (result_insert_char): Likewise.
58 (substitution_add): Remove last parameter. Don't store template
59 parm number.
60 (BFT_NO_RETURN_TYPE): Define as NULL.
61 (demangle_encoding): Adjust call to demangle_bare_function_type.
62 (demangle_name): Adjust substitution. Adjust call to
63 substitution_add.
64 (demangle_prefix): Adjust call to substitution_add.
65 (demangle_identifier): Handle anonymous namespaces.
66 (demangle_operator_name): Change demangling of vendor-extended
67 operator to match ABI changes.
68 (demangle_type_ptr): Change parameters. Make recursive. Handle
69 substitutions here.
70 (demangle_type): Adjust calls to demangle_template_param,
71 substitution_add, and demangle_type_ptr. Fix substitution of
72 templated types.
73 (demangle_function_type): Change parameter to a pointer.
74 (demangle_bare_function_type): Likewise. Adjust insertion point.
75 (demangle_template_param): Remove last parameter.
76 (demangle_expr_primary): Remove unused variable. Adjust call to
77 demangle_template_param.
78 (is_mangled_char): Accept `$' and `.'.
79 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
80 * dyn-string.c (dyn_string_insert_char): New function.
81
ccbc3eb7
HPN
822000-08-31 Hans-Peter Nilsson <hp@axis.com>
83
84 * testsuite/demangle-expected: Add nine tests for
85 underscore-after-number followed by five tests for name-signature
86 delimiter.
87
53dce582
RH
882000-08-28 Richard Henderson <rth@cygnus.com>
89
90 * Makefile.in (md5.o): Depend on config.h.
91
881c6935
JM
922000-08-28 Jason Merrill <jason@redhat.com>
93
94 * Makefile.in (REQUIRED_OFILES): Add md5.o.
95 (CFILES): Add md5.c.
96 * md5.c: New file.
97
a440fd19
AS
982000-08-27 Alex Samuel <samuel@codesourcery.com>
99
100 * cp-demangle.c (demangle_name): Initialize template_p in local
101 name case. Don't re-add substitutions as candidates.
102 (demangle_nested_name): Use <unqualified-name>.
103 (demangle_prefix): Likewise. Don't add template names as
104 substitution candidates twice, or re-add a substitution or the
105 last prefix component.
106 (demangle_local_name): Adjust output format.
107
d01ce591
AS
1082000-08-25 Alex Samuel <samuel@codesourcery.com>
109
110 * cp-demangle.c (result_add_separated_char): Change parameter to
111 int.
112 (substitution_add): Don't check for duplicates. Check if
113 previously allocated size is zero.
114 (demangle_name): Remove duplicate check for std substitution.
115 Clear template flag appropriately.
116 (demangle_prefix): Remove argument to demangle_substitution.
117 Don't check that template flag is already set.
118 (demangle_operator_name): Add pt operator.
119 (demangle_type): Don't treat r as built-in type. Remove argument
120 to demangle_substitution. Fix substitution candidate mechanics.
121 Handle <template-template-parm>s. Improve comments.
122 (demangle_template_param): Don't handle template arg lists here.
123 (demangle_substitution): Remove parameter.
124 (print_usage): Remove extra fprintf option.
125
2f59c8eb
GM
1262000-08-24 Greg McGary <greg@mcgary.org>
127
128 * libiberty/random.c (end_ptr): Revert previous change.
129
2f26c11d
GM
1302000-08-24 Greg McGary <greg@mcgary.org>
131
132 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
133 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
134 * libiberty/random.c (end_ptr): Likewise.
135
e282c9c9
AS
1362000-08-23 Alex Samuel <samuel@codesourcery.com>
137
138 * cp-demangle.c (result_close_template_list): Remove function.
139 (result_add_separated_char): New function.
140 (result_open_template_list): New macro.
141 (result_close_template_list): Likewise.
142 (demangle_prefix): Don't set template_p if the
143 prefix ends with a ctor name.
144 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
145 (demangle_type): Check for template args after substitution.
146 (demangle_template_args): Use result_open_template_list.
147
c9b6494a
ZW
1482000-08-02 Zack Weinberg <zack@wolery.cumb.org>
149
150 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
151
c00fb683 1522000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
153
154 * config/mh-openedition.h: Added -DLE370 definition.
155
0aab2795
ME
1562000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
157
158 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
159 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
160 Cast program to 'char *' in errmsg_arg assignment.
161 (PWAIT_ERROR): Define.
162 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
163 to DJGPP's WIF* macros.
164
c2f275e4
RB
1652000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
166 Jeff Law <law@cygnus.com>
167
73aa9564
RB
168 * getcwd.c: Include string.h, stdlib.h for prototypes
169
c2f275e4 170 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
171 * rename.c: Include config.h, unistd.h
172 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 173
ccbc3eb7
HPN
1742000-07-24 Hans-Peter Nilsson <hp@axis.com>
175
176 * cplus-dem.c (work_stuff_copy_to_from): New.
177 (delete_non_B_K_work_stuff): New.
178 (delete_work_stuff): New.
179 (mop_up): Break out work_stuff partly destruction to
180 delete_non_B_K_work_stuff.
181 (iterate_demangle_function): New.
182 (demangle_prefix): Call iterate_demangle_function instead of
183 demangle_function_name. Leave handling of name-signature
184 __-delimiters to iterate_demangle_function.
185 (demangle_integral_value): Strip an optional
186 following underscore cautiously. Handle negative numbers.
187
3388651c
DB
1882000-07-24 Daniel Berlin <dberlin@redhat.com>
189
190 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
191 if (AUTO_DEMANGLING || GNU_DEMANGLING)
192
0fac482e
AS
1932000-07-21 Alex Samuel <samuel@codesourcery.com>
194
195 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
196 allocating ctor mangling.
197 (demangle_array_type): Handle empty and non-constant array length.
198
8502a100 1992000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
200 Jeff Law <law@cygnus.com>
201
c6451ce1
MS
202 * configure.in (AC_CHECK_HEADERS): Add time.h.
203 (AC_HEADER_TIME): Add check.
204 * configure, config.in: Regenerate.
205 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
206
cd447360
MS
207 * configure.in (AC_CHECK_HEADERS): Add limits.h.
208 * configure, config.in: Regenerate.
209 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
210 * strtol.c, strtoul.c: #include "config.h". Portably #include
211 <limits.h> and/or <sys/param.h>.
212 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 213
3b58c099
MS
214 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
215 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
216 * configure, config.in: Regenerate.
217 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
218
8502a100
MS
219 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
220
da0c7743
MS
2212000-07-21 Mike Stump <mrs@wrs.com>
222
223 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 224 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 225
838f8562
KG
2262000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
227
228 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
229
230 * setenv.c (setenv): Initialize variable `ep'.
231
232 * sigsetmask.c (abort): Prototype.
233
234 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
235 __STDC__ for stdarg.h include.
236 (int_vasprintf): Prototype.
237 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
238 definition. Cast `global_total_width' in comparison.
239 (main): Prototype. Return a value.
240
241 * vfork.c (fork): Prototype.
242
243 * xexit.c: Include config.h.
244
e9958132
JM
2452000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
246
247 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
248 and print it with %u.
249
39a6492f
HPN
2502000-07-17 Hans-Peter Nilsson <hp@axis.com>
251
252 * testsuite/regress-demangle (failed test): Show result and
253 expected output.
254
6d0be369
AH
2552000-07-07 Andrew Haley <aph@cygnus.com>
256
257 * cplus-dem.c (main): fflush() after emitting last char before
258 waiting for input.
259
bece74bd
AS
2602000-06-28 Alex Samuel <samuel@codesourcery.com>
261
262 * cp-demangle.c (demangle_encoding): Accept no substitutions.
263 (demangle_name): Handle <substitution> followed by
264 <unqualified-template-name>.
265 (demangle_type): Follow special substitutions with
266 <class-enum-type>
267 (demangle_subtitution): Set template_p for special substitutions.
268 (main): Fix typos.
269
229b8ec7
AS
2702000-06-27 Alex Samuel <samuel@codesourcery.com>
271
272 * cp-demangle.c (demangle_special_name): Swap base and derived
273 class when demangling construction vtables.
274
051664b0
AS
2752000-06-21 Alex Samuel <samuel@codesourcery.com>
276
277 * cp-demangle.c: Don't include ctype.h.
278 (IS_DIGIT): New macro.
279 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
280 instead of isdigit and isalpanum.
281 (demangling_def): Make name and next const pointers.
282 (STATUS_ALLOCATION_FAILED): New status code.
283 (dyn_string_append_space): Handle failure in
284 dyn_string_append_char.
285 (int_to_dyn_string): Likewise. Change return value to status_t.
286 (string_list_new): Handle failure of dyn_string_init.
287 (result_close_template_list): Change return type to status_t.
288 Handle failure in dyn_string_append.
289 (result_push): Change return value to status_t. Handle failure in
290 string_list_new. Handle failure of result_push throughout.
291 (substitution_add): Change return value to status_t. Handle
292 dyn_string failures. Handle failure of substitution_add
293 throughout.
294 (template_arg_list_new): Return NULL on allocation failure.
295 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
296 Handle error result throughout.
297 (result_append): Likewise.
298 (result_append_char): Likewise.
299 (result_append_space): Likewise.
300 (demangling_new): Make argument a const pointer. Handle
301 allocation failures.
302 (demangle_template_args): Handle failure in template_arg_list_new
303 and result_close_template_list.
304 (demangle_discriminator): Return if int_to_dyn_string fails.
305 (cp_demangle): Likewise.
306 (cp_demangle_type): New function.
307 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
308 memory allocation failure.
309 (main): Likewise.
310 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
311 IN_LIBGCC2.
312 (dyn_string_init): Change return value to int. Handle
313 RETURN_ON_ALLOCATION_FAILURE case.
314 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
315 (dyn_string_release): Delete the dyn_string.
316 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
317 (dyn_string_copy): Change return type to int.
318 (dyn_string_copy_cstr): Likewise.
319 (dyn_string_prepend): Likewise.
320 (dyn_string_prepend_cstr): Likewise.
321 (dyn_string_insert): Likewise.
322 (dyn_string_insert_cstr): Likewise.
323 (dyn_string_append): Likewise.
324 (dyn_string_append_cstr): Likewise.
325 (dyn_string_append_char): Likewise.
326 (dyn_string_substring): Likewise.
327
fe06b696
ZW
3282000-06-09 Zack Weinberg <zack@wolery.cumb.org>
329
330 * cp-demangle.c (demangle_operator_name): Add spaces before
331 names beginning with a letter: delete, delete[], new, new[],
332 sizeof.
333 (demangle_special_name): Handle TF <type> and TJ <type>.
334
6223e158
PDM
335Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
336
337 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
338
48f3e29b
PDM
339Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
340
341 * cp-demangle.c (stdio.h): File included unconditionaly.
342 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
343 * dyn-string.c (stdio.h): File included.
344 * partition.c (partition_print): No `&' needed to take the address of
345 a function.
346
69197e7e
KG
3472000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
348
349 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
350
351 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
352
353 * cp-demangle.c (demangle_char): Change parameter from char to int.
354 (demangle_expression, demangle_expr_primary): Remove extra
355 semi-colon in prototype.
356
357 * dyn-string.c (dyn_string_append_char): Change parameter from
358 char to int.
359
360 * memcmp.c (memcmp): Constify.
361
362 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
363 __extension__.
364
365 * partition.c (elem_compare): Prototype. Don't cast away
366 const-ness.
367
368 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
369
7eb23b1f
KG
3702000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
371
372 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
373
374 * cp-demangle.c: Include demangle.h.
375 (template_arg_list_new): DeANSIfy.
376 (cp_demangle): Make static and add prototype.
377 (operator_code, operators): Constify.
378 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
379
3faa108c
AS
3802000-06-05 Alex Samuel <samuel@codesourcery.com>
381
382 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
383 unsigned char.
384 (demangle_unqualified_name): Likewise.
385 (demangle_number_literally): Likewise.
386 (demangle_type): Likewise.
387 (demangle_substitution): Likewise.
388 (is_mangled_char): Likewise, for isalnum.
389
69afa80d
AS
3902000-06-04 Alex Samuel <samuel@codesourcery.com>
391
392 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
393 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
394 (cp-demangle.o): New dependency.
395 (dyn-string.o): Likewise.
396
397 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
398
399 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
400 demangler.
401 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
402 demangling mode.
403 (gnu_new_abi_symbol_characters): New function.
404 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
405 file.
406 * cp-demangle.c: New file.
407
0b72c3df
AC
408Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
409
410 * floatformat.c: Add name to each floatformat field.
411
270cea06
JL
412Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
413
414 * Makefile.in (objalloc.o): Depend on config.h
415
d11ec6f0
ZW
4162000-05-29 Zack Weinberg <zack@wolery.cumb.org>
417
418 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
419 if HAVE_STRING_H.
420 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
421 * objalloc.c: Include config.h. Include stdlib.h and don't
422 declare malloc or free if HAVE_STDLIB_H.
423 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
424 else declare malloc without prototype. Include string.h if
425 HAVE_STRING_H, else declare memset without prototype. Don't
426 include stddef.h.
427
f8e2da56
MS
4282000-05-23 Mike Stump <mrs@wrs.com>
429
430 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
431 -j3.
432
650f3068
DA
4332000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
434
435 * xmalloc.c: Include config.h for HAVE_SBRK definition.
436
1d2da2e1
HB
4372000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
438
439 * hashtab.c (hash_pointer): Delete low-order bits which are
440 probably zero, also eliminate a warning on alpha.
441
47668d0a
DE
4422000-05-15 David Edelsohn <edelsohn@gnu.org>
443
c7a79a32 444 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
445 on $(enable_shared).
446
36348eab
JJ
4472000-05-10 Jakub Jelinek <jakub@redhat.com>
448
449 * config.table: Use mh-sparcpic for sparc*-*-*.
450
209bbe34
NC
4512000-05-08 Nick Clifton <nickc@cygnus.com>
452
453 * Makefile.in (CFILES): Add strncmp.c.
454 (NEEDED): Add strncmp.
455
a85a47fb
KG
4562000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
457
458 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
459 Cast the arguments to `islower' to `unsigned char'.
460 (print_demangler_list): Prototype.
461
4aef973c
PDM
462Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
463
464 * sort.c (UCHAR_MAX): Provide fallback definition.
465
3b94497c
AO
4662000-04-29 Alexandre Oliva <aoliva@cygnus.com>
467
468 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
469 SUBDIRS.
470
24eaa47a
KB
4712000-04-28 Kenneth Block <block@zk3.dec.com>
472 Jason Merrill <jason@casey.cygnus.com>
473
474 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
475 (cplus_demangle_set_style): New function for setting style.
476 (cplus_demangle_name_to_style): New function to translate name.
477
a9266bfa
KG
4782000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
479
480 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
481
482 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
483 (libiberty_AC_FUNC_STRNCMP): Invoke.
484
485 * strncmp.c: New file.
486
8e02c4d0
JH
487Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
488
489 * hashtab.c (htab_expand): Add prototype.
490 (find_empty_slot_for_expand): Likewise.
491
4feeaae3
KG
4922000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
493
494 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
495 match prototype.
496 (htab_expand): Cast the return value of xcalloc.
497
18a94a2f
MM
4982000-04-24 Mark Mitchell <mark@codesourcery.com>
499
500 * hashtab.c (hash_pointer): New function.
501 (eq_pointer): Likewise.
502 (htab_hash_pointer): New variable.
503 (htab_eq_pointer): Likewise.
504
eeb0656f
MM
5052000-04-23 Mark Mitchell <mark@codesourcery.com>
506
b51024fc
MM
507 * sort.c (sort_pointers): Fix endianness bugs.
508
eeb0656f
MM
509 * sort.c: New file.
510 * Makefile.in (CFILES): Add sort.c
511 (REQUIRED_OFILES): Add sort.o.
512 (sort.o): New target.
513
7277f72d
MS
5142000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
515
516 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
517 4.3BSD systems.
518
e38992e8
RK
519Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
520
521 * hashtab.c: Various minor cleanups.
522 (htab_find_slot_with_hash): INSERT is now enum insert_option.
523 (htab_find_slot): Likewise.
524
498e1ab1
DP
5252000-04-16 Dave Pitts <dpitts@cozx.com>
526
527 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
528
dc17cc7b
RH
5292000-04-05 Richard Henderson <rth@cygnus.com>
530
531 * splay-tree.c (splay_tree_remove): New.
532
b13eb66b
MM
5332000-03-30 Mark Mitchell <mark@codesourcery.com>
534
535 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
536 codes.
537 (htab_find_with_hash): Likewise.
538 (htab_find_slot_with_hash): Likewise.
539
0194e877
ZW
5402000-03-29 Zack Weinberg <zack@wolery.cumb.org>
541
542 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
543 unless it will be used. Rearrange loop for better
544 optimization.
545 (higher_prime_number): Add static prototype.
546
abc61fd4
JL
547Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
548
549 * Makefile.in (partition.o): Depend on config.h
550
8c5d513f
BS
5512000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
552
553 * hashtab.c (find_empty_slot_for_expand): New function.
554 (htab_expand): Use it instead of htab_find_slot.
555 (htab_find_with_hash): Renamed from htab_find; now accepts extra
556 argument HASH.
557 (htab_find_slot_with_hash): Likewise for htab_find_slot.
558 (htab_find): New wrapper function.
559 (htab_find_slot): Likewise.
560 (htab_traverse): Pass slot, not entry, to called function.
561
d9d4fb43
AS
5622000-03-09 Alex Samuel <samuel@codesourcery.com>
563
564 * Makefile.in (CFILES): Add partition.c.
565 (REQUIRED_OFILES): Add partition.o.
566 (partition.o): New rule.
567 * partition.c: New file.
568
5dc9cffd
ZW
5692000-03-09 Zack Weinberg <zack@wolery.cumb.org>
570
571 * hashtab.c (htab_create): Set del_f.
572 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
573 Use it.
574
5194cf08
ZW
5752000-03-08 Zack Weinberg <zack@wolery.cumb.org>
576
577 * hashtab.c: Remove debugging variables (all_searches,
578 all_collisions, all_expansions). Delete
579 all_hash_table_collisions.
580 (create_hash_table, delete_hash_table, empty_hash_table,
581 find_hash_table_entry, remove_element_from_hash_table_entry,
582 clear_hash_table_slot, traverse_hash_table, hash_table_size,
583 hash_table_elements_number, hash_table_collisions): Rename to:
584 htab_create, htab_delete, htab_empty, htab_find_slot,
585 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
586 htab_elements, htab_collisions.
587 (htab_find): New function, handles common case where you don't
588 plan to add or delete an entry.
589 (htab_expand): Don't create a whole new table, just a new
590 entry vector.
591 (htab_find_slot): Simplify logic.
592
5ad5a984
ILT
5931999-08-03 Ian Lance Taylor <ian@zembu.com>
594
595 * floatformat.c: Add casts to avoid signed/unsigned warnings.
596 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
597
598 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
599 $(TARGETLIB)n so it works on MSDOS.
600 (install_to_tooldir): Likewise.
601
6021999-07-21 Ian Lance Taylor <ian@zembu.com>
603
604 From Mark Elbrecht:
605 * makefile.dos: Remove; obsolete.
606 * configure.bat: Remove; obsolete.
607
6081999-07-11 Ian Lance Taylor <ian@zembu.com>
609
610 * splay-tree.c (splay_tree_insert): Add initialization to avoid
611 warning.
612
aeecce42
MK
6132000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
614
615 * pexecute.c: Conditionally include string.h.
5194cf08 616 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 617
1eaf7d9c
KG
6182000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
619
620 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
621 we're using gcc.
622
623 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
624
0fadedb2
GK
6251999-12-27 Geoff Keating <geoffk@cygnus.com>
626
627 * vasprintf.c (int_vasprintf): Don't re-read the format character
628 as this mishandles strings like '%%s'.
629
08230f26
MM
6301999-12-05 Mark Mitchell <mark@codesourcery.com>
631
632 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
633 rather than struct splay_tree_node.
634 (splay_tree_insert): Use struct splay_tree_s rather than struct
635 splay_tree.
636
6de9b8ff
PDM
637Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
638
639 * hashtab.c (sys/types.h): File included.
640
f3636679
JM
6411999-11-22 Jason Merrill <jason@casey.cygnus.com>
642
643 * strtoul.c, strtol.c, random.c: Remove advertising clause from
644 BSD license, pursuant with
645
646 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
647
36dd3a44
JL
648Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
649
650 * hashtab.c: Include stdio.h.
651
6e300472
JL
652Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
653
654 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
655
df548dfc
PDM
656Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
657
658 * xstrdup (sys/types.h): Include this file.
659
2c375143
NS
6601999-10-28 Nathan Sidwell <nathan@acm.org>
661
662 * Makefile.in (SUBDIRS): New macro.
663 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
664 avoid multiple subdirectory cleaning.
665 (*-subdir): Use SUBDIRS.
666
a82cecda
JK
6671999-10-25 Jim Kingdon <http://developer.redhat.com/>
668
669 * cplus-dem.c: Move declarations of standard_symbol_characters and
670 hp_symbol_characters inside #ifdef MAIN to avoid compiler
671 warnings.
672
ed38f5d5
ZW
6731999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
674
675 * hashtab.c (find_hash_table_entry): When returning a
676 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
677 (clear_hash_table_slot): New function which deletes an entry
678 by its position in the table, not its value.
679 (traverse_hash_table): New function which calls a hook
680 function for every live entry in the table.
681
b60fe4a7
MM
6821999-10-19 Mark Mitchell <mark@codesourcery.com>
683
684 * cplus-dem.c (INTBUF_SIZE): New macro.
685 (string_append_template_idx): New function.
686 (demangle_expression): Likewise.
687 (demangle_integral_value): Use it.
688 (demangle_real_value): New function, split out from ...
689 (demangle_template_value_parm): ... here. Use
690 string_append_template_idx. Use demangle_real_value.
691 (demangle_template): Use string_append_template_idx.
692 (demangle_qualified): Use consume_count_with_underscores.
693 (get_count): Tweak formatting.
694 (do_type): Use string_append_template_idx.
5194cf08 695
3da5522a
KG
6961999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
697
698 * calloc.c: Add a public domain notice.
699
d7d36ea8
PDM
700Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
701
702 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
703
a2f945c6
VM
704Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
705
706 * Makefile.in (CFILES): Add hashtab.c
707 (REQUIRED_OFILES): Add hashtab.o
708 (hashtab.o): Add dependencies.
709 * hashtab.c: New file
710
7f22ec2e
MK
711Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
712
713 * basename.c (DIR_SEPARATOR): New macro.
714 (DIR_SEPARATOR_2): Likewise.
715 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
716 (IS_DIR_SEPARATOR): Likewise.
717 (main): Handle MSDOS style pathname.
718
7c56a6ce
MM
7191999-10-11 Mark Mitchell <mark@codesourcery.com>
720
721 * cplus-dem.c (do_type): Handle pointer to member types whose
722 enclosing classes have namespace scope.
723
cd32188b
ME
724Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
725
726 * config.table: Provide a backup shell for executing move-if-change.
727
fc232f7a
MM
7281999-10-02 Mark Mitchell <mark@codesourcery.com>
729
730 * xmalloc.c (xmalloc): Fix spelling error.
731 (xcalloc, xrealloc): Likewise.
732
2a138827
KG
7331999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
734
735 * cplus-dem.c (fancy_abort, demangle_integral_value,
736 demangle_arm_hp_template, recursively_demangle,
737 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
738 (program_name, program_version, fatal): Constify a char*.
739 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
740 (main): Call return, not exit.
741
5a657fc3
KG
7421999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
743
744 * choose-temp.c: Remove obsolete comment about gcc.
745 (make_temp_file): Constify a char*.
746
33c5ddcd
KG
747Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
748
749 * xmemdup.c: Include sys/types.h.
750
b10647f1
JG
7511999-09-07 Jeff Garzik <jgarzik@pobox.com>
752
753 * xmemdup.c: New xmemdup function.
754 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
755
3dd6c3af
LV
756Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
757
5194cf08 758 * config.table: Add openedition target.
3dd6c3af
LV
759 * config/mh-openedition: New file.
760
19e28e2a
ME
761Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
762
763 * pexecute.c (pexecute): Fill in temp_base when needed.
764
4dfeccf9
RH
7651999-08-31 Richard Henderson <rth@cygnus.com>
766
767 * getpwd.c: Check HAVE_GETCWD before defining it away.
768
4ac3cb83
KG
7691999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
770
771 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
772 (REQUIRED_OFILES): Add getpwd.o.
773 (getpwd.o): Add target.
774
775 * configure.in (AC_PREREQ): Bump to 2.13.
776 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
777
778 * getpwd.c: New file, moved here from gcc.
779
e797ff70
KG
7801999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
781
782 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
783 comparing against a signed quantity.
784 (arm_special): Likewise.
785 (demangle_fund_type): Likewise.
786 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 787 ATTRIBUTE_UNUSED.
e797ff70
KG
788 (main): Constify variable `valid_symbols'.
789
55247fce
PDM
790Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
791
792 * strtoul.c (strtoul): Add parentheses around && within ||.
793
76632dd0
DJ
794Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
795
796 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
797 libdir, libsubdir and tooldir.
798
d080bbfa
MM
7991999-08-01 Mark Mitchell <mark@codesourcery.com>
800
801 * splay-tree.c (splay_tree_insert): Return the new node.
802
a81c752a
RH
8031999-07-14 Richard Henderson <rth@cygnus.com>
804
5194cf08 805 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
806 prototyping directly.
807 * choose-temp.c: Conditionally include string.h.
808
8f1824d9
JM
8091999-07-12 Jason Merrill <jason@yorick.cygnus.com>
810
811 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
812
652374d3
ILT
8131999-07-11 Ian Lance Taylor <ian@zembu.com>
814
815 * splay-tree.c (splay_tree_insert): Add initialization to avoid
816 warning.
817
a4494286
JM
8181999-07-07 Jason Merrill <jason@yorick.cygnus.com>
819
820 * Makefile.in (needed-list): Only include stuff we actually need
821 for libstdc++.
822
90e72e20
AS
8231999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
824
825 * configure.in (checkfuncs): Add gettimeofday.
826 * config.in, configure: Regenerated.
827
b569200e
MK
828Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
829
830 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
831 the test fails.
832 * configure: Regenerate.
833
73919448
MS
8341999-06-10 Mike Stump <mrs@wrs.com>
835
836 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
837 parallel builds.
838
fee9125c
KG
8391999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
840
841 * putenv.c: Include ansidecl.h to define `const'.
842 * setenv.c: Likewise.
843
71cce721
MN
844Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
845
a7c9637f
JL
846 * Makefile.in (CFILES): Add putenv.c and setenv.c.
847 * configure.in (funcs): Add putenv and setenv.
848 (AC_CHECK_FUNCS): Check for putenv and setenv.
849 * configure: Rebuilt.
850 * putenv.c setenv.c: New files.
851
71cce721
MN
852 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
853 bytes of space using malloc.
854
53504016
SG
855Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
856
857 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
858 the *mangled pointer beyond the end of the string. Clean up code to
859 match prevailing coding style.
860
34842539
MH
8611999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
862
863 * tmpnam.c (L_tmpnam): Fix typo.
864
3a08531d
ME
865Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
866
867 * cplus-dem.c (standard_symbol_characters): Renamed from
868 standard_symbol_alphabet. No longer modify TABLE.
869 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
870 modify TABLE.
871 (main): Corresponding changes. Use strchr to determine if a
872 character is valid.
873
8db9d08b
JB
8741999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
875
876 * cplus-dem.c (main): Use table lookup to distinguish identifier
877 characters from non-identifier characters.
878 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
879
6a071f4a
FF
880Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
881
882 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
883 * getruntime.c: Only attempt to include sys/resource.h and
884 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
885 are defined.
886
7dd88617
DT
887Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
888
889 * configure.in (alloca detection): Handle alloca directly for interix.
890 * configure: Rebuilt.
891
7a1528bc
MK
892Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
893
894 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
895
76409268
JB
8961999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
897
898 Fix from Dale Hawkins:
5194cf08 899 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
900 reallocated properly if we use it again.
901
902 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
903 stricter about syntax. Always null-terminate string.
904
acbbd80a
MK
905Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
906
907 * configure.in (checkfuncs): Check for sbrk.
908 * config.in: Rebuilt.
909 * configure: Likewise.
910 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
911
92523551
JB
9121999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
913
914 Fix from Marcus Daniels:
915 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
916 identifier looking for another underscore.
917
36eb4217
MK
918Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
919
920 * pexecute.c: Change all references to __UWIN__ to _UWIN.
921 * xmalloc.c: Likewise.
922 (xcalloc): UWIN has sbrk.
923 (xrealloc): Fix guard macro.
924
2c45d1a0
RH
9251999-04-11 Richard Henderson <rth@cygnus.com>
926
927 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
928 or <alloca.h>.
929 * clock.c (GNU_HZ): New definition.
930 (clock): Use it.
931 * getruntime.c: Likewise.
932
933 * config.table: Use mh-beos.
934 * config/mh-beos: New file.
935
391cdef0
MM
9361999-04-11 Mark Mitchell <mark@codesourcery.com>
937
938 * cplus-dem.c (demangle_template_value_parm): Handle
939 pointers-to-members.
940 (do_type): Handle template parameters as qualifiers.
941
9d229989
JB
9421999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
943
944 * cplus-dem.c: Attempt to handle overflows in counts with some
945 semblance of grace.
946 (consume_count): Detect overflows. Return -1 to indicate errors,
947 instead of zero.
948 (demangle_template_value_parm, demangle_template): Handle change
949 to consume_count's return convention.
950
7c72138a
TT
9511999-04-05 Tom Tromey <tromey@cygnus.com>
952
953 * testsuite/regress-demangle: New file.
954 * testsuite/demangle-expected: New file.
955
956 * Makefile.in (all, check, installcheck, info, install-info,
957 clean-info, dvi, install, etags, tags, mostlyclean, clean,
958 distclean, maintainer-clean, realclean): Depend on corresponding
959 `-subdir' target.
960 (all-subdir check-subdir installcheck-subdir info-subdir
961 install-info-subdir clean-info-subdir dvi-subdir
962 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
963 distclean-subdir maintainer-clean-subdir): New target.
964 * testsuite/Makefile.in: New file.
965 * configure: Rebuilt.
966 * configure.in: Create testsuite/Makefile.
967
ae7f7270
MM
9681999-04-02 Mark Mitchell <mark@codesourcery.com>
969
970 * splay-tree.h (splay_tree_compare_pointers): Define.
971
30f72379
MM
9721999-03-30 Mark Mitchell <mark@codesourcery.com>
973
974 * splay-tree.c (splay_tree_compare_ints): Define.
975
4cc48683
TT
9761999-03-30 Tom Tromey <tromey@cygnus.com>
977
978 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
979 don't advance input pointer.
980 (demangle_class_name): If consume_count didn't find a count, do
981 nothing. Don't bother with `strlen' sanity check; consume_count
982 does it for us.
983
3510075c
JL
9841999-03-16 Stan Shebs <shebs@andros.cygnus.com>
985
986 From Art Haas <ahaas@neosoft.com>:
987 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
988 when doing arm or hp style.
989 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 990
89f602a7
MK
991Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
992
993 * pexecute.c (__CYGWIN32__): Rename to
994 (__CYGWIN__): this.
995 * xmalloc.c: Likewise.
996
997 Changes to support i386-pc-uwin.
998 * configure.in (*-*-uwin*): Workaround for vfork bug.
999 * configure: Regenerate.
1000 * pexecute.c (pexecute): Be like standard Unix.
1001 (pwait): Likewise.
1002 * xmalloc.c (first_break): Define.
1003 (xmalloc_set_program_name): Use.
1004 (xmalloc): Use.
1005
9346c824
FS
1006Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1007
1008 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1009
3510075c
JL
1010Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1011
1012 * config.table: Check cygwin*, not cygwin32*.
1013
8ec65f13
DB
1014Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1015
1016 * Makefile.in: Change mkstemp -> mkstemps.
1017
687361c8
ME
1018Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1019
1020 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1021 * configure.in (funcs): Check for and conditionally add mkstemps to
1022 the list of functions libiberty will provide.
1023 * configure: Rebuilt.
5194cf08 1024
b207e09c
MK
1025Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1026
5194cf08 1027 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
1028 platforms that don't have HZ.
1029 * getruntime.c (HZ): Likewise.
1030
16b4c15e
RH
1031Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1032
1033 * Makefile.in (xstrdup.o): Depend on config.h.
1034
38beb75c
UD
1035Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1036
1037 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1038 freeing it.
1039
7e4311a3
KG
1040Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1041
1042 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1043
3510075c
JL
1044Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1045
1046 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1047 splay-tree.o.
1048
10491999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1050
1051 * configure.in: Require autoconf 2.12.1 or higher.
1052
fb9939b8
MM
10531998-12-30 Michael Meissner <meissner@cygnus.com>
1054
1055 * random.c (NULL): Don't redefine NULL if it is already defined.
1056
087aa398
KG
1057Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1058
1059 * argv.c (buildargv): Cast the result of alloca in assignment.
1060
1061 * choose-temp.c: Include stdlib.h.
38beb75c 1062
087aa398
KG
1063 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
1064 (snarf_numeric_literal): Constify first parameter.
1065 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1066 int, not a char.
1067 (demangle_qualifier): Likewise.
1068 (demangle_signature): Cast the argument of a ctype function to
1069 unsigned char.
1070 (arm_pt): Add parens around assignment used as truth value.
1071 (demangle_arm_hp_template): Constify variable `args'.
1072 (do_hpacc_template_const_value): Cast the argument of a ctype
1073 function to unsigned char.
1074 (do_hpacc_template_literal): Remove unused variable `i'.
1075 (snarf_numeric_literal): Constify parameter `args'.
1076 Cast the argument of a ctype function to unsigned char.
1077
1078 * floatformat.c (floatformat_to_double): Add explicit braces to
1079 avoid ambiguous `else'.
38beb75c 1080
087aa398
KG
1081 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
1082 `cstart' and `cend' to unsigned char. Cast the argument of macro
1083 `FOLD', which uses ctype functions, to unsigned char.
1084
1085 * objalloc.c (free): Add prototype.
1086
21f2174d
HPN
1087Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1088
1089 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1090
3510075c
JL
1091Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1092
1093 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
1094 doesn't exist.
1095 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 1096
e8fc8222
AM
1097Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1098
1099 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1100 bumping the pointer we read from. Also prepend these codes,
1101 as we do in other places.
1102
3510075c
JL
11031998-12-18 Nick Clifton <nickc@cygnus.com>
1104
1105 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1106 'const char *' in order to match its usage when calling siblings.
1107 (snarf_numeric_literal): Make first arg 'const char **' in order
1108 to match usage.
11a0bb74 1109
f4f30aa1
JL
1110Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1111
11a0bb74
KG
1112 * choose-temp.c: Don't check IN_GCC anymore.
1113
1114 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1115 * memchr.c (memchr): Likewise.
1116 * memcpy.c (memcpy): Likewise.
1117 * memmove.c (memmove): Likewise.
38beb75c 1118
11a0bb74
KG
1119 * mkstemp.c: Don't check IN_GCC anymore.
1120 * pexecute.c: Likewise.
1121 * splay-tree.c: Likewise.
38beb75c 1122
11a0bb74
KG
1123 * strchr.c (strchr): Use `const', not `CONST'.
1124 * strrchr.c (strrchr): Likewise.
1125 * strtol.c (strtol): Likewise.
1126 * strtoul.c (strtoul): Likewise.
1127
70d5ccef
DT
1128Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1129 Elena Zannoni <ezannoni@cygnus.com>
1130 Stan Shebs <shebs@cygnus.com>
1131 Edith Epstein <eepstein@cygnus.com>
1132 Andres MacLeod <amacleod@cygnus.com>
1133 Satish Pai <pai@apollo.hp.com>
1134
1135 * HP aCC demangling support.
1136 * cplus-dem.c
1137 (main): Remove default to HP style demangling, set to EDG
1138 demangling correctly when -edg specified; set the demangling style
1139 when user specifies 'edg'. Set strip_underscore to
1140 prepends_underscore, if not HPUXHPPA. Set
1141 current_demangling_style to hp_demangling if HPUXHPPA. Set
1142 current demangling style correctly if the switch is hp. Read
1143 label correctly also in the HP style case.
1144 (work_stuff): add temp_start field; add field for volatile member
1145 function.
1146 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
1147 style for this case is the same as ARM.
1148 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1149 (demangle_arm_hp_template): new function. (It was
1150 demangle_arm_pt.); check and set value of temp_start field in
1151 multiple places. Also, when ceching for end of template args,
1152 check to see if at end of static member of template class.
1153 (demangle_class): new local variable : save_class_name_end Don't
1154 include template args in string defining class.
1155 (demangle_class_name): use demangel_arm_hp_template.
1156 (demangle_function_name): handle case where demangling style is
1157 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1158 Handle EDG_DEMANGLING style. Handle constructor and destructor
1159 ops for HP style.
1160 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
1161 styles. global destructor and constructor for HP style are same
1162 as for ARM style. Same for local variables.
1163 (demangle_qualified): handle EDG_DEMANGLING style.
1164 (demangle_signature): add case for volatile member function. For
1165 cases '1' - '9' : initialize the temp_start field to -1 and handle
1166 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1167 and AUTO_DEMANGLING styles. If expecting a function and managed
1168 to demangle the funct args, then handle the LUCID_DEMANGLING,
1169 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1170 class name after "Lnnn_ in HP style case. HP style too needs to
1171 forget types. _nnn is OK for HP style, so don't report failure.
1172 (do_hpacc_template_const_value): new function. Handle template's
1173 value param for HP/aCC.
1174 (do_hpacc_template_literal): new function. Handle a template's
1175 literal parameter for HP aCC.
1176 (recursively_demangle): new function
1177 (snarf_numeric_literal): new function.
1178 (usage): add 'edg' to the list of demangling styles; add hp switch
1179 to message.
1180
8d525fa8
CF
1181Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1182
1183 * pexecute.c: Remove obsolete ifdefed cygwin code.
1184
9b1a92d8
KG
1185Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1186
1187 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1188 * cplus-dem.c: Likewise. Conform to libiberty.h.
1189 * pexecute.c: Likewise.
1190 * splay-tree.c: Likewise.
1191
c85c3232
MS
11921998-11-25 Mike Stump <mrs@wrs.com>
1193
1194 * Makefile.in (splay-tree.o): Add config.h dependency.
1195
35a6cd99
KG
1196Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1197
1198 * configure.in: Use AC_PREREQ(2.12.1).
1199
6e6e34b7
BK
12001998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1201
5194cf08 1202 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 1203
59b67c11
JL
1204Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1205
1206 * mpw.c (mpw_access): Add missing parens.
1207
a6458d1d
KG
1208Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1209
1210 * configure.in: Call AC_HEADER_SYS_WAIT.
1211
1212 * pexecute.c: Include sys/wait.h when !IN_GCC.
1213
3510075c
JL
1214Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1215
1216 * pexecute.c: revert back to checking old Cygwin
1217 preprocessor symbol until some time has passed.
1218
1219Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1220
1221 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1222 since it will now support similar constructs.
1223
a9acf741
KG
1224Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1225
1226 * configure.in: Check for calloc.
1227
1228 * calloc.c: New file.
1229
1230 * xmalloc.c (xcalloc): New function.
1231
a49fb37a
AM
1232Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1233
1234 *cplus-dem.c (demangle_prefix): Use the last "__"
1235 in the mangled name when looking for the signature. This allows
1236 template names to begin with "__".
1237
0e714131
MM
12381998-11-08 Mark Mitchell <mark@markmitchell.com>
1239
ec2288ff
MM
1240 * cplus-dem.c (type_kind_t): Add tk_reference.
1241 (demangle_template_value_parm): Handle it.
1242 (do_type): Use it for references, instead of tk_pointer.
1243
0e714131
MM
1244 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1245 not internal_cplus_demangle.
1246
2931b6d4
KG
1247Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1248
1249 * choose-temp.c: Don't include gansidecl.h.
1250 * mkstemp.c: Likewise.
1251 * pexecute.c: Likewise.
1252
dd8f3ed5
GN
1253Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1254
5194cf08
ZW
1255 * configure.in: detect cygwin* instead of cygwin32*
1256 * configure: regenerate
dd8f3ed5 1257
c5f7c445
KG
1258Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1259
1260 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
1261 whether to include config.h. Possibly include unistd.h in the
1262 !IN_GCC case. Define VFORK_STRING as a printable function call
1263 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1264 defined, include vfork.h. If VMS is defined, define vfork()
1265 appropriately. Remove vfork check on USG, we're using autoconf.
1266 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1267 locally what string to use.
1268
ad3ef78e
MM
12691998-10-26 Mark Mitchell <mark@markmitchell.com>
1270
1271 * splay-tree.c: Tweak include directives to make sure declarations of
1272 xmalloc and free are available.
1273
224301c1
MM
12741998-10-25 Mark Mitchell <mark@markmitchell.com>
1275
1276 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1277 anonymous namespaces.
38beb75c 1278
d9db46fd
MM
12791998-10-23 Mark Mitchell <mark@markmitchell.com>
1280
1281 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1282 with type_quals.
1283 (TYPE_UNQUALIFIED): New macro.
1284 (TYPE_QUAL_CONST): Likewise.
1285 (TYPE_QUAL_VOLATILE): Likewise.
1286 (TYPE_QUAL_RESTRICT): Likewise.
1287 (code_for_qualifier): New function.
1288 (qualifier_string): Likewise.
1289 (demangle_qualifier): Likewise.
1290 (internal_cplus_demangle): Use them.
1291 (demangle_signature): Likewise.
1292 (demangle_template_value_parm): Likewise.
1293 (do_type): Likewise.
1294 (demangle_fund_type)): Likewise.
224301c1 1295
b056ad1c
KG
1296Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1297
1298 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1299 to match prototype.
1300
ed87f9c8
MM
13011998-10-21 Mark Mitchell <mark@markmitchell.com>
1302
1303 * splay-tree.c: New file.
1304 * Makefile.in (CFILES): Add it.
1305 (REQUIRED_OFILES): Likewise.
1306 (splay-tree.o): Add dependencies.
1307
e0c13971
AS
1308Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1309
1310 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1311 range of 'K' index.
1312
91e0f659
KG
1313Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1314
1315 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1316
1317 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1318 `unsigned char'.
1319 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1320 comparing against one.
1321 (cplus_mangle_opname): Likewise.
1322 (demangle_integral_value): Cast argument of ctype macro to
1323 `unsigned char'.
1324 (demangle_template_value_parm): Likewise.
1325 (demangle_template): Initialize variable `bindex'. Cast the
1326 result of `strlen' to (int) when comparing against one. Remove
1327 unused variable `start_of_value_parm'.
1328 (demangle_class_name): Cast the result of `strlen' to (int) when
1329 comparing against one.
1330 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1331 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1332 when comparing against one.
1333 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1334 (get_count): Likewise.
1335 (do_type): Likewise. Cast the result of `strlen' to (int) when
1336 comparing against one.
1337 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1338 (demangle_function_name): Cast the result of `strlen' to (int)
1339 when comparing against one.
1340
1341 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1342 comparing against one.
1343
73aeb2ff
JL
1344Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1345
5194cf08
ZW
1346 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1347 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1348 * config.in, configure: Rebuilt.
ae76f1be 1349
73aeb2ff
JL
1350 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1351 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1352 * config.in, configure: Rebuilt.
1353
dd8f3ed5
GN
1354Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1355
5194cf08 1356 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 1357
f77d8413
MT
1358Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1359
1360 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1361
ca6b370d
JL
1362Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1363
1364 * Merge egcs & devo libiberty.
1365
ab4856b1
ML
1366