* Makefile.in (install-info): Find files to install in either the build
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
0473bdf7
AH
12000-07-07 Andrew Haley <aph@cygnus.com>
2
3 * cplus-dem.c (main): fflush() after emitting last char before
4 waiting for input.
5
eb383413 62000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 7
eb383413
L
8 * cp-demangle.c (demangle_operator_name): Add spaces before
9 names beginning with a letter: delete, delete[], new, new[],
10 sizeof.
11 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 12
eb383413
L
13Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
14
15 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
16
17Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
18
19 * cp-demangle.c (stdio.h): File included unconditionaly.
20 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
21 * dyn-string.c (stdio.h): File included.
22 * partition.c (partition_print): No `&' needed to take the address of
23 a function.
24
252000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26
27 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
28
29 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
30
31 * cp-demangle.c (demangle_char): Change parameter from char to int.
32 (demangle_expression, demangle_expr_primary): Remove extra
33 semi-colon in prototype.
34
35 * dyn-string.c (dyn_string_append_char): Change parameter from
36 char to int.
37
38 * memcmp.c (memcmp): Constify.
39
40 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
41 __extension__.
42
43 * partition.c (elem_compare): Prototype. Don't cast away
44 const-ness.
45
46 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
47
482000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
49
50 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
51
52 * cp-demangle.c: Include demangle.h.
53 (template_arg_list_new): DeANSIfy.
54 (cp_demangle): Make static and add prototype.
55 (operator_code, operators): Constify.
56 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
57
582000-06-05 Alex Samuel <samuel@codesourcery.com>
59
60 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
61 unsigned char.
62 (demangle_unqualified_name): Likewise.
63 (demangle_number_literally): Likewise.
64 (demangle_type): Likewise.
65 (demangle_substitution): Likewise.
66 (is_mangled_char): Likewise, for isalnum.
67
682000-06-04 Alex Samuel <samuel@codesourcery.com>
69
70 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
71 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
72 (cp-demangle.o): New dependency.
73 (dyn-string.o): Likewise.
74
75 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
76
77 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
78 demangler.
79 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
80 demangling mode.
81 (gnu_new_abi_symbol_characters): New function.
82 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
83 file.
84 * cp-demangle.c: New file.
85
f03aa80d
AC
86Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
87
88 * floatformat.c: Add name to each floatformat field.
89
77bfb694
JL
90Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
91
92 * Makefile.in (objalloc.o): Depend on config.h
93
5c82d20a
ZW
942000-05-29 Zack Weinberg <zack@wolery.cumb.org>
95
eb383413 96 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
97 if HAVE_STRING_H.
98 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
99 * objalloc.c: Include config.h. Include stdlib.h and don't
100 declare malloc or free if HAVE_STDLIB_H.
101 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
102 else declare malloc without prototype. Include string.h if
103 HAVE_STRING_H, else declare memset without prototype. Don't
104 include stddef.h.
105
eb383413
L
1062000-05-23 Mike Stump <mrs@wrs.com>
107
108 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
109 -j3.
110
1112000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
112
113 * xmalloc.c: Include config.h for HAVE_SBRK definition.
114
1152000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
116
117 * hashtab.c (hash_pointer): Delete low-order bits which are
118 probably zero, also eliminate a warning on alpha.
119
1202000-05-15 David Edelsohn <edelsohn@gnu.org>
121
122 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
123 on $(enable_shared).
124
1252000-05-10 Jakub Jelinek <jakub@redhat.com>
126
127 * config.table: Use mh-sparcpic for sparc*-*-*.
128
1292000-05-08 Nick Clifton <nickc@cygnus.com>
130
131 * Makefile.in (CFILES): Add strncmp.c.
132 (NEEDED): Add strncmp.
133
1342000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 135
eb383413
L
136 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
137 Cast the arguments to `islower' to `unsigned char'.
138 (print_demangler_list): Prototype.
139
140Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
141
142 * sort.c (UCHAR_MAX): Provide fallback definition.
143
1442000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
145
146 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
147 SUBDIRS.
148
eb383413
L
1492000-04-28 Kenneth Block <block@zk3.dec.com>
150 Jason Merrill <jason@casey.cygnus.com>
151
152 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
153 (cplus_demangle_set_style): New function for setting style.
154 (cplus_demangle_name_to_style): New function to translate name.
155
1562000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
157
158 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
159
160 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
161 (libiberty_AC_FUNC_STRNCMP): Invoke.
162
163 * strncmp.c: New file.
164
165Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
166
167 * hashtab.c (htab_expand): Add prototype.
168 (find_empty_slot_for_expand): Likewise.
169
1702000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
171
172 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
173 match prototype.
174 (htab_expand): Cast the return value of xcalloc.
175
1762000-04-24 Mark Mitchell <mark@codesourcery.com>
177
178 * hashtab.c (hash_pointer): New function.
179 (eq_pointer): Likewise.
180 (htab_hash_pointer): New variable.
181 (htab_eq_pointer): Likewise.
182
1832000-04-23 Mark Mitchell <mark@codesourcery.com>
184
185 * sort.c (sort_pointers): Fix endianness bugs.
186
187 * sort.c: New file.
188 * Makefile.in (CFILES): Add sort.c
189 (REQUIRED_OFILES): Add sort.o.
190 (sort.o): New target.
191
19be4303
JL
1922000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
193
194 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
195 4.3BSD systems.
196
eb383413
L
197Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
198
199 * hashtab.c: Various minor cleanups.
200 (htab_find_slot_with_hash): INSERT is now enum insert_option.
201 (htab_find_slot): Likewise.
202
2032000-04-16 Dave Pitts <dpitts@cozx.com>
204
205 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
206
afe36a78
RH
2072000-04-05 Richard Henderson <rth@cygnus.com>
208
209 * splay-tree.c (splay_tree_remove): New.
210
eb383413
L
2112000-03-30 Mark Mitchell <mark@codesourcery.com>
212
213 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
214 codes.
215 (htab_find_with_hash): Likewise.
216 (htab_find_slot_with_hash): Likewise.
217
2182000-03-29 Zack Weinberg <zack@wolery.cumb.org>
219
220 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
221 unless it will be used. Rearrange loop for better
222 optimization.
223 (higher_prime_number): Add static prototype.
224
b4fe2683
JM
225Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
226
227 * Makefile.in (partition.o): Depend on config.h
228
2292000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
230
231 * hashtab.c (find_empty_slot_for_expand): New function.
232 (htab_expand): Use it instead of htab_find_slot.
233 (htab_find_with_hash): Renamed from htab_find; now accepts extra
234 argument HASH.
235 (htab_find_slot_with_hash): Likewise for htab_find_slot.
236 (htab_find): New wrapper function.
237 (htab_find_slot): Likewise.
238 (htab_traverse): Pass slot, not entry, to called function.
239
2402000-03-09 Alex Samuel <samuel@codesourcery.com>
241
242 * Makefile.in (CFILES): Add partition.c.
243 (REQUIRED_OFILES): Add partition.o.
244 (partition.o): New rule.
245 * partition.c: New file.
246
2472000-03-09 Zack Weinberg <zack@wolery.cumb.org>
248
249 * hashtab.c (htab_create): Set del_f.
250 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
251 Use it.
252
2532000-03-08 Zack Weinberg <zack@wolery.cumb.org>
254
255 * hashtab.c: Remove debugging variables (all_searches,
256 all_collisions, all_expansions). Delete
257 all_hash_table_collisions.
258 (create_hash_table, delete_hash_table, empty_hash_table,
259 find_hash_table_entry, remove_element_from_hash_table_entry,
260 clear_hash_table_slot, traverse_hash_table, hash_table_size,
261 hash_table_elements_number, hash_table_collisions): Rename to:
262 htab_create, htab_delete, htab_empty, htab_find_slot,
263 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
264 htab_elements, htab_collisions.
265 (htab_find): New function, handles common case where you don't
266 plan to add or delete an entry.
267 (htab_expand): Don't create a whole new table, just a new
268 entry vector.
269 (htab_find_slot): Simplify logic.
270
08372f14
ILT
2711999-08-03 Ian Lance Taylor <ian@zembu.com>
272
273 * floatformat.c: Add casts to avoid signed/unsigned warnings.
274 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
275
276 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
277 $(TARGETLIB)n so it works on MSDOS.
278 (install_to_tooldir): Likewise.
279
9c8ac5a9
ILT
2801999-07-21 Ian Lance Taylor <ian@zembu.com>
281
282 From Mark Elbrecht:
283 * makefile.dos: Remove; obsolete.
8f36e47c 284 * configure.bat: Remove; obsolete.
9c8ac5a9 285
0c0a36a4
ILT
2861999-07-11 Ian Lance Taylor <ian@zembu.com>
287
288 * splay-tree.c (splay_tree_insert): Add initialization to avoid
289 warning.
290
2912000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
292
293 * pexecute.c: Conditionally include string.h.
b4fe2683 294 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
295
2962000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
297
298 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
299 we're using gcc.
300
301 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
302
3031999-12-27 Geoff Keating <geoffk@cygnus.com>
304
305 * vasprintf.c (int_vasprintf): Don't re-read the format character
306 as this mishandles strings like '%%s'.
307
3081999-12-05 Mark Mitchell <mark@codesourcery.com>
309
310 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
311 rather than struct splay_tree_node.
312 (splay_tree_insert): Use struct splay_tree_s rather than struct
313 splay_tree.
314
315Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
316
317 * hashtab.c (sys/types.h): File included.
318
3191999-11-22 Jason Merrill <jason@casey.cygnus.com>
320
321 * strtoul.c, strtol.c, random.c: Remove advertising clause from
322 BSD license, pursuant with
323
324 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
325
326Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
327
328 * hashtab.c: Include stdio.h.
329
330Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
331
332 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
333
334Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
335
336 * xstrdup (sys/types.h): Include this file.
337
3381999-10-28 Nathan Sidwell <nathan@acm.org>
339
340 * Makefile.in (SUBDIRS): New macro.
341 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
342 avoid multiple subdirectory cleaning.
343 (*-subdir): Use SUBDIRS.
344
3451999-10-25 Jim Kingdon <http://developer.redhat.com/>
346
347 * cplus-dem.c: Move declarations of standard_symbol_characters and
348 hp_symbol_characters inside #ifdef MAIN to avoid compiler
349 warnings.
350
3511999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
352
353 * hashtab.c (find_hash_table_entry): When returning a
354 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
355 (clear_hash_table_slot): New function which deletes an entry
356 by its position in the table, not its value.
357 (traverse_hash_table): New function which calls a hook
358 function for every live entry in the table.
359
3601999-10-19 Mark Mitchell <mark@codesourcery.com>
361
362 * cplus-dem.c (INTBUF_SIZE): New macro.
363 (string_append_template_idx): New function.
364 (demangle_expression): Likewise.
365 (demangle_integral_value): Use it.
366 (demangle_real_value): New function, split out from ...
367 (demangle_template_value_parm): ... here. Use
368 string_append_template_idx. Use demangle_real_value.
369 (demangle_template): Use string_append_template_idx.
370 (demangle_qualified): Use consume_count_with_underscores.
371 (get_count): Tweak formatting.
372 (do_type): Use string_append_template_idx.
b4fe2683 373
0c0a36a4
ILT
3741999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
375
376 * calloc.c: Add a public domain notice.
377
378Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
379
380 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
381
382Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
383
384 * Makefile.in (CFILES): Add hashtab.c
385 (REQUIRED_OFILES): Add hashtab.o
386 (hashtab.o): Add dependencies.
387 * hashtab.c: New file
388
389Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
390
391 * basename.c (DIR_SEPARATOR): New macro.
392 (DIR_SEPARATOR_2): Likewise.
393 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
394 (IS_DIR_SEPARATOR): Likewise.
395 (main): Handle MSDOS style pathname.
396
3971999-10-11 Mark Mitchell <mark@codesourcery.com>
398
399 * cplus-dem.c (do_type): Handle pointer to member types whose
400 enclosing classes have namespace scope.
401
402Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
403
404 * config.table: Provide a backup shell for executing move-if-change.
405
4061999-10-02 Mark Mitchell <mark@codesourcery.com>
407
408 * xmalloc.c (xmalloc): Fix spelling error.
409 (xcalloc, xrealloc): Likewise.
410
4111999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
412
413 * cplus-dem.c (fancy_abort, demangle_integral_value,
414 demangle_arm_hp_template, recursively_demangle,
415 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
416 (program_name, program_version, fatal): Constify a char*.
417 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
418 (main): Call return, not exit.
419
4201999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
421
422 * choose-temp.c: Remove obsolete comment about gcc.
423 (make_temp_file): Constify a char*.
424
425Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
426
427 * xmemdup.c: Include sys/types.h.
428
4291999-09-07 Jeff Garzik <jgarzik@pobox.com>
430
431 * xmemdup.c: New xmemdup function.
432 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
433
434Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
435
b4fe2683 436 * config.table: Add openedition target.
0c0a36a4
ILT
437 * config/mh-openedition: New file.
438
439Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
440
441 * pexecute.c (pexecute): Fill in temp_base when needed.
442
4431999-08-31 Richard Henderson <rth@cygnus.com>
444
445 * getpwd.c: Check HAVE_GETCWD before defining it away.
446
4471999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
448
449 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
450 (REQUIRED_OFILES): Add getpwd.o.
451 (getpwd.o): Add target.
452
453 * configure.in (AC_PREREQ): Bump to 2.13.
454 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
455
456 * getpwd.c: New file, moved here from gcc.
457
4581999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
459
460 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
461 comparing against a signed quantity.
462 (arm_special): Likewise.
463 (demangle_fund_type): Likewise.
464 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 465 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
466 (main): Constify variable `valid_symbols'.
467
468Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
469
470 * strtoul.c (strtoul): Add parentheses around && within ||.
471
472Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
473
474 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
475 libdir, libsubdir and tooldir.
476
4771999-08-01 Mark Mitchell <mark@codesourcery.com>
478
479 * splay-tree.c (splay_tree_insert): Return the new node.
480
35ca97ea
RH
4811999-07-14 Richard Henderson <rth@cygnus.com>
482
b4fe2683 483 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
484 prototyping directly.
485 * choose-temp.c: Conditionally include string.h.
486
0c0a36a4
ILT
4871999-07-12 Jason Merrill <jason@yorick.cygnus.com>
488
489 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
490
af32ff69
ILT
4911999-07-11 Ian Lance Taylor <ian@zembu.com>
492
493 * splay-tree.c (splay_tree_insert): Add initialization to avoid
494 warning.
495
0c0a36a4
ILT
4961999-07-07 Jason Merrill <jason@yorick.cygnus.com>
497
498 * Makefile.in (needed-list): Only include stuff we actually need
499 for libstdc++.
500
5011999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
502
503 * configure.in (checkfuncs): Add gettimeofday.
504 * config.in, configure: Regenerated.
505
506Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
507
508 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
509 the test fails.
510 * configure: Regenerate.
511
5121999-06-10 Mike Stump <mrs@wrs.com>
513
514 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
515 parallel builds.
516
5171999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
518
519 * putenv.c: Include ansidecl.h to define `const'.
520 * setenv.c: Likewise.
521
522Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
523
524 * Makefile.in (CFILES): Add putenv.c and setenv.c.
525 * configure.in (funcs): Add putenv and setenv.
526 (AC_CHECK_FUNCS): Check for putenv and setenv.
527 * configure: Rebuilt.
528 * putenv.c setenv.c: New files.
529
530 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
531 bytes of space using malloc.
532
533Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
534
535 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
536 the *mangled pointer beyond the end of the string. Clean up code to
537 match prevailing coding style.
538
5391999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
540
541 * tmpnam.c (L_tmpnam): Fix typo.
542
543Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
544
545 * cplus-dem.c (standard_symbol_characters): Renamed from
546 standard_symbol_alphabet. No longer modify TABLE.
547 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
548 modify TABLE.
549 (main): Corresponding changes. Use strchr to determine if a
550 character is valid.
551
e9868447
JB
5521999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
553
554 * cplus-dem.c (main): Use table lookup to distinguish identifier
555 characters from non-identifier characters.
556 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
557
33fbbfbc
RH
558Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
559
560 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
561 * getruntime.c: Only attempt to include sys/resource.h and
562 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
563 are defined.
564
0c0a36a4
ILT
565Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
566
567 * configure.in (alloca detection): Handle alloca directly for interix.
568 * configure: Rebuilt.
569
570Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
571
572 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
573
252b5132
RH
5741999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
575
576 Fix from Dale Hawkins:
b4fe2683 577 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
578 reallocated properly if we use it again.
579
580 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
581 stricter about syntax. Always null-terminate string.
582
c1687039
ILT
583Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
584
585 * configure.in (checkfuncs): Check for sbrk.
586 * config.in: Rebuilt.
587 * configure: Likewise.
588 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
589
0c0a36a4
ILT
5901999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
591
592 Fix from Marcus Daniels:
593 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
594 identifier looking for another underscore.
595
596Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
597
598 * pexecute.c: Change all references to __UWIN__ to _UWIN.
599 * xmalloc.c: Likewise.
600 (xcalloc): UWIN has sbrk.
601 (xrealloc): Fix guard macro.
602
252b5132
RH
6031999-04-11 Richard Henderson <rth@cygnus.com>
604
605 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
606 or <alloca.h>.
607 * clock.c (GNU_HZ): New definition.
608 (clock): Use it.
609 * getruntime.c: Likewise.
610
611 * config.table: Use mh-beos.
612 * config/mh-beos: New file.
613
0c0a36a4
ILT
6141999-04-11 Mark Mitchell <mark@codesourcery.com>
615
616 * cplus-dem.c (demangle_template_value_parm): Handle
617 pointers-to-members.
618 (do_type): Handle template parameters as qualifiers.
619
252b5132
RH
6201999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
621
622 * cplus-dem.c: Attempt to handle overflows in counts with some
623 semblance of grace.
624 (consume_count): Detect overflows. Return -1 to indicate errors,
625 instead of zero.
626 (demangle_template_value_parm, demangle_template): Handle change
627 to consume_count's return convention.
628
0c0a36a4
ILT
6291999-04-05 Tom Tromey <tromey@cygnus.com>
630
631 * testsuite/regress-demangle: New file.
632 * testsuite/demangle-expected: New file.
252b5132 633
0c0a36a4
ILT
634 * Makefile.in (all, check, installcheck, info, install-info,
635 clean-info, dvi, install, etags, tags, mostlyclean, clean,
636 distclean, maintainer-clean, realclean): Depend on corresponding
637 `-subdir' target.
638 (all-subdir check-subdir installcheck-subdir info-subdir
639 install-info-subdir clean-info-subdir dvi-subdir
640 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
641 distclean-subdir maintainer-clean-subdir): New target.
642 * testsuite/Makefile.in: New file.
643 * configure: Rebuilt.
644 * configure.in: Create testsuite/Makefile.
252b5132
RH
645
6461999-04-02 Mark Mitchell <mark@codesourcery.com>
647
648 * splay-tree.h (splay_tree_compare_pointers): Define.
649
6501999-03-30 Mark Mitchell <mark@codesourcery.com>
651
652 * splay-tree.c (splay_tree_compare_ints): Define.
653
6541999-03-30 Tom Tromey <tromey@cygnus.com>
655
656 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
657 don't advance input pointer.
658 (demangle_class_name): If consume_count didn't find a count, do
659 nothing. Don't bother with `strlen' sanity check; consume_count
660 does it for us.
661
6621999-03-16 Stan Shebs <shebs@andros.cygnus.com>
663
664 From Art Haas <ahaas@neosoft.com>:
665 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
666 when doing arm or hp style.
667 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 668
252b5132
RH
669Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
670
671 * pexecute.c (__CYGWIN32__): Rename to
672 (__CYGWIN__): this.
673 * xmalloc.c: Likewise.
674
675 Changes to support i386-pc-uwin.
676 * configure.in (*-*-uwin*): Workaround for vfork bug.
677 * configure: Regenerate.
678 * pexecute.c (pexecute): Be like standard Unix.
679 (pwait): Likewise.
680 * xmalloc.c (first_break): Define.
681 (xmalloc_set_program_name): Use.
682 (xmalloc): Use.
683
684Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
685
686 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
687
688Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
689
690 * config.table: Check cygwin*, not cygwin32*.
691
692Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
693
694 * Makefile.in: Change mkstemp -> mkstemps.
695
696Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
697
698 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
699 * configure.in (funcs): Check for and conditionally add mkstemps to
700 the list of functions libiberty will provide.
701 * configure: Rebuilt.
b4fe2683 702
252b5132
RH
703Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
704
b4fe2683 705 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
706 platforms that don't have HZ.
707 * getruntime.c (HZ): Likewise.
708
709Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
710
711 * Makefile.in (xstrdup.o): Depend on config.h.
712
713Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
714
715 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
716 freeing it.
717
718Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
719
720 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
721
722Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
723
724 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
725 splay-tree.o.
726
7271999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
728
729 * configure.in: Require autoconf 2.12.1 or higher.
730
7311998-12-30 Michael Meissner <meissner@cygnus.com>
732
733 * random.c (NULL): Don't redefine NULL if it is already defined.
734
735Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
736
737 * argv.c (buildargv): Cast the result of alloca in assignment.
738
739 * choose-temp.c: Include stdlib.h.
740
741 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
742 (snarf_numeric_literal): Constify first parameter.
743 (code_for_qualifier): Avoid a gcc extension, make the parameter an
744 int, not a char.
745 (demangle_qualifier): Likewise.
746 (demangle_signature): Cast the argument of a ctype function to
747 unsigned char.
748 (arm_pt): Add parens around assignment used as truth value.
749 (demangle_arm_hp_template): Constify variable `args'.
750 (do_hpacc_template_const_value): Cast the argument of a ctype
751 function to unsigned char.
752 (do_hpacc_template_literal): Remove unused variable `i'.
753 (snarf_numeric_literal): Constify parameter `args'.
754 Cast the argument of a ctype function to unsigned char.
755
756 * floatformat.c (floatformat_to_double): Add explicit braces to
757 avoid ambiguous `else'.
758
759 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
760 `cstart' and `cend' to unsigned char. Cast the argument of macro
761 `FOLD', which uses ctype functions, to unsigned char.
762
763 * objalloc.c (free): Add prototype.
764
765Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
766
767 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
768
769Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
770
771 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
772 doesn't exist.
773 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 774
252b5132
RH
775Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
776
777 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
778 bumping the pointer we read from. Also prepend these codes,
779 as we do in other places.
780
7811998-12-18 Nick Clifton <nickc@cygnus.com>
782
783 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
784 'const char *' in order to match its usage when calling siblings.
785 (snarf_numeric_literal): Make first arg 'const char **' in order
786 to match usage.
787
788Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
789
790 * choose-temp.c: Don't check IN_GCC anymore.
791
792 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
793 * memchr.c (memchr): Likewise.
794 * memcpy.c (memcpy): Likewise.
795 * memmove.c (memmove): Likewise.
796
797 * mkstemp.c: Don't check IN_GCC anymore.
798 * pexecute.c: Likewise.
799 * splay-tree.c: Likewise.
800
801 * strchr.c (strchr): Use `const', not `CONST'.
802 * strrchr.c (strrchr): Likewise.
803 * strtol.c (strtol): Likewise.
804 * strtoul.c (strtoul): Likewise.
805
806Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
807 Elena Zannoni <ezannoni@cygnus.com>
808 Stan Shebs <shebs@cygnus.com>
809 Edith Epstein <eepstein@cygnus.com>
810 Andres MacLeod <amacleod@cygnus.com>
811 Satish Pai <pai@apollo.hp.com>
812
813 * HP aCC demangling support.
814 * cplus-dem.c
815 (main): Remove default to HP style demangling, set to EDG
816 demangling correctly when -edg specified; set the demangling style
817 when user specifies 'edg'. Set strip_underscore to
818 prepends_underscore, if not HPUXHPPA. Set
819 current_demangling_style to hp_demangling if HPUXHPPA. Set
820 current demangling style correctly if the switch is hp. Read
821 label correctly also in the HP style case.
822 (work_stuff): add temp_start field; add field for volatile member
823 function.
824 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
825 style for this case is the same as ARM.
826 (demangle_args): handle EDG_DEMANGLING style; support HP style.
827 (demangle_arm_hp_template): new function. (It was
828 demangle_arm_pt.); check and set value of temp_start field in
829 multiple places. Also, when ceching for end of template args,
830 check to see if at end of static member of template class.
831 (demangle_class): new local variable : save_class_name_end Don't
832 include template args in string defining class.
833 (demangle_class_name): use demangel_arm_hp_template.
834 (demangle_function_name): handle case where demangling style is
835 HP_DEMANGLING and currently point at an 'X' in the mangled name.
836 Handle EDG_DEMANGLING style. Handle constructor and destructor
837 ops for HP style.
838 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
839 styles. global destructor and constructor for HP style are same
840 as for ARM style. Same for local variables.
841 (demangle_qualified): handle EDG_DEMANGLING style.
842 (demangle_signature): add case for volatile member function. For
843 cases '1' - '9' : initialize the temp_start field to -1 and handle
844 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
845 and AUTO_DEMANGLING styles. If expecting a function and managed
846 to demangle the funct args, then handle the LUCID_DEMANGLING,
847 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
848 class name after "Lnnn_ in HP style case. HP style too needs to
849 forget types. _nnn is OK for HP style, so don't report failure.
850 (do_hpacc_template_const_value): new function. Handle template's
851 value param for HP/aCC.
852 (do_hpacc_template_literal): new function. Handle a template's
853 literal parameter for HP aCC.
854 (recursively_demangle): new function
855 (snarf_numeric_literal): new function.
856 (usage): add 'edg' to the list of demangling styles; add hp switch
857 to message.
858
859Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
860
861 * pexecute.c: Remove obsolete ifdefed cygwin code.
862
863Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
864
865 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
866 * cplus-dem.c: Likewise. Conform to libiberty.h.
867 * pexecute.c: Likewise.
868 * splay-tree.c: Likewise.
869
8701998-11-25 Mike Stump <mrs@wrs.com>
871
872 * Makefile.in (splay-tree.o): Add config.h dependency.
873
874Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
875
876 * configure.in: Use AC_PREREQ(2.12.1).
877
8781998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
879
b4fe2683 880 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
881
882Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
883
884 * mpw.c (mpw_access): Add missing parens.
885
886Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
887
888 * configure.in: Call AC_HEADER_SYS_WAIT.
889
890 * pexecute.c: Include sys/wait.h when !IN_GCC.
891
892Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
893
894 * pexecute.c: revert back to checking old Cygwin
895 preprocessor symbol until some time has passed.
896
897Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
898
899 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
900 since it will now support similar constructs.
901
902Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
903
904 * configure.in: Check for calloc.
905
906 * calloc.c: New file.
907
908 * xmalloc.c (xcalloc): New function.
909
910Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
911
912 *cplus-dem.c (demangle_prefix): Use the last "__"
913 in the mangled name when looking for the signature. This allows
914 template names to begin with "__".
915
9161998-11-08 Mark Mitchell <mark@markmitchell.com>
917
918 * cplus-dem.c (type_kind_t): Add tk_reference.
919 (demangle_template_value_parm): Handle it.
920 (do_type): Use it for references, instead of tk_pointer.
921
922 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
923 not internal_cplus_demangle.
924
925Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
926
927 * choose-temp.c: Don't include gansidecl.h.
928 * mkstemp.c: Likewise.
929 * pexecute.c: Likewise.
930
931Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
932
b4fe2683
JM
933 * configure.in: detect cygwin* instead of cygwin32*
934 * configure: regenerate
252b5132
RH
935
936Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
937
938 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
939 whether to include config.h. Possibly include unistd.h in the
940 !IN_GCC case. Define VFORK_STRING as a printable function call
941 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
942 defined, include vfork.h. If VMS is defined, define vfork()
943 appropriately. Remove vfork check on USG, we're using autoconf.
944 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
945 locally what string to use.
946
9471998-10-26 Mark Mitchell <mark@markmitchell.com>
948
949 * splay-tree.c: Tweak include directives to make sure declarations of
950 xmalloc and free are available.
951
9521998-10-25 Mark Mitchell <mark@markmitchell.com>
953
954 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
955 anonymous namespaces.
956
9571998-10-23 Mark Mitchell <mark@markmitchell.com>
958
959 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
960 with type_quals.
961 (TYPE_UNQUALIFIED): New macro.
962 (TYPE_QUAL_CONST): Likewise.
963 (TYPE_QUAL_VOLATILE): Likewise.
964 (TYPE_QUAL_RESTRICT): Likewise.
965 (code_for_qualifier): New function.
966 (qualifier_string): Likewise.
967 (demangle_qualifier): Likewise.
968 (internal_cplus_demangle): Use them.
969 (demangle_signature): Likewise.
970 (demangle_template_value_parm): Likewise.
971 (do_type): Likewise.
972 (demangle_fund_type)): Likewise.
973
974Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
975
976 * splay-tree.c (splay_tree_foreach_helper): Make definition static
977 to match prototype.
978
9791998-10-21 Mark Mitchell <mark@markmitchell.com>
980
981 * splay-tree.c: New file.
982 * Makefile.in (CFILES): Add it.
983 (REQUIRED_OFILES): Likewise.
984 (splay-tree.o): Add dependencies.
985
986Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
987
988 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
989 range of 'K' index.
990
991Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
992
993 * choose-temp.c: Prototype mkstemps() when IN_GCC.
994
995 * cplus-dem.c (consume_count): Cast argument of ctype macro to
996 `unsigned char'.
997 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
998 comparing against one.
999 (cplus_mangle_opname): Likewise.
1000 (demangle_integral_value): Cast argument of ctype macro to
1001 `unsigned char'.
1002 (demangle_template_value_parm): Likewise.
1003 (demangle_template): Initialize variable `bindex'. Cast the
1004 result of `strlen' to (int) when comparing against one. Remove
1005 unused variable `start_of_value_parm'.
1006 (demangle_class_name): Cast the result of `strlen' to (int) when
1007 comparing against one.
1008 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1009 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1010 when comparing against one.
1011 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1012 (get_count): Likewise.
1013 (do_type): Likewise. Cast the result of `strlen' to (int) when
1014 comparing against one.
1015 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1016 (demangle_function_name): Cast the result of `strlen' to (int)
1017 when comparing against one.
1018
1019 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1020 comparing against one.
1021
1022Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1023
b4fe2683
JM
1024 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1025 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1026 * config.in, configure: Rebuilt.
252b5132
RH
1027
1028 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1029 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1030 * config.in, configure: Rebuilt.
1031
1032Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1033
b4fe2683 1034 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
1035
1036Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1037
1038 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1039
1040Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1041
1042 * Merge egcs & devo libiberty.
1043