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