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