]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* install.tex: Document profiledbootstrap.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
5958dc33 12003-06-03 Nick Clifton <nickc@redhat.com>
2
3 * asprintf.c: Change comment to note that -1 is returned upon
4 error.
5 * vasprintf.c: Likewise.
6 (vasprintf): Return -1 upon error.
7 * functions.texi: Document changes to asprintf and vasprintf.
8
f11036bc 92003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
10
11 * config.table: Accept i[345867]86 variant.
12
ffa082ba 132003-05-15 Jim Blandy <jimb@redhat.com>
14
15 * hex.c (_hex_value): Make this unsigned.
16 (hex_value): Update documentation for new return type. hex_value
17 now expands to an unsigned int expression, to avoid unexpected
18 sign extension when we store it in a bfd_vma, which is larger than
19 int on some platforms.
20 * functions.texi: Regenerated.
21
d6dfdca2 222003-05-07 Josef Zlomek <zlomekj@suse.cz>
23
24 * splay-tree.c (splay_tree_predecessor): Fix comment.
25 (splay_tree_successor): Fix comment.
26
b3552be1 272003-05-07 Jason Merrill <jason@redhat.com>
28
24bfa234 29 * hashtab.c (iterative_hash): New fn.
b3552be1 30 * configure.in: Add AC_C_BIGENDIAN_CROSS.
31 * aclocal.m4: Include accross.m4.
32 * configure, config.in: Regenerate.
33
9bb0a517 342003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35
36 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
37 * configure: Regenerate.
38
ddb6bca9 392003-05-03 Carlo Wood <carlo@alinoe.com>
40
41 * cp-demangle.c: Fix typo in "char_traints" string-literal.
42
8806a402 432003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44
45 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
46 (main): Test that we don't write too much data.
47
09fd37ef 482003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
49
50 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
51 vsnprintf.
52 * snprintf.c, vsnprintf.c: New files.
53 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
54 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
55 Regenerate dependencies.
56
57 * functions.texi, configure, config.in: Regenerated.
58
79d940a3 592003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
60
61 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
62 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
63 and stpncpy.
64 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
65 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
66 Regenerate dependencies.
67
68 * functions.texi, configure, config.in: Regenerated.
69
ca3ccdf6 702003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
71
72 * argv.c: Fix comments.
73 * calloc.c: Don't unnecessarily include "libiberty.h".
74 (bzero): Add prototype.
75 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
76 * getcwd.c (getcwd): Use standard definition to avoid conflicts
77 with system headers.
78 * hashtab.c (htab_traverse): Delete unused variables.
79 * rename.c: Include "ansidecl.h".
80 (rename): Use standard definition to avoid conflicts with system
81 headers.
82 * strsignal.c: Rely on ANSI_PROTOTYPES.
83 * strstr.c: Check GNUC >= 2, not GNUC == 2.
84 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
85 * vprintf.c: Include "ansidecl.h" earlier, rely on
86 ANSI_PROTOTYPES.
87 * vsprintf.c: Include "ansidecl.h" earlier, rely on
88 ANSI_PROTOTYPES and possibly include <stdarg.h>.
89
90 * Makefile.in: Regenerate dependencies.
91
6b5ad644 922003-04-15 DJ Delorie <dj@redhat.com>
93
94 * maint-tool (deps): Scan for headers in $srcdir also.
95
d526b550 962003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
97
98 PR target/10338
99 PR bootstrap/10198
100 PR bootstrap/10140
101 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
102 __mempcpy.
103 * regex.c (regerror): Likewise.
104
83f85421 1052003-04-14 Roger Sayle <roger@eyesopen.com>
106
107 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
108 * memchr.c: Likewise.
109 * strcasecmp.c: Likewise.
110 * strncasecmp.c: Likewise.
111 * strncmp.c: Likewise.
112 * xatexit.c: Likewise.
113 * xmalloc.c: Likewise.
114
115 * copysign.c: Use traditional function declaration instead of DEFUN.
116 * sigsetmask.c: Likewise.
117
118 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
119 * memset.c: Likewise.
120
121 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
122 * memmove.c: Likewise.
123
68acb842 1242003-04-14 Roger Sayle <roger@eyesopen.com>
125
126 * strdup.c (strdup): Tweak implementation to use memcpy.
127
b5e94eb4 1282003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
129
130 * configure.in (HAVE_UINTPTR_T): Always define.
131 * configure: Regenerated.
132
62133c30 1332003-03-23 Alexandre Oliva <aoliva@redhat.com>
134
135 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
136 instead of $$CC alone.
137 (install_to_tooldir): Use it.
138
6d05ae35 1392003-17-03 Jan Hubicka <jh@suse.cz>
140
141 * hashtab.c (htab_traverse_noresize): Break out from ...
142 * hashtab.c (htab_traverse): ... here.
143
b9af005f 1442003-12-03 Jan Hubicka <jh@suse.cz>
145
6d4061d0 146 * hashtab.c (htab_expand): Fix warning.
147
b9af005f 148 * hashtab.c (htab_expand): Compute the size of hashtable based
149 on the number of elements actually used.
150 (htab_traverse): Call htab_expand when table is too empty.
151
68f6f1d9 1522003-03-11 Carlo Wood <carlo@gnu.org>
153
154 * cplus-dem.c (demangle_integral_value): Correction to reflect
155 patch of 2002-01-10 in order to also make negative multi-digits
156 without leading underscore work.
157
ac5e00d3 1582003-03-03 Mark Mitchell <mark@codesourcery.com>
159
160 * cplus-dem.c: Add license exception to copyright notice.
161
df4b17bf 1622003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
163
164 * physmem.c: Formatting changes from upstream.
165
eafe92ea 1662003-02-24 Danny Smith <dannysmith@users.source.forge.net>
167
168 * physmem.c (physmem_total): Add _WIN32 support.
169 (physmem_available): Likewise.
170
5833978f 1712003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
172
173 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
174 GSI_PHYSMEM.
175 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
176
4195ec6a 1772003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
178
179 * configure.in: Check for sys/systemcfg.h and
180 _system_configuration.
181 * physmem.c: Add support for AIX. Tweek formatting as per
182 upstream coreutils beta.
183
0991d38e 1842003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
185 Richard Earnshaw <rearnsha@arm.com>
186 Geoffrey Keating <geoffk@apple.com>
187
188 * configure.in: Check for sys/sysctl.h and sysctl.
189 * physmem.c: Add support for *bsd and darwin.
190 * Makefile.in: Generate depedency for physmem.o.
191
622d92fb 1922003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
193
194 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
195 Tru64 UNIX.
196 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
197 Tru64 UNIX.
198
199 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
200 machine/hal_sysinfo.h, sys/table.h.
201 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
202 * configure, config.in: Regenerate.
203
8f3b8386 2042003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
205
206 * configure.in: Check for sys/sysmp.h and sysmp.
207 * physmem.c: Pull upstream copy, add support for irix6.
208
209 * config.in, configure: Regenerated.
210
25b160f7 2112003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
212
213 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
214 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
215 pstat_getdynamic.
216
5cf67f1b 2172003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
218
219 * Makefile.in (CFILES): Add physmem.c.
220 (REQUIRED_OFILES): Add physmem.o.
221 * configure.in: Check for sys/pstat.h.
222 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
223 * physmem.c: New file, copied from textutils.
224
225 * config.in, configure: Regenerated.
226
846a645c 2272003-02-20 Daniel Jacobowitz <drow@mvista.com>
228
229 * Makefile.in (CFILES): Add lrealpath.c.
230 (REQUIRED_OFILES): Add lrealpath.o.
231 (lrealpath.o): Add rule.
232 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
233 * configure.in: Add realpath and canonicalize_file_name to
234 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
235 for canonicalize_file_name.
236 * lrealpath.c: New file.
237 * make-relative-prefix.c: Update documentation.
238 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
239 * config.in: Regenerated.
240 * configure: Regenerated.
241 * functions.texi: Regenerated.
242
82561650 2432003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
244
245 * cplus_dem.c: Fix typo: intializes -> initializes.
246
e4e6363f 2472003-02-20 Alexandre Oliva <aoliva@redhat.com>
248
249 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
250 config.status.
251 * configure: Rebuilt.
252
cc720498 2532003-02-13 Daniel Jacobowitz <drow@mvista.com>
254
255 Fix PR c++/7612.
256 * cplus-dem.c (demangle_signature): Call string_delete.
257 Remove extra string_init.
258 (demangle_arm_hp_template): Call string_delete instead of
259 string_clear. Add missing string_delete call.
260 (demangle_qualified): Add missing string_delete call.
261 (do_type): Remove unused variable btype. Add missing string_delete
262 call. Call string_delete instead of string_clear.
263 (demangle_fund_type): Move variable btype inside of the switch
264 statement. Add missing string_delete call.
265 (do_arg): Call string_delete instead of string_clear. Remove extra
266 string_init.
267 (demangle_nested_args): Free work->previous_argument.
268
d94d977c 2692003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
270
271 * acconfig.h: New file. Add uintptr_t.
272 * config.in: Regenerated.
273
5533bc76 2742003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
275
276 * libiberty.texi: Update to GFDL 1.2.
277
7f13318a 2782003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
279
280 * Makefile.in (libiberty_topdir): New subst.
281 (mkinstalldirs): Redefine in terms of the above.
282 * configure.in: AC_SUBST it.
283 * configure: Regenerate.
284
9d2299ec 2852003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
286
287 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
288 (info-subdir, install-info-subdir, clean-info-subdir)
289 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
290 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
291 Pass $(FLAGS_TO_PASS).
292
49f7db63 2932003-01-27 Alexandre Oliva <aoliva@redhat.com>
294
295 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
296 /`$$CC -print-multi-os-directory`.
297
a21acbbb 2982003-01-26 Daniel Jacobowitz <drow@mvista.com>
299
300 * hashtab.c (htab_create_alloc_ex): New function.
301 (hatab_set_functions_ex): New function.
302 (htab_delete, htab_expand): Support alternate allocation functions.
303
8c171144 3042003-01-24 Christopher Faylor <cgf@redhat.com>
305
306 * configure.in: Remove special pex-cygwin consideration.
307 * configure: Regenerate.
308 * pex-cygwin.c: Remove.
309 * Makefile.in: Remove pex-cygwin.[co] lines.
310
8cb0536d 3112003-01-24 Zack Weinberg <zack@codesourcery.com>
312
313 * Makefile.in (CFILES): Add pex-*.c.
314 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
315 (CONFIGURED_OFILES): Add pex-*.o.
316 (TEXIFILES): Add pexecute.txh.
317 (pexecute.o): Delete rule.
318 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
319 pex-unix.o, pex-win32.o): New rules.
320 * configure.in: Change AC_INIT argument to xmalloc.c.
321 Compute appropriate pexecute implementation and substitute it
322 as @pexecute@.
323
324 * pexecute.c: Split up into...
325 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
326 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
327 new files.
328
329 * functions.texi: Regenerate.
330 * configure: Regenerate.
331
aa5761b7 3322003-01-20 Josef Zlomek <zlomekj@suse.cz>
333
334 * hashtab.c (htab_expand): Fix allocation of new entries.
335
71aad3b8 3362003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
337
338 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
339
2e6a336d 340 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
341 mkinstalldirs command.
342
e162e528 3432002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
344
345 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
346 Define for hosts with HOST_EXECUTABLE_SUFFIX.
347
aba68506 3482002-11-24 Nick Clifton <nickc@redhat.com>
349
350 * make-relative-prefix.c (make_relative_prefix): Ensure return
351 string is empty before using strcat to construct it.
352
5feeeb38 3532002-11-22 Daniel Jacobowitz <drow@mvista.com>
354
355 * Makefile.in: Add make-relative-prefix.c.
356 * make-relative-prefix.c: New file.
357 * functions.texi: Rebuilt.
358
d7022963 3592002-11-16 Jakub Jelinek <jakub@redhat.com>
360
361 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
362 used with arguments in traditional C' warnings.
363
dacb9fcc 3642002-10-16 Jakub Jelinek <jakub@redhat.com>
365
366 * config.table: Use mh-s390pic for s390x too.
367
ff02de61 3682002-10-06 Andreas Jaeger <aj@suse.de>
369
370 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
371 variable and of strict-aliasing warning.
372 (grow_vect): Use char as first parameter.
373
5f7912d8 3742002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
375
376 * Makefile.in (all): Fix multilib parallel build.
377
05455547 3782002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
379
380 * cp-demangle.c (demangling_new): Cast 0 to enum.
381 (demangle_char): Cast return of strdup to char *.
382 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
383 (is_gnu_v3_mangled_dtor): Likewise.
384 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
385 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
386 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
387 * md5.c (md5_process_bytes): Cast results back to const void *.
388 (md5_process_block): Add cast to const md5_uint32 *.
389 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
390 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
391 unsigned short.
392 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
393 to void *.
394 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
395
bd5d1805 3962002-09-19 Nick Clifton <nickc@redhat.com>
397
398 * README: Update email addresses for bugs and patches.
399
0fe3478a 4002002-09-10 Mike Stump <mrs@apple.com>
401
402 * splay-tree.c (splay_tree_successor): Fix comments.
403
65e49ff1 4042002-09-11 Zack Weinberg <zack@codesourcery.com>
405
808b5085 406 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
65e49ff1 407 * testsuite/Makefile.in: Adjust for test-demangle.
408 * testsuite/regress-demangle: Deleted.
409 * testsuite/test-demangle.c: New file.
410 * testsuite/demangle-expected: Change \$ to $ throughout, now that
411 this file is not being read by a shell script.
412
5ca95c55 4132002-09-05 Roger Sayle <roger@eyesopen.com>
414
415 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
416
b251a88a 4172002-08-07 DJ Delorie <dj@redhat.com>
418
419 * regex.c (re_error_msgid): Just use a simple array of strings.
420 (re_compile_pattern): Compensate.
421 (re_comp): Likewise.
422 (re_comp): Likewise.
423 (regerror): Likewise.
424
f4e29b4a 4252002-07-29 Neil Booth <neil@daikokuya.co.uk>
426
427 * cplus-dem.c (PREPEND_BLANK): Remove.
ff02de61 428
abcf0552 4292002-07-10 Jason Merrill <jason@redhat.com>
430
431 * cp-demangle.c (demangle_identifier): Support extended Unicode
432 characters.
433
c62ef5b5 4342002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
435
436 * cp-demangle.c (demangle_v3_with_details): Wrap in
ff02de61 437 !defined IN_GLIBCPP_V3.
c62ef5b5 438
74c75ba5 4392002-07-01 Mark Mitchell <mark@codesourcery.com>
440
441 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
442 Set it for the "st" operator.
443 (demangle_expression): Handle expressions with types as arguments.
444
b2835908 4452002-06-30 Douglas Rupp <rupp@gnat.com>
446
447 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
448 * Makefile.in (OUTPUT_OPTION): Use.
449
c75cb827 4502002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
451
452 * Makefile.in (install_to_libdir): Add $(DESTDIR).
453 (install_to_tooldir): Likewise.
454
55fc5d04 4552002-06-17 Douglas Rupp <rupp@gnat.com>
456
457 * lbasename.c: Add 2002 to copyright.
458 (IS_DIR_SEPARATOR): Remove VMS junk.
459
8d24e548 4602002-06-05 Geoffrey Keating <geoffk@redhat.com>
461
462 * hashtab.c (htab_create): New stub function for backward
463 compatibility.
464 (htab_try_create): Likewise.
465
1f3233d1 4662002-06-03 Geoffrey Keating <geoffk@redhat.com>
467
468 * hashtab.c (htab_create): Delete.
469 (htab_try_create): Delete.
470 (htab_create_alloc): New.
471 (htab_delete): Support user-specified memory allocation.
472 (htab_expand): Likewise.
473
daa2cd64 4742002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
475
476 * configure.in: Fix typo in the code checking for sys_errlist.
477 * configure: Regenerated.
478
70102259 4792002-05-13 Andreas Schwab <schwab@suse.de>
480
481 * config.table: Use mh-x86pic also for x86-64.
482
0b045cf7 4832002-05-08 Alexandre Oliva <aoliva@redhat.com>
484
485 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
486 script entry, and set LD to it when configuring multilibs.
487 * configure: Rebuilt.
488
63e428d5 4892002-05-07 Mark Mitchell <mark@codesourcery.com>
490
491 * configure.in (AC_TYPE_PID_T): Use it.
492 * configure: Regenerated.
493 * getruntime.c: Include <sys/types.h>.
494 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
495
8c8eb750 4962002-04-09 Richard Henderson <rth@redhat.com>
497
498 * hashtab.c (higher_prime_number): Use 7 as minimum.
499 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
500 (htab_find_slot_with_hash): Likewise.
501
5acfe29d 5022002-04-01 Phil Edwards <pme@gcc.gnu.org>
503
504 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
505 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
506 not compile if IN_GLIBCPP_V3 defined.
507 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
508
87591c4a 5092002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
510
ff02de61 511 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
87591c4a 512 if it is NULL.
513
b8327a91 5142002-03-27 DJ Delorie <dj@redhat.com>
515
516 * hex.c: Add documentation.
517 (_hex_value): Provide non-ASCII empty table.
518 (hex_init): Initialize the non-ASCII table.
519 * functions.texi: Regenerate.
520
baf716a5 5212002-03-27 Mark Mitchell <mark@codesourcery.com>
522
523 * dyn-string.c: Add libgcc exception to copyright notice.
524
60d10194 5252002-03-26 H.J. Lu (hjl@gnu.org)
526
527 * config.table: Support --with-build-subdir.
528 * configure.in: Likewise.
529 * configure: Rebuild.
530
8b7d2865 5312002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
532
533 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
534 seen.
535
8916275c 5362002-03-12 Mark Mitchell <mark@codesourcery.com>
537
538 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
539 notice.
540
241f7b9c 5412002-03-11 Douglas B Rupp <rupp@gnat.com>
542
543 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
544
bc95356d 5452002-03-06 Jim Blandy <jimb@redhat.com>
546
547 * splay-tree.c (splay_tree_xmalloc_allocate,
548 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
549 prototyped definitions. Mark `data' arguments as unused.
550
5a3c5094 5512002-03-06 Andrew Cagney <ac131313@redhat.com>
552
553 * floatformat.c (floatformat_arm_ext_big): Delete definition.
554
9123512a 5552002-03-04 Phil Edwards <pme@gcc.gnu.org>
556
557 * configure.in: Add --enable-install-libiberty option.
558 * Makefile.in (INSTALLED_HEADERS): New variable.
559 (install_to_libdir): Possibly also copy headers.
560 * configure: Regenerated.
561
5e571023 5622002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
563
564 * xmalloc.c (xmalloc_fail): Clarify error message further.
565
323c06f5 5662002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
567
568 * xmalloc.c (xmalloc_fail): Clarify error message.
569
a3af3ae8 5702002-02-22 Jim Blandy <jimb@redhat.com>
571
572 * splay-tree.c (splay_tree_xmalloc_allocate,
573 splay_tree_xmalloc_deallocate): New functions.
574 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
575 above functions and a dummy data pointer.
576 (splay_tree_new_with_allocator): New function.
577 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
578 splay_tree_remove): Use the splay tree's allocation and
579 deallocation functions.
580
080f842c 5812002-02-19 Scott Snyder <snyder@fnal.gov>
582
583 * testsuite/demangle-expected: Add test case for infinite loop in
584 demangler.
585 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
586 if do_type() doesn't make any progress --- prevents an infinite
587 loop.
588
a9e05c62 5892002-02-18 Carlo Wood <carlo@gnu.org>
590
591 PR c++/5390
592 * cplus-dem.c (demangle_integral_value): Accept multi-digit
593 numbers that do not start with an underscore; This is needed
594 for integer template parameters. This doesn't break anything
595 because multi-digit numbers are never followed by a digit.
596 * testsuite/demangle-expected: Corrected all mangled test
597 cases with multi-digit template parameters: g++ 2.95.x does
598 not generate underscores around these parameters.
599
c6d86b63 6002002-02-05 Jason Merrill <jason@redhat.com>
601
602 * cplus-dem.c (flags): Add DMGL_VERBOSE
603 (cplus_demangle_v3_p): Remove.
604 (demangle_it): Add DMGL_TYPES to passed flags.
605 * cp-demangle.c (cplus_demangle_v3_all): Remove.
606 (cplus_demangle_v3_type): Remove.
607 (cplus_demangle_v3): Add options parm.
608
9bd54051 6092002-02-02 H.J. Lu (hjl@gnu.org)
610
611 * cp-demangle.c (cp_demangle_type): Do not protect with
612 IN_LIBGCC2.
613 (cplus_demangle_v3_all): New.
614 (cplus_demangle_v3): Call cplus_demangle_v3_all.
615 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
616
617 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
618 Initialized to cplus_demangle_v3.
619 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
620 of cplus_demangle_v3.
621 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
622 command line symbol.
623
624 * testsuite/regress-demangle: Pass the mangled name at the
625 command line.
626
db248273 6272002-02-01 H.J. Lu <hjl@gnu.org>
628
629 * cp-demangle.c (cp_demangle_type): Call demangling_new with
630 DMGL_GNU_V3.
631
89a5385c 6322002-01-31 Phil Edwards <pme@gcc.gnu.org>
633
634 * cp-demangle.c: Revert yesterday's change.
635
da383dd4 6362002-01-31 Adam Megacz <adam@xwt.org>
637
638 * gcc/libiberty/configure.in: Treat mingw the same as cywin
639 wrt HAVE_SYS_ERRLIST.
640
1e72f309 6412002-01-30 Phil Edwards <pme@gcc.gnu.org>
642
643 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
644 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
645 cp_demangle_type.
646 * testsuite/demangle-expected: New gnu-v3 test.
647
2c79f170 6482002-01-22 Momchil Velikov <velco@fadata.bg>
649
650 * configure.in (variable detection): Use arrays of unspecified
651 size instead of plain integers.
652
98b6fc70 6532002-01-18 DJ Delorie <dj@redhat.com>
654
655 * Makefile.in (TESTLIB): New. This library is for future
656 testsuites.
657 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
658 break down by letter.
659 (REQUIRED_OFILES): List long-to-compile files first.
660 (maint-deps): New, target for updating dependencies.
661 (dependencies): Update.
662 * maint-tool: Add dependency-generating option.
663 * configure.in: Check for _doprnt even if we're not providing it.
664 * configure: Regenerate.
665
666 * _doprnt.c: Modifications to allow compiling on any platform.
667 * copysign.c: Likewise.
668 * putenv.c: Likewise.
669 * setenv.c: Likewise.
670 * vsprintf.c: Likewise.
671
b4eac72f 6722002-01-15 Douglas B Rupp <rupp@gnat.com>
673
674 * mkstemps.c (mkstemps): On VMS, open temp file with option
675 that causes it to be deleted when closed.
676
7806d7a4 6772002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
678
c077395f 679 * cp-demangle.c (long_options): Const-ify.
680 * cplus-dem.c (long_options): Likewise.
681
7806d7a4 682 * cplus-dem.c (mystrstr): Delete. All callers changed to use
683 strstr instead.
684
936c37fd 6852001-12-31 Ira Ruben <ira@apple.com>
686
687 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
688 * configure: Regenerated.
e9894157 689
6902001-12-24 Douglas B. Rupp <rupp@gnat.com>
691
692 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
693 * configure: Regenerated.
936c37fd 694
4e3ed534 6952001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
696
697 PR other/2719
698 * cplus-dem.c (consume_count): Treat negative count as an error.
699 * testsuite/demangle-expected: Added testcase.
700
8f966bdb 701Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
702
703 * configure.in: Hardcode that vfork works on VMS host.
704 * configure: Regenerated.
705
8d87ccec 7062001-12-06 Richard Henderson <rth@redhat.com>
707
708 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
709 (cplus_demangle): Support no_demangling.
710
31972771 7112001-11-27 Zack Weinberg <zack@codesourcery.com>
712
713 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
714 in libiberty context. Fix typo in leading comment.
715 * configure.in: Fix various AC_DEFINEs so autoheader works.
716 If any of vprintf, vsprintf, vfprintf is missing from libc,
717 then AC_REPLACE_FUNCS(_doprnt).
718
8e198eb2 7192001-11-26 DJ Delorie <dj@redhat.com>
31972771 720 Daniel Jacobowitz <drow@mvista.com>
8e198eb2 721
722 * Makefile.in (stamp-h): Depend on Makefile for proper
723 serialization.
724 (*-subdir): Depend on config.h for proper serialization.
725
c660fab8 7262001-11-26 DJ Delorie <dj@redhat.com>
727
728 * configure.in: Check for alloca.h (for regex.c and putenv.c).
729 * configure: Regenerate.
730 * config.h: Add HAVE_ALLOCA_H.
731
43eb13f7 7322001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
733
81cea2ab 734 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
735 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
736 is available.
43eb13f7 737
e9fb7b39 738Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
739
7b190504 740 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
741 * configure.in (HAVE_UINTPTR_T): Test for system defining
742 uintptr_t and define HAVE_UINTPTR_T appropriately.
743 * regex.c (uintptr_t): Do not provide a definition if the
744 system provided one.
745
e9fb7b39 746 * regex.c (PREFIX): Provide an alternate definition for
747 non-ANSI/ISO compilers.
748 (ARG_PREFIX): Likewise.
749
448378fc 7502001-11-12 Jim Meyering <meyering@lucent.com>
751
752 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
753 this code would end up calling gettext even in packages built
754 with --disable-nls.
755 * getopt.c (_): Likewise.
756 * regex.c (_): Likewise.
757
7c9e70dd 7582001-11-03 Alan Modra <amodra@bigpond.net.au>
759
760 * configure.in: Cope with missing makeinfo.
ebfeb892 761 * configure: Regenerate.
7c9e70dd 762
a3493641 7632001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
764
e500d428 765 * hex.c (hex_init): Provide empty stub.
766
a3493641 767 * hex.c (hex_init): Delete.
768 (_hex_value): Const-ify and initialize at compile-time.
769
3de15244 7702001-10-19 H.J. Lu <hjl@gnu.org>
771
772 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
773 necessary.
774
f0ed5ac1 7752001-10-17 DJ Delorie <dj@redhat.com>
776
777 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
778 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
0af1044a 779 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
f0ed5ac1 780 Improve manual formatting.
781 * functions.texi: Regenerate.
782
349e8276 7832001-10-15 DJ Delorie <dj@redhat.com>
784
785 * Makefile.in (TEXIFILES): Add fnmatch.txh.
786 (maint-undoc): New.
787 maint-tool: Add "undoc" tool.
788 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
789 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
790 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
791 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
792 documentation.
793 * fnmatch.txh: New.
794 * functions.texi: Regenerate.
8cc9ccc9 795
8a630ee4 7962001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
797
798 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
799 * strtod.c: Use "ISO C" instead of "ANSI C".
800 * functions.texi: Regenerate.
801
a3a8a3df 8022001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
803
804 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
805 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
806 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
807 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
808 spelling. Give names to function arguments in documentation. Use
809 (void) prototypes in documentation.
810 * functions.texi: Regenerate.
811
542e9271 8122001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
813
814 * argv.c (buildargv, tests, main): Const-ify.
815 * cp-demangle.c (operator_code): Likewise.
816 * cplus-dem.c (optable, libiberty_demanglers,
817 cplus_demangle_set_style, cplus_demangle_name_to_style,
818 print_demangler_list): Likewise.
819 * hashtab.c (higher_prime_number): Likewise.
820 * strcasecmp.c (charmap): Likewise.
821 * strerror.c (error_info, strerror, main): Likewise.
822 * strncasecmp.c (charmap): Likewise.
823 * strsignal.c (signal_info): Likewise.
824
5b7836cc 8252001-09-29 DJ Delorie <dj@redhat.com>
826
827 * configure: Regenerate.
828
e7faea46 8292001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
830
831 * concat.c: Include stdlib.h.
832
997fdf4a 8332001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
834
835 * libiberty.texi: (Top level): Add syncodeindex pg. Add
836 @dircategory and @direntry directives. Add @finalout.
837 (many nodes): Lose the next,prev,up pointers on the @nide line.
838 (Using, Supplemental Functions, Replacement Functions): Fix
839 markup.
840 (Functions): Move around, to allow makeinfo to build the manual
841 without next,prev,up pointers in thye node lines.
842 (Licenses): Fix typos.
843
844 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
845 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
846 * functions.texi: Regenerate.
847
848 * copying-lib.texi: Lose the next,prev,up pointers on the @node
849 line.
850
eb765d0c 8512001-09-27 DJ Delorie <dj@redhat.com>
852
853 * configure.in: Don't use in-tree texinfo, because libiberty must
854 be built before it. Check for makeinfo version 4 or higher.
855 * functions.texi: Regenerate.
8cc9ccc9 856
614a23c6 8572001-09-20 DJ Delorie <dj@redhat.com>
858 Phil Edwards <pedwards@disaster.jaj.com>
8cc9ccc9 859
614a23c6 860 * configure.in (MAKEINFO, PERL): Detect these.
861 (--enable-maintainer-mode): Add.
862 * configure: Regenerate.
863 * Makefile.in (MAKEINFO, PERL): Define.
864 (libiberty.info, libiberty.dvi, libiberty.html): New.
865 (CFILES): Add bsearch.c.
866 (CONFIGURED_OFILES): New, list of objects configure might add.
867 (maint-missing, maint-buildall): New, for maintainers only.
868 (clean, mostlyclean): Add info/dvi/html files.
869 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
870 * gather-docs: New, for maintainers.
871 * maint-tool: New, for maintainers.
872 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
873 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
874 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
875 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
876 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
877 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
878 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
879 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
880 documentation.
8cc9ccc9 881
92f03c00 8822001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
883
884 * concat.c (reconcat): Fix for traditional C.
885
0be2ebc7 8862001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
887
888 * concat.c (reconcat): New function.
889
add62f6a 8902001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
891
9659201a 892 * concat.c (vconcat_length, vconcat_copy, concat_length,
893 concat_copy, concat_copy2): New functions.
894 (concat): Use vconcat_length/vconcat_copy.
895
add62f6a 896 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
897 Define.
898
2bfbbd2b 8992001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
900
901 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
902 VA_FIXEDARG & VA_CLOSE.
8cc9ccc9 903
2bfbbd2b 904 * vasprintf.c: Check HAVE_STRING_H when including string.h.
905 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
906 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
907
68036f05 9082001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
909
910 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
911
958cb671 9122001-08-23 Ulrich Drepper <drepper@redhat.com>
913
914 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
915
9162001-08-23 Ulrich Drepper <drepper@redhat.com>
917
918 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
919 instead of mbrtowc.
920 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
921 wcslen, and __wcscoll instead of wcscoll.
922
b266b68b 9232001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
924
ff02de61 925 * fibheap.c (fibheap_init, fibnode_init): Remove.
926 (fibheap_new, fibnode_new): Use xcalloc to allocate and
927 initialize memory.
928 (fibheap_insert): Remove check for node allocation failure.
b266b68b 929
c6028964 9302001-08-21 Richard Henderson <rth@redhat.com>
931
932 * Makefile.in (fibheap.o): Depend on config.h.
933 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
934 functions for inlining.
935
3652f680 936Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
937
938 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
939 hosting on cygwin.
940 * configure: Regenerate.
941
95f0a124 9422001-08-20 Andrew Cagney <ac131313@redhat.com>
943
944 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
945 HARRIS_FLOAT_FORMAT.
946 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
947 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
948 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
949 (floatformat_m88110_harris_ext): New float formats.
950
522a00cd 9512001-08-20 Daniel Berlin <dan@cgsoftware.com>
952
953 * fibheap.c: New file. Fibonacci heap.
954
955 * Makefile.in (CFILES): Add fibheap.c.
956 (REQUIRED_OFILES): Add fibheap.o.
957 (fibheap.o): Add dependencies for fibheap.o.
958
6a51e4c4 9592001-08-17 Christopher Faylor <cgf@cygnus.com>
960
961 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
962 * configure: Regenerate.
963
80f07f6c 9642001-08-16 Richard Henderson <rth@redhat.com>
965
966 * hashtab.c (htab_hash_string): New.
967
e9106811 9682001-08-13 Andrew Cagney <ac131313@redhat.com>
969
970 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
971 name.
972
458e9fd0 9732001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
974
975 * regex.c (wcs_regex_compile): Use appropriate string
976 to compare with collating element.
977 Fix the padding for the alignment.
978
da8a7320 9792001-08-10 Andrew Cagney <ac131313@redhat.com>
2bce2a69 980
981 * lbasename.c (lbasename): Change function definition to return a
982 const char pointer.
983
6539a5d8 9842001-08-07 Jason Merrill <jason_merrill@redhat.com>
985
986 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
987 for".
988
2644ae20 9892001-08-03 Richard Henderson <rth@redhat.com>
990
991 * Makefile.in (concat.o): Depend on config.h.
992
6c9ffcbc 9932001-07-30 Andreas Jaeger <aj@suse.de>
994
995 * concat.c: Include "config.h".
996
9f21bac8 9972001-07-30 Andreas Jaeger <aj@suse.de>
998
999 * regex.c: Declare wcs functions only if compiling with
1000 MBS_SUPPORT.
1001 Don't use #elif for traditional C.
1002
10032001-07-23 Ulrich Drepper <drepper@redhat.com>
1004
1005 * regex.c: Revamp memory allocation for WCHAR functions to
1006 not use too much stack.
1007
10082001-07-30 Andreas Jaeger <aj@suse.de>
1009
1010 * regex.c: Declare wcs functions only if compiling with
1011 MBS_SUPPORT.
1012 Don't use #elif for traditional C.
1013
2bbbdf1a 10142001-07-25 Daniel Jacobowitz <drow@mvista.com>
1015
1016 * Makefile.in (regex.o): Add dependency on config.h.
1017
b92e80db 10182001-07-18 Andreas Schwab <schwab@suse.de>
1019
1020 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1021 underscore character.
1022
10232001-07-18 Ulrich Drepper <drepper@redhat.com>
1024
1025 * regex.c: Limit string length printed in debug messages to 100
1026 chars.
1027
10282001-07-18 Andreas Jaeger <aj@suse.de>
1029
1030 * regex.c: Place under LGPL version 2.1.
1031
7703a7de 10322001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1033
1034 * Makefile.in: Add support for regex code.
1035 * regex.c: New file.
1036
8568af22 10372001-07-05 Mark Klein <mklein@dis.com>
1038
1039 * Makefile.in: Add ffs.c dependency.
1040 * configure.in: Add ffs.c.
1041 * ffs.c: New file.
1042
c1a60b7d 10432001-06-18 Richard Henderson <rth@redhat.com>
1044
1045 * concat.c: Include <sys/types.h>.
1046
66806be2 10472001-06-11 Loren J. Rittle <ljrittle@acm.org>
1048
2778f1dc 1049 bootstrap/3106
66806be2 1050 * strerror.c (sys_nerr): Hide the OS header version.
1051 * strsignal.c (sys_nsig): Likewise.
1052
222ce6b9 10532001-06-10 Richard Henderson <rth@redhat.com>
1054
1055 * concat.c: Include string.h. Fix int vs size_t usage.
1056 Simplify the iteration loops. Use memcpy.
1057
cb6758b9 10582001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1059
1060 * partition.c: Fix misspelling of `implementation'.
1061
091eef96 10622001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1063
1064 * md5.c (md5_init_ctx): Declare constants as unsigned.
1065 (md5_process_block): Likewise.
1066
e5f55ef4 10672001-05-07 Zack Weinberg <zackw@stanford.edu>
1068
1069 * cp-demangle.c (demangle_v3_with_details,
1070 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1071 function definition.
1072 * ternary.c: Use K+R style function definitions. Use PTR, not
1073 void *. Make arguments constant where possible.
1074
c99b4ef9 10752001-05-07 Mark Mitchell <mark@codesourcery.com>
1076
1077 * splay-tree.h (splay_tree_max): New function.
1078 (splay_tree_min): Likewise.
1079
eec19420 10802001-04-15 Daniel Berlin <dan@cgsoftware.com>
1081
1082 * ternary.c: New file - Ternary search tree implementation.
1083
1084 * Makefile.in: Add ternary.o, and ternary.c dependencies.
1085
673b6e5a 10862001-04-03 Zack Weinberg <zackw@stanford.edu>
1087
1088 * make-temp-file.c (try): Inline.
1089
b8f02fb2 10902001-02-28 Richard Henderson <rth@redhat.com>
1091
1092 * Makefile.in (make-temp-file.o): Depend on config.h.
1093
b130ede9 10942001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1095
1096 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1097
5a4fcef0 10982001-03-23 Jakub Jelinek <jakub@redhat.com>
1099
1100 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1101 `_' not followed by a digit is invalid.
1102
c83c8218 11032001-03-22 Jim Blandy <jimb@redhat.com>
1104
1105 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1106 instead of free, to free the contents as well as the string
1107 structure.
1108
7e660a1b 11092001-03-21 Zack Weinberg <zackw@stanford.edu>
1110
1111 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1112 Don't default P_tmpdir to anything. Try /var/tmp before
1113 /usr/tmp.
1114
e6351181 11152001-03-20 Zack Weinberg <zackw@stanford.edu>
1116
1117 * choose-temp.c: Split off make_temp_file, and the code
1118 duplicated between it and choose_temp_base, into...
1119 * make-temp-file.c: ... here; new file.
1120
1121 * Makefile.in (CFILES): Add make-temp-file.c.
1122 (REQUIRED_OFILES): Add make-temp-file.o.
1123
3a18c9fc 11242001-03-20 Jim Blandy <jimb@redhat.com>
1125
1126 * cp-demangle.c (struct demangling_def): New fields:
1127 is_constructor and is_destructor.
1128 (demangling_new): Initialize them.
1129 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1130 or destructor.
1131 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1132 is_gnu_v3_mangled_dtor): New functions.
1133
d219f684 11342001-03-20 Jason Merrill <jason@redhat.com>
1135
1136 * cplus-dem.c (main): Skip initial $.
1137
dfc58e62 11382001-03-15 Michael Meissner <meissner@redhat.com>
1139
1140 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1141 might be a signed integer under pre-ISO C systems.
1142
0bce9b89 11432001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1144 John David Anglin <dave@hiauly1.hia.nrc.ca>
1145
1146 * libiberty/lbasename.c: New file.
1147 * libiberty/Makefile.in: Update for lbasename.
1148
012f1707 11492001-03-06 Zack Weinberg <zackw@stanford.edu>
1150
1151 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1152 * configure.in: Replace all alloca logic with a simple use of
1153 the above new macro.
1154 * config.table: Kill *-*-beos* entry.
1155 * config/mh-beos: Delete.
1156 * configure, config.in: Regenerate.
1157
1158 * Makefile.in (ALLOCA, HFILES): Kill.
1159 (REQUIRED_OFILES): Add alloca.o.
1160 (alloca.o): Depend on libiberty.h.
1161 (argv.o): Don't depend on alloca-conf.h.
1162 * alloca-conf.h: Delete.
1163 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1164 blocks. Provide the C alloca unconditionally. Use PTR where
1165 appropriate. Make i00afunc static.
1166 * argv.c: Don't include alloca-conf.h.
1167
163369e7 11682001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1169
1170 * cplus-dem.c (main): Cast enum style to int.
1171
39fb1bb6 11722001-02-16 Loren J. Rittle <ljrittle@acm.org>
1173
1174 * cplus-dem.c (main): Initialize style.
1175
bace101a 11762001-02-02 Phil Edwards <pme@sources.redhat.com>
1177
1178 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1179
1c1033dd 11802001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1181
1182 Add support for Java demangling under the v3 ABI:
1183 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1184 (struct demangling_def): Add `style' field.
1185 (demangling_new): New parameter `style'. Set it in demangling_t.
1186 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1187 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1188 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1189 (main): Call cp_demangle with extra parameter.
1190 (java_demangle_v3): New function.
1191 (java_builtin_type_names): New. Table of primitive type names used
1192 for Java demangling.
1193 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1194 Java output.
012f1707 1195 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1c1033dd 1196 demangling.
1197 (long_options): Remove obsolete `java' option.
1198 (main): Remove explicit handling of `java' option. Instead, pass style
1199 parameter in cplus_demangle flags as gdb does.
1200 * testsuite/demangle.expected: Add some Java test cases.
1201
fec9182b 12022000-12-29 DJ Delorie <dj@redhat.com>
1203
1204 * fnmatch.c: Make the note about the origins of this file more
1205 accurate, at least until we can sync with glibc.
1206 * getopt.c: Ditto.
1207 * getopt1.c: Ditto.
1208 * md5.c: Ditto.
1209 * obstack.c: Ditto.
1210
5b9c32cc 12112000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1212
1213 * bsearch.c: New file.
1214 * configure.in (funcs): Add bsearch.
1215 (AC_CHECK_FUNCS): Likewise.
1216 * configure, config.in: Regenerate.
1217
a973e2b1 12182000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1219
1220 * safe-ctype.c: #include "ansidecl.h".
1221 * strtod.c: Likewise.
1222
14282c1a 12232000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1224
1225 * strtoul.c: Include safe-ctype.h, not ctype.h.
1226
93ce8ce4 12272000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1228
1229 * safe-ctype.c: New file.
1230 * Makefile.in (CFILES): Add safe-ctype.c.
1231 (REQUIRED_OFILES): Add safe-ctype.o.
1232
1233 * argv.c: Define ISBLANK and use it, not isspace.
1234 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1235 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1236 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1237 before calling TOLOWER(c)/TOUPPER(c).
1238
be6afa8f 12392000-12-07 Mike Stump <mrs@wrs.com>
e5fb0a98 1240
1241 * Makefile.in (distclean): When cleaning, remove testsuite.
1242
cf0ad6a8 12432000-12-05 Jason Merrill <jason@redhat.com>
1244
1245 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1246 name before allocating the dyn_string.
1247
bb505139 12482000-12-04 Jason Merrill <jason@redhat.com>
1249
1250 * cp-demangle.c: s/new_abi/v3/.
1251 * cplus-dem.c: Likewise.
1252 (current_demangling_style): Now auto_demangling.
1253 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
93ce8ce4 1254 (main): Use standard symbol chars for auto_demangling.
bb505139 1255
54b3a5af 12562000-11-26 Mark Mitchell <mark@codesourcery.com>
1257
1258 * hashtab.c (higher_prime_number): Use a table, rather than a
1259 seive, to find the next prime.
1260
9628d706 12612000-11-22 H.J. Lu <hjl@gnu.org>
1262
1263 * cplus-dem.c (main): Handle gnat_demangling.
1264
ec255163 12652000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1266
1267 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1268 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1269 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1270 argument form of AC_DEFINE in dummy definitions block. Use
1271 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1272 in dummy block. Preload cache variables instead of bypassing
1273 tests, where possible.
1274 * acconfig.h: Removed.
1275
1276 * xmalloc.c (xmalloc_failed): New function, does error
1277 reporting on failed allocation.
1278 (xmalloc, xcalloc, xrealloc): Use it.
1279
626946fb 12802000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1281
1282 * cplus-dem.c (cplus_demangle): Fix formatting.
1283 (grow_vect): Ditto.
1284 (ada_demangle): Ditto.
1285 (internal_cplus_demangle): Ditto.
1286 (mop_up): Ditto.
1287
12882000-11-21 H.J. Lu <hjl@gnu.org>
1289
1290 * cplus-dem.c (main): Handle java_demangling.
1291
918a89ef 12922000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1293
1294 * cplus-dem.c (grow_vect): Prototype.
1295 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1296
582f72ad 12972000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1298
1299 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1300 parameter `option'.
1301
0d6e3c59 13022000-11-15 Kenneth Block <kenneth.block@compaq.com>
1303
42ded3a1 1304 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 1305 be used in GCC.
1306
9df8b754 13072000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 1308
582f72ad 1309 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 1310 list.
1311
e4c2dc6e 13122000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1313
1314 * hashtab.c (htab_expand): Change to return int. Use calloc or
9f21bac8 1315 xcalloc depending on htab->return_allocation_failure. Return zero
1316 if calloc fails.
e4c2dc6e 1317 (htab_create): Update comment to cover memory allocation.
1318 (htab_try_create): New.
1319 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
9f21bac8 1320 Update comment to cover this.
e4c2dc6e 1321
696d6593 13222000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1323
1324 * hashtab.c: Change void * to PTR where necessary.
1325 (htab_create, htab_expand): Correct formatting of comment before
1326 function.
1327
8f2b45d4 13282000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 1329
1330 * cp-demangle.c (string_list_def): Add caret_position and comments.
1331 (result_caret_pos): New macro.
1332 (result_append_string): Rename to...
1333 (result_add_string): ... this, and insert at caret position.
ec255163 1334 Rename throughout.
f99edf23 1335 (result_append): Rename to...
1336 (result_add): ... this, and insert at caret position. Rename
ec255163 1337 throughout.
f99edf23 1338 (result_append_char): Rename to...
1339 (result_add_char): ... this, and insert at caret position. Rename
ec255163 1340 throughout.
f99edf23 1341 (result_append_space): Remove.
1342 (string_list_new): Initialize caret position.
1343 (result_add_separated_char): Use caret position.
1344 (result_get_caret): New funtion.
1345 (result_set_caret): Likewise.
1346 (result_shift_caret): Likewise.
1347 (result_previous_char_is_space): Likewise.
1348 (substitution_start): Use caret position.
1349 (substitution_add): Likewise.
1350 (demangling_new): Initialize caret position.
1351 (demangle_encoding): Use caret position.
ec255163 1352 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 1353 (demangle_type_ptr): Use switch statement. Handle pointers to
1354 arrays. Don't use result_append_space. Use caret position.
1355 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 1356 call to demangle_array_type.
1357 (demangle_array_type): Add parameter to handle pointers to arrays.
1358
a4e59c31 13592000-10-01 Mark Mitchell <mark@codesourcery.com>
1360
1361 * splay-tree.c (splay_tree_insert): Fix formatting.
1362
e41f0d80 13632000-09-16 Mark Mitchell <mark@codesourcery.com>
1364
1365 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1366
83d86ada 13672000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1368
1369 * splay-tree.c: #include <stdio.h>.
1370
78631810 13712000-09-14 Hans-Peter Nilsson <hp@axis.com>
1372
1373 * testsuite/demangle-expected: Add two tests for anonymous
1374 namespaces.
1375 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1376
508f18c8 13772000-09-10 Mark Mitchell <mark@codesourcery.com>
1378
1379 * splay-tree.c (splay_tree_predecessor): New function.
1380 (splay_tree_successor): Likewise.
1381
1a2d2193 13822000-09-10 Hans-Peter Nilsson <hp@axis.com>
1383
1384 * testsuite/demangle-expected: Add four tests for type_info
1385 mangling.
1a2d2193 1386 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1387 for a non-template non-qualified type_info function or node.
1388
09656987 13892000-09-08 Alex Samuel <samuel@codesourcery.com>
1390
1391 * cp-demangle.c: Fix copyright banner.
1392
7cc2d24b 13932000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1394
1395 * md5.c: #include "ansidecl.h".
1396
b83e8722 13972000-09-06 Alex Samuel <samuel@codesourcery.com>
1398
1399 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1400 (demangle_type): Handle substitution candidates correctly in the
1401 face of special substitutions.
1402
cf70278e 14032000-09-05 Alex Samuel <samuel@codesourcery.com>
1404
1405 * cp-demangle.c (demangle_encoding): Rename variable.
1406 (demangle_name): Rename parameter. Handle return type
1407 suppression.
1408 (demangle_nested_name): Rename parameter.
1409 (demangle_prefix): Likewise. Change return type suppression.
1410 (demangle_unqualified_name): Add parameter. Flag constructors and
1411 conversion operators.
1412 (demangle_special_name): Fix comment.
1413 (demangle_type): Rename variable.
1414 (demangle_bare_function_type): Check for missing return type and
ec255163 1415 parameter.
cf70278e 1416 (demangle_class_enum_type): Rename parameter.
1417 (demangle_discriminator): Fix misspelling in comment.
1418
4aabc076 14192000-08-31 DJ Delorie <dj@redhat.com>
1420
1421 * configure.in (Cygwin): special case cygwin only when we're
1422 building cygwin, not when we're hosting cygwin.
1423
804ddfd1 14242000-09-04 Alex Samuel <samuel@codesourcery.com>
1425
1426 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 1427 <expression>.
1428
e015a852 14292000-09-04 Alex Samuel <samuel@codesourcery.com>
1430
1431 * cp-demangle.c (demangle_type_ptr): Increment position past
1432 pointer and reference characters.
1433
2b6805b4 14342000-09-04 Alex Samuel <samuel@codesourcery.com>
1435
1436 * cp-demangle.c (demangle_nv_offset): New function.
1437 (demangle_v_offset): Likewise.
1438 (demangle_call_offset): Likewise.
1439 (demangle_special_name): Update thunk demangling to comply with
1440 ABI changes.
ec255163 1441
40e00cb0 14422000-09-03 Alex Samuel <samuel@codesourcery.com>
1443
1444 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1445 (substitution_def): Remove template_parm_number.
1446 (NOT_TEMPLATE_PARM): Remove.
1447 (result_insert_string): New macro.
1448 (result_insert): Likewise.
1449 (result_insert_char): Likewise.
1450 (substitution_add): Remove last parameter. Don't store template
ec255163 1451 parm number.
40e00cb0 1452 (BFT_NO_RETURN_TYPE): Define as NULL.
1453 (demangle_encoding): Adjust call to demangle_bare_function_type.
1454 (demangle_name): Adjust substitution. Adjust call to
ec255163 1455 substitution_add.
40e00cb0 1456 (demangle_prefix): Adjust call to substitution_add.
1457 (demangle_identifier): Handle anonymous namespaces.
1458 (demangle_operator_name): Change demangling of vendor-extended
1459 operator to match ABI changes.
1460 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 1461 substitutions here.
40e00cb0 1462 (demangle_type): Adjust calls to demangle_template_param,
1463 substitution_add, and demangle_type_ptr. Fix substitution of
1464 templated types.
1465 (demangle_function_type): Change parameter to a pointer.
1466 (demangle_bare_function_type): Likewise. Adjust insertion point.
1467 (demangle_template_param): Remove last parameter.
1468 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 1469 demangle_template_param.
40e00cb0 1470 (is_mangled_char): Accept `$' and `.'.
1471 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1472 * dyn-string.c (dyn_string_insert_char): New function.
1473
01f404a2 14742000-08-31 Hans-Peter Nilsson <hp@axis.com>
1475
1476 * testsuite/demangle-expected: Add nine tests for
1477 underscore-after-number followed by five tests for name-signature
1478 delimiter.
1479
d74245d4 14802000-08-28 Richard Henderson <rth@cygnus.com>
1481
1482 * Makefile.in (md5.o): Depend on config.h.
1483
19f716e5 14842000-08-28 Jason Merrill <jason@redhat.com>
1485
1486 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1487 (CFILES): Add md5.c.
1488 * md5.c: New file.
1489
f8aeab41 14902000-08-27 Alex Samuel <samuel@codesourcery.com>
1491
1492 * cp-demangle.c (demangle_name): Initialize template_p in local
1493 name case. Don't re-add substitutions as candidates.
1494 (demangle_nested_name): Use <unqualified-name>.
1495 (demangle_prefix): Likewise. Don't add template names as
1496 substitution candidates twice, or re-add a substitution or the
1497 last prefix component.
1498 (demangle_local_name): Adjust output format.
1499
62c2feed 15002000-08-25 Alex Samuel <samuel@codesourcery.com>
1501
1502 * cp-demangle.c (result_add_separated_char): Change parameter to
1503 int.
1504 (substitution_add): Don't check for duplicates. Check if
1505 previously allocated size is zero.
1506 (demangle_name): Remove duplicate check for std substitution.
1507 Clear template flag appropriately.
1508 (demangle_prefix): Remove argument to demangle_substitution.
1509 Don't check that template flag is already set.
1510 (demangle_operator_name): Add pt operator.
1511 (demangle_type): Don't treat r as built-in type. Remove argument
1512 to demangle_substitution. Fix substitution candidate mechanics.
1513 Handle <template-template-parm>s. Improve comments.
ec255163 1514 (demangle_template_param): Don't handle template arg lists here.
62c2feed 1515 (demangle_substitution): Remove parameter.
1516 (print_usage): Remove extra fprintf option.
1517
ee1d4c3d 15182000-08-24 Greg McGary <greg@mcgary.org>
1519
1520 * libiberty/random.c (end_ptr): Revert previous change.
1521
f0bff53d 15222000-08-24 Greg McGary <greg@mcgary.org>
1523
1524 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1525 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1526 * libiberty/random.c (end_ptr): Likewise.
1527
c1b316c0 15282000-08-23 Alex Samuel <samuel@codesourcery.com>
1529
1530 * cp-demangle.c (result_close_template_list): Remove function.
1531 (result_add_separated_char): New function.
1532 (result_open_template_list): New macro.
1533 (result_close_template_list): Likewise.
1534 (demangle_prefix): Don't set template_p if the
1535 prefix ends with a ctor name.
1536 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1537 (demangle_type): Check for template args after substitution.
1538 (demangle_template_args): Use result_open_template_list.
ec255163 1539
385b48fc 15402000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1541
1542 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1543
ec255163 15442000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 1545
1546 * config/mh-openedition.h: Added -DLE370 definition.
1547
8fc0efd2 15482000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1549
1550 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1551 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1552 Cast program to 'char *' in errmsg_arg assignment.
1553 (PWAIT_ERROR): Define.
1554 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1555 to DJGPP's WIF* macros.
1556
a1d4f79a 15572000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1558 Jeff Law <law@cygnus.com>
1559
98b4c197 1560 * getcwd.c: Include string.h, stdlib.h for prototypes
1561
a1d4f79a 1562 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 1563 * rename.c: Include config.h, unistd.h
1564 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 1565
01f404a2 15662000-07-24 Hans-Peter Nilsson <hp@axis.com>
1567
1568 * cplus-dem.c (work_stuff_copy_to_from): New.
1569 (delete_non_B_K_work_stuff): New.
1570 (delete_work_stuff): New.
1571 (mop_up): Break out work_stuff partly destruction to
1572 delete_non_B_K_work_stuff.
1573 (iterate_demangle_function): New.
1574 (demangle_prefix): Call iterate_demangle_function instead of
1575 demangle_function_name. Leave handling of name-signature
1576 __-delimiters to iterate_demangle_function.
1577 (demangle_integral_value): Strip an optional
1578 following underscore cautiously. Handle negative numbers.
1579
f2e5a608 15802000-07-24 Daniel Berlin <dberlin@redhat.com>
1581
ec255163 1582 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 1583 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1584
65bcf503 15852000-07-21 Alex Samuel <samuel@codesourcery.com>
1586
1587 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1588 allocating ctor mangling.
1589 (demangle_array_type): Handle empty and non-constant array length.
1590
68e6b6e1 15912000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 1592 Jeff Law <law@cygnus.com>
1593
1a163ca8 1594 * configure.in (AC_CHECK_HEADERS): Add time.h.
1595 (AC_HEADER_TIME): Add check.
1596 * configure, config.in: Regenerate.
1597 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1598
a451eef0 1599 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1600 * configure, config.in: Regenerate.
1601 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1602 * strtol.c, strtoul.c: #include "config.h". Portably #include
1603 <limits.h> and/or <sys/param.h>.
1604 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 1605
fb758229 1606 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1607 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1608 * configure, config.in: Regenerate.
1609 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1610
68e6b6e1 1611 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1612
ad46fec4 16132000-07-21 Mike Stump <mrs@wrs.com>
1614
1615 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 1616 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 1617
bb37062f 16182000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1619
1620 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1621
1622 * setenv.c (setenv): Initialize variable `ep'.
1623
1624 * sigsetmask.c (abort): Prototype.
1625
1626 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1627 __STDC__ for stdarg.h include.
1628 (int_vasprintf): Prototype.
1629 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1630 definition. Cast `global_total_width' in comparison.
1631 (main): Prototype. Return a value.
1632
1633 * vfork.c (fork): Prototype.
1634
1635 * xexit.c: Include config.h.
1636
6cb730c2 16372000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1638
1639 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1640 and print it with %u.
1641
e42d7fe1 16422000-07-17 Hans-Peter Nilsson <hp@axis.com>
1643
1644 * testsuite/regress-demangle (failed test): Show result and
1645 expected output.
1646
04ef60ef 16472000-07-07 Andrew Haley <aph@cygnus.com>
1648
1649 * cplus-dem.c (main): fflush() after emitting last char before
1650 waiting for input.
1651
b7f68aff 16522000-06-28 Alex Samuel <samuel@codesourcery.com>
1653
1654 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1655 (demangle_name): Handle <substitution> followed by
1656 <unqualified-template-name>.
1657 (demangle_type): Follow special substitutions with
1658 <class-enum-type>
1659 (demangle_subtitution): Set template_p for special substitutions.
1660 (main): Fix typos.
ec255163 1661
597f928d 16622000-06-27 Alex Samuel <samuel@codesourcery.com>
1663
1664 * cp-demangle.c (demangle_special_name): Swap base and derived
1665 class when demangling construction vtables.
1666
140d75d7 16672000-06-21 Alex Samuel <samuel@codesourcery.com>
1668
1669 * cp-demangle.c: Don't include ctype.h.
1670 (IS_DIGIT): New macro.
1671 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1672 instead of isdigit and isalpanum.
1673 (demangling_def): Make name and next const pointers.
1674 (STATUS_ALLOCATION_FAILED): New status code.
1675 (dyn_string_append_space): Handle failure in
1676 dyn_string_append_char.
1677 (int_to_dyn_string): Likewise. Change return value to status_t.
1678 (string_list_new): Handle failure of dyn_string_init.
1679 (result_close_template_list): Change return type to status_t.
1680 Handle failure in dyn_string_append.
1681 (result_push): Change return value to status_t. Handle failure in
1682 string_list_new. Handle failure of result_push throughout.
1683 (substitution_add): Change return value to status_t. Handle
1684 dyn_string failures. Handle failure of substitution_add
1685 throughout.
1686 (template_arg_list_new): Return NULL on allocation failure.
1687 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1688 Handle error result throughout.
1689 (result_append): Likewise.
1690 (result_append_char): Likewise.
1691 (result_append_space): Likewise.
1692 (demangling_new): Make argument a const pointer. Handle
1693 allocation failures.
1694 (demangle_template_args): Handle failure in template_arg_list_new
1695 and result_close_template_list.
1696 (demangle_discriminator): Return if int_to_dyn_string fails.
1697 (cp_demangle): Likewise.
1698 (cp_demangle_type): New function.
1699 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1700 memory allocation failure.
1701 (main): Likewise.
1702 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1703 IN_LIBGCC2.
1704 (dyn_string_init): Change return value to int. Handle
1705 RETURN_ON_ALLOCATION_FAILURE case.
1706 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1707 (dyn_string_release): Delete the dyn_string.
1708 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1709 (dyn_string_copy): Change return type to int.
1710 (dyn_string_copy_cstr): Likewise.
1711 (dyn_string_prepend): Likewise.
1712 (dyn_string_prepend_cstr): Likewise.
1713 (dyn_string_insert): Likewise.
1714 (dyn_string_insert_cstr): Likewise.
1715 (dyn_string_append): Likewise.
1716 (dyn_string_append_cstr): Likewise.
1717 (dyn_string_append_char): Likewise.
1718 (dyn_string_substring): Likewise.
ec255163 1719
210aba33 17202000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1721
1722 * cp-demangle.c (demangle_operator_name): Add spaces before
1723 names beginning with a letter: delete, delete[], new, new[],
1724 sizeof.
1725 (demangle_special_name): Handle TF <type> and TJ <type>.
1726
0b4450c1 1727Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1728
1729 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1730
e5d6924a 1731Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1732
1733 * cp-demangle.c (stdio.h): File included unconditionaly.
1734 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1735 * dyn-string.c (stdio.h): File included.
1736 * partition.c (partition_print): No `&' needed to take the address of
1737 a function.
1738
da8bd873 17392000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1740
1741 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 1742
da8bd873 1743 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1744
1745 * cp-demangle.c (demangle_char): Change parameter from char to int.
1746 (demangle_expression, demangle_expr_primary): Remove extra
1747 semi-colon in prototype.
1748
1749 * dyn-string.c (dyn_string_append_char): Change parameter from
1750 char to int.
1751
1752 * memcmp.c (memcmp): Constify.
1753
1754 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1755 __extension__.
1756
1757 * partition.c (elem_compare): Prototype. Don't cast away
1758 const-ness.
1759
1760 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 1761
4b7bc488 17622000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1763
1764 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1765
1766 * cp-demangle.c: Include demangle.h.
1767 (template_arg_list_new): DeANSIfy.
1768 (cp_demangle): Make static and add prototype.
1769 (operator_code, operators): Constify.
1770 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1771
7ae7b54c 17722000-06-05 Alex Samuel <samuel@codesourcery.com>
1773
1774 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1775 unsigned char.
1776 (demangle_unqualified_name): Likewise.
1777 (demangle_number_literally): Likewise.
1778 (demangle_type): Likewise.
1779 (demangle_substitution): Likewise.
1780 (is_mangled_char): Likewise, for isalnum.
1781
168d63e5 17822000-06-04 Alex Samuel <samuel@codesourcery.com>
1783
1784 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1785 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1786 (cp-demangle.o): New dependency.
1787 (dyn-string.o): Likewise.
1788
1789 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1790
1791 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1792 demangler.
1793 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1794 demangling mode.
1795 (gnu_new_abi_symbol_characters): New function.
1796 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1797 file.
1798 * cp-demangle.c: New file.
ec255163 1799
b5495c1d 1800Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1801
1802 * floatformat.c: Add name to each floatformat field.
1803
8fab1737 1804Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1805
1806 * Makefile.in (objalloc.o): Depend on config.h
1807
317ab997 18082000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1809
1810 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1811 if HAVE_STRING_H.
1812 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1813 * objalloc.c: Include config.h. Include stdlib.h and don't
1814 declare malloc or free if HAVE_STDLIB_H.
1815 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1816 else declare malloc without prototype. Include string.h if
1817 HAVE_STRING_H, else declare memset without prototype. Don't
1818 include stddef.h.
1819
874478ba 18202000-05-23 Mike Stump <mrs@wrs.com>
1821
1822 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
9f21bac8 1823 -j3.
874478ba 1824
55de1520 18252000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1826
1827 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1828
e51b357b 18292000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1830
ec255163 1831 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 1832 probably zero, also eliminate a warning on alpha.
1833
9e362499 18342000-05-15 David Edelsohn <edelsohn@gnu.org>
1835
e390e838 1836 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 1837 on $(enable_shared).
1838
06c6487f 18392000-05-10 Jakub Jelinek <jakub@redhat.com>
1840
1841 * config.table: Use mh-sparcpic for sparc*-*-*.
1842
0baf89fb 18432000-05-08 Nick Clifton <nickc@cygnus.com>
1844
1845 * Makefile.in (CFILES): Add strncmp.c.
1846 (NEEDED): Add strncmp.
1847
59f72e4d 18482000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1849
1850 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1851 Cast the arguments to `islower' to `unsigned char'.
1852 (print_demangler_list): Prototype.
1853
fb0c90ed 1854Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1855
1856 * sort.c (UCHAR_MAX): Provide fallback definition.
1857
167a5f18 18582000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1859
1860 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1861 SUBDIRS.
1862
6f572555 18632000-04-28 Kenneth Block <block@zk3.dec.com>
1864 Jason Merrill <jason@casey.cygnus.com>
1865
ec255163 1866 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1867 (cplus_demangle_set_style): New function for setting style.
1868 (cplus_demangle_name_to_style): New function to translate name.
6f572555 1869
b3524c8f 18702000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1871
1872 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1873
1874 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1875 (libiberty_AC_FUNC_STRNCMP): Invoke.
1876
1877 * strncmp.c: New file.
1878
a5f725a3 1879Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1880
1881 * hashtab.c (htab_expand): Add prototype.
1882 (find_empty_slot_for_expand): Likewise.
1883
8afd4145 18842000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1885
1886 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1887 match prototype.
1888 (htab_expand): Cast the return value of xcalloc.
1889
c9dfb8ae 18902000-04-24 Mark Mitchell <mark@codesourcery.com>
1891
1892 * hashtab.c (hash_pointer): New function.
1893 (eq_pointer): Likewise.
1894 (htab_hash_pointer): New variable.
1895 (htab_eq_pointer): Likewise.
1896
85993fc6 18972000-04-23 Mark Mitchell <mark@codesourcery.com>
1898
9517f453 1899 * sort.c (sort_pointers): Fix endianness bugs.
1900
85993fc6 1901 * sort.c: New file.
1902 * Makefile.in (CFILES): Add sort.c
1903 (REQUIRED_OFILES): Add sort.o.
1904 (sort.o): New target.
1905
c9b2f47c 19062000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1907
1908 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1909 4.3BSD systems.
1910
2b3dbc20 1911Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1912
1913 * hashtab.c: Various minor cleanups.
1914 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1915 (htab_find_slot): Likewise.
1916
6ea8a864 19172000-04-16 Dave Pitts <dpitts@cozx.com>
1918
1919 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 1920
105211e5 19212000-04-05 Richard Henderson <rth@cygnus.com>
1922
1923 * splay-tree.c (splay_tree_remove): New.
1924
7669680f 19252000-03-30 Mark Mitchell <mark@codesourcery.com>
1926
1927 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1928 codes.
1929 (htab_find_with_hash): Likewise.
1930 (htab_find_slot_with_hash): Likewise.
ec255163 1931
07c797e3 19322000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1933
1934 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1935 unless it will be used. Rearrange loop for better
1936 optimization.
1937 (higher_prime_number): Add static prototype.
1938
8ef1b8d1 1939Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1940
1941 * Makefile.in (partition.o): Depend on config.h
1942
ed26da85 19432000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1944
1945 * hashtab.c (find_empty_slot_for_expand): New function.
1946 (htab_expand): Use it instead of htab_find_slot.
1947 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1948 argument HASH.
1949 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1950 (htab_find): New wrapper function.
1951 (htab_find_slot): Likewise.
1952 (htab_traverse): Pass slot, not entry, to called function.
1953
dadde703 19542000-03-09 Alex Samuel <samuel@codesourcery.com>
1955
1956 * Makefile.in (CFILES): Add partition.c.
1957 (REQUIRED_OFILES): Add partition.o.
1958 (partition.o): New rule.
1959 * partition.c: New file.
ec255163 1960
3fdd387a 19612000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1962
1963 * hashtab.c (htab_create): Set del_f.
1964 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1965 Use it.
1966
07c967f9 19672000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1968
1969 * hashtab.c: Remove debugging variables (all_searches,
1970 all_collisions, all_expansions). Delete
1971 all_hash_table_collisions.
1972 (create_hash_table, delete_hash_table, empty_hash_table,
1973 find_hash_table_entry, remove_element_from_hash_table_entry,
1974 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1975 hash_table_elements_number, hash_table_collisions): Rename to:
1976 htab_create, htab_delete, htab_empty, htab_find_slot,
1977 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1978 htab_elements, htab_collisions.
1979 (htab_find): New function, handles common case where you don't
1980 plan to add or delete an entry.
1981 (htab_expand): Don't create a whole new table, just a new
1982 entry vector.
1983 (htab_find_slot): Simplify logic.
1984
1f33a375 19851999-08-03 Ian Lance Taylor <ian@zembu.com>
1986
1987 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1988 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1989
1990 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1991 $(TARGETLIB)n so it works on MSDOS.
1992 (install_to_tooldir): Likewise.
1993
19941999-07-21 Ian Lance Taylor <ian@zembu.com>
1995
1996 From Mark Elbrecht:
1997 * makefile.dos: Remove; obsolete.
1998 * configure.bat: Remove; obsolete.
1999
20001999-07-11 Ian Lance Taylor <ian@zembu.com>
2001
2002 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2003 warning.
2004
b99e5aef 20052000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2006
2007 * pexecute.c: Conditionally include string.h.
07c967f9 2008 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 2009
6d93ad38 20102000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2011
2012 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2013 we're using gcc.
2014
2015 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2016
59dfb43e 20171999-12-27 Geoff Keating <geoffk@cygnus.com>
2018
2019 * vasprintf.c (int_vasprintf): Don't re-read the format character
2020 as this mishandles strings like '%%s'.
2021
b04bbebb 20221999-12-05 Mark Mitchell <mark@codesourcery.com>
2023
2024 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2025 rather than struct splay_tree_node.
2026 (splay_tree_insert): Use struct splay_tree_s rather than struct
2027 splay_tree.
2028
d7f8de75 2029Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2030
2031 * hashtab.c (sys/types.h): File included.
2032
7202ac7d 20331999-11-22 Jason Merrill <jason@casey.cygnus.com>
2034
2035 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2036 BSD license, pursuant with
2037
2038 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2039
bd41a79e 2040Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2041
2042 * hashtab.c: Include stdio.h.
2043
b77d3fd0 2044Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2045
2046 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2047
1b4391fe 2048Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2049
2050 * xstrdup (sys/types.h): Include this file.
2051
4bc57096 20521999-10-28 Nathan Sidwell <nathan@acm.org>
2053
2054 * Makefile.in (SUBDIRS): New macro.
2055 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2056 avoid multiple subdirectory cleaning.
2057 (*-subdir): Use SUBDIRS.
2058
9087cad2 20591999-10-25 Jim Kingdon <http://developer.redhat.com/>
2060
2061 * cplus-dem.c: Move declarations of standard_symbol_characters and
2062 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2063 warnings.
2064
21a7d507 20651999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2066
2067 * hashtab.c (find_hash_table_entry): When returning a
2068 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2069 (clear_hash_table_slot): New function which deletes an entry
2070 by its position in the table, not its value.
2071 (traverse_hash_table): New function which calls a hook
2072 function for every live entry in the table.
2073
42c870f1 20741999-10-19 Mark Mitchell <mark@codesourcery.com>
2075
2076 * cplus-dem.c (INTBUF_SIZE): New macro.
2077 (string_append_template_idx): New function.
2078 (demangle_expression): Likewise.
2079 (demangle_integral_value): Use it.
2080 (demangle_real_value): New function, split out from ...
2081 (demangle_template_value_parm): ... here. Use
2082 string_append_template_idx. Use demangle_real_value.
2083 (demangle_template): Use string_append_template_idx.
2084 (demangle_qualified): Use consume_count_with_underscores.
2085 (get_count): Tweak formatting.
2086 (do_type): Use string_append_template_idx.
07c967f9 2087
33b090eb 20881999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2089
2090 * calloc.c: Add a public domain notice.
2091
9879c2ce 2092Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2093
2094 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2095
5da6c26f 2096Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2097
2098 * Makefile.in (CFILES): Add hashtab.c
2099 (REQUIRED_OFILES): Add hashtab.o
2100 (hashtab.o): Add dependencies.
2101 * hashtab.c: New file
2102
be42b79e 2103Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2104
2105 * basename.c (DIR_SEPARATOR): New macro.
2106 (DIR_SEPARATOR_2): Likewise.
2107 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2108 (IS_DIR_SEPARATOR): Likewise.
2109 (main): Handle MSDOS style pathname.
2110
6c65e8d7 21111999-10-11 Mark Mitchell <mark@codesourcery.com>
2112
2113 * cplus-dem.c (do_type): Handle pointer to member types whose
2114 enclosing classes have namespace scope.
2115
278929f3 2116Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2117
2118 * config.table: Provide a backup shell for executing move-if-change.
2119
a7599ac8 21201999-10-02 Mark Mitchell <mark@codesourcery.com>
2121
2122 * xmalloc.c (xmalloc): Fix spelling error.
2123 (xcalloc, xrealloc): Likewise.
2124
4d84eafd 21251999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2126
2127 * cplus-dem.c (fancy_abort, demangle_integral_value,
2128 demangle_arm_hp_template, recursively_demangle,
2129 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2130 (program_name, program_version, fatal): Constify a char*.
2131 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2132 (main): Call return, not exit.
2133
8f376364 21341999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2135
2136 * choose-temp.c: Remove obsolete comment about gcc.
2137 (make_temp_file): Constify a char*.
2138
3a4fff76 2139Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2140
2141 * xmemdup.c: Include sys/types.h.
2142
7570bccb 21431999-09-07 Jeff Garzik <jgarzik@pobox.com>
2144
2145 * xmemdup.c: New xmemdup function.
2146 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2147
b50c7be3 2148Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2149
07c967f9 2150 * config.table: Add openedition target.
b50c7be3 2151 * config/mh-openedition: New file.
2152
fd0c1d22 2153Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2154
2155 * pexecute.c (pexecute): Fill in temp_base when needed.
2156
be342bf0 21571999-08-31 Richard Henderson <rth@cygnus.com>
2158
2159 * getpwd.c: Check HAVE_GETCWD before defining it away.
2160
71774460 21611999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2162
2163 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2164 (REQUIRED_OFILES): Add getpwd.o.
2165 (getpwd.o): Add target.
2166
2167 * configure.in (AC_PREREQ): Bump to 2.13.
2168 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2169
2170 * getpwd.c: New file, moved here from gcc.
2171
ac126d82 21721999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2173
2174 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2175 comparing against a signed quantity.
2176 (arm_special): Likewise.
2177 (demangle_fund_type): Likewise.
2178 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 2179 ATTRIBUTE_UNUSED.
ac126d82 2180 (main): Constify variable `valid_symbols'.
2181
4f3b4661 2182Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2183
2184 * strtoul.c (strtoul): Add parentheses around && within ||.
2185
f92ff492 2186Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2187
2188 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2189 libdir, libsubdir and tooldir.
2190
a9f46aed 21911999-08-01 Mark Mitchell <mark@codesourcery.com>
2192
2193 * splay-tree.c (splay_tree_insert): Return the new node.
2194
db081298 21951999-07-14 Richard Henderson <rth@cygnus.com>
2196
07c967f9 2197 * argv.c: Include stdlib.h and string.h instead of
db081298 2198 prototyping directly.
2199 * choose-temp.c: Conditionally include string.h.
2200
e5aa3a54 22011999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2202
2203 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2204
4ef402f7 22051999-07-11 Ian Lance Taylor <ian@zembu.com>
2206
2207 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2208 warning.
2209
d65034bd 22101999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2211
2212 * Makefile.in (needed-list): Only include stuff we actually need
2213 for libstdc++.
2214
18912799 22151999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2216
2217 * configure.in (checkfuncs): Add gettimeofday.
2218 * config.in, configure: Regenerated.
2219
d96f58b6 2220Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2221
2222 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2223 the test fails.
2224 * configure: Regenerate.
2225
4248b202 22261999-06-10 Mike Stump <mrs@wrs.com>
2227
2228 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2229 parallel builds.
2230
3c243ded 22311999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2232
2233 * putenv.c: Include ansidecl.h to define `const'.
2234 * setenv.c: Likewise.
2235
654c70ae 2236Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2237
34f75864 2238 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2239 * configure.in (funcs): Add putenv and setenv.
2240 (AC_CHECK_FUNCS): Check for putenv and setenv.
2241 * configure: Rebuilt.
2242 * putenv.c setenv.c: New files.
2243
654c70ae 2244 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2245 bytes of space using malloc.
2246
41980611 2247Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2248
2249 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2250 the *mangled pointer beyond the end of the string. Clean up code to
2251 match prevailing coding style.
2252
08b8ada9 22531999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2254
2255 * tmpnam.c (L_tmpnam): Fix typo.
2256
2fb1c6e9 2257Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2258
2259 * cplus-dem.c (standard_symbol_characters): Renamed from
2260 standard_symbol_alphabet. No longer modify TABLE.
2261 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2262 modify TABLE.
2263 (main): Corresponding changes. Use strchr to determine if a
2264 character is valid.
2265
25398e41 22661999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2267
2268 * cplus-dem.c (main): Use table lookup to distinguish identifier
2269 characters from non-identifier characters.
2270 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2271
29723d26 2272Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2273
2274 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2275 * getruntime.c: Only attempt to include sys/resource.h and
2276 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2277 are defined.
2278
dde96550 2279Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2280
2281 * configure.in (alloca detection): Handle alloca directly for interix.
2282 * configure: Rebuilt.
2283
e98ba651 2284Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2285
2286 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2287
3460a017 22881999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2289
2290 Fix from Dale Hawkins:
07c967f9 2291 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 2292 reallocated properly if we use it again.
2293
2294 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2295 stricter about syntax. Always null-terminate string.
2296
b01c0955 2297Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2298
2299 * configure.in (checkfuncs): Check for sbrk.
2300 * config.in: Rebuilt.
2301 * configure: Likewise.
2302 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2303
87c2e884 23041999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2305
2306 Fix from Marcus Daniels:
2307 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2308 identifier looking for another underscore.
2309
16b8e80f 2310Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2311
2312 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2313 * xmalloc.c: Likewise.
2314 (xcalloc): UWIN has sbrk.
2315 (xrealloc): Fix guard macro.
2316
4d0cfb7e 23171999-04-11 Richard Henderson <rth@cygnus.com>
2318
2319 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2320 or <alloca.h>.
2321 * clock.c (GNU_HZ): New definition.
2322 (clock): Use it.
2323 * getruntime.c: Likewise.
2324
2325 * config.table: Use mh-beos.
2326 * config/mh-beos: New file.
2327
0dc64970 23281999-04-11 Mark Mitchell <mark@codesourcery.com>
2329
2330 * cplus-dem.c (demangle_template_value_parm): Handle
2331 pointers-to-members.
2332 (do_type): Handle template parameters as qualifiers.
2333
9fec6063 23341999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2335
2336 * cplus-dem.c: Attempt to handle overflows in counts with some
2337 semblance of grace.
2338 (consume_count): Detect overflows. Return -1 to indicate errors,
2339 instead of zero.
2340 (demangle_template_value_parm, demangle_template): Handle change
2341 to consume_count's return convention.
2342
715f424c 23431999-04-05 Tom Tromey <tromey@cygnus.com>
2344
2345 * testsuite/regress-demangle: New file.
2346 * testsuite/demangle-expected: New file.
2347
2348 * Makefile.in (all, check, installcheck, info, install-info,
2349 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2350 distclean, maintainer-clean, realclean): Depend on corresponding
2351 `-subdir' target.
2352 (all-subdir check-subdir installcheck-subdir info-subdir
2353 install-info-subdir clean-info-subdir dvi-subdir
2354 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2355 distclean-subdir maintainer-clean-subdir): New target.
2356 * testsuite/Makefile.in: New file.
2357 * configure: Rebuilt.
2358 * configure.in: Create testsuite/Makefile.
2359
71c5948c 23601999-04-02 Mark Mitchell <mark@codesourcery.com>
2361
2362 * splay-tree.h (splay_tree_compare_pointers): Define.
2363
d1264606 23641999-03-30 Mark Mitchell <mark@codesourcery.com>
2365
2366 * splay-tree.c (splay_tree_compare_ints): Define.
2367
6fd618e7 23681999-03-30 Tom Tromey <tromey@cygnus.com>
2369
2370 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2371 don't advance input pointer.
2372 (demangle_class_name): If consume_count didn't find a count, do
2373 nothing. Don't bother with `strlen' sanity check; consume_count
2374 does it for us.
2375
bdaa26ad 23761999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2377
2378 From Art Haas <ahaas@neosoft.com>:
2379 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2380 when doing arm or hp style.
2381 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 2382
d267f778 2383Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2384
2385 * pexecute.c (__CYGWIN32__): Rename to
2386 (__CYGWIN__): this.
2387 * xmalloc.c: Likewise.
2388
2389 Changes to support i386-pc-uwin.
2390 * configure.in (*-*-uwin*): Workaround for vfork bug.
2391 * configure: Regenerate.
2392 * pexecute.c (pexecute): Be like standard Unix.
2393 (pwait): Likewise.
2394 * xmalloc.c (first_break): Define.
2395 (xmalloc_set_program_name): Use.
2396 (xmalloc): Use.
2397
90405950 2398Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2399
2400 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2401
bdaa26ad 2402Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2403
2404 * config.table: Check cygwin*, not cygwin32*.
2405
e6ed8194 2406Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2407
2408 * Makefile.in: Change mkstemp -> mkstemps.
2409
301e59c9 2410Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2411
2412 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2413 * configure.in (funcs): Check for and conditionally add mkstemps to
2414 the list of functions libiberty will provide.
2415 * configure: Rebuilt.
07c967f9 2416
89e305f9 2417Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2418
07c967f9 2419 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 2420 platforms that don't have HZ.
2421 * getruntime.c (HZ): Likewise.
2422
ecfe64e7 2423Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2424
2425 * Makefile.in (xstrdup.o): Depend on config.h.
2426
2e5e2114 2427Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2428
2429 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2430 freeing it.
2431
6aa62a59 2432Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2433
2434 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2435
bdaa26ad 2436Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2437
2438 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2439 splay-tree.o.
2440
24411999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2442
2443 * configure.in: Require autoconf 2.12.1 or higher.
2444
9e1ed734 24451998-12-30 Michael Meissner <meissner@cygnus.com>
2446
2447 * random.c (NULL): Don't redefine NULL if it is already defined.
2448
7c8c70e9 2449Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2450
2451 * argv.c (buildargv): Cast the result of alloca in assignment.
2452
2453 * choose-temp.c: Include stdlib.h.
2e5e2114 2454
7c8c70e9 2455 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
9f21bac8 2456 (snarf_numeric_literal): Constify first parameter.
2457 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2458 int, not a char.
7c8c70e9 2459 (demangle_qualifier): Likewise.
2460 (demangle_signature): Cast the argument of a ctype function to
2461 unsigned char.
2462 (arm_pt): Add parens around assignment used as truth value.
2463 (demangle_arm_hp_template): Constify variable `args'.
2464 (do_hpacc_template_const_value): Cast the argument of a ctype
2465 function to unsigned char.
2466 (do_hpacc_template_literal): Remove unused variable `i'.
2467 (snarf_numeric_literal): Constify parameter `args'.
2468 Cast the argument of a ctype function to unsigned char.
2469
2470 * floatformat.c (floatformat_to_double): Add explicit braces to
9f21bac8 2471 avoid ambiguous `else'.
2e5e2114 2472
7c8c70e9 2473 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
9f21bac8 2474 `cstart' and `cend' to unsigned char. Cast the argument of macro
2475 `FOLD', which uses ctype functions, to unsigned char.
7c8c70e9 2476
2477 * objalloc.c (free): Add prototype.
2478
9070a37e 2479Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2480
2481 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2482
bdaa26ad 2483Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2484
2485 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
9f21bac8 2486 doesn't exist.
bdaa26ad 2487 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 2488
0a5a5994 2489Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2490
2491 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2492 bumping the pointer we read from. Also prepend these codes,
2493 as we do in other places.
2494
bdaa26ad 24951998-12-18 Nick Clifton <nickc@cygnus.com>
2496
2497 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2498 'const char *' in order to match its usage when calling siblings.
2499 (snarf_numeric_literal): Make first arg 'const char **' in order
2500 to match usage.
4ed77eec 2501
50cbddd6 2502Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2503
4ed77eec 2504 * choose-temp.c: Don't check IN_GCC anymore.
2505
2506 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2507 * memchr.c (memchr): Likewise.
2508 * memcpy.c (memcpy): Likewise.
2509 * memmove.c (memmove): Likewise.
2e5e2114 2510
4ed77eec 2511 * mkstemp.c: Don't check IN_GCC anymore.
2512 * pexecute.c: Likewise.
2513 * splay-tree.c: Likewise.
2e5e2114 2514
4ed77eec 2515 * strchr.c (strchr): Use `const', not `CONST'.
2516 * strrchr.c (strrchr): Likewise.
2517 * strtol.c (strtol): Likewise.
2518 * strtoul.c (strtoul): Likewise.
2519
f75dc4de 2520Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2521 Elena Zannoni <ezannoni@cygnus.com>
2522 Stan Shebs <shebs@cygnus.com>
2523 Edith Epstein <eepstein@cygnus.com>
2524 Andres MacLeod <amacleod@cygnus.com>
2525 Satish Pai <pai@apollo.hp.com>
2526
2527 * HP aCC demangling support.
2528 * cplus-dem.c
2529 (main): Remove default to HP style demangling, set to EDG
9f21bac8 2530 demangling correctly when -edg specified; set the demangling style
2531 when user specifies 'edg'. Set strip_underscore to
2532 prepends_underscore, if not HPUXHPPA. Set
2533 current_demangling_style to hp_demangling if HPUXHPPA. Set
2534 current demangling style correctly if the switch is hp. Read
2535 label correctly also in the HP style case.
f75dc4de 2536 (work_stuff): add temp_start field; add field for volatile member
9f21bac8 2537 function.
f75dc4de 2538 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
9f21bac8 2539 style for this case is the same as ARM.
f75dc4de 2540 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2541 (demangle_arm_hp_template): new function. (It was
9f21bac8 2542 demangle_arm_pt.); check and set value of temp_start field in
2543 multiple places. Also, when ceching for end of template args,
2544 check to see if at end of static member of template class.
f75dc4de 2545 (demangle_class): new local variable : save_class_name_end Don't
9f21bac8 2546 include template args in string defining class.
f75dc4de 2547 (demangle_class_name): use demangel_arm_hp_template.
2548 (demangle_function_name): handle case where demangling style is
9f21bac8 2549 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2550 Handle EDG_DEMANGLING style. Handle constructor and destructor
2551 ops for HP style.
f75dc4de 2552 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
9f21bac8 2553 styles. global destructor and constructor for HP style are same
2554 as for ARM style. Same for local variables.
f75dc4de 2555 (demangle_qualified): handle EDG_DEMANGLING style.
2556 (demangle_signature): add case for volatile member function. For
9f21bac8 2557 cases '1' - '9' : initialize the temp_start field to -1 and handle
2558 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2559 and AUTO_DEMANGLING styles. If expecting a function and managed
2560 to demangle the funct args, then handle the LUCID_DEMANGLING,
2561 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2562 class name after "Lnnn_ in HP style case. HP style too needs to
2563 forget types. _nnn is OK for HP style, so don't report failure.
f75dc4de 2564 (do_hpacc_template_const_value): new function. Handle template's
9f21bac8 2565 value param for HP/aCC.
f75dc4de 2566 (do_hpacc_template_literal): new function. Handle a template's
9f21bac8 2567 literal parameter for HP aCC.
f75dc4de 2568 (recursively_demangle): new function
2569 (snarf_numeric_literal): new function.
2570 (usage): add 'edg' to the list of demangling styles; add hp switch
9f21bac8 2571 to message.
f75dc4de 2572
a5c56042 2573Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2574
2575 * pexecute.c: Remove obsolete ifdefed cygwin code.
2576
4ae63959 2577Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2578
2579 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2580 * cplus-dem.c: Likewise. Conform to libiberty.h.
2581 * pexecute.c: Likewise.
2582 * splay-tree.c: Likewise.
2583
b41b6b67 25841998-11-25 Mike Stump <mrs@wrs.com>
2585
2586 * Makefile.in (splay-tree.o): Add config.h dependency.
2587
a1dd5bff 2588Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2589
2590 * configure.in: Use AC_PREREQ(2.12.1).
2591
d54546fb 25921998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2593
07c967f9 2594 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 2595
9fdb1080 2596Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2597
2598 * mpw.c (mpw_access): Add missing parens.
2599
1ed7db2f 2600Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2601
2602 * configure.in: Call AC_HEADER_SYS_WAIT.
2603
2604 * pexecute.c: Include sys/wait.h when !IN_GCC.
2605
bdaa26ad 2606Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2607
2608 * pexecute.c: revert back to checking old Cygwin
2609 preprocessor symbol until some time has passed.
2610
2611Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2612
2613 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2614 since it will now support similar constructs.
2615
34fa8831 2616Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2617
2618 * configure.in: Check for calloc.
2619
2620 * calloc.c: New file.
2621
2622 * xmalloc.c (xcalloc): New function.
2623
75ebb412 2624Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2625
2626 *cplus-dem.c (demangle_prefix): Use the last "__"
2627 in the mangled name when looking for the signature. This allows
2628 template names to begin with "__".
2629
5b546829 26301998-11-08 Mark Mitchell <mark@markmitchell.com>
2631
73bea962 2632 * cplus-dem.c (type_kind_t): Add tk_reference.
2633 (demangle_template_value_parm): Handle it.
2634 (do_type): Use it for references, instead of tk_pointer.
2635
5b546829 2636 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2637 not internal_cplus_demangle.
2638
0e4558d2 2639Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2640
2641 * choose-temp.c: Don't include gansidecl.h.
2642 * mkstemp.c: Likewise.
2643 * pexecute.c: Likewise.
2644
7b8b8d43 2645Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2646
07c967f9 2647 * configure.in: detect cygwin* instead of cygwin32*
2648 * configure: regenerate
7b8b8d43 2649
f9a39df1 2650Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2651
2652 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
9f21bac8 2653 whether to include config.h. Possibly include unistd.h in the
2654 !IN_GCC case. Define VFORK_STRING as a printable function call
2655 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2656 defined, include vfork.h. If VMS is defined, define vfork()
2657 appropriately. Remove vfork check on USG, we're using autoconf.
2658 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2659 locally what string to use.
f9a39df1 2660
797ba725 26611998-10-26 Mark Mitchell <mark@markmitchell.com>
2662
2663 * splay-tree.c: Tweak include directives to make sure declarations of
2664 xmalloc and free are available.
2665
3662c79b 26661998-10-25 Mark Mitchell <mark@markmitchell.com>
2667
2668 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2669 anonymous namespaces.
2e5e2114 2670
af5199c0 26711998-10-23 Mark Mitchell <mark@markmitchell.com>
2672
2673 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2674 with type_quals.
2675 (TYPE_UNQUALIFIED): New macro.
2676 (TYPE_QUAL_CONST): Likewise.
2677 (TYPE_QUAL_VOLATILE): Likewise.
2678 (TYPE_QUAL_RESTRICT): Likewise.
2679 (code_for_qualifier): New function.
2680 (qualifier_string): Likewise.
2681 (demangle_qualifier): Likewise.
2682 (internal_cplus_demangle): Use them.
2683 (demangle_signature): Likewise.
2684 (demangle_template_value_parm): Likewise.
2685 (do_type): Likewise.
2686 (demangle_fund_type)): Likewise.
3662c79b 2687
e61da89d 2688Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2689
2690 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2691 to match prototype.
2692
9a4eb61d 26931998-10-21 Mark Mitchell <mark@markmitchell.com>
2694
2695 * splay-tree.c: New file.
2696 * Makefile.in (CFILES): Add it.
2697 (REQUIRED_OFILES): Likewise.
2698 (splay-tree.o): Add dependencies.
2699
e5d3a45b 2700Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2701
2702 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2703 range of 'K' index.
2704
4350e959 2705Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2706
2707 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2708
2709 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2710 `unsigned char'.
2711 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2712 comparing against one.
2713 (cplus_mangle_opname): Likewise.
2714 (demangle_integral_value): Cast argument of ctype macro to
2715 `unsigned char'.
2716 (demangle_template_value_parm): Likewise.
2717 (demangle_template): Initialize variable `bindex'. Cast the
2718 result of `strlen' to (int) when comparing against one. Remove
2719 unused variable `start_of_value_parm'.
2720 (demangle_class_name): Cast the result of `strlen' to (int) when
2721 comparing against one.
2722 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2723 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2724 when comparing against one.
2725 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2726 (get_count): Likewise.
2727 (do_type): Likewise. Cast the result of `strlen' to (int) when
2728 comparing against one.
2729 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2730 (demangle_function_name): Cast the result of `strlen' to (int)
2731 when comparing against one.
2732
2733 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2734 comparing against one.
2735
5dfe2c03 2736Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2737
07c967f9 2738 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2739 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2740 * config.in, configure: Rebuilt.
0be6f86d 2741
5dfe2c03 2742 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2743 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2744 * config.in, configure: Rebuilt.
2745
7b8b8d43 2746Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2747
07c967f9 2748 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 2749
68b78c88 2750Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2751
2752 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2753
804ec1bf 2754Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2755
2756 * Merge egcs & devo libiberty.
2757
7a1ec54f 2758