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