]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
846a645c 12003-02-20 Daniel Jacobowitz <drow@mvista.com>
2
3 * Makefile.in (CFILES): Add lrealpath.c.
4 (REQUIRED_OFILES): Add lrealpath.o.
5 (lrealpath.o): Add rule.
6 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
7 * configure.in: Add realpath and canonicalize_file_name to
8 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
9 for canonicalize_file_name.
10 * lrealpath.c: New file.
11 * make-relative-prefix.c: Update documentation.
12 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
13 * config.in: Regenerated.
14 * configure: Regenerated.
15 * functions.texi: Regenerated.
16
82561650 172003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
18
19 * cplus_dem.c: Fix typo: intializes -> initializes.
20
e4e6363f 212003-02-20 Alexandre Oliva <aoliva@redhat.com>
22
23 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
24 config.status.
25 * configure: Rebuilt.
26
cc720498 272003-02-13 Daniel Jacobowitz <drow@mvista.com>
28
29 Fix PR c++/7612.
30 * cplus-dem.c (demangle_signature): Call string_delete.
31 Remove extra string_init.
32 (demangle_arm_hp_template): Call string_delete instead of
33 string_clear. Add missing string_delete call.
34 (demangle_qualified): Add missing string_delete call.
35 (do_type): Remove unused variable btype. Add missing string_delete
36 call. Call string_delete instead of string_clear.
37 (demangle_fund_type): Move variable btype inside of the switch
38 statement. Add missing string_delete call.
39 (do_arg): Call string_delete instead of string_clear. Remove extra
40 string_init.
41 (demangle_nested_args): Free work->previous_argument.
42
d94d977c 432003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44
45 * acconfig.h: New file. Add uintptr_t.
46 * config.in: Regenerated.
47
5533bc76 482003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
49
50 * libiberty.texi: Update to GFDL 1.2.
51
7f13318a 522003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
53
54 * Makefile.in (libiberty_topdir): New subst.
55 (mkinstalldirs): Redefine in terms of the above.
56 * configure.in: AC_SUBST it.
57 * configure: Regenerate.
58
9d2299ec 592003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
60
61 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
62 (info-subdir, install-info-subdir, clean-info-subdir)
63 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
64 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
65 Pass $(FLAGS_TO_PASS).
66
49f7db63 672003-01-27 Alexandre Oliva <aoliva@redhat.com>
68
69 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
70 /`$$CC -print-multi-os-directory`.
71
a21acbbb 722003-01-26 Daniel Jacobowitz <drow@mvista.com>
73
74 * hashtab.c (htab_create_alloc_ex): New function.
75 (hatab_set_functions_ex): New function.
76 (htab_delete, htab_expand): Support alternate allocation functions.
77
8c171144 782003-01-24 Christopher Faylor <cgf@redhat.com>
79
80 * configure.in: Remove special pex-cygwin consideration.
81 * configure: Regenerate.
82 * pex-cygwin.c: Remove.
83 * Makefile.in: Remove pex-cygwin.[co] lines.
84
8cb0536d 852003-01-24 Zack Weinberg <zack@codesourcery.com>
86
87 * Makefile.in (CFILES): Add pex-*.c.
88 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
89 (CONFIGURED_OFILES): Add pex-*.o.
90 (TEXIFILES): Add pexecute.txh.
91 (pexecute.o): Delete rule.
92 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
93 pex-unix.o, pex-win32.o): New rules.
94 * configure.in: Change AC_INIT argument to xmalloc.c.
95 Compute appropriate pexecute implementation and substitute it
96 as @pexecute@.
97
98 * pexecute.c: Split up into...
99 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
100 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
101 new files.
102
103 * functions.texi: Regenerate.
104 * configure: Regenerate.
105
aa5761b7 1062003-01-20 Josef Zlomek <zlomekj@suse.cz>
107
108 * hashtab.c (htab_expand): Fix allocation of new entries.
109
71aad3b8 1102003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
111
112 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
113
2e6a336d 114 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
115 mkinstalldirs command.
116
e162e528 1172002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
118
119 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
120 Define for hosts with HOST_EXECUTABLE_SUFFIX.
121
aba68506 1222002-11-24 Nick Clifton <nickc@redhat.com>
123
124 * make-relative-prefix.c (make_relative_prefix): Ensure return
125 string is empty before using strcat to construct it.
126
5feeeb38 1272002-11-22 Daniel Jacobowitz <drow@mvista.com>
128
129 * Makefile.in: Add make-relative-prefix.c.
130 * make-relative-prefix.c: New file.
131 * functions.texi: Rebuilt.
132
d7022963 1332002-11-16 Jakub Jelinek <jakub@redhat.com>
134
135 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
136 used with arguments in traditional C' warnings.
137
dacb9fcc 1382002-10-16 Jakub Jelinek <jakub@redhat.com>
139
140 * config.table: Use mh-s390pic for s390x too.
141
ff02de61 1422002-10-06 Andreas Jaeger <aj@suse.de>
143
144 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
145 variable and of strict-aliasing warning.
146 (grow_vect): Use char as first parameter.
147
5f7912d8 1482002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
149
150 * Makefile.in (all): Fix multilib parallel build.
151
05455547 1522002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
153
154 * cp-demangle.c (demangling_new): Cast 0 to enum.
155 (demangle_char): Cast return of strdup to char *.
156 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
157 (is_gnu_v3_mangled_dtor): Likewise.
158 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
159 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
160 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
161 * md5.c (md5_process_bytes): Cast results back to const void *.
162 (md5_process_block): Add cast to const md5_uint32 *.
163 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
164 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
165 unsigned short.
166 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
167 to void *.
168 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
169
bd5d1805 1702002-09-19 Nick Clifton <nickc@redhat.com>
171
172 * README: Update email addresses for bugs and patches.
173
0fe3478a 1742002-09-10 Mike Stump <mrs@apple.com>
175
176 * splay-tree.c (splay_tree_successor): Fix comments.
177
65e49ff1 1782002-09-11 Zack Weinberg <zack@codesourcery.com>
179
808b5085 180 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
65e49ff1 181 * testsuite/Makefile.in: Adjust for test-demangle.
182 * testsuite/regress-demangle: Deleted.
183 * testsuite/test-demangle.c: New file.
184 * testsuite/demangle-expected: Change \$ to $ throughout, now that
185 this file is not being read by a shell script.
186
5ca95c55 1872002-09-05 Roger Sayle <roger@eyesopen.com>
188
189 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
190
b251a88a 1912002-08-07 DJ Delorie <dj@redhat.com>
192
193 * regex.c (re_error_msgid): Just use a simple array of strings.
194 (re_compile_pattern): Compensate.
195 (re_comp): Likewise.
196 (re_comp): Likewise.
197 (regerror): Likewise.
198
f4e29b4a 1992002-07-29 Neil Booth <neil@daikokuya.co.uk>
200
201 * cplus-dem.c (PREPEND_BLANK): Remove.
ff02de61 202
abcf0552 2032002-07-10 Jason Merrill <jason@redhat.com>
204
205 * cp-demangle.c (demangle_identifier): Support extended Unicode
206 characters.
207
c62ef5b5 2082002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
209
210 * cp-demangle.c (demangle_v3_with_details): Wrap in
ff02de61 211 !defined IN_GLIBCPP_V3.
c62ef5b5 212
74c75ba5 2132002-07-01 Mark Mitchell <mark@codesourcery.com>
214
215 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
216 Set it for the "st" operator.
217 (demangle_expression): Handle expressions with types as arguments.
218
b2835908 2192002-06-30 Douglas Rupp <rupp@gnat.com>
220
221 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
222 * Makefile.in (OUTPUT_OPTION): Use.
223
c75cb827 2242002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
225
226 * Makefile.in (install_to_libdir): Add $(DESTDIR).
227 (install_to_tooldir): Likewise.
228
55fc5d04 2292002-06-17 Douglas Rupp <rupp@gnat.com>
230
231 * lbasename.c: Add 2002 to copyright.
232 (IS_DIR_SEPARATOR): Remove VMS junk.
233
8d24e548 2342002-06-05 Geoffrey Keating <geoffk@redhat.com>
235
236 * hashtab.c (htab_create): New stub function for backward
237 compatibility.
238 (htab_try_create): Likewise.
239
1f3233d1 2402002-06-03 Geoffrey Keating <geoffk@redhat.com>
241
242 * hashtab.c (htab_create): Delete.
243 (htab_try_create): Delete.
244 (htab_create_alloc): New.
245 (htab_delete): Support user-specified memory allocation.
246 (htab_expand): Likewise.
247
daa2cd64 2482002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
249
250 * configure.in: Fix typo in the code checking for sys_errlist.
251 * configure: Regenerated.
252
70102259 2532002-05-13 Andreas Schwab <schwab@suse.de>
254
255 * config.table: Use mh-x86pic also for x86-64.
256
0b045cf7 2572002-05-08 Alexandre Oliva <aoliva@redhat.com>
258
259 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
260 script entry, and set LD to it when configuring multilibs.
261 * configure: Rebuilt.
262
63e428d5 2632002-05-07 Mark Mitchell <mark@codesourcery.com>
264
265 * configure.in (AC_TYPE_PID_T): Use it.
266 * configure: Regenerated.
267 * getruntime.c: Include <sys/types.h>.
268 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
269
8c8eb750 2702002-04-09 Richard Henderson <rth@redhat.com>
271
272 * hashtab.c (higher_prime_number): Use 7 as minimum.
273 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
274 (htab_find_slot_with_hash): Likewise.
275
5acfe29d 2762002-04-01 Phil Edwards <pme@gcc.gnu.org>
277
278 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
279 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
280 not compile if IN_GLIBCPP_V3 defined.
281 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
282
87591c4a 2832002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
284
ff02de61 285 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
87591c4a 286 if it is NULL.
287
b8327a91 2882002-03-27 DJ Delorie <dj@redhat.com>
289
290 * hex.c: Add documentation.
291 (_hex_value): Provide non-ASCII empty table.
292 (hex_init): Initialize the non-ASCII table.
293 * functions.texi: Regenerate.
294
baf716a5 2952002-03-27 Mark Mitchell <mark@codesourcery.com>
296
297 * dyn-string.c: Add libgcc exception to copyright notice.
298
60d10194 2992002-03-26 H.J. Lu (hjl@gnu.org)
300
301 * config.table: Support --with-build-subdir.
302 * configure.in: Likewise.
303 * configure: Rebuild.
304
8b7d2865 3052002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
306
307 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
308 seen.
309
8916275c 3102002-03-12 Mark Mitchell <mark@codesourcery.com>
311
312 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
313 notice.
314
241f7b9c 3152002-03-11 Douglas B Rupp <rupp@gnat.com>
316
317 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
318
bc95356d 3192002-03-06 Jim Blandy <jimb@redhat.com>
320
321 * splay-tree.c (splay_tree_xmalloc_allocate,
322 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
323 prototyped definitions. Mark `data' arguments as unused.
324
5a3c5094 3252002-03-06 Andrew Cagney <ac131313@redhat.com>
326
327 * floatformat.c (floatformat_arm_ext_big): Delete definition.
328
9123512a 3292002-03-04 Phil Edwards <pme@gcc.gnu.org>
330
331 * configure.in: Add --enable-install-libiberty option.
332 * Makefile.in (INSTALLED_HEADERS): New variable.
333 (install_to_libdir): Possibly also copy headers.
334 * configure: Regenerated.
335
5e571023 3362002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
337
338 * xmalloc.c (xmalloc_fail): Clarify error message further.
339
323c06f5 3402002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
341
342 * xmalloc.c (xmalloc_fail): Clarify error message.
343
a3af3ae8 3442002-02-22 Jim Blandy <jimb@redhat.com>
345
346 * splay-tree.c (splay_tree_xmalloc_allocate,
347 splay_tree_xmalloc_deallocate): New functions.
348 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
349 above functions and a dummy data pointer.
350 (splay_tree_new_with_allocator): New function.
351 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
352 splay_tree_remove): Use the splay tree's allocation and
353 deallocation functions.
354
080f842c 3552002-02-19 Scott Snyder <snyder@fnal.gov>
356
357 * testsuite/demangle-expected: Add test case for infinite loop in
358 demangler.
359 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
360 if do_type() doesn't make any progress --- prevents an infinite
361 loop.
362
a9e05c62 3632002-02-18 Carlo Wood <carlo@gnu.org>
364
365 PR c++/5390
366 * cplus-dem.c (demangle_integral_value): Accept multi-digit
367 numbers that do not start with an underscore; This is needed
368 for integer template parameters. This doesn't break anything
369 because multi-digit numbers are never followed by a digit.
370 * testsuite/demangle-expected: Corrected all mangled test
371 cases with multi-digit template parameters: g++ 2.95.x does
372 not generate underscores around these parameters.
373
c6d86b63 3742002-02-05 Jason Merrill <jason@redhat.com>
375
376 * cplus-dem.c (flags): Add DMGL_VERBOSE
377 (cplus_demangle_v3_p): Remove.
378 (demangle_it): Add DMGL_TYPES to passed flags.
379 * cp-demangle.c (cplus_demangle_v3_all): Remove.
380 (cplus_demangle_v3_type): Remove.
381 (cplus_demangle_v3): Add options parm.
382
9bd54051 3832002-02-02 H.J. Lu (hjl@gnu.org)
384
385 * cp-demangle.c (cp_demangle_type): Do not protect with
386 IN_LIBGCC2.
387 (cplus_demangle_v3_all): New.
388 (cplus_demangle_v3): Call cplus_demangle_v3_all.
389 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
390
391 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
392 Initialized to cplus_demangle_v3.
393 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
394 of cplus_demangle_v3.
395 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
396 command line symbol.
397
398 * testsuite/regress-demangle: Pass the mangled name at the
399 command line.
400
db248273 4012002-02-01 H.J. Lu <hjl@gnu.org>
402
403 * cp-demangle.c (cp_demangle_type): Call demangling_new with
404 DMGL_GNU_V3.
405
89a5385c 4062002-01-31 Phil Edwards <pme@gcc.gnu.org>
407
408 * cp-demangle.c: Revert yesterday's change.
409
da383dd4 4102002-01-31 Adam Megacz <adam@xwt.org>
411
412 * gcc/libiberty/configure.in: Treat mingw the same as cywin
413 wrt HAVE_SYS_ERRLIST.
414
1e72f309 4152002-01-30 Phil Edwards <pme@gcc.gnu.org>
416
417 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
418 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
419 cp_demangle_type.
420 * testsuite/demangle-expected: New gnu-v3 test.
421
2c79f170 4222002-01-22 Momchil Velikov <velco@fadata.bg>
423
424 * configure.in (variable detection): Use arrays of unspecified
425 size instead of plain integers.
426
98b6fc70 4272002-01-18 DJ Delorie <dj@redhat.com>
428
429 * Makefile.in (TESTLIB): New. This library is for future
430 testsuites.
431 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
432 break down by letter.
433 (REQUIRED_OFILES): List long-to-compile files first.
434 (maint-deps): New, target for updating dependencies.
435 (dependencies): Update.
436 * maint-tool: Add dependency-generating option.
437 * configure.in: Check for _doprnt even if we're not providing it.
438 * configure: Regenerate.
439
440 * _doprnt.c: Modifications to allow compiling on any platform.
441 * copysign.c: Likewise.
442 * putenv.c: Likewise.
443 * setenv.c: Likewise.
444 * vsprintf.c: Likewise.
445
b4eac72f 4462002-01-15 Douglas B Rupp <rupp@gnat.com>
447
448 * mkstemps.c (mkstemps): On VMS, open temp file with option
449 that causes it to be deleted when closed.
450
7806d7a4 4512002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
452
c077395f 453 * cp-demangle.c (long_options): Const-ify.
454 * cplus-dem.c (long_options): Likewise.
455
7806d7a4 456 * cplus-dem.c (mystrstr): Delete. All callers changed to use
457 strstr instead.
458
936c37fd 4592001-12-31 Ira Ruben <ira@apple.com>
460
461 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
462 * configure: Regenerated.
e9894157 463
4642001-12-24 Douglas B. Rupp <rupp@gnat.com>
465
466 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
467 * configure: Regenerated.
936c37fd 468
4e3ed534 4692001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
470
471 PR other/2719
472 * cplus-dem.c (consume_count): Treat negative count as an error.
473 * testsuite/demangle-expected: Added testcase.
474
8f966bdb 475Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
476
477 * configure.in: Hardcode that vfork works on VMS host.
478 * configure: Regenerated.
479
8d87ccec 4802001-12-06 Richard Henderson <rth@redhat.com>
481
482 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
483 (cplus_demangle): Support no_demangling.
484
31972771 4852001-11-27 Zack Weinberg <zack@codesourcery.com>
486
487 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
488 in libiberty context. Fix typo in leading comment.
489 * configure.in: Fix various AC_DEFINEs so autoheader works.
490 If any of vprintf, vsprintf, vfprintf is missing from libc,
491 then AC_REPLACE_FUNCS(_doprnt).
492
8e198eb2 4932001-11-26 DJ Delorie <dj@redhat.com>
31972771 494 Daniel Jacobowitz <drow@mvista.com>
8e198eb2 495
496 * Makefile.in (stamp-h): Depend on Makefile for proper
497 serialization.
498 (*-subdir): Depend on config.h for proper serialization.
499
c660fab8 5002001-11-26 DJ Delorie <dj@redhat.com>
501
502 * configure.in: Check for alloca.h (for regex.c and putenv.c).
503 * configure: Regenerate.
504 * config.h: Add HAVE_ALLOCA_H.
505
43eb13f7 5062001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
507
81cea2ab 508 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
509 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
510 is available.
43eb13f7 511
e9fb7b39 512Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
513
7b190504 514 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
515 * configure.in (HAVE_UINTPTR_T): Test for system defining
516 uintptr_t and define HAVE_UINTPTR_T appropriately.
517 * regex.c (uintptr_t): Do not provide a definition if the
518 system provided one.
519
e9fb7b39 520 * regex.c (PREFIX): Provide an alternate definition for
521 non-ANSI/ISO compilers.
522 (ARG_PREFIX): Likewise.
523
448378fc 5242001-11-12 Jim Meyering <meyering@lucent.com>
525
526 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
527 this code would end up calling gettext even in packages built
528 with --disable-nls.
529 * getopt.c (_): Likewise.
530 * regex.c (_): Likewise.
531
7c9e70dd 5322001-11-03 Alan Modra <amodra@bigpond.net.au>
533
534 * configure.in: Cope with missing makeinfo.
ebfeb892 535 * configure: Regenerate.
7c9e70dd 536
a3493641 5372001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
538
e500d428 539 * hex.c (hex_init): Provide empty stub.
540
a3493641 541 * hex.c (hex_init): Delete.
542 (_hex_value): Const-ify and initialize at compile-time.
543
3de15244 5442001-10-19 H.J. Lu <hjl@gnu.org>
545
546 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
547 necessary.
548
f0ed5ac1 5492001-10-17 DJ Delorie <dj@redhat.com>
550
551 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
552 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
0af1044a 553 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
f0ed5ac1 554 Improve manual formatting.
555 * functions.texi: Regenerate.
556
349e8276 5572001-10-15 DJ Delorie <dj@redhat.com>
558
559 * Makefile.in (TEXIFILES): Add fnmatch.txh.
560 (maint-undoc): New.
561 maint-tool: Add "undoc" tool.
562 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
563 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
564 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
565 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
566 documentation.
567 * fnmatch.txh: New.
568 * functions.texi: Regenerate.
8cc9ccc9 569
8a630ee4 5702001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
571
572 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
573 * strtod.c: Use "ISO C" instead of "ANSI C".
574 * functions.texi: Regenerate.
575
a3a8a3df 5762001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
577
578 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
579 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
580 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
581 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
582 spelling. Give names to function arguments in documentation. Use
583 (void) prototypes in documentation.
584 * functions.texi: Regenerate.
585
542e9271 5862001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
587
588 * argv.c (buildargv, tests, main): Const-ify.
589 * cp-demangle.c (operator_code): Likewise.
590 * cplus-dem.c (optable, libiberty_demanglers,
591 cplus_demangle_set_style, cplus_demangle_name_to_style,
592 print_demangler_list): Likewise.
593 * hashtab.c (higher_prime_number): Likewise.
594 * strcasecmp.c (charmap): Likewise.
595 * strerror.c (error_info, strerror, main): Likewise.
596 * strncasecmp.c (charmap): Likewise.
597 * strsignal.c (signal_info): Likewise.
598
5b7836cc 5992001-09-29 DJ Delorie <dj@redhat.com>
600
601 * configure: Regenerate.
602
e7faea46 6032001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
604
605 * concat.c: Include stdlib.h.
606
997fdf4a 6072001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
608
609 * libiberty.texi: (Top level): Add syncodeindex pg. Add
610 @dircategory and @direntry directives. Add @finalout.
611 (many nodes): Lose the next,prev,up pointers on the @nide line.
612 (Using, Supplemental Functions, Replacement Functions): Fix
613 markup.
614 (Functions): Move around, to allow makeinfo to build the manual
615 without next,prev,up pointers in thye node lines.
616 (Licenses): Fix typos.
617
618 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
619 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
620 * functions.texi: Regenerate.
621
622 * copying-lib.texi: Lose the next,prev,up pointers on the @node
623 line.
624
eb765d0c 6252001-09-27 DJ Delorie <dj@redhat.com>
626
627 * configure.in: Don't use in-tree texinfo, because libiberty must
628 be built before it. Check for makeinfo version 4 or higher.
629 * functions.texi: Regenerate.
8cc9ccc9 630
614a23c6 6312001-09-20 DJ Delorie <dj@redhat.com>
632 Phil Edwards <pedwards@disaster.jaj.com>
8cc9ccc9 633
614a23c6 634 * configure.in (MAKEINFO, PERL): Detect these.
635 (--enable-maintainer-mode): Add.
636 * configure: Regenerate.
637 * Makefile.in (MAKEINFO, PERL): Define.
638 (libiberty.info, libiberty.dvi, libiberty.html): New.
639 (CFILES): Add bsearch.c.
640 (CONFIGURED_OFILES): New, list of objects configure might add.
641 (maint-missing, maint-buildall): New, for maintainers only.
642 (clean, mostlyclean): Add info/dvi/html files.
643 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
644 * gather-docs: New, for maintainers.
645 * maint-tool: New, for maintainers.
646 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
647 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
648 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
649 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
650 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
651 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
652 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
653 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
654 documentation.
8cc9ccc9 655
92f03c00 6562001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
657
658 * concat.c (reconcat): Fix for traditional C.
659
0be2ebc7 6602001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
661
662 * concat.c (reconcat): New function.
663
add62f6a 6642001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
665
9659201a 666 * concat.c (vconcat_length, vconcat_copy, concat_length,
667 concat_copy, concat_copy2): New functions.
668 (concat): Use vconcat_length/vconcat_copy.
669
add62f6a 670 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
671 Define.
672
2bfbbd2b 6732001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
674
675 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
676 VA_FIXEDARG & VA_CLOSE.
8cc9ccc9 677
2bfbbd2b 678 * vasprintf.c: Check HAVE_STRING_H when including string.h.
679 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
680 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
681
68036f05 6822001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
683
684 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
685
958cb671 6862001-08-23 Ulrich Drepper <drepper@redhat.com>
687
688 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
689
6902001-08-23 Ulrich Drepper <drepper@redhat.com>
691
692 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
693 instead of mbrtowc.
694 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
695 wcslen, and __wcscoll instead of wcscoll.
696
b266b68b 6972001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
698
ff02de61 699 * fibheap.c (fibheap_init, fibnode_init): Remove.
700 (fibheap_new, fibnode_new): Use xcalloc to allocate and
701 initialize memory.
702 (fibheap_insert): Remove check for node allocation failure.
b266b68b 703
c6028964 7042001-08-21 Richard Henderson <rth@redhat.com>
705
706 * Makefile.in (fibheap.o): Depend on config.h.
707 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
708 functions for inlining.
709
3652f680 710Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
711
712 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
713 hosting on cygwin.
714 * configure: Regenerate.
715
95f0a124 7162001-08-20 Andrew Cagney <ac131313@redhat.com>
717
718 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
719 HARRIS_FLOAT_FORMAT.
720 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
721 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
722 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
723 (floatformat_m88110_harris_ext): New float formats.
724
522a00cd 7252001-08-20 Daniel Berlin <dan@cgsoftware.com>
726
727 * fibheap.c: New file. Fibonacci heap.
728
729 * Makefile.in (CFILES): Add fibheap.c.
730 (REQUIRED_OFILES): Add fibheap.o.
731 (fibheap.o): Add dependencies for fibheap.o.
732
6a51e4c4 7332001-08-17 Christopher Faylor <cgf@cygnus.com>
734
735 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
736 * configure: Regenerate.
737
80f07f6c 7382001-08-16 Richard Henderson <rth@redhat.com>
739
740 * hashtab.c (htab_hash_string): New.
741
e9106811 7422001-08-13 Andrew Cagney <ac131313@redhat.com>
743
744 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
745 name.
746
458e9fd0 7472001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
748
749 * regex.c (wcs_regex_compile): Use appropriate string
750 to compare with collating element.
751 Fix the padding for the alignment.
752
da8a7320 7532001-08-10 Andrew Cagney <ac131313@redhat.com>
2bce2a69 754
755 * lbasename.c (lbasename): Change function definition to return a
756 const char pointer.
757
6539a5d8 7582001-08-07 Jason Merrill <jason_merrill@redhat.com>
759
760 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
761 for".
762
2644ae20 7632001-08-03 Richard Henderson <rth@redhat.com>
764
765 * Makefile.in (concat.o): Depend on config.h.
766
6c9ffcbc 7672001-07-30 Andreas Jaeger <aj@suse.de>
768
769 * concat.c: Include "config.h".
770
9f21bac8 7712001-07-30 Andreas Jaeger <aj@suse.de>
772
773 * regex.c: Declare wcs functions only if compiling with
774 MBS_SUPPORT.
775 Don't use #elif for traditional C.
776
7772001-07-23 Ulrich Drepper <drepper@redhat.com>
778
779 * regex.c: Revamp memory allocation for WCHAR functions to
780 not use too much stack.
781
7822001-07-30 Andreas Jaeger <aj@suse.de>
783
784 * regex.c: Declare wcs functions only if compiling with
785 MBS_SUPPORT.
786 Don't use #elif for traditional C.
787
2bbbdf1a 7882001-07-25 Daniel Jacobowitz <drow@mvista.com>
789
790 * Makefile.in (regex.o): Add dependency on config.h.
791
b92e80db 7922001-07-18 Andreas Schwab <schwab@suse.de>
793
794 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
795 underscore character.
796
7972001-07-18 Ulrich Drepper <drepper@redhat.com>
798
799 * regex.c: Limit string length printed in debug messages to 100
800 chars.
801
8022001-07-18 Andreas Jaeger <aj@suse.de>
803
804 * regex.c: Place under LGPL version 2.1.
805
7703a7de 8062001-07-10 Jeff Johnston <jjohnstn@redhat.com>
807
808 * Makefile.in: Add support for regex code.
809 * regex.c: New file.
810
8568af22 8112001-07-05 Mark Klein <mklein@dis.com>
812
813 * Makefile.in: Add ffs.c dependency.
814 * configure.in: Add ffs.c.
815 * ffs.c: New file.
816
c1a60b7d 8172001-06-18 Richard Henderson <rth@redhat.com>
818
819 * concat.c: Include <sys/types.h>.
820
66806be2 8212001-06-11 Loren J. Rittle <ljrittle@acm.org>
822
2778f1dc 823 bootstrap/3106
66806be2 824 * strerror.c (sys_nerr): Hide the OS header version.
825 * strsignal.c (sys_nsig): Likewise.
826
222ce6b9 8272001-06-10 Richard Henderson <rth@redhat.com>
828
829 * concat.c: Include string.h. Fix int vs size_t usage.
830 Simplify the iteration loops. Use memcpy.
831
cb6758b9 8322001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
833
834 * partition.c: Fix misspelling of `implementation'.
835
091eef96 8362001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
837
838 * md5.c (md5_init_ctx): Declare constants as unsigned.
839 (md5_process_block): Likewise.
840
e5f55ef4 8412001-05-07 Zack Weinberg <zackw@stanford.edu>
842
843 * cp-demangle.c (demangle_v3_with_details,
844 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
845 function definition.
846 * ternary.c: Use K+R style function definitions. Use PTR, not
847 void *. Make arguments constant where possible.
848
c99b4ef9 8492001-05-07 Mark Mitchell <mark@codesourcery.com>
850
851 * splay-tree.h (splay_tree_max): New function.
852 (splay_tree_min): Likewise.
853
eec19420 8542001-04-15 Daniel Berlin <dan@cgsoftware.com>
855
856 * ternary.c: New file - Ternary search tree implementation.
857
858 * Makefile.in: Add ternary.o, and ternary.c dependencies.
859
673b6e5a 8602001-04-03 Zack Weinberg <zackw@stanford.edu>
861
862 * make-temp-file.c (try): Inline.
863
b8f02fb2 8642001-02-28 Richard Henderson <rth@redhat.com>
865
866 * Makefile.in (make-temp-file.o): Depend on config.h.
867
b130ede9 8682001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
869
870 * memchr.c (memchr): Adjust condition to avoid infinite loop.
871
5a4fcef0 8722001-03-23 Jakub Jelinek <jakub@redhat.com>
873
874 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
875 `_' not followed by a digit is invalid.
876
c83c8218 8772001-03-22 Jim Blandy <jimb@redhat.com>
878
879 * cp-demangle.c (string_list_delete): Use dyn_string_delete
880 instead of free, to free the contents as well as the string
881 structure.
882
7e660a1b 8832001-03-21 Zack Weinberg <zackw@stanford.edu>
884
885 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
886 Don't default P_tmpdir to anything. Try /var/tmp before
887 /usr/tmp.
888
e6351181 8892001-03-20 Zack Weinberg <zackw@stanford.edu>
890
891 * choose-temp.c: Split off make_temp_file, and the code
892 duplicated between it and choose_temp_base, into...
893 * make-temp-file.c: ... here; new file.
894
895 * Makefile.in (CFILES): Add make-temp-file.c.
896 (REQUIRED_OFILES): Add make-temp-file.o.
897
3a18c9fc 8982001-03-20 Jim Blandy <jimb@redhat.com>
899
900 * cp-demangle.c (struct demangling_def): New fields:
901 is_constructor and is_destructor.
902 (demangling_new): Initialize them.
903 (demangle_ctor_dtor_name): Set them, if we detect a constructor
904 or destructor.
905 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
906 is_gnu_v3_mangled_dtor): New functions.
907
d219f684 9082001-03-20 Jason Merrill <jason@redhat.com>
909
910 * cplus-dem.c (main): Skip initial $.
911
dfc58e62 9122001-03-15 Michael Meissner <meissner@redhat.com>
913
914 * hashtab.c (higher_prime_number): Silence warning that 4294967291
915 might be a signed integer under pre-ISO C systems.
916
0bce9b89 9172001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
918 John David Anglin <dave@hiauly1.hia.nrc.ca>
919
920 * libiberty/lbasename.c: New file.
921 * libiberty/Makefile.in: Update for lbasename.
922
012f1707 9232001-03-06 Zack Weinberg <zackw@stanford.edu>
924
925 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
926 * configure.in: Replace all alloca logic with a simple use of
927 the above new macro.
928 * config.table: Kill *-*-beos* entry.
929 * config/mh-beos: Delete.
930 * configure, config.in: Regenerate.
931
932 * Makefile.in (ALLOCA, HFILES): Kill.
933 (REQUIRED_OFILES): Add alloca.o.
934 (alloca.o): Depend on libiberty.h.
935 (argv.o): Don't depend on alloca-conf.h.
936 * alloca-conf.h: Delete.
937 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
938 blocks. Provide the C alloca unconditionally. Use PTR where
939 appropriate. Make i00afunc static.
940 * argv.c: Don't include alloca-conf.h.
941
163369e7 9422001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
943
944 * cplus-dem.c (main): Cast enum style to int.
945
39fb1bb6 9462001-02-16 Loren J. Rittle <ljrittle@acm.org>
947
948 * cplus-dem.c (main): Initialize style.
949
bace101a 9502001-02-02 Phil Edwards <pme@sources.redhat.com>
951
952 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
953
1c1033dd 9542001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
955
956 Add support for Java demangling under the v3 ABI:
957 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
958 (struct demangling_def): Add `style' field.
959 (demangling_new): New parameter `style'. Set it in demangling_t.
960 (demangle_prefix): Use NAMESPACE_SEPARATOR.
961 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
962 (cp_demangle): New parameter `style'. Pass it to demangling_new().
963 (main): Call cp_demangle with extra parameter.
964 (java_demangle_v3): New function.
965 (java_builtin_type_names): New. Table of primitive type names used
966 for Java demangling.
967 (demangle_builtin_type): Look up in java_builtin_type_names if doing
968 Java output.
012f1707 969 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1c1033dd 970 demangling.
971 (long_options): Remove obsolete `java' option.
972 (main): Remove explicit handling of `java' option. Instead, pass style
973 parameter in cplus_demangle flags as gdb does.
974 * testsuite/demangle.expected: Add some Java test cases.
975
fec9182b 9762000-12-29 DJ Delorie <dj@redhat.com>
977
978 * fnmatch.c: Make the note about the origins of this file more
979 accurate, at least until we can sync with glibc.
980 * getopt.c: Ditto.
981 * getopt1.c: Ditto.
982 * md5.c: Ditto.
983 * obstack.c: Ditto.
984
5b9c32cc 9852000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
986
987 * bsearch.c: New file.
988 * configure.in (funcs): Add bsearch.
989 (AC_CHECK_FUNCS): Likewise.
990 * configure, config.in: Regenerate.
991
a973e2b1 9922000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
993
994 * safe-ctype.c: #include "ansidecl.h".
995 * strtod.c: Likewise.
996
14282c1a 9972000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
998
999 * strtoul.c: Include safe-ctype.h, not ctype.h.
1000
93ce8ce4 10012000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1002
1003 * safe-ctype.c: New file.
1004 * Makefile.in (CFILES): Add safe-ctype.c.
1005 (REQUIRED_OFILES): Add safe-ctype.o.
1006
1007 * argv.c: Define ISBLANK and use it, not isspace.
1008 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1009 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1010 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1011 before calling TOLOWER(c)/TOUPPER(c).
1012
be6afa8f 10132000-12-07 Mike Stump <mrs@wrs.com>
e5fb0a98 1014
1015 * Makefile.in (distclean): When cleaning, remove testsuite.
1016
cf0ad6a8 10172000-12-05 Jason Merrill <jason@redhat.com>
1018
1019 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1020 name before allocating the dyn_string.
1021
bb505139 10222000-12-04 Jason Merrill <jason@redhat.com>
1023
1024 * cp-demangle.c: s/new_abi/v3/.
1025 * cplus-dem.c: Likewise.
1026 (current_demangling_style): Now auto_demangling.
1027 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
93ce8ce4 1028 (main): Use standard symbol chars for auto_demangling.
bb505139 1029
54b3a5af 10302000-11-26 Mark Mitchell <mark@codesourcery.com>
1031
1032 * hashtab.c (higher_prime_number): Use a table, rather than a
1033 seive, to find the next prime.
1034
9628d706 10352000-11-22 H.J. Lu <hjl@gnu.org>
1036
1037 * cplus-dem.c (main): Handle gnat_demangling.
1038
ec255163 10392000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1040
1041 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1042 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1043 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1044 argument form of AC_DEFINE in dummy definitions block. Use
1045 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1046 in dummy block. Preload cache variables instead of bypassing
1047 tests, where possible.
1048 * acconfig.h: Removed.
1049
1050 * xmalloc.c (xmalloc_failed): New function, does error
1051 reporting on failed allocation.
1052 (xmalloc, xcalloc, xrealloc): Use it.
1053
626946fb 10542000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1055
1056 * cplus-dem.c (cplus_demangle): Fix formatting.
1057 (grow_vect): Ditto.
1058 (ada_demangle): Ditto.
1059 (internal_cplus_demangle): Ditto.
1060 (mop_up): Ditto.
1061
10622000-11-21 H.J. Lu <hjl@gnu.org>
1063
1064 * cplus-dem.c (main): Handle java_demangling.
1065
918a89ef 10662000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1067
1068 * cplus-dem.c (grow_vect): Prototype.
1069 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1070
582f72ad 10712000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1072
1073 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1074 parameter `option'.
1075
0d6e3c59 10762000-11-15 Kenneth Block <kenneth.block@compaq.com>
1077
42ded3a1 1078 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 1079 be used in GCC.
1080
9df8b754 10812000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 1082
582f72ad 1083 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 1084 list.
1085
e4c2dc6e 10862000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1087
1088 * hashtab.c (htab_expand): Change to return int. Use calloc or
9f21bac8 1089 xcalloc depending on htab->return_allocation_failure. Return zero
1090 if calloc fails.
e4c2dc6e 1091 (htab_create): Update comment to cover memory allocation.
1092 (htab_try_create): New.
1093 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
9f21bac8 1094 Update comment to cover this.
e4c2dc6e 1095
696d6593 10962000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1097
1098 * hashtab.c: Change void * to PTR where necessary.
1099 (htab_create, htab_expand): Correct formatting of comment before
1100 function.
1101
8f2b45d4 11022000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 1103
1104 * cp-demangle.c (string_list_def): Add caret_position and comments.
1105 (result_caret_pos): New macro.
1106 (result_append_string): Rename to...
1107 (result_add_string): ... this, and insert at caret position.
ec255163 1108 Rename throughout.
f99edf23 1109 (result_append): Rename to...
1110 (result_add): ... this, and insert at caret position. Rename
ec255163 1111 throughout.
f99edf23 1112 (result_append_char): Rename to...
1113 (result_add_char): ... this, and insert at caret position. Rename
ec255163 1114 throughout.
f99edf23 1115 (result_append_space): Remove.
1116 (string_list_new): Initialize caret position.
1117 (result_add_separated_char): Use caret position.
1118 (result_get_caret): New funtion.
1119 (result_set_caret): Likewise.
1120 (result_shift_caret): Likewise.
1121 (result_previous_char_is_space): Likewise.
1122 (substitution_start): Use caret position.
1123 (substitution_add): Likewise.
1124 (demangling_new): Initialize caret position.
1125 (demangle_encoding): Use caret position.
ec255163 1126 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 1127 (demangle_type_ptr): Use switch statement. Handle pointers to
1128 arrays. Don't use result_append_space. Use caret position.
1129 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 1130 call to demangle_array_type.
1131 (demangle_array_type): Add parameter to handle pointers to arrays.
1132
a4e59c31 11332000-10-01 Mark Mitchell <mark@codesourcery.com>
1134
1135 * splay-tree.c (splay_tree_insert): Fix formatting.
1136
e41f0d80 11372000-09-16 Mark Mitchell <mark@codesourcery.com>
1138
1139 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1140
83d86ada 11412000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1142
1143 * splay-tree.c: #include <stdio.h>.
1144
78631810 11452000-09-14 Hans-Peter Nilsson <hp@axis.com>
1146
1147 * testsuite/demangle-expected: Add two tests for anonymous
1148 namespaces.
1149 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1150
508f18c8 11512000-09-10 Mark Mitchell <mark@codesourcery.com>
1152
1153 * splay-tree.c (splay_tree_predecessor): New function.
1154 (splay_tree_successor): Likewise.
1155
1a2d2193 11562000-09-10 Hans-Peter Nilsson <hp@axis.com>
1157
1158 * testsuite/demangle-expected: Add four tests for type_info
1159 mangling.
1a2d2193 1160 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1161 for a non-template non-qualified type_info function or node.
1162
09656987 11632000-09-08 Alex Samuel <samuel@codesourcery.com>
1164
1165 * cp-demangle.c: Fix copyright banner.
1166
7cc2d24b 11672000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1168
1169 * md5.c: #include "ansidecl.h".
1170
b83e8722 11712000-09-06 Alex Samuel <samuel@codesourcery.com>
1172
1173 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1174 (demangle_type): Handle substitution candidates correctly in the
1175 face of special substitutions.
1176
cf70278e 11772000-09-05 Alex Samuel <samuel@codesourcery.com>
1178
1179 * cp-demangle.c (demangle_encoding): Rename variable.
1180 (demangle_name): Rename parameter. Handle return type
1181 suppression.
1182 (demangle_nested_name): Rename parameter.
1183 (demangle_prefix): Likewise. Change return type suppression.
1184 (demangle_unqualified_name): Add parameter. Flag constructors and
1185 conversion operators.
1186 (demangle_special_name): Fix comment.
1187 (demangle_type): Rename variable.
1188 (demangle_bare_function_type): Check for missing return type and
ec255163 1189 parameter.
cf70278e 1190 (demangle_class_enum_type): Rename parameter.
1191 (demangle_discriminator): Fix misspelling in comment.
1192
4aabc076 11932000-08-31 DJ Delorie <dj@redhat.com>
1194
1195 * configure.in (Cygwin): special case cygwin only when we're
1196 building cygwin, not when we're hosting cygwin.
1197
804ddfd1 11982000-09-04 Alex Samuel <samuel@codesourcery.com>
1199
1200 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 1201 <expression>.
1202
e015a852 12032000-09-04 Alex Samuel <samuel@codesourcery.com>
1204
1205 * cp-demangle.c (demangle_type_ptr): Increment position past
1206 pointer and reference characters.
1207
2b6805b4 12082000-09-04 Alex Samuel <samuel@codesourcery.com>
1209
1210 * cp-demangle.c (demangle_nv_offset): New function.
1211 (demangle_v_offset): Likewise.
1212 (demangle_call_offset): Likewise.
1213 (demangle_special_name): Update thunk demangling to comply with
1214 ABI changes.
ec255163 1215
40e00cb0 12162000-09-03 Alex Samuel <samuel@codesourcery.com>
1217
1218 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1219 (substitution_def): Remove template_parm_number.
1220 (NOT_TEMPLATE_PARM): Remove.
1221 (result_insert_string): New macro.
1222 (result_insert): Likewise.
1223 (result_insert_char): Likewise.
1224 (substitution_add): Remove last parameter. Don't store template
ec255163 1225 parm number.
40e00cb0 1226 (BFT_NO_RETURN_TYPE): Define as NULL.
1227 (demangle_encoding): Adjust call to demangle_bare_function_type.
1228 (demangle_name): Adjust substitution. Adjust call to
ec255163 1229 substitution_add.
40e00cb0 1230 (demangle_prefix): Adjust call to substitution_add.
1231 (demangle_identifier): Handle anonymous namespaces.
1232 (demangle_operator_name): Change demangling of vendor-extended
1233 operator to match ABI changes.
1234 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 1235 substitutions here.
40e00cb0 1236 (demangle_type): Adjust calls to demangle_template_param,
1237 substitution_add, and demangle_type_ptr. Fix substitution of
1238 templated types.
1239 (demangle_function_type): Change parameter to a pointer.
1240 (demangle_bare_function_type): Likewise. Adjust insertion point.
1241 (demangle_template_param): Remove last parameter.
1242 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 1243 demangle_template_param.
40e00cb0 1244 (is_mangled_char): Accept `$' and `.'.
1245 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1246 * dyn-string.c (dyn_string_insert_char): New function.
1247
01f404a2 12482000-08-31 Hans-Peter Nilsson <hp@axis.com>
1249
1250 * testsuite/demangle-expected: Add nine tests for
1251 underscore-after-number followed by five tests for name-signature
1252 delimiter.
1253
d74245d4 12542000-08-28 Richard Henderson <rth@cygnus.com>
1255
1256 * Makefile.in (md5.o): Depend on config.h.
1257
19f716e5 12582000-08-28 Jason Merrill <jason@redhat.com>
1259
1260 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1261 (CFILES): Add md5.c.
1262 * md5.c: New file.
1263
f8aeab41 12642000-08-27 Alex Samuel <samuel@codesourcery.com>
1265
1266 * cp-demangle.c (demangle_name): Initialize template_p in local
1267 name case. Don't re-add substitutions as candidates.
1268 (demangle_nested_name): Use <unqualified-name>.
1269 (demangle_prefix): Likewise. Don't add template names as
1270 substitution candidates twice, or re-add a substitution or the
1271 last prefix component.
1272 (demangle_local_name): Adjust output format.
1273
62c2feed 12742000-08-25 Alex Samuel <samuel@codesourcery.com>
1275
1276 * cp-demangle.c (result_add_separated_char): Change parameter to
1277 int.
1278 (substitution_add): Don't check for duplicates. Check if
1279 previously allocated size is zero.
1280 (demangle_name): Remove duplicate check for std substitution.
1281 Clear template flag appropriately.
1282 (demangle_prefix): Remove argument to demangle_substitution.
1283 Don't check that template flag is already set.
1284 (demangle_operator_name): Add pt operator.
1285 (demangle_type): Don't treat r as built-in type. Remove argument
1286 to demangle_substitution. Fix substitution candidate mechanics.
1287 Handle <template-template-parm>s. Improve comments.
ec255163 1288 (demangle_template_param): Don't handle template arg lists here.
62c2feed 1289 (demangle_substitution): Remove parameter.
1290 (print_usage): Remove extra fprintf option.
1291
ee1d4c3d 12922000-08-24 Greg McGary <greg@mcgary.org>
1293
1294 * libiberty/random.c (end_ptr): Revert previous change.
1295
f0bff53d 12962000-08-24 Greg McGary <greg@mcgary.org>
1297
1298 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1299 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1300 * libiberty/random.c (end_ptr): Likewise.
1301
c1b316c0 13022000-08-23 Alex Samuel <samuel@codesourcery.com>
1303
1304 * cp-demangle.c (result_close_template_list): Remove function.
1305 (result_add_separated_char): New function.
1306 (result_open_template_list): New macro.
1307 (result_close_template_list): Likewise.
1308 (demangle_prefix): Don't set template_p if the
1309 prefix ends with a ctor name.
1310 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1311 (demangle_type): Check for template args after substitution.
1312 (demangle_template_args): Use result_open_template_list.
ec255163 1313
385b48fc 13142000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1315
1316 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1317
ec255163 13182000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 1319
1320 * config/mh-openedition.h: Added -DLE370 definition.
1321
8fc0efd2 13222000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1323
1324 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1325 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1326 Cast program to 'char *' in errmsg_arg assignment.
1327 (PWAIT_ERROR): Define.
1328 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1329 to DJGPP's WIF* macros.
1330
a1d4f79a 13312000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1332 Jeff Law <law@cygnus.com>
1333
98b4c197 1334 * getcwd.c: Include string.h, stdlib.h for prototypes
1335
a1d4f79a 1336 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 1337 * rename.c: Include config.h, unistd.h
1338 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 1339
01f404a2 13402000-07-24 Hans-Peter Nilsson <hp@axis.com>
1341
1342 * cplus-dem.c (work_stuff_copy_to_from): New.
1343 (delete_non_B_K_work_stuff): New.
1344 (delete_work_stuff): New.
1345 (mop_up): Break out work_stuff partly destruction to
1346 delete_non_B_K_work_stuff.
1347 (iterate_demangle_function): New.
1348 (demangle_prefix): Call iterate_demangle_function instead of
1349 demangle_function_name. Leave handling of name-signature
1350 __-delimiters to iterate_demangle_function.
1351 (demangle_integral_value): Strip an optional
1352 following underscore cautiously. Handle negative numbers.
1353
f2e5a608 13542000-07-24 Daniel Berlin <dberlin@redhat.com>
1355
ec255163 1356 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 1357 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1358
65bcf503 13592000-07-21 Alex Samuel <samuel@codesourcery.com>
1360
1361 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1362 allocating ctor mangling.
1363 (demangle_array_type): Handle empty and non-constant array length.
1364
68e6b6e1 13652000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 1366 Jeff Law <law@cygnus.com>
1367
1a163ca8 1368 * configure.in (AC_CHECK_HEADERS): Add time.h.
1369 (AC_HEADER_TIME): Add check.
1370 * configure, config.in: Regenerate.
1371 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1372
a451eef0 1373 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1374 * configure, config.in: Regenerate.
1375 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1376 * strtol.c, strtoul.c: #include "config.h". Portably #include
1377 <limits.h> and/or <sys/param.h>.
1378 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 1379
fb758229 1380 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1381 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1382 * configure, config.in: Regenerate.
1383 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1384
68e6b6e1 1385 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1386
ad46fec4 13872000-07-21 Mike Stump <mrs@wrs.com>
1388
1389 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 1390 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 1391
bb37062f 13922000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1393
1394 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1395
1396 * setenv.c (setenv): Initialize variable `ep'.
1397
1398 * sigsetmask.c (abort): Prototype.
1399
1400 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1401 __STDC__ for stdarg.h include.
1402 (int_vasprintf): Prototype.
1403 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1404 definition. Cast `global_total_width' in comparison.
1405 (main): Prototype. Return a value.
1406
1407 * vfork.c (fork): Prototype.
1408
1409 * xexit.c: Include config.h.
1410
6cb730c2 14112000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1412
1413 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1414 and print it with %u.
1415
e42d7fe1 14162000-07-17 Hans-Peter Nilsson <hp@axis.com>
1417
1418 * testsuite/regress-demangle (failed test): Show result and
1419 expected output.
1420
04ef60ef 14212000-07-07 Andrew Haley <aph@cygnus.com>
1422
1423 * cplus-dem.c (main): fflush() after emitting last char before
1424 waiting for input.
1425
b7f68aff 14262000-06-28 Alex Samuel <samuel@codesourcery.com>
1427
1428 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1429 (demangle_name): Handle <substitution> followed by
1430 <unqualified-template-name>.
1431 (demangle_type): Follow special substitutions with
1432 <class-enum-type>
1433 (demangle_subtitution): Set template_p for special substitutions.
1434 (main): Fix typos.
ec255163 1435
597f928d 14362000-06-27 Alex Samuel <samuel@codesourcery.com>
1437
1438 * cp-demangle.c (demangle_special_name): Swap base and derived
1439 class when demangling construction vtables.
1440
140d75d7 14412000-06-21 Alex Samuel <samuel@codesourcery.com>
1442
1443 * cp-demangle.c: Don't include ctype.h.
1444 (IS_DIGIT): New macro.
1445 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1446 instead of isdigit and isalpanum.
1447 (demangling_def): Make name and next const pointers.
1448 (STATUS_ALLOCATION_FAILED): New status code.
1449 (dyn_string_append_space): Handle failure in
1450 dyn_string_append_char.
1451 (int_to_dyn_string): Likewise. Change return value to status_t.
1452 (string_list_new): Handle failure of dyn_string_init.
1453 (result_close_template_list): Change return type to status_t.
1454 Handle failure in dyn_string_append.
1455 (result_push): Change return value to status_t. Handle failure in
1456 string_list_new. Handle failure of result_push throughout.
1457 (substitution_add): Change return value to status_t. Handle
1458 dyn_string failures. Handle failure of substitution_add
1459 throughout.
1460 (template_arg_list_new): Return NULL on allocation failure.
1461 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1462 Handle error result throughout.
1463 (result_append): Likewise.
1464 (result_append_char): Likewise.
1465 (result_append_space): Likewise.
1466 (demangling_new): Make argument a const pointer. Handle
1467 allocation failures.
1468 (demangle_template_args): Handle failure in template_arg_list_new
1469 and result_close_template_list.
1470 (demangle_discriminator): Return if int_to_dyn_string fails.
1471 (cp_demangle): Likewise.
1472 (cp_demangle_type): New function.
1473 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1474 memory allocation failure.
1475 (main): Likewise.
1476 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1477 IN_LIBGCC2.
1478 (dyn_string_init): Change return value to int. Handle
1479 RETURN_ON_ALLOCATION_FAILURE case.
1480 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1481 (dyn_string_release): Delete the dyn_string.
1482 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1483 (dyn_string_copy): Change return type to int.
1484 (dyn_string_copy_cstr): Likewise.
1485 (dyn_string_prepend): Likewise.
1486 (dyn_string_prepend_cstr): Likewise.
1487 (dyn_string_insert): Likewise.
1488 (dyn_string_insert_cstr): Likewise.
1489 (dyn_string_append): Likewise.
1490 (dyn_string_append_cstr): Likewise.
1491 (dyn_string_append_char): Likewise.
1492 (dyn_string_substring): Likewise.
ec255163 1493
210aba33 14942000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1495
1496 * cp-demangle.c (demangle_operator_name): Add spaces before
1497 names beginning with a letter: delete, delete[], new, new[],
1498 sizeof.
1499 (demangle_special_name): Handle TF <type> and TJ <type>.
1500
0b4450c1 1501Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1502
1503 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1504
e5d6924a 1505Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1506
1507 * cp-demangle.c (stdio.h): File included unconditionaly.
1508 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1509 * dyn-string.c (stdio.h): File included.
1510 * partition.c (partition_print): No `&' needed to take the address of
1511 a function.
1512
da8bd873 15132000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1514
1515 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 1516
da8bd873 1517 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1518
1519 * cp-demangle.c (demangle_char): Change parameter from char to int.
1520 (demangle_expression, demangle_expr_primary): Remove extra
1521 semi-colon in prototype.
1522
1523 * dyn-string.c (dyn_string_append_char): Change parameter from
1524 char to int.
1525
1526 * memcmp.c (memcmp): Constify.
1527
1528 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1529 __extension__.
1530
1531 * partition.c (elem_compare): Prototype. Don't cast away
1532 const-ness.
1533
1534 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 1535
4b7bc488 15362000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1537
1538 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1539
1540 * cp-demangle.c: Include demangle.h.
1541 (template_arg_list_new): DeANSIfy.
1542 (cp_demangle): Make static and add prototype.
1543 (operator_code, operators): Constify.
1544 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1545
7ae7b54c 15462000-06-05 Alex Samuel <samuel@codesourcery.com>
1547
1548 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1549 unsigned char.
1550 (demangle_unqualified_name): Likewise.
1551 (demangle_number_literally): Likewise.
1552 (demangle_type): Likewise.
1553 (demangle_substitution): Likewise.
1554 (is_mangled_char): Likewise, for isalnum.
1555
168d63e5 15562000-06-04 Alex Samuel <samuel@codesourcery.com>
1557
1558 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1559 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1560 (cp-demangle.o): New dependency.
1561 (dyn-string.o): Likewise.
1562
1563 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1564
1565 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1566 demangler.
1567 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1568 demangling mode.
1569 (gnu_new_abi_symbol_characters): New function.
1570 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1571 file.
1572 * cp-demangle.c: New file.
ec255163 1573
b5495c1d 1574Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1575
1576 * floatformat.c: Add name to each floatformat field.
1577
8fab1737 1578Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1579
1580 * Makefile.in (objalloc.o): Depend on config.h
1581
317ab997 15822000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1583
1584 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1585 if HAVE_STRING_H.
1586 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1587 * objalloc.c: Include config.h. Include stdlib.h and don't
1588 declare malloc or free if HAVE_STDLIB_H.
1589 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1590 else declare malloc without prototype. Include string.h if
1591 HAVE_STRING_H, else declare memset without prototype. Don't
1592 include stddef.h.
1593
874478ba 15942000-05-23 Mike Stump <mrs@wrs.com>
1595
1596 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
9f21bac8 1597 -j3.
874478ba 1598
55de1520 15992000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1600
1601 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1602
e51b357b 16032000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1604
ec255163 1605 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 1606 probably zero, also eliminate a warning on alpha.
1607
9e362499 16082000-05-15 David Edelsohn <edelsohn@gnu.org>
1609
e390e838 1610 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 1611 on $(enable_shared).
1612
06c6487f 16132000-05-10 Jakub Jelinek <jakub@redhat.com>
1614
1615 * config.table: Use mh-sparcpic for sparc*-*-*.
1616
0baf89fb 16172000-05-08 Nick Clifton <nickc@cygnus.com>
1618
1619 * Makefile.in (CFILES): Add strncmp.c.
1620 (NEEDED): Add strncmp.
1621
59f72e4d 16222000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1623
1624 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1625 Cast the arguments to `islower' to `unsigned char'.
1626 (print_demangler_list): Prototype.
1627
fb0c90ed 1628Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1629
1630 * sort.c (UCHAR_MAX): Provide fallback definition.
1631
167a5f18 16322000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1633
1634 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1635 SUBDIRS.
1636
6f572555 16372000-04-28 Kenneth Block <block@zk3.dec.com>
1638 Jason Merrill <jason@casey.cygnus.com>
1639
ec255163 1640 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1641 (cplus_demangle_set_style): New function for setting style.
1642 (cplus_demangle_name_to_style): New function to translate name.
6f572555 1643
b3524c8f 16442000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1645
1646 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1647
1648 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1649 (libiberty_AC_FUNC_STRNCMP): Invoke.
1650
1651 * strncmp.c: New file.
1652
a5f725a3 1653Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1654
1655 * hashtab.c (htab_expand): Add prototype.
1656 (find_empty_slot_for_expand): Likewise.
1657
8afd4145 16582000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1659
1660 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1661 match prototype.
1662 (htab_expand): Cast the return value of xcalloc.
1663
c9dfb8ae 16642000-04-24 Mark Mitchell <mark@codesourcery.com>
1665
1666 * hashtab.c (hash_pointer): New function.
1667 (eq_pointer): Likewise.
1668 (htab_hash_pointer): New variable.
1669 (htab_eq_pointer): Likewise.
1670
85993fc6 16712000-04-23 Mark Mitchell <mark@codesourcery.com>
1672
9517f453 1673 * sort.c (sort_pointers): Fix endianness bugs.
1674
85993fc6 1675 * sort.c: New file.
1676 * Makefile.in (CFILES): Add sort.c
1677 (REQUIRED_OFILES): Add sort.o.
1678 (sort.o): New target.
1679
c9b2f47c 16802000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1681
1682 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1683 4.3BSD systems.
1684
2b3dbc20 1685Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1686
1687 * hashtab.c: Various minor cleanups.
1688 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1689 (htab_find_slot): Likewise.
1690
6ea8a864 16912000-04-16 Dave Pitts <dpitts@cozx.com>
1692
1693 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 1694
105211e5 16952000-04-05 Richard Henderson <rth@cygnus.com>
1696
1697 * splay-tree.c (splay_tree_remove): New.
1698
7669680f 16992000-03-30 Mark Mitchell <mark@codesourcery.com>
1700
1701 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1702 codes.
1703 (htab_find_with_hash): Likewise.
1704 (htab_find_slot_with_hash): Likewise.
ec255163 1705
07c797e3 17062000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1707
1708 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1709 unless it will be used. Rearrange loop for better
1710 optimization.
1711 (higher_prime_number): Add static prototype.
1712
8ef1b8d1 1713Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1714
1715 * Makefile.in (partition.o): Depend on config.h
1716
ed26da85 17172000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1718
1719 * hashtab.c (find_empty_slot_for_expand): New function.
1720 (htab_expand): Use it instead of htab_find_slot.
1721 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1722 argument HASH.
1723 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1724 (htab_find): New wrapper function.
1725 (htab_find_slot): Likewise.
1726 (htab_traverse): Pass slot, not entry, to called function.
1727
dadde703 17282000-03-09 Alex Samuel <samuel@codesourcery.com>
1729
1730 * Makefile.in (CFILES): Add partition.c.
1731 (REQUIRED_OFILES): Add partition.o.
1732 (partition.o): New rule.
1733 * partition.c: New file.
ec255163 1734
3fdd387a 17352000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1736
1737 * hashtab.c (htab_create): Set del_f.
1738 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1739 Use it.
1740
07c967f9 17412000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1742
1743 * hashtab.c: Remove debugging variables (all_searches,
1744 all_collisions, all_expansions). Delete
1745 all_hash_table_collisions.
1746 (create_hash_table, delete_hash_table, empty_hash_table,
1747 find_hash_table_entry, remove_element_from_hash_table_entry,
1748 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1749 hash_table_elements_number, hash_table_collisions): Rename to:
1750 htab_create, htab_delete, htab_empty, htab_find_slot,
1751 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1752 htab_elements, htab_collisions.
1753 (htab_find): New function, handles common case where you don't
1754 plan to add or delete an entry.
1755 (htab_expand): Don't create a whole new table, just a new
1756 entry vector.
1757 (htab_find_slot): Simplify logic.
1758
1f33a375 17591999-08-03 Ian Lance Taylor <ian@zembu.com>
1760
1761 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1762 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1763
1764 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1765 $(TARGETLIB)n so it works on MSDOS.
1766 (install_to_tooldir): Likewise.
1767
17681999-07-21 Ian Lance Taylor <ian@zembu.com>
1769
1770 From Mark Elbrecht:
1771 * makefile.dos: Remove; obsolete.
1772 * configure.bat: Remove; obsolete.
1773
17741999-07-11 Ian Lance Taylor <ian@zembu.com>
1775
1776 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1777 warning.
1778
b99e5aef 17792000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1780
1781 * pexecute.c: Conditionally include string.h.
07c967f9 1782 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 1783
6d93ad38 17842000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1785
1786 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1787 we're using gcc.
1788
1789 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1790
59dfb43e 17911999-12-27 Geoff Keating <geoffk@cygnus.com>
1792
1793 * vasprintf.c (int_vasprintf): Don't re-read the format character
1794 as this mishandles strings like '%%s'.
1795
b04bbebb 17961999-12-05 Mark Mitchell <mark@codesourcery.com>
1797
1798 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1799 rather than struct splay_tree_node.
1800 (splay_tree_insert): Use struct splay_tree_s rather than struct
1801 splay_tree.
1802
d7f8de75 1803Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1804
1805 * hashtab.c (sys/types.h): File included.
1806
7202ac7d 18071999-11-22 Jason Merrill <jason@casey.cygnus.com>
1808
1809 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1810 BSD license, pursuant with
1811
1812 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1813
bd41a79e 1814Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1815
1816 * hashtab.c: Include stdio.h.
1817
b77d3fd0 1818Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1819
1820 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1821
1b4391fe 1822Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1823
1824 * xstrdup (sys/types.h): Include this file.
1825
4bc57096 18261999-10-28 Nathan Sidwell <nathan@acm.org>
1827
1828 * Makefile.in (SUBDIRS): New macro.
1829 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1830 avoid multiple subdirectory cleaning.
1831 (*-subdir): Use SUBDIRS.
1832
9087cad2 18331999-10-25 Jim Kingdon <http://developer.redhat.com/>
1834
1835 * cplus-dem.c: Move declarations of standard_symbol_characters and
1836 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1837 warnings.
1838
21a7d507 18391999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1840
1841 * hashtab.c (find_hash_table_entry): When returning a
1842 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1843 (clear_hash_table_slot): New function which deletes an entry
1844 by its position in the table, not its value.
1845 (traverse_hash_table): New function which calls a hook
1846 function for every live entry in the table.
1847
42c870f1 18481999-10-19 Mark Mitchell <mark@codesourcery.com>
1849
1850 * cplus-dem.c (INTBUF_SIZE): New macro.
1851 (string_append_template_idx): New function.
1852 (demangle_expression): Likewise.
1853 (demangle_integral_value): Use it.
1854 (demangle_real_value): New function, split out from ...
1855 (demangle_template_value_parm): ... here. Use
1856 string_append_template_idx. Use demangle_real_value.
1857 (demangle_template): Use string_append_template_idx.
1858 (demangle_qualified): Use consume_count_with_underscores.
1859 (get_count): Tweak formatting.
1860 (do_type): Use string_append_template_idx.
07c967f9 1861
33b090eb 18621999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1863
1864 * calloc.c: Add a public domain notice.
1865
9879c2ce 1866Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1867
1868 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1869
5da6c26f 1870Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1871
1872 * Makefile.in (CFILES): Add hashtab.c
1873 (REQUIRED_OFILES): Add hashtab.o
1874 (hashtab.o): Add dependencies.
1875 * hashtab.c: New file
1876
be42b79e 1877Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1878
1879 * basename.c (DIR_SEPARATOR): New macro.
1880 (DIR_SEPARATOR_2): Likewise.
1881 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1882 (IS_DIR_SEPARATOR): Likewise.
1883 (main): Handle MSDOS style pathname.
1884
6c65e8d7 18851999-10-11 Mark Mitchell <mark@codesourcery.com>
1886
1887 * cplus-dem.c (do_type): Handle pointer to member types whose
1888 enclosing classes have namespace scope.
1889
278929f3 1890Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1891
1892 * config.table: Provide a backup shell for executing move-if-change.
1893
a7599ac8 18941999-10-02 Mark Mitchell <mark@codesourcery.com>
1895
1896 * xmalloc.c (xmalloc): Fix spelling error.
1897 (xcalloc, xrealloc): Likewise.
1898
4d84eafd 18991999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1900
1901 * cplus-dem.c (fancy_abort, demangle_integral_value,
1902 demangle_arm_hp_template, recursively_demangle,
1903 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1904 (program_name, program_version, fatal): Constify a char*.
1905 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1906 (main): Call return, not exit.
1907
8f376364 19081999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1909
1910 * choose-temp.c: Remove obsolete comment about gcc.
1911 (make_temp_file): Constify a char*.
1912
3a4fff76 1913Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1914
1915 * xmemdup.c: Include sys/types.h.
1916
7570bccb 19171999-09-07 Jeff Garzik <jgarzik@pobox.com>
1918
1919 * xmemdup.c: New xmemdup function.
1920 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1921
b50c7be3 1922Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1923
07c967f9 1924 * config.table: Add openedition target.
b50c7be3 1925 * config/mh-openedition: New file.
1926
fd0c1d22 1927Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1928
1929 * pexecute.c (pexecute): Fill in temp_base when needed.
1930
be342bf0 19311999-08-31 Richard Henderson <rth@cygnus.com>
1932
1933 * getpwd.c: Check HAVE_GETCWD before defining it away.
1934
71774460 19351999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1936
1937 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1938 (REQUIRED_OFILES): Add getpwd.o.
1939 (getpwd.o): Add target.
1940
1941 * configure.in (AC_PREREQ): Bump to 2.13.
1942 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1943
1944 * getpwd.c: New file, moved here from gcc.
1945
ac126d82 19461999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1947
1948 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1949 comparing against a signed quantity.
1950 (arm_special): Likewise.
1951 (demangle_fund_type): Likewise.
1952 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 1953 ATTRIBUTE_UNUSED.
ac126d82 1954 (main): Constify variable `valid_symbols'.
1955
4f3b4661 1956Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1957
1958 * strtoul.c (strtoul): Add parentheses around && within ||.
1959
f92ff492 1960Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1961
1962 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1963 libdir, libsubdir and tooldir.
1964
a9f46aed 19651999-08-01 Mark Mitchell <mark@codesourcery.com>
1966
1967 * splay-tree.c (splay_tree_insert): Return the new node.
1968
db081298 19691999-07-14 Richard Henderson <rth@cygnus.com>
1970
07c967f9 1971 * argv.c: Include stdlib.h and string.h instead of
db081298 1972 prototyping directly.
1973 * choose-temp.c: Conditionally include string.h.
1974
e5aa3a54 19751999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1976
1977 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1978
4ef402f7 19791999-07-11 Ian Lance Taylor <ian@zembu.com>
1980
1981 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1982 warning.
1983
d65034bd 19841999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1985
1986 * Makefile.in (needed-list): Only include stuff we actually need
1987 for libstdc++.
1988
18912799 19891999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1990
1991 * configure.in (checkfuncs): Add gettimeofday.
1992 * config.in, configure: Regenerated.
1993
d96f58b6 1994Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1995
1996 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1997 the test fails.
1998 * configure: Regenerate.
1999
4248b202 20001999-06-10 Mike Stump <mrs@wrs.com>
2001
2002 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2003 parallel builds.
2004
3c243ded 20051999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2006
2007 * putenv.c: Include ansidecl.h to define `const'.
2008 * setenv.c: Likewise.
2009
654c70ae 2010Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2011
34f75864 2012 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2013 * configure.in (funcs): Add putenv and setenv.
2014 (AC_CHECK_FUNCS): Check for putenv and setenv.
2015 * configure: Rebuilt.
2016 * putenv.c setenv.c: New files.
2017
654c70ae 2018 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2019 bytes of space using malloc.
2020
41980611 2021Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2022
2023 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2024 the *mangled pointer beyond the end of the string. Clean up code to
2025 match prevailing coding style.
2026
08b8ada9 20271999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2028
2029 * tmpnam.c (L_tmpnam): Fix typo.
2030
2fb1c6e9 2031Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2032
2033 * cplus-dem.c (standard_symbol_characters): Renamed from
2034 standard_symbol_alphabet. No longer modify TABLE.
2035 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2036 modify TABLE.
2037 (main): Corresponding changes. Use strchr to determine if a
2038 character is valid.
2039
25398e41 20401999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2041
2042 * cplus-dem.c (main): Use table lookup to distinguish identifier
2043 characters from non-identifier characters.
2044 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2045
29723d26 2046Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2047
2048 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2049 * getruntime.c: Only attempt to include sys/resource.h and
2050 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2051 are defined.
2052
dde96550 2053Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2054
2055 * configure.in (alloca detection): Handle alloca directly for interix.
2056 * configure: Rebuilt.
2057
e98ba651 2058Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2059
2060 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2061
3460a017 20621999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2063
2064 Fix from Dale Hawkins:
07c967f9 2065 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 2066 reallocated properly if we use it again.
2067
2068 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2069 stricter about syntax. Always null-terminate string.
2070
b01c0955 2071Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2072
2073 * configure.in (checkfuncs): Check for sbrk.
2074 * config.in: Rebuilt.
2075 * configure: Likewise.
2076 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2077
87c2e884 20781999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2079
2080 Fix from Marcus Daniels:
2081 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2082 identifier looking for another underscore.
2083
16b8e80f 2084Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2085
2086 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2087 * xmalloc.c: Likewise.
2088 (xcalloc): UWIN has sbrk.
2089 (xrealloc): Fix guard macro.
2090
4d0cfb7e 20911999-04-11 Richard Henderson <rth@cygnus.com>
2092
2093 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2094 or <alloca.h>.
2095 * clock.c (GNU_HZ): New definition.
2096 (clock): Use it.
2097 * getruntime.c: Likewise.
2098
2099 * config.table: Use mh-beos.
2100 * config/mh-beos: New file.
2101
0dc64970 21021999-04-11 Mark Mitchell <mark@codesourcery.com>
2103
2104 * cplus-dem.c (demangle_template_value_parm): Handle
2105 pointers-to-members.
2106 (do_type): Handle template parameters as qualifiers.
2107
9fec6063 21081999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2109
2110 * cplus-dem.c: Attempt to handle overflows in counts with some
2111 semblance of grace.
2112 (consume_count): Detect overflows. Return -1 to indicate errors,
2113 instead of zero.
2114 (demangle_template_value_parm, demangle_template): Handle change
2115 to consume_count's return convention.
2116
715f424c 21171999-04-05 Tom Tromey <tromey@cygnus.com>
2118
2119 * testsuite/regress-demangle: New file.
2120 * testsuite/demangle-expected: New file.
2121
2122 * Makefile.in (all, check, installcheck, info, install-info,
2123 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2124 distclean, maintainer-clean, realclean): Depend on corresponding
2125 `-subdir' target.
2126 (all-subdir check-subdir installcheck-subdir info-subdir
2127 install-info-subdir clean-info-subdir dvi-subdir
2128 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2129 distclean-subdir maintainer-clean-subdir): New target.
2130 * testsuite/Makefile.in: New file.
2131 * configure: Rebuilt.
2132 * configure.in: Create testsuite/Makefile.
2133
71c5948c 21341999-04-02 Mark Mitchell <mark@codesourcery.com>
2135
2136 * splay-tree.h (splay_tree_compare_pointers): Define.
2137
d1264606 21381999-03-30 Mark Mitchell <mark@codesourcery.com>
2139
2140 * splay-tree.c (splay_tree_compare_ints): Define.
2141
6fd618e7 21421999-03-30 Tom Tromey <tromey@cygnus.com>
2143
2144 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2145 don't advance input pointer.
2146 (demangle_class_name): If consume_count didn't find a count, do
2147 nothing. Don't bother with `strlen' sanity check; consume_count
2148 does it for us.
2149
bdaa26ad 21501999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2151
2152 From Art Haas <ahaas@neosoft.com>:
2153 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2154 when doing arm or hp style.
2155 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 2156
d267f778 2157Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2158
2159 * pexecute.c (__CYGWIN32__): Rename to
2160 (__CYGWIN__): this.
2161 * xmalloc.c: Likewise.
2162
2163 Changes to support i386-pc-uwin.
2164 * configure.in (*-*-uwin*): Workaround for vfork bug.
2165 * configure: Regenerate.
2166 * pexecute.c (pexecute): Be like standard Unix.
2167 (pwait): Likewise.
2168 * xmalloc.c (first_break): Define.
2169 (xmalloc_set_program_name): Use.
2170 (xmalloc): Use.
2171
90405950 2172Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2173
2174 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2175
bdaa26ad 2176Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2177
2178 * config.table: Check cygwin*, not cygwin32*.
2179
e6ed8194 2180Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2181
2182 * Makefile.in: Change mkstemp -> mkstemps.
2183
301e59c9 2184Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2185
2186 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2187 * configure.in (funcs): Check for and conditionally add mkstemps to
2188 the list of functions libiberty will provide.
2189 * configure: Rebuilt.
07c967f9 2190
89e305f9 2191Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2192
07c967f9 2193 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 2194 platforms that don't have HZ.
2195 * getruntime.c (HZ): Likewise.
2196
ecfe64e7 2197Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2198
2199 * Makefile.in (xstrdup.o): Depend on config.h.
2200
2e5e2114 2201Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2202
2203 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2204 freeing it.
2205
6aa62a59 2206Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2207
2208 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2209
bdaa26ad 2210Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2211
2212 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2213 splay-tree.o.
2214
22151999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2216
2217 * configure.in: Require autoconf 2.12.1 or higher.
2218
9e1ed734 22191998-12-30 Michael Meissner <meissner@cygnus.com>
2220
2221 * random.c (NULL): Don't redefine NULL if it is already defined.
2222
7c8c70e9 2223Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2224
2225 * argv.c (buildargv): Cast the result of alloca in assignment.
2226
2227 * choose-temp.c: Include stdlib.h.
2e5e2114 2228
7c8c70e9 2229 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
9f21bac8 2230 (snarf_numeric_literal): Constify first parameter.
2231 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2232 int, not a char.
7c8c70e9 2233 (demangle_qualifier): Likewise.
2234 (demangle_signature): Cast the argument of a ctype function to
2235 unsigned char.
2236 (arm_pt): Add parens around assignment used as truth value.
2237 (demangle_arm_hp_template): Constify variable `args'.
2238 (do_hpacc_template_const_value): Cast the argument of a ctype
2239 function to unsigned char.
2240 (do_hpacc_template_literal): Remove unused variable `i'.
2241 (snarf_numeric_literal): Constify parameter `args'.
2242 Cast the argument of a ctype function to unsigned char.
2243
2244 * floatformat.c (floatformat_to_double): Add explicit braces to
9f21bac8 2245 avoid ambiguous `else'.
2e5e2114 2246
7c8c70e9 2247 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
9f21bac8 2248 `cstart' and `cend' to unsigned char. Cast the argument of macro
2249 `FOLD', which uses ctype functions, to unsigned char.
7c8c70e9 2250
2251 * objalloc.c (free): Add prototype.
2252
9070a37e 2253Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2254
2255 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2256
bdaa26ad 2257Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2258
2259 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
9f21bac8 2260 doesn't exist.
bdaa26ad 2261 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 2262
0a5a5994 2263Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2264
2265 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2266 bumping the pointer we read from. Also prepend these codes,
2267 as we do in other places.
2268
bdaa26ad 22691998-12-18 Nick Clifton <nickc@cygnus.com>
2270
2271 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2272 'const char *' in order to match its usage when calling siblings.
2273 (snarf_numeric_literal): Make first arg 'const char **' in order
2274 to match usage.
4ed77eec 2275
50cbddd6 2276Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2277
4ed77eec 2278 * choose-temp.c: Don't check IN_GCC anymore.
2279
2280 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2281 * memchr.c (memchr): Likewise.
2282 * memcpy.c (memcpy): Likewise.
2283 * memmove.c (memmove): Likewise.
2e5e2114 2284
4ed77eec 2285 * mkstemp.c: Don't check IN_GCC anymore.
2286 * pexecute.c: Likewise.
2287 * splay-tree.c: Likewise.
2e5e2114 2288
4ed77eec 2289 * strchr.c (strchr): Use `const', not `CONST'.
2290 * strrchr.c (strrchr): Likewise.
2291 * strtol.c (strtol): Likewise.
2292 * strtoul.c (strtoul): Likewise.
2293
f75dc4de 2294Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2295 Elena Zannoni <ezannoni@cygnus.com>
2296 Stan Shebs <shebs@cygnus.com>
2297 Edith Epstein <eepstein@cygnus.com>
2298 Andres MacLeod <amacleod@cygnus.com>
2299 Satish Pai <pai@apollo.hp.com>
2300
2301 * HP aCC demangling support.
2302 * cplus-dem.c
2303 (main): Remove default to HP style demangling, set to EDG
9f21bac8 2304 demangling correctly when -edg specified; set the demangling style
2305 when user specifies 'edg'. Set strip_underscore to
2306 prepends_underscore, if not HPUXHPPA. Set
2307 current_demangling_style to hp_demangling if HPUXHPPA. Set
2308 current demangling style correctly if the switch is hp. Read
2309 label correctly also in the HP style case.
f75dc4de 2310 (work_stuff): add temp_start field; add field for volatile member
9f21bac8 2311 function.
f75dc4de 2312 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
9f21bac8 2313 style for this case is the same as ARM.
f75dc4de 2314 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2315 (demangle_arm_hp_template): new function. (It was
9f21bac8 2316 demangle_arm_pt.); check and set value of temp_start field in
2317 multiple places. Also, when ceching for end of template args,
2318 check to see if at end of static member of template class.
f75dc4de 2319 (demangle_class): new local variable : save_class_name_end Don't
9f21bac8 2320 include template args in string defining class.
f75dc4de 2321 (demangle_class_name): use demangel_arm_hp_template.
2322 (demangle_function_name): handle case where demangling style is
9f21bac8 2323 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2324 Handle EDG_DEMANGLING style. Handle constructor and destructor
2325 ops for HP style.
f75dc4de 2326 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
9f21bac8 2327 styles. global destructor and constructor for HP style are same
2328 as for ARM style. Same for local variables.
f75dc4de 2329 (demangle_qualified): handle EDG_DEMANGLING style.
2330 (demangle_signature): add case for volatile member function. For
9f21bac8 2331 cases '1' - '9' : initialize the temp_start field to -1 and handle
2332 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2333 and AUTO_DEMANGLING styles. If expecting a function and managed
2334 to demangle the funct args, then handle the LUCID_DEMANGLING,
2335 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2336 class name after "Lnnn_ in HP style case. HP style too needs to
2337 forget types. _nnn is OK for HP style, so don't report failure.
f75dc4de 2338 (do_hpacc_template_const_value): new function. Handle template's
9f21bac8 2339 value param for HP/aCC.
f75dc4de 2340 (do_hpacc_template_literal): new function. Handle a template's
9f21bac8 2341 literal parameter for HP aCC.
f75dc4de 2342 (recursively_demangle): new function
2343 (snarf_numeric_literal): new function.
2344 (usage): add 'edg' to the list of demangling styles; add hp switch
9f21bac8 2345 to message.
f75dc4de 2346
a5c56042 2347Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2348
2349 * pexecute.c: Remove obsolete ifdefed cygwin code.
2350
4ae63959 2351Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2352
2353 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2354 * cplus-dem.c: Likewise. Conform to libiberty.h.
2355 * pexecute.c: Likewise.
2356 * splay-tree.c: Likewise.
2357
b41b6b67 23581998-11-25 Mike Stump <mrs@wrs.com>
2359
2360 * Makefile.in (splay-tree.o): Add config.h dependency.
2361
a1dd5bff 2362Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2363
2364 * configure.in: Use AC_PREREQ(2.12.1).
2365
d54546fb 23661998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2367
07c967f9 2368 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 2369
9fdb1080 2370Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2371
2372 * mpw.c (mpw_access): Add missing parens.
2373
1ed7db2f 2374Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2375
2376 * configure.in: Call AC_HEADER_SYS_WAIT.
2377
2378 * pexecute.c: Include sys/wait.h when !IN_GCC.
2379
bdaa26ad 2380Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2381
2382 * pexecute.c: revert back to checking old Cygwin
2383 preprocessor symbol until some time has passed.
2384
2385Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2386
2387 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2388 since it will now support similar constructs.
2389
34fa8831 2390Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2391
2392 * configure.in: Check for calloc.
2393
2394 * calloc.c: New file.
2395
2396 * xmalloc.c (xcalloc): New function.
2397
75ebb412 2398Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2399
2400 *cplus-dem.c (demangle_prefix): Use the last "__"
2401 in the mangled name when looking for the signature. This allows
2402 template names to begin with "__".
2403
5b546829 24041998-11-08 Mark Mitchell <mark@markmitchell.com>
2405
73bea962 2406 * cplus-dem.c (type_kind_t): Add tk_reference.
2407 (demangle_template_value_parm): Handle it.
2408 (do_type): Use it for references, instead of tk_pointer.
2409
5b546829 2410 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2411 not internal_cplus_demangle.
2412
0e4558d2 2413Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2414
2415 * choose-temp.c: Don't include gansidecl.h.
2416 * mkstemp.c: Likewise.
2417 * pexecute.c: Likewise.
2418
7b8b8d43 2419Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2420
07c967f9 2421 * configure.in: detect cygwin* instead of cygwin32*
2422 * configure: regenerate
7b8b8d43 2423
f9a39df1 2424Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2425
2426 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
9f21bac8 2427 whether to include config.h. Possibly include unistd.h in the
2428 !IN_GCC case. Define VFORK_STRING as a printable function call
2429 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2430 defined, include vfork.h. If VMS is defined, define vfork()
2431 appropriately. Remove vfork check on USG, we're using autoconf.
2432 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2433 locally what string to use.
f9a39df1 2434
797ba725 24351998-10-26 Mark Mitchell <mark@markmitchell.com>
2436
2437 * splay-tree.c: Tweak include directives to make sure declarations of
2438 xmalloc and free are available.
2439
3662c79b 24401998-10-25 Mark Mitchell <mark@markmitchell.com>
2441
2442 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2443 anonymous namespaces.
2e5e2114 2444
af5199c0 24451998-10-23 Mark Mitchell <mark@markmitchell.com>
2446
2447 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2448 with type_quals.
2449 (TYPE_UNQUALIFIED): New macro.
2450 (TYPE_QUAL_CONST): Likewise.
2451 (TYPE_QUAL_VOLATILE): Likewise.
2452 (TYPE_QUAL_RESTRICT): Likewise.
2453 (code_for_qualifier): New function.
2454 (qualifier_string): Likewise.
2455 (demangle_qualifier): Likewise.
2456 (internal_cplus_demangle): Use them.
2457 (demangle_signature): Likewise.
2458 (demangle_template_value_parm): Likewise.
2459 (do_type): Likewise.
2460 (demangle_fund_type)): Likewise.
3662c79b 2461
e61da89d 2462Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2463
2464 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2465 to match prototype.
2466
9a4eb61d 24671998-10-21 Mark Mitchell <mark@markmitchell.com>
2468
2469 * splay-tree.c: New file.
2470 * Makefile.in (CFILES): Add it.
2471 (REQUIRED_OFILES): Likewise.
2472 (splay-tree.o): Add dependencies.
2473
e5d3a45b 2474Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2475
2476 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2477 range of 'K' index.
2478
4350e959 2479Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2480
2481 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2482
2483 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2484 `unsigned char'.
2485 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2486 comparing against one.
2487 (cplus_mangle_opname): Likewise.
2488 (demangle_integral_value): Cast argument of ctype macro to
2489 `unsigned char'.
2490 (demangle_template_value_parm): Likewise.
2491 (demangle_template): Initialize variable `bindex'. Cast the
2492 result of `strlen' to (int) when comparing against one. Remove
2493 unused variable `start_of_value_parm'.
2494 (demangle_class_name): Cast the result of `strlen' to (int) when
2495 comparing against one.
2496 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2497 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2498 when comparing against one.
2499 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2500 (get_count): Likewise.
2501 (do_type): Likewise. Cast the result of `strlen' to (int) when
2502 comparing against one.
2503 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2504 (demangle_function_name): Cast the result of `strlen' to (int)
2505 when comparing against one.
2506
2507 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2508 comparing against one.
2509
5dfe2c03 2510Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2511
07c967f9 2512 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2513 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2514 * config.in, configure: Rebuilt.
0be6f86d 2515
5dfe2c03 2516 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2517 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2518 * config.in, configure: Rebuilt.
2519
7b8b8d43 2520Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2521
07c967f9 2522 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 2523
68b78c88 2524Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2525
2526 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2527
804ec1bf 2528Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2529
2530 * Merge egcs & devo libiberty.
2531
7a1ec54f 2532