]> gcc.gnu.org Git - gcc.git/blame - libiberty/ChangeLog
configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to config.status.
[gcc.git] / libiberty / ChangeLog
CommitLineData
3343fdd2
AO
12003-02-20 Alexandre Oliva <aoliva@redhat.com>
2
3 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4 config.status.
5 * configure: Rebuilt.
6
902cf50c
DJ
72003-02-13 Daniel Jacobowitz <drow@mvista.com>
8
9 Fix PR c++/7612.
10 * cplus-dem.c (demangle_signature): Call string_delete.
11 Remove extra string_init.
12 (demangle_arm_hp_template): Call string_delete instead of
13 string_clear. Add missing string_delete call.
14 (demangle_qualified): Add missing string_delete call.
15 (do_type): Remove unused variable btype. Add missing string_delete
16 call. Call string_delete instead of string_clear.
17 (demangle_fund_type): Move variable btype inside of the switch
18 statement. Add missing string_delete call.
19 (do_arg): Call string_delete instead of string_clear. Remove extra
20 string_init.
21 (demangle_nested_args): Free work->previous_argument.
22
7ac27e08
KG
232003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24
25 * acconfig.h: New file. Add uintptr_t.
26 * config.in: Regenerated.
27
b3a8389d
JM
282003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
29
30 * libiberty.texi: Update to GFDL 1.2.
31
d8c22ce7
CC
322003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
33
34 * Makefile.in (libiberty_topdir): New subst.
35 (mkinstalldirs): Redefine in terms of the above.
36 * configure.in: AC_SUBST it.
37 * configure: Regenerate.
38
4ce1921a
CC
392003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40
41 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
42 (info-subdir, install-info-subdir, clean-info-subdir)
43 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
44 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
45 Pass $(FLAGS_TO_PASS).
46
93239fdb
AO
472003-01-27 Alexandre Oliva <aoliva@redhat.com>
48
49 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
50 /`$$CC -print-multi-os-directory`.
51
74828682
DJ
522003-01-26 Daniel Jacobowitz <drow@mvista.com>
53
54 * hashtab.c (htab_create_alloc_ex): New function.
55 (hatab_set_functions_ex): New function.
56 (htab_delete, htab_expand): Support alternate allocation functions.
57
ece0e59f
CF
582003-01-24 Christopher Faylor <cgf@redhat.com>
59
60 * configure.in: Remove special pex-cygwin consideration.
61 * configure: Regenerate.
62 * pex-cygwin.c: Remove.
63 * Makefile.in: Remove pex-cygwin.[co] lines.
64
55d0e5e0
ZW
652003-01-24 Zack Weinberg <zack@codesourcery.com>
66
67 * Makefile.in (CFILES): Add pex-*.c.
68 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
69 (CONFIGURED_OFILES): Add pex-*.o.
70 (TEXIFILES): Add pexecute.txh.
71 (pexecute.o): Delete rule.
72 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
73 pex-unix.o, pex-win32.o): New rules.
74 * configure.in: Change AC_INIT argument to xmalloc.c.
75 Compute appropriate pexecute implementation and substitute it
76 as @pexecute@.
77
78 * pexecute.c: Split up into...
79 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
80 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
81 new files.
82
83 * functions.texi: Regenerate.
84 * configure: Regenerate.
85
120cdf68
JZ
862003-01-20 Josef Zlomek <zlomekj@suse.cz>
87
88 * hashtab.c (htab_expand): Fix allocation of new entries.
89
90e5b39f
CC
902003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
91
92 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
93
d7082cd7
CC
94 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
95 mkinstalldirs command.
96
eaed9290
DS
972002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
98
99 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
100 Define for hosts with HOST_EXECUTABLE_SUFFIX.
101
ef4e4181
NC
1022002-11-24 Nick Clifton <nickc@redhat.com>
103
104 * make-relative-prefix.c (make_relative_prefix): Ensure return
105 string is empty before using strcat to construct it.
106
42766f8d
DJ
1072002-11-22 Daniel Jacobowitz <drow@mvista.com>
108
109 * Makefile.in: Add make-relative-prefix.c.
110 * make-relative-prefix.c: New file.
111 * functions.texi: Rebuilt.
112
783080ab
JJ
1132002-11-16 Jakub Jelinek <jakub@redhat.com>
114
115 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
116 used with arguments in traditional C' warnings.
117
7da64d7a
JJ
1182002-10-16 Jakub Jelinek <jakub@redhat.com>
119
120 * config.table: Use mh-s390pic for s390x too.
121
de78f58b
AJ
1222002-10-06 Andreas Jaeger <aj@suse.de>
123
124 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
125 variable and of strict-aliasing warning.
126 (grow_vect): Use char as first parameter.
127
6c5d742e
KG
1282002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
129
130 * Makefile.in (all): Fix multilib parallel build.
131
f08b7eee
JDA
1322002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
133
134 * cp-demangle.c (demangling_new): Cast 0 to enum.
135 (demangle_char): Cast return of strdup to char *.
136 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
137 (is_gnu_v3_mangled_dtor): Likewise.
138 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
139 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
140 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
141 * md5.c (md5_process_bytes): Cast results back to const void *.
142 (md5_process_block): Add cast to const md5_uint32 *.
143 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
144 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
145 unsigned short.
146 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
147 to void *.
148 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
149
8d87f295
NC
1502002-09-19 Nick Clifton <nickc@redhat.com>
151
152 * README: Update email addresses for bugs and patches.
153
6eedb9ca
MS
1542002-09-10 Mike Stump <mrs@apple.com>
155
156 * splay-tree.c (splay_tree_successor): Fix comments.
157
3fd9d606
ZW
1582002-09-11 Zack Weinberg <zack@codesourcery.com>
159
b2196e8f 160 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
161 * testsuite/Makefile.in: Adjust for test-demangle.
162 * testsuite/regress-demangle: Deleted.
163 * testsuite/test-demangle.c: New file.
164 * testsuite/demangle-expected: Change \$ to $ throughout, now that
165 this file is not being read by a shell script.
166
70c4e67a
RS
1672002-09-05 Roger Sayle <roger@eyesopen.com>
168
169 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
170
65b91091
DD
1712002-08-07 DJ Delorie <dj@redhat.com>
172
173 * regex.c (re_error_msgid): Just use a simple array of strings.
174 (re_compile_pattern): Compensate.
175 (re_comp): Likewise.
176 (re_comp): Likewise.
177 (regerror): Likewise.
178
437974a9
NB
1792002-07-29 Neil Booth <neil@daikokuya.co.uk>
180
181 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 182
28a34ec1
JM
1832002-07-10 Jason Merrill <jason@redhat.com>
184
185 * cp-demangle.c (demangle_identifier): Support extended Unicode
186 characters.
187
84326592
KG
1882002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
189
190 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 191 !defined IN_GLIBCPP_V3.
84326592 192
5d69ba1f
MM
1932002-07-01 Mark Mitchell <mark@codesourcery.com>
194
195 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
196 Set it for the "st" operator.
197 (demangle_expression): Handle expressions with types as arguments.
198
7fda878c
DR
1992002-06-30 Douglas Rupp <rupp@gnat.com>
200
201 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
202 * Makefile.in (OUTPUT_OPTION): Use.
203
112bae77
PB
2042002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
205
206 * Makefile.in (install_to_libdir): Add $(DESTDIR).
207 (install_to_tooldir): Likewise.
208
53309d5c
DR
2092002-06-17 Douglas Rupp <rupp@gnat.com>
210
211 * lbasename.c: Add 2002 to copyright.
212 (IS_DIR_SEPARATOR): Remove VMS junk.
213
045b3a49
GK
2142002-06-05 Geoffrey Keating <geoffk@redhat.com>
215
216 * hashtab.c (htab_create): New stub function for backward
217 compatibility.
218 (htab_try_create): Likewise.
219
e2500fed
GK
2202002-06-03 Geoffrey Keating <geoffk@redhat.com>
221
222 * hashtab.c (htab_create): Delete.
223 (htab_try_create): Delete.
224 (htab_create_alloc): New.
225 (htab_delete): Support user-specified memory allocation.
226 (htab_expand): Likewise.
227
9f3dbd92
RL
2282002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
229
230 * configure.in: Fix typo in the code checking for sys_errlist.
231 * configure: Regenerated.
232
e4723404
AS
2332002-05-13 Andreas Schwab <schwab@suse.de>
234
235 * config.table: Use mh-x86pic also for x86-64.
236
6706f116
AO
2372002-05-08 Alexandre Oliva <aoliva@redhat.com>
238
239 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
240 script entry, and set LD to it when configuring multilibs.
241 * configure: Rebuilt.
242
deae2ed9
MM
2432002-05-07 Mark Mitchell <mark@codesourcery.com>
244
245 * configure.in (AC_TYPE_PID_T): Use it.
246 * configure: Regenerated.
247 * getruntime.c: Include <sys/types.h>.
248 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
249
4fc4e478
RH
2502002-04-09 Richard Henderson <rth@redhat.com>
251
252 * hashtab.c (higher_prime_number): Use 7 as minimum.
253 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
254 (htab_find_slot_with_hash): Likewise.
255
bd7e6f2d
PE
2562002-04-01 Phil Edwards <pme@gcc.gnu.org>
257
258 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
259 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
260 not compile if IN_GLIBCPP_V3 defined.
261 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
262
a8f55e51
BM
2632002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
264
de78f58b 265 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
266 if it is NULL.
267
96adcacb
DD
2682002-03-27 DJ Delorie <dj@redhat.com>
269
270 * hex.c: Add documentation.
271 (_hex_value): Provide non-ASCII empty table.
272 (hex_init): Initialize the non-ASCII table.
273 * functions.texi: Regenerate.
274
2b613c6a
MM
2752002-03-27 Mark Mitchell <mark@codesourcery.com>
276
277 * dyn-string.c: Add libgcc exception to copyright notice.
278
cd862df8
L
2792002-03-26 H.J. Lu (hjl@gnu.org)
280
281 * config.table: Support --with-build-subdir.
282 * configure.in: Likewise.
283 * configure: Rebuild.
284
ed300793
SG
2852002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
286
287 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
288 seen.
289
b3dd43df
MM
2902002-03-12 Mark Mitchell <mark@codesourcery.com>
291
292 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
293 notice.
294
50c74579
DR
2952002-03-11 Douglas B Rupp <rupp@gnat.com>
296
297 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
298
957978a4
JB
2992002-03-06 Jim Blandy <jimb@redhat.com>
300
301 * splay-tree.c (splay_tree_xmalloc_allocate,
302 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
303 prototyped definitions. Mark `data' arguments as unused.
304
ccc49bed
AC
3052002-03-06 Andrew Cagney <ac131313@redhat.com>
306
307 * floatformat.c (floatformat_arm_ext_big): Delete definition.
308
48d7db63
PE
3092002-03-04 Phil Edwards <pme@gcc.gnu.org>
310
311 * configure.in: Add --enable-install-libiberty option.
312 * Makefile.in (INSTALLED_HEADERS): New variable.
313 (install_to_libdir): Possibly also copy headers.
314 * configure: Regenerated.
315
af18e951
NB
3162002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
317
318 * xmalloc.c (xmalloc_fail): Clarify error message further.
319
d8d7c3c3
NB
3202002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
321
322 * xmalloc.c (xmalloc_fail): Clarify error message.
323
00c2f96f
JB
3242002-02-22 Jim Blandy <jimb@redhat.com>
325
326 * splay-tree.c (splay_tree_xmalloc_allocate,
327 splay_tree_xmalloc_deallocate): New functions.
328 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
329 above functions and a dummy data pointer.
330 (splay_tree_new_with_allocator): New function.
331 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
332 splay_tree_remove): Use the splay tree's allocation and
333 deallocation functions.
334
b1c1a22f
SS
3352002-02-19 Scott Snyder <snyder@fnal.gov>
336
337 * testsuite/demangle-expected: Add test case for infinite loop in
338 demangler.
339 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
340 if do_type() doesn't make any progress --- prevents an infinite
341 loop.
342
336669e7
CW
3432002-02-18 Carlo Wood <carlo@gnu.org>
344
345 PR c++/5390
346 * cplus-dem.c (demangle_integral_value): Accept multi-digit
347 numbers that do not start with an underscore; This is needed
348 for integer template parameters. This doesn't break anything
349 because multi-digit numbers are never followed by a digit.
350 * testsuite/demangle-expected: Corrected all mangled test
351 cases with multi-digit template parameters: g++ 2.95.x does
352 not generate underscores around these parameters.
353
c13db5d1
JM
3542002-02-05 Jason Merrill <jason@redhat.com>
355
356 * cplus-dem.c (flags): Add DMGL_VERBOSE
357 (cplus_demangle_v3_p): Remove.
358 (demangle_it): Add DMGL_TYPES to passed flags.
359 * cp-demangle.c (cplus_demangle_v3_all): Remove.
360 (cplus_demangle_v3_type): Remove.
361 (cplus_demangle_v3): Add options parm.
362
d74697b8
L
3632002-02-02 H.J. Lu (hjl@gnu.org)
364
365 * cp-demangle.c (cp_demangle_type): Do not protect with
366 IN_LIBGCC2.
367 (cplus_demangle_v3_all): New.
368 (cplus_demangle_v3): Call cplus_demangle_v3_all.
369 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
370
371 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
372 Initialized to cplus_demangle_v3.
373 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
374 of cplus_demangle_v3.
375 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
376 command line symbol.
377
378 * testsuite/regress-demangle: Pass the mangled name at the
379 command line.
380
3a441e38
L
3812002-02-01 H.J. Lu <hjl@gnu.org>
382
383 * cp-demangle.c (cp_demangle_type): Call demangling_new with
384 DMGL_GNU_V3.
385
6d747e63
PE
3862002-01-31 Phil Edwards <pme@gcc.gnu.org>
387
388 * cp-demangle.c: Revert yesterday's change.
389
46af757b
AM
3902002-01-31 Adam Megacz <adam@xwt.org>
391
392 * gcc/libiberty/configure.in: Treat mingw the same as cywin
393 wrt HAVE_SYS_ERRLIST.
394
46ab74b1
PE
3952002-01-30 Phil Edwards <pme@gcc.gnu.org>
396
397 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
398 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
399 cp_demangle_type.
400 * testsuite/demangle-expected: New gnu-v3 test.
401
e64d0626
MV
4022002-01-22 Momchil Velikov <velco@fadata.bg>
403
404 * configure.in (variable detection): Use arrays of unspecified
405 size instead of plain integers.
406
9ce3f7e5
DD
4072002-01-18 DJ Delorie <dj@redhat.com>
408
409 * Makefile.in (TESTLIB): New. This library is for future
410 testsuites.
411 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
412 break down by letter.
413 (REQUIRED_OFILES): List long-to-compile files first.
414 (maint-deps): New, target for updating dependencies.
415 (dependencies): Update.
416 * maint-tool: Add dependency-generating option.
417 * configure.in: Check for _doprnt even if we're not providing it.
418 * configure: Regenerate.
419
420 * _doprnt.c: Modifications to allow compiling on any platform.
421 * copysign.c: Likewise.
422 * putenv.c: Likewise.
423 * setenv.c: Likewise.
424 * vsprintf.c: Likewise.
425
0e83ceb1
DR
4262002-01-15 Douglas B Rupp <rupp@gnat.com>
427
428 * mkstemps.c (mkstemps): On VMS, open temp file with option
429 that causes it to be deleted when closed.
430
adddf5bf
KG
4312002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
432
5e65297b
KG
433 * cp-demangle.c (long_options): Const-ify.
434 * cplus-dem.c (long_options): Likewise.
435
adddf5bf
KG
436 * cplus-dem.c (mystrstr): Delete. All callers changed to use
437 strstr instead.
438
a4219437
IR
4392001-12-31 Ira Ruben <ira@apple.com>
440
441 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
442 * configure: Regenerated.
af328d8d
DR
443
4442001-12-24 Douglas B. Rupp <rupp@gnat.com>
445
446 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
447 * configure: Regenerated.
a4219437 448
63de15a4
CR
4492001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
450
451 PR other/2719
452 * cplus-dem.c (consume_count): Treat negative count as an error.
453 * testsuite/demangle-expected: Added testcase.
454
ee262b6f
DR
455Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
456
457 * configure.in: Hardcode that vfork works on VMS host.
458 * configure: Regenerated.
459
d06ba3c7
RH
4602001-12-06 Richard Henderson <rth@redhat.com>
461
462 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
463 (cplus_demangle): Support no_demangling.
464
e490616e
ZW
4652001-11-27 Zack Weinberg <zack@codesourcery.com>
466
467 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
468 in libiberty context. Fix typo in leading comment.
469 * configure.in: Fix various AC_DEFINEs so autoheader works.
470 If any of vprintf, vsprintf, vfprintf is missing from libc,
471 then AC_REPLACE_FUNCS(_doprnt).
472
97e620cf 4732001-11-26 DJ Delorie <dj@redhat.com>
e490616e 474 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
475
476 * Makefile.in (stamp-h): Depend on Makefile for proper
477 serialization.
478 (*-subdir): Depend on config.h for proper serialization.
479
c3bb7df0
DD
4802001-11-26 DJ Delorie <dj@redhat.com>
481
482 * configure.in: Check for alloca.h (for regex.c and putenv.c).
483 * configure: Regenerate.
484 * config.h: Add HAVE_ALLOCA_H.
485
23850d35
KG
4862001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
487
2c47b56b
KG
488 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
489 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
490 is available.
23850d35 491
7ddfb651
JL
492Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
493
d3982b71
JL
494 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
495 * configure.in (HAVE_UINTPTR_T): Test for system defining
496 uintptr_t and define HAVE_UINTPTR_T appropriately.
497 * regex.c (uintptr_t): Do not provide a definition if the
498 system provided one.
499
7ddfb651
JL
500 * regex.c (PREFIX): Provide an alternate definition for
501 non-ANSI/ISO compilers.
502 (ARG_PREFIX): Likewise.
503
2e683037
JM
5042001-11-12 Jim Meyering <meyering@lucent.com>
505
506 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
507 this code would end up calling gettext even in packages built
508 with --disable-nls.
509 * getopt.c (_): Likewise.
510 * regex.c (_): Likewise.
511
f749bd83
AM
5122001-11-03 Alan Modra <amodra@bigpond.net.au>
513
514 * configure.in: Cope with missing makeinfo.
55a10d7c 515 * configure: Regenerate.
f749bd83 516
26ad2982
KG
5172001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
518
e5969ba6
KG
519 * hex.c (hex_init): Provide empty stub.
520
26ad2982
KG
521 * hex.c (hex_init): Delete.
522 (_hex_value): Const-ify and initialize at compile-time.
523
afb649d5
L
5242001-10-19 H.J. Lu <hjl@gnu.org>
525
526 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
527 necessary.
528
5bed56d9
DD
5292001-10-17 DJ Delorie <dj@redhat.com>
530
531 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
532 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 533 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
534 Improve manual formatting.
535 * functions.texi: Regenerate.
536
aac04c15
DD
5372001-10-15 DJ Delorie <dj@redhat.com>
538
539 * Makefile.in (TEXIFILES): Add fnmatch.txh.
540 (maint-undoc): New.
541 maint-tool: Add "undoc" tool.
542 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
543 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
544 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
545 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
546 documentation.
547 * fnmatch.txh: New.
548 * functions.texi: Regenerate.
fae8182a 549
0e4e9e8f
JM
5502001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
551
552 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
553 * strtod.c: Use "ISO C" instead of "ANSI C".
554 * functions.texi: Regenerate.
555
7f8fa05d
JM
5562001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
557
558 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
559 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
560 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
561 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
562 spelling. Give names to function arguments in documentation. Use
563 (void) prototypes in documentation.
564 * functions.texi: Regenerate.
565
0be6abca
KG
5662001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
567
568 * argv.c (buildargv, tests, main): Const-ify.
569 * cp-demangle.c (operator_code): Likewise.
570 * cplus-dem.c (optable, libiberty_demanglers,
571 cplus_demangle_set_style, cplus_demangle_name_to_style,
572 print_demangler_list): Likewise.
573 * hashtab.c (higher_prime_number): Likewise.
574 * strcasecmp.c (charmap): Likewise.
575 * strerror.c (error_info, strerror, main): Likewise.
576 * strncasecmp.c (charmap): Likewise.
577 * strsignal.c (signal_info): Likewise.
578
0e30ffc5
DD
5792001-09-29 DJ Delorie <dj@redhat.com>
580
581 * configure: Regenerate.
582
576fb787
KG
5832001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
584
585 * concat.c: Include stdlib.h.
586
e922f978
EZ
5872001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
588
589 * libiberty.texi: (Top level): Add syncodeindex pg. Add
590 @dircategory and @direntry directives. Add @finalout.
591 (many nodes): Lose the next,prev,up pointers on the @nide line.
592 (Using, Supplemental Functions, Replacement Functions): Fix
593 markup.
594 (Functions): Move around, to allow makeinfo to build the manual
595 without next,prev,up pointers in thye node lines.
596 (Licenses): Fix typos.
597
598 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
599 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
600 * functions.texi: Regenerate.
601
602 * copying-lib.texi: Lose the next,prev,up pointers on the @node
603 line.
604
ae9092da
DD
6052001-09-27 DJ Delorie <dj@redhat.com>
606
607 * configure.in: Don't use in-tree texinfo, because libiberty must
608 be built before it. Check for makeinfo version 4 or higher.
609 * functions.texi: Regenerate.
fae8182a 610
aaa5f039
DD
6112001-09-20 DJ Delorie <dj@redhat.com>
612 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 613
aaa5f039
DD
614 * configure.in (MAKEINFO, PERL): Detect these.
615 (--enable-maintainer-mode): Add.
616 * configure: Regenerate.
617 * Makefile.in (MAKEINFO, PERL): Define.
618 (libiberty.info, libiberty.dvi, libiberty.html): New.
619 (CFILES): Add bsearch.c.
620 (CONFIGURED_OFILES): New, list of objects configure might add.
621 (maint-missing, maint-buildall): New, for maintainers only.
622 (clean, mostlyclean): Add info/dvi/html files.
623 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
624 * gather-docs: New, for maintainers.
625 * maint-tool: New, for maintainers.
626 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
627 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
628 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
629 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
630 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
631 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
632 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
633 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
634 documentation.
fae8182a 635
c1766881
KG
6362001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
637
638 * concat.c (reconcat): Fix for traditional C.
639
ad43d46f
KG
6402001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
641
642 * concat.c (reconcat): New function.
643
c1d49704
KG
6442001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
645
c793eea7
KG
646 * concat.c (vconcat_length, vconcat_copy, concat_length,
647 concat_copy, concat_copy2): New functions.
648 (concat): Use vconcat_length/vconcat_copy.
649
c1d49704
KG
650 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
651 Define.
652
7a98d9b2
KG
6532001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
654
655 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
656 VA_FIXEDARG & VA_CLOSE.
fae8182a 657
7a98d9b2
KG
658 * vasprintf.c: Check HAVE_STRING_H when including string.h.
659 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
660 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
661
e2dff3f2
KG
6622001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
663
664 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
665
d0708dc1
UD
6662001-08-23 Ulrich Drepper <drepper@redhat.com>
667
668 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
669
6702001-08-23 Ulrich Drepper <drepper@redhat.com>
671
672 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
673 instead of mbrtowc.
674 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
675 wcslen, and __wcscoll instead of wcscoll.
676
ffb9435b
MK
6772001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
678
de78f58b
AJ
679 * fibheap.c (fibheap_init, fibnode_init): Remove.
680 (fibheap_new, fibnode_new): Use xcalloc to allocate and
681 initialize memory.
682 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 683
f379eac3
RH
6842001-08-21 Richard Henderson <rth@redhat.com>
685
686 * Makefile.in (fibheap.o): Depend on config.h.
687 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
688 functions for inlining.
689
b1c45ae4
CF
690Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
691
692 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
693 hosting on cygwin.
694 * configure: Regenerate.
695
0310e5ac
AC
6962001-08-20 Andrew Cagney <ac131313@redhat.com>
697
698 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
699 HARRIS_FLOAT_FORMAT.
700 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
701 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
702 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
703 (floatformat_m88110_harris_ext): New float formats.
704
8c23e0a4
DB
7052001-08-20 Daniel Berlin <dan@cgsoftware.com>
706
707 * fibheap.c: New file. Fibonacci heap.
708
709 * Makefile.in (CFILES): Add fibheap.c.
710 (REQUIRED_OFILES): Add fibheap.o.
711 (fibheap.o): Add dependencies for fibheap.o.
712
91625004
CF
7132001-08-17 Christopher Faylor <cgf@cygnus.com>
714
715 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
716 * configure: Regenerate.
717
9e0ba685
RH
7182001-08-16 Richard Henderson <rth@redhat.com>
719
720 * hashtab.c (htab_hash_string): New.
721
d80dedbe
AC
7222001-08-13 Andrew Cagney <ac131313@redhat.com>
723
724 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
725 name.
726
ccea0d85
IH
7272001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
728
729 * regex.c (wcs_regex_compile): Use appropriate string
730 to compare with collating element.
731 Fix the padding for the alignment.
732
b0e9bc8c 7332001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
734
735 * lbasename.c (lbasename): Change function definition to return a
736 const char pointer.
737
056400f1
JM
7382001-08-07 Jason Merrill <jason_merrill@redhat.com>
739
740 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
741 for".
742
4e627c41
RH
7432001-08-03 Richard Henderson <rth@redhat.com>
744
745 * Makefile.in (concat.o): Depend on config.h.
746
b6a2f884
AJ
7472001-07-30 Andreas Jaeger <aj@suse.de>
748
749 * concat.c: Include "config.h".
750
c4b9cfe0
AJ
7512001-07-30 Andreas Jaeger <aj@suse.de>
752
753 * regex.c: Declare wcs functions only if compiling with
754 MBS_SUPPORT.
755 Don't use #elif for traditional C.
756
7572001-07-23 Ulrich Drepper <drepper@redhat.com>
758
759 * regex.c: Revamp memory allocation for WCHAR functions to
760 not use too much stack.
761
7622001-07-30 Andreas Jaeger <aj@suse.de>
763
764 * regex.c: Declare wcs functions only if compiling with
765 MBS_SUPPORT.
766 Don't use #elif for traditional C.
767
2cf50fd3
DJ
7682001-07-25 Daniel Jacobowitz <drow@mvista.com>
769
770 * Makefile.in (regex.o): Add dependency on config.h.
771
27ffc806
DD
7722001-07-18 Andreas Schwab <schwab@suse.de>
773
774 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
775 underscore character.
776
7772001-07-18 Ulrich Drepper <drepper@redhat.com>
778
779 * regex.c: Limit string length printed in debug messages to 100
780 chars.
781
7822001-07-18 Andreas Jaeger <aj@suse.de>
783
784 * regex.c: Place under LGPL version 2.1.
785
dd771632
JJ
7862001-07-10 Jeff Johnston <jjohnstn@redhat.com>
787
788 * Makefile.in: Add support for regex code.
789 * regex.c: New file.
790
29650b2b
MK
7912001-07-05 Mark Klein <mklein@dis.com>
792
793 * Makefile.in: Add ffs.c dependency.
794 * configure.in: Add ffs.c.
795 * ffs.c: New file.
796
c8b28221
RH
7972001-06-18 Richard Henderson <rth@redhat.com>
798
799 * concat.c: Include <sys/types.h>.
800
473c2d0b
LR
8012001-06-11 Loren J. Rittle <ljrittle@acm.org>
802
a4c03da2 803 bootstrap/3106
473c2d0b
LR
804 * strerror.c (sys_nerr): Hide the OS header version.
805 * strsignal.c (sys_nsig): Likewise.
806
0bdcca68
RH
8072001-06-10 Richard Henderson <rth@redhat.com>
808
809 * concat.c: Include string.h. Fix int vs size_t usage.
810 Simplify the iteration loops. Use memcpy.
811
6de133d3
MK
8122001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
813
814 * partition.c: Fix misspelling of `implementation'.
815
8a153288
TS
8162001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
817
818 * md5.c (md5_init_ctx): Declare constants as unsigned.
819 (md5_process_block): Likewise.
820
641b2721
ZW
8212001-05-07 Zack Weinberg <zackw@stanford.edu>
822
823 * cp-demangle.c (demangle_v3_with_details,
824 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
825 function definition.
826 * ternary.c: Use K+R style function definitions. Use PTR, not
827 void *. Make arguments constant where possible.
828
5cdba4ff
MM
8292001-05-07 Mark Mitchell <mark@codesourcery.com>
830
831 * splay-tree.h (splay_tree_max): New function.
832 (splay_tree_min): Likewise.
833
9dab060e
DB
8342001-04-15 Daniel Berlin <dan@cgsoftware.com>
835
836 * ternary.c: New file - Ternary search tree implementation.
837
838 * Makefile.in: Add ternary.o, and ternary.c dependencies.
839
d02af173
ZW
8402001-04-03 Zack Weinberg <zackw@stanford.edu>
841
842 * make-temp-file.c (try): Inline.
843
94b68558
RH
8442001-02-28 Richard Henderson <rth@redhat.com>
845
846 * Makefile.in (make-temp-file.o): Depend on config.h.
847
27f66c0b
KG
8482001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
849
850 * memchr.c (memchr): Adjust condition to avoid infinite loop.
851
f1a0345c
JJ
8522001-03-23 Jakub Jelinek <jakub@redhat.com>
853
854 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
855 `_' not followed by a digit is invalid.
856
a519fba6
JB
8572001-03-22 Jim Blandy <jimb@redhat.com>
858
859 * cp-demangle.c (string_list_delete): Use dyn_string_delete
860 instead of free, to free the contents as well as the string
861 structure.
862
49ee944b
ZW
8632001-03-21 Zack Weinberg <zackw@stanford.edu>
864
865 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
866 Don't default P_tmpdir to anything. Try /var/tmp before
867 /usr/tmp.
868
33437dc7
ZW
8692001-03-20 Zack Weinberg <zackw@stanford.edu>
870
871 * choose-temp.c: Split off make_temp_file, and the code
872 duplicated between it and choose_temp_base, into...
873 * make-temp-file.c: ... here; new file.
874
875 * Makefile.in (CFILES): Add make-temp-file.c.
876 (REQUIRED_OFILES): Add make-temp-file.o.
877
7dce2eff
JB
8782001-03-20 Jim Blandy <jimb@redhat.com>
879
880 * cp-demangle.c (struct demangling_def): New fields:
881 is_constructor and is_destructor.
882 (demangling_new): Initialize them.
883 (demangle_ctor_dtor_name): Set them, if we detect a constructor
884 or destructor.
885 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
886 is_gnu_v3_mangled_dtor): New functions.
887
e03a61f1
JM
8882001-03-20 Jason Merrill <jason@redhat.com>
889
890 * cplus-dem.c (main): Skip initial $.
891
8860ddab
MM
8922001-03-15 Michael Meissner <meissner@redhat.com>
893
894 * hashtab.c (higher_prime_number): Silence warning that 4294967291
895 might be a signed integer under pre-ISO C systems.
896
2b757d51
NB
8972001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
898 John David Anglin <dave@hiauly1.hia.nrc.ca>
899
900 * libiberty/lbasename.c: New file.
901 * libiberty/Makefile.in: Update for lbasename.
902
1f50aafb
ZW
9032001-03-06 Zack Weinberg <zackw@stanford.edu>
904
905 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
906 * configure.in: Replace all alloca logic with a simple use of
907 the above new macro.
908 * config.table: Kill *-*-beos* entry.
909 * config/mh-beos: Delete.
910 * configure, config.in: Regenerate.
911
912 * Makefile.in (ALLOCA, HFILES): Kill.
913 (REQUIRED_OFILES): Add alloca.o.
914 (alloca.o): Depend on libiberty.h.
915 (argv.o): Don't depend on alloca-conf.h.
916 * alloca-conf.h: Delete.
917 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
918 blocks. Provide the C alloca unconditionally. Use PTR where
919 appropriate. Make i00afunc static.
920 * argv.c: Don't include alloca-conf.h.
921
d9fd5aae
JDA
9222001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
923
924 * cplus-dem.c (main): Cast enum style to int.
925
4031ed65
LR
9262001-02-16 Loren J. Rittle <ljrittle@acm.org>
927
928 * cplus-dem.c (main): Initialize style.
929
2ca46e8a
PE
9302001-02-02 Phil Edwards <pme@sources.redhat.com>
931
932 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
933
3b60dd8e
BM
9342001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
935
936 Add support for Java demangling under the v3 ABI:
937 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
938 (struct demangling_def): Add `style' field.
939 (demangling_new): New parameter `style'. Set it in demangling_t.
940 (demangle_prefix): Use NAMESPACE_SEPARATOR.
941 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
942 (cp_demangle): New parameter `style'. Pass it to demangling_new().
943 (main): Call cp_demangle with extra parameter.
944 (java_demangle_v3): New function.
945 (java_builtin_type_names): New. Table of primitive type names used
946 for Java demangling.
947 (demangle_builtin_type): Look up in java_builtin_type_names if doing
948 Java output.
1f50aafb 949 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
950 demangling.
951 (long_options): Remove obsolete `java' option.
952 (main): Remove explicit handling of `java' option. Instead, pass style
953 parameter in cplus_demangle flags as gdb does.
954 * testsuite/demangle.expected: Add some Java test cases.
955
584932e9
DD
9562000-12-29 DJ Delorie <dj@redhat.com>
957
958 * fnmatch.c: Make the note about the origins of this file more
959 accurate, at least until we can sync with glibc.
960 * getopt.c: Ditto.
961 * getopt1.c: Ditto.
962 * md5.c: Ditto.
963 * obstack.c: Ditto.
964
dac45916
MS
9652000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
966
967 * bsearch.c: New file.
968 * configure.in (funcs): Add bsearch.
969 (AC_CHECK_FUNCS): Likewise.
970 * configure, config.in: Regenerate.
971
a8e4a997
MS
9722000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
973
974 * safe-ctype.c: #include "ansidecl.h".
975 * strtod.c: Likewise.
976
75444da7
MS
9772000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
978
979 * strtoul.c: Include safe-ctype.h, not ctype.h.
980
f6bbde28
ZW
9812000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
982
983 * safe-ctype.c: New file.
984 * Makefile.in (CFILES): Add safe-ctype.c.
985 (REQUIRED_OFILES): Add safe-ctype.o.
986
987 * argv.c: Define ISBLANK and use it, not isspace.
988 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
989 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
990 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
991 before calling TOLOWER(c)/TOUPPER(c).
992
6c1ce62b 9932000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
994
995 * Makefile.in (distclean): When cleaning, remove testsuite.
996
b5d1497d
JM
9972000-12-05 Jason Merrill <jason@redhat.com>
998
999 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1000 name before allocating the dyn_string.
1001
c6e13630
JM
10022000-12-04 Jason Merrill <jason@redhat.com>
1003
1004 * cp-demangle.c: s/new_abi/v3/.
1005 * cplus-dem.c: Likewise.
1006 (current_demangling_style): Now auto_demangling.
1007 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 1008 (main): Use standard symbol chars for auto_demangling.
c6e13630 1009
a4c9b97e
MM
10102000-11-26 Mark Mitchell <mark@codesourcery.com>
1011
1012 * hashtab.c (higher_prime_number): Use a table, rather than a
1013 seive, to find the next prime.
1014
3b3bd9a7
L
10152000-11-22 H.J. Lu <hjl@gnu.org>
1016
1017 * cplus-dem.c (main): Handle gnat_demangling.
1018
d1209685
ZW
10192000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1020
1021 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1022 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1023 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1024 argument form of AC_DEFINE in dummy definitions block. Use
1025 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1026 in dummy block. Preload cache variables instead of bypassing
1027 tests, where possible.
1028 * acconfig.h: Removed.
1029
1030 * xmalloc.c (xmalloc_failed): New function, does error
1031 reporting on failed allocation.
1032 (xmalloc, xcalloc, xrealloc): Use it.
1033
cf183ac2
HPN
10342000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1035
1036 * cplus-dem.c (cplus_demangle): Fix formatting.
1037 (grow_vect): Ditto.
1038 (ada_demangle): Ditto.
1039 (internal_cplus_demangle): Ditto.
1040 (mop_up): Ditto.
1041
10422000-11-21 H.J. Lu <hjl@gnu.org>
1043
1044 * cplus-dem.c (main): Handle java_demangling.
1045
8bcc782c
KG
10462000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1047
1048 * cplus-dem.c (grow_vect): Prototype.
1049 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1050
29120f44
HPN
10512000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1052
1053 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1054 parameter `option'.
1055
0437a5a8
KB
10562000-11-15 Kenneth Block <kenneth.block@compaq.com>
1057
9e038f71 1058 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
1059 be used in GCC.
1060
eab0c1ab 10612000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 1062
29120f44 1063 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
1064 list.
1065
d50d20ec
HPN
10662000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1067
1068 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
1069 xcalloc depending on htab->return_allocation_failure. Return zero
1070 if calloc fails.
d50d20ec
HPN
1071 (htab_create): Update comment to cover memory allocation.
1072 (htab_try_create): New.
1073 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 1074 Update comment to cover this.
d50d20ec 1075
35e9340f
HPN
10762000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1077
1078 * hashtab.c: Change void * to PTR where necessary.
1079 (htab_create, htab_expand): Correct formatting of comment before
1080 function.
1081
ea343d1a 10822000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
1083
1084 * cp-demangle.c (string_list_def): Add caret_position and comments.
1085 (result_caret_pos): New macro.
1086 (result_append_string): Rename to...
1087 (result_add_string): ... this, and insert at caret position.
d1209685 1088 Rename throughout.
0870bfd6
AS
1089 (result_append): Rename to...
1090 (result_add): ... this, and insert at caret position. Rename
d1209685 1091 throughout.
0870bfd6
AS
1092 (result_append_char): Rename to...
1093 (result_add_char): ... this, and insert at caret position. Rename
d1209685 1094 throughout.
0870bfd6
AS
1095 (result_append_space): Remove.
1096 (string_list_new): Initialize caret position.
1097 (result_add_separated_char): Use caret position.
1098 (result_get_caret): New funtion.
1099 (result_set_caret): Likewise.
1100 (result_shift_caret): Likewise.
1101 (result_previous_char_is_space): Likewise.
1102 (substitution_start): Use caret position.
1103 (substitution_add): Likewise.
1104 (demangling_new): Initialize caret position.
1105 (demangle_encoding): Use caret position.
d1209685 1106 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
1107 (demangle_type_ptr): Use switch statement. Handle pointers to
1108 arrays. Don't use result_append_space. Use caret position.
1109 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
1110 call to demangle_array_type.
1111 (demangle_array_type): Add parameter to handle pointers to arrays.
1112
f15b9af9
MM
11132000-10-01 Mark Mitchell <mark@codesourcery.com>
1114
1115 * splay-tree.c (splay_tree_insert): Fix formatting.
1116
8f17b5c5
MM
11172000-09-16 Mark Mitchell <mark@codesourcery.com>
1118
1119 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1120
4eaa189a
MS
11212000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1122
1123 * splay-tree.c: #include <stdio.h>.
1124
29791078
HPN
11252000-09-14 Hans-Peter Nilsson <hp@axis.com>
1126
1127 * testsuite/demangle-expected: Add two tests for anonymous
1128 namespaces.
1129 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1130
2c9f4db7
MM
11312000-09-10 Mark Mitchell <mark@codesourcery.com>
1132
1133 * splay-tree.c (splay_tree_predecessor): New function.
1134 (splay_tree_successor): Likewise.
1135
bb22da4b
HPN
11362000-09-10 Hans-Peter Nilsson <hp@axis.com>
1137
1138 * testsuite/demangle-expected: Add four tests for type_info
1139 mangling.
bb22da4b
HPN
1140 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1141 for a non-template non-qualified type_info function or node.
1142
759e8187
AS
11432000-09-08 Alex Samuel <samuel@codesourcery.com>
1144
1145 * cp-demangle.c: Fix copyright banner.
1146
2ecd81ef
MS
11472000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1148
1149 * md5.c: #include "ansidecl.h".
1150
d93998ec
AS
11512000-09-06 Alex Samuel <samuel@codesourcery.com>
1152
1153 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1154 (demangle_type): Handle substitution candidates correctly in the
1155 face of special substitutions.
1156
1056d228
AS
11572000-09-05 Alex Samuel <samuel@codesourcery.com>
1158
1159 * cp-demangle.c (demangle_encoding): Rename variable.
1160 (demangle_name): Rename parameter. Handle return type
1161 suppression.
1162 (demangle_nested_name): Rename parameter.
1163 (demangle_prefix): Likewise. Change return type suppression.
1164 (demangle_unqualified_name): Add parameter. Flag constructors and
1165 conversion operators.
1166 (demangle_special_name): Fix comment.
1167 (demangle_type): Rename variable.
1168 (demangle_bare_function_type): Check for missing return type and
d1209685 1169 parameter.
1056d228
AS
1170 (demangle_class_enum_type): Rename parameter.
1171 (demangle_discriminator): Fix misspelling in comment.
1172
2f31ed7e
DD
11732000-08-31 DJ Delorie <dj@redhat.com>
1174
1175 * configure.in (Cygwin): special case cygwin only when we're
1176 building cygwin, not when we're hosting cygwin.
1177
02bcb9c6
AS
11782000-09-04 Alex Samuel <samuel@codesourcery.com>
1179
1180 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1181 <expression>.
1182
aee749cf
AS
11832000-09-04 Alex Samuel <samuel@codesourcery.com>
1184
1185 * cp-demangle.c (demangle_type_ptr): Increment position past
1186 pointer and reference characters.
1187
92a16bbe
AS
11882000-09-04 Alex Samuel <samuel@codesourcery.com>
1189
1190 * cp-demangle.c (demangle_nv_offset): New function.
1191 (demangle_v_offset): Likewise.
1192 (demangle_call_offset): Likewise.
1193 (demangle_special_name): Update thunk demangling to comply with
1194 ABI changes.
d1209685 1195
31e0ab1f
AS
11962000-09-03 Alex Samuel <samuel@codesourcery.com>
1197
1198 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1199 (substitution_def): Remove template_parm_number.
1200 (NOT_TEMPLATE_PARM): Remove.
1201 (result_insert_string): New macro.
1202 (result_insert): Likewise.
1203 (result_insert_char): Likewise.
1204 (substitution_add): Remove last parameter. Don't store template
d1209685 1205 parm number.
31e0ab1f
AS
1206 (BFT_NO_RETURN_TYPE): Define as NULL.
1207 (demangle_encoding): Adjust call to demangle_bare_function_type.
1208 (demangle_name): Adjust substitution. Adjust call to
d1209685 1209 substitution_add.
31e0ab1f
AS
1210 (demangle_prefix): Adjust call to substitution_add.
1211 (demangle_identifier): Handle anonymous namespaces.
1212 (demangle_operator_name): Change demangling of vendor-extended
1213 operator to match ABI changes.
1214 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1215 substitutions here.
31e0ab1f
AS
1216 (demangle_type): Adjust calls to demangle_template_param,
1217 substitution_add, and demangle_type_ptr. Fix substitution of
1218 templated types.
1219 (demangle_function_type): Change parameter to a pointer.
1220 (demangle_bare_function_type): Likewise. Adjust insertion point.
1221 (demangle_template_param): Remove last parameter.
1222 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1223 demangle_template_param.
31e0ab1f
AS
1224 (is_mangled_char): Accept `$' and `.'.
1225 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1226 * dyn-string.c (dyn_string_insert_char): New function.
1227
ccbc3eb7
HPN
12282000-08-31 Hans-Peter Nilsson <hp@axis.com>
1229
1230 * testsuite/demangle-expected: Add nine tests for
1231 underscore-after-number followed by five tests for name-signature
1232 delimiter.
1233
53dce582
RH
12342000-08-28 Richard Henderson <rth@cygnus.com>
1235
1236 * Makefile.in (md5.o): Depend on config.h.
1237
881c6935
JM
12382000-08-28 Jason Merrill <jason@redhat.com>
1239
1240 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1241 (CFILES): Add md5.c.
1242 * md5.c: New file.
1243
a440fd19
AS
12442000-08-27 Alex Samuel <samuel@codesourcery.com>
1245
1246 * cp-demangle.c (demangle_name): Initialize template_p in local
1247 name case. Don't re-add substitutions as candidates.
1248 (demangle_nested_name): Use <unqualified-name>.
1249 (demangle_prefix): Likewise. Don't add template names as
1250 substitution candidates twice, or re-add a substitution or the
1251 last prefix component.
1252 (demangle_local_name): Adjust output format.
1253
d01ce591
AS
12542000-08-25 Alex Samuel <samuel@codesourcery.com>
1255
1256 * cp-demangle.c (result_add_separated_char): Change parameter to
1257 int.
1258 (substitution_add): Don't check for duplicates. Check if
1259 previously allocated size is zero.
1260 (demangle_name): Remove duplicate check for std substitution.
1261 Clear template flag appropriately.
1262 (demangle_prefix): Remove argument to demangle_substitution.
1263 Don't check that template flag is already set.
1264 (demangle_operator_name): Add pt operator.
1265 (demangle_type): Don't treat r as built-in type. Remove argument
1266 to demangle_substitution. Fix substitution candidate mechanics.
1267 Handle <template-template-parm>s. Improve comments.
d1209685 1268 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1269 (demangle_substitution): Remove parameter.
1270 (print_usage): Remove extra fprintf option.
1271
2f59c8eb
GM
12722000-08-24 Greg McGary <greg@mcgary.org>
1273
1274 * libiberty/random.c (end_ptr): Revert previous change.
1275
2f26c11d
GM
12762000-08-24 Greg McGary <greg@mcgary.org>
1277
1278 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1279 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1280 * libiberty/random.c (end_ptr): Likewise.
1281
e282c9c9
AS
12822000-08-23 Alex Samuel <samuel@codesourcery.com>
1283
1284 * cp-demangle.c (result_close_template_list): Remove function.
1285 (result_add_separated_char): New function.
1286 (result_open_template_list): New macro.
1287 (result_close_template_list): Likewise.
1288 (demangle_prefix): Don't set template_p if the
1289 prefix ends with a ctor name.
1290 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1291 (demangle_type): Check for template args after substitution.
1292 (demangle_template_args): Use result_open_template_list.
d1209685 1293
c9b6494a
ZW
12942000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1295
1296 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1297
d1209685 12982000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1299
1300 * config/mh-openedition.h: Added -DLE370 definition.
1301
0aab2795
ME
13022000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1303
1304 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1305 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1306 Cast program to 'char *' in errmsg_arg assignment.
1307 (PWAIT_ERROR): Define.
1308 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1309 to DJGPP's WIF* macros.
1310
c2f275e4
RB
13112000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1312 Jeff Law <law@cygnus.com>
1313
73aa9564
RB
1314 * getcwd.c: Include string.h, stdlib.h for prototypes
1315
c2f275e4 1316 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1317 * rename.c: Include config.h, unistd.h
1318 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1319
ccbc3eb7
HPN
13202000-07-24 Hans-Peter Nilsson <hp@axis.com>
1321
1322 * cplus-dem.c (work_stuff_copy_to_from): New.
1323 (delete_non_B_K_work_stuff): New.
1324 (delete_work_stuff): New.
1325 (mop_up): Break out work_stuff partly destruction to
1326 delete_non_B_K_work_stuff.
1327 (iterate_demangle_function): New.
1328 (demangle_prefix): Call iterate_demangle_function instead of
1329 demangle_function_name. Leave handling of name-signature
1330 __-delimiters to iterate_demangle_function.
1331 (demangle_integral_value): Strip an optional
1332 following underscore cautiously. Handle negative numbers.
1333
3388651c
DB
13342000-07-24 Daniel Berlin <dberlin@redhat.com>
1335
d1209685 1336 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1337 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1338
0fac482e
AS
13392000-07-21 Alex Samuel <samuel@codesourcery.com>
1340
1341 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1342 allocating ctor mangling.
1343 (demangle_array_type): Handle empty and non-constant array length.
1344
8502a100 13452000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1346 Jeff Law <law@cygnus.com>
1347
c6451ce1
MS
1348 * configure.in (AC_CHECK_HEADERS): Add time.h.
1349 (AC_HEADER_TIME): Add check.
1350 * configure, config.in: Regenerate.
1351 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1352
cd447360
MS
1353 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1354 * configure, config.in: Regenerate.
1355 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1356 * strtol.c, strtoul.c: #include "config.h". Portably #include
1357 <limits.h> and/or <sys/param.h>.
1358 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1359
3b58c099
MS
1360 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1361 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1362 * configure, config.in: Regenerate.
1363 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1364
8502a100
MS
1365 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1366
da0c7743
MS
13672000-07-21 Mike Stump <mrs@wrs.com>
1368
1369 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1370 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1371
838f8562
KG
13722000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1373
1374 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1375
1376 * setenv.c (setenv): Initialize variable `ep'.
1377
1378 * sigsetmask.c (abort): Prototype.
1379
1380 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1381 __STDC__ for stdarg.h include.
1382 (int_vasprintf): Prototype.
1383 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1384 definition. Cast `global_total_width' in comparison.
1385 (main): Prototype. Return a value.
1386
1387 * vfork.c (fork): Prototype.
1388
1389 * xexit.c: Include config.h.
1390
e9958132
JM
13912000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1392
1393 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1394 and print it with %u.
1395
39a6492f
HPN
13962000-07-17 Hans-Peter Nilsson <hp@axis.com>
1397
1398 * testsuite/regress-demangle (failed test): Show result and
1399 expected output.
1400
6d0be369
AH
14012000-07-07 Andrew Haley <aph@cygnus.com>
1402
1403 * cplus-dem.c (main): fflush() after emitting last char before
1404 waiting for input.
1405
bece74bd
AS
14062000-06-28 Alex Samuel <samuel@codesourcery.com>
1407
1408 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1409 (demangle_name): Handle <substitution> followed by
1410 <unqualified-template-name>.
1411 (demangle_type): Follow special substitutions with
1412 <class-enum-type>
1413 (demangle_subtitution): Set template_p for special substitutions.
1414 (main): Fix typos.
d1209685 1415
229b8ec7
AS
14162000-06-27 Alex Samuel <samuel@codesourcery.com>
1417
1418 * cp-demangle.c (demangle_special_name): Swap base and derived
1419 class when demangling construction vtables.
1420
051664b0
AS
14212000-06-21 Alex Samuel <samuel@codesourcery.com>
1422
1423 * cp-demangle.c: Don't include ctype.h.
1424 (IS_DIGIT): New macro.
1425 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1426 instead of isdigit and isalpanum.
1427 (demangling_def): Make name and next const pointers.
1428 (STATUS_ALLOCATION_FAILED): New status code.
1429 (dyn_string_append_space): Handle failure in
1430 dyn_string_append_char.
1431 (int_to_dyn_string): Likewise. Change return value to status_t.
1432 (string_list_new): Handle failure of dyn_string_init.
1433 (result_close_template_list): Change return type to status_t.
1434 Handle failure in dyn_string_append.
1435 (result_push): Change return value to status_t. Handle failure in
1436 string_list_new. Handle failure of result_push throughout.
1437 (substitution_add): Change return value to status_t. Handle
1438 dyn_string failures. Handle failure of substitution_add
1439 throughout.
1440 (template_arg_list_new): Return NULL on allocation failure.
1441 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1442 Handle error result throughout.
1443 (result_append): Likewise.
1444 (result_append_char): Likewise.
1445 (result_append_space): Likewise.
1446 (demangling_new): Make argument a const pointer. Handle
1447 allocation failures.
1448 (demangle_template_args): Handle failure in template_arg_list_new
1449 and result_close_template_list.
1450 (demangle_discriminator): Return if int_to_dyn_string fails.
1451 (cp_demangle): Likewise.
1452 (cp_demangle_type): New function.
1453 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1454 memory allocation failure.
1455 (main): Likewise.
1456 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1457 IN_LIBGCC2.
1458 (dyn_string_init): Change return value to int. Handle
1459 RETURN_ON_ALLOCATION_FAILURE case.
1460 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1461 (dyn_string_release): Delete the dyn_string.
1462 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1463 (dyn_string_copy): Change return type to int.
1464 (dyn_string_copy_cstr): Likewise.
1465 (dyn_string_prepend): Likewise.
1466 (dyn_string_prepend_cstr): Likewise.
1467 (dyn_string_insert): Likewise.
1468 (dyn_string_insert_cstr): Likewise.
1469 (dyn_string_append): Likewise.
1470 (dyn_string_append_cstr): Likewise.
1471 (dyn_string_append_char): Likewise.
1472 (dyn_string_substring): Likewise.
d1209685 1473
fe06b696
ZW
14742000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1475
1476 * cp-demangle.c (demangle_operator_name): Add spaces before
1477 names beginning with a letter: delete, delete[], new, new[],
1478 sizeof.
1479 (demangle_special_name): Handle TF <type> and TJ <type>.
1480
6223e158
PDM
1481Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1482
1483 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1484
48f3e29b
PDM
1485Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1486
1487 * cp-demangle.c (stdio.h): File included unconditionaly.
1488 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1489 * dyn-string.c (stdio.h): File included.
1490 * partition.c (partition_print): No `&' needed to take the address of
1491 a function.
1492
69197e7e
KG
14932000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1494
1495 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1496
69197e7e
KG
1497 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1498
1499 * cp-demangle.c (demangle_char): Change parameter from char to int.
1500 (demangle_expression, demangle_expr_primary): Remove extra
1501 semi-colon in prototype.
1502
1503 * dyn-string.c (dyn_string_append_char): Change parameter from
1504 char to int.
1505
1506 * memcmp.c (memcmp): Constify.
1507
1508 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1509 __extension__.
1510
1511 * partition.c (elem_compare): Prototype. Don't cast away
1512 const-ness.
1513
1514 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1515
7eb23b1f
KG
15162000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1517
1518 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1519
1520 * cp-demangle.c: Include demangle.h.
1521 (template_arg_list_new): DeANSIfy.
1522 (cp_demangle): Make static and add prototype.
1523 (operator_code, operators): Constify.
1524 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1525
3faa108c
AS
15262000-06-05 Alex Samuel <samuel@codesourcery.com>
1527
1528 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1529 unsigned char.
1530 (demangle_unqualified_name): Likewise.
1531 (demangle_number_literally): Likewise.
1532 (demangle_type): Likewise.
1533 (demangle_substitution): Likewise.
1534 (is_mangled_char): Likewise, for isalnum.
1535
69afa80d
AS
15362000-06-04 Alex Samuel <samuel@codesourcery.com>
1537
1538 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1539 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1540 (cp-demangle.o): New dependency.
1541 (dyn-string.o): Likewise.
1542
1543 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1544
1545 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1546 demangler.
1547 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1548 demangling mode.
1549 (gnu_new_abi_symbol_characters): New function.
1550 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1551 file.
1552 * cp-demangle.c: New file.
d1209685 1553
0b72c3df
AC
1554Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1555
1556 * floatformat.c: Add name to each floatformat field.
1557
270cea06
JL
1558Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1559
1560 * Makefile.in (objalloc.o): Depend on config.h
1561
d11ec6f0
ZW
15622000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1563
1564 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1565 if HAVE_STRING_H.
1566 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1567 * objalloc.c: Include config.h. Include stdlib.h and don't
1568 declare malloc or free if HAVE_STDLIB_H.
1569 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1570 else declare malloc without prototype. Include string.h if
1571 HAVE_STRING_H, else declare memset without prototype. Don't
1572 include stddef.h.
1573
f8e2da56
MS
15742000-05-23 Mike Stump <mrs@wrs.com>
1575
1576 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1577 -j3.
f8e2da56 1578
650f3068
DA
15792000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1580
1581 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1582
1d2da2e1
HB
15832000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1584
d1209685 1585 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1586 probably zero, also eliminate a warning on alpha.
1587
47668d0a
DE
15882000-05-15 David Edelsohn <edelsohn@gnu.org>
1589
c7a79a32 1590 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1591 on $(enable_shared).
1592
36348eab
JJ
15932000-05-10 Jakub Jelinek <jakub@redhat.com>
1594
1595 * config.table: Use mh-sparcpic for sparc*-*-*.
1596
209bbe34
NC
15972000-05-08 Nick Clifton <nickc@cygnus.com>
1598
1599 * Makefile.in (CFILES): Add strncmp.c.
1600 (NEEDED): Add strncmp.
1601
a85a47fb
KG
16022000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1603
1604 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1605 Cast the arguments to `islower' to `unsigned char'.
1606 (print_demangler_list): Prototype.
1607
4aef973c
PDM
1608Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1609
1610 * sort.c (UCHAR_MAX): Provide fallback definition.
1611
3b94497c
AO
16122000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1613
1614 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1615 SUBDIRS.
1616
24eaa47a
KB
16172000-04-28 Kenneth Block <block@zk3.dec.com>
1618 Jason Merrill <jason@casey.cygnus.com>
1619
d1209685
ZW
1620 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1621 (cplus_demangle_set_style): New function for setting style.
1622 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1623
a9266bfa
KG
16242000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1625
1626 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1627
1628 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1629 (libiberty_AC_FUNC_STRNCMP): Invoke.
1630
1631 * strncmp.c: New file.
1632
8e02c4d0
JH
1633Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1634
1635 * hashtab.c (htab_expand): Add prototype.
1636 (find_empty_slot_for_expand): Likewise.
1637
4feeaae3
KG
16382000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1639
1640 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1641 match prototype.
1642 (htab_expand): Cast the return value of xcalloc.
1643
18a94a2f
MM
16442000-04-24 Mark Mitchell <mark@codesourcery.com>
1645
1646 * hashtab.c (hash_pointer): New function.
1647 (eq_pointer): Likewise.
1648 (htab_hash_pointer): New variable.
1649 (htab_eq_pointer): Likewise.
1650
eeb0656f
MM
16512000-04-23 Mark Mitchell <mark@codesourcery.com>
1652
b51024fc
MM
1653 * sort.c (sort_pointers): Fix endianness bugs.
1654
eeb0656f
MM
1655 * sort.c: New file.
1656 * Makefile.in (CFILES): Add sort.c
1657 (REQUIRED_OFILES): Add sort.o.
1658 (sort.o): New target.
1659
7277f72d
MS
16602000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1661
1662 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1663 4.3BSD systems.
1664
e38992e8
RK
1665Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1666
1667 * hashtab.c: Various minor cleanups.
1668 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1669 (htab_find_slot): Likewise.
1670
498e1ab1
DP
16712000-04-16 Dave Pitts <dpitts@cozx.com>
1672
1673 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1674
dc17cc7b
RH
16752000-04-05 Richard Henderson <rth@cygnus.com>
1676
1677 * splay-tree.c (splay_tree_remove): New.
1678
b13eb66b
MM
16792000-03-30 Mark Mitchell <mark@codesourcery.com>
1680
1681 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1682 codes.
1683 (htab_find_with_hash): Likewise.
1684 (htab_find_slot_with_hash): Likewise.
d1209685 1685
0194e877
ZW
16862000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1687
1688 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1689 unless it will be used. Rearrange loop for better
1690 optimization.
1691 (higher_prime_number): Add static prototype.
1692
abc61fd4
JL
1693Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1694
1695 * Makefile.in (partition.o): Depend on config.h
1696
8c5d513f
BS
16972000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1698
1699 * hashtab.c (find_empty_slot_for_expand): New function.
1700 (htab_expand): Use it instead of htab_find_slot.
1701 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1702 argument HASH.
1703 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1704 (htab_find): New wrapper function.
1705 (htab_find_slot): Likewise.
1706 (htab_traverse): Pass slot, not entry, to called function.
1707
d9d4fb43
AS
17082000-03-09 Alex Samuel <samuel@codesourcery.com>
1709
1710 * Makefile.in (CFILES): Add partition.c.
1711 (REQUIRED_OFILES): Add partition.o.
1712 (partition.o): New rule.
1713 * partition.c: New file.
d1209685 1714
5dc9cffd
ZW
17152000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1716
1717 * hashtab.c (htab_create): Set del_f.
1718 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1719 Use it.
1720
5194cf08
ZW
17212000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1722
1723 * hashtab.c: Remove debugging variables (all_searches,
1724 all_collisions, all_expansions). Delete
1725 all_hash_table_collisions.
1726 (create_hash_table, delete_hash_table, empty_hash_table,
1727 find_hash_table_entry, remove_element_from_hash_table_entry,
1728 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1729 hash_table_elements_number, hash_table_collisions): Rename to:
1730 htab_create, htab_delete, htab_empty, htab_find_slot,
1731 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1732 htab_elements, htab_collisions.
1733 (htab_find): New function, handles common case where you don't
1734 plan to add or delete an entry.
1735 (htab_expand): Don't create a whole new table, just a new
1736 entry vector.
1737 (htab_find_slot): Simplify logic.
1738
5ad5a984
ILT
17391999-08-03 Ian Lance Taylor <ian@zembu.com>
1740
1741 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1742 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1743
1744 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1745 $(TARGETLIB)n so it works on MSDOS.
1746 (install_to_tooldir): Likewise.
1747
17481999-07-21 Ian Lance Taylor <ian@zembu.com>
1749
1750 From Mark Elbrecht:
1751 * makefile.dos: Remove; obsolete.
1752 * configure.bat: Remove; obsolete.
1753
17541999-07-11 Ian Lance Taylor <ian@zembu.com>
1755
1756 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1757 warning.
1758
aeecce42
MK
17592000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1760
1761 * pexecute.c: Conditionally include string.h.
5194cf08 1762 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1763
1eaf7d9c
KG
17642000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1765
1766 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1767 we're using gcc.
1768
1769 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1770
0fadedb2
GK
17711999-12-27 Geoff Keating <geoffk@cygnus.com>
1772
1773 * vasprintf.c (int_vasprintf): Don't re-read the format character
1774 as this mishandles strings like '%%s'.
1775
08230f26
MM
17761999-12-05 Mark Mitchell <mark@codesourcery.com>
1777
1778 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1779 rather than struct splay_tree_node.
1780 (splay_tree_insert): Use struct splay_tree_s rather than struct
1781 splay_tree.
1782
6de9b8ff
PDM
1783Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1784
1785 * hashtab.c (sys/types.h): File included.
1786
f3636679
JM
17871999-11-22 Jason Merrill <jason@casey.cygnus.com>
1788
1789 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1790 BSD license, pursuant with
1791
1792 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1793
36dd3a44
JL
1794Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1795
1796 * hashtab.c: Include stdio.h.
1797
6e300472
JL
1798Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1799
1800 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1801
df548dfc
PDM
1802Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1803
1804 * xstrdup (sys/types.h): Include this file.
1805
2c375143
NS
18061999-10-28 Nathan Sidwell <nathan@acm.org>
1807
1808 * Makefile.in (SUBDIRS): New macro.
1809 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1810 avoid multiple subdirectory cleaning.
1811 (*-subdir): Use SUBDIRS.
1812
a82cecda
JK
18131999-10-25 Jim Kingdon <http://developer.redhat.com/>
1814
1815 * cplus-dem.c: Move declarations of standard_symbol_characters and
1816 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1817 warnings.
1818
ed38f5d5
ZW
18191999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1820
1821 * hashtab.c (find_hash_table_entry): When returning a
1822 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1823 (clear_hash_table_slot): New function which deletes an entry
1824 by its position in the table, not its value.
1825 (traverse_hash_table): New function which calls a hook
1826 function for every live entry in the table.
1827
b60fe4a7
MM
18281999-10-19 Mark Mitchell <mark@codesourcery.com>
1829
1830 * cplus-dem.c (INTBUF_SIZE): New macro.
1831 (string_append_template_idx): New function.
1832 (demangle_expression): Likewise.
1833 (demangle_integral_value): Use it.
1834 (demangle_real_value): New function, split out from ...
1835 (demangle_template_value_parm): ... here. Use
1836 string_append_template_idx. Use demangle_real_value.
1837 (demangle_template): Use string_append_template_idx.
1838 (demangle_qualified): Use consume_count_with_underscores.
1839 (get_count): Tweak formatting.
1840 (do_type): Use string_append_template_idx.
5194cf08 1841
3da5522a
KG
18421999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1843
1844 * calloc.c: Add a public domain notice.
1845
d7d36ea8
PDM
1846Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1847
1848 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1849
a2f945c6
VM
1850Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1851
1852 * Makefile.in (CFILES): Add hashtab.c
1853 (REQUIRED_OFILES): Add hashtab.o
1854 (hashtab.o): Add dependencies.
1855 * hashtab.c: New file
1856
7f22ec2e
MK
1857Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1858
1859 * basename.c (DIR_SEPARATOR): New macro.
1860 (DIR_SEPARATOR_2): Likewise.
1861 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1862 (IS_DIR_SEPARATOR): Likewise.
1863 (main): Handle MSDOS style pathname.
1864
7c56a6ce
MM
18651999-10-11 Mark Mitchell <mark@codesourcery.com>
1866
1867 * cplus-dem.c (do_type): Handle pointer to member types whose
1868 enclosing classes have namespace scope.
1869
cd32188b
ME
1870Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1871
1872 * config.table: Provide a backup shell for executing move-if-change.
1873
fc232f7a
MM
18741999-10-02 Mark Mitchell <mark@codesourcery.com>
1875
1876 * xmalloc.c (xmalloc): Fix spelling error.
1877 (xcalloc, xrealloc): Likewise.
1878
2a138827
KG
18791999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1880
1881 * cplus-dem.c (fancy_abort, demangle_integral_value,
1882 demangle_arm_hp_template, recursively_demangle,
1883 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1884 (program_name, program_version, fatal): Constify a char*.
1885 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1886 (main): Call return, not exit.
1887
5a657fc3
KG
18881999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1889
1890 * choose-temp.c: Remove obsolete comment about gcc.
1891 (make_temp_file): Constify a char*.
1892
33c5ddcd
KG
1893Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1894
1895 * xmemdup.c: Include sys/types.h.
1896
b10647f1
JG
18971999-09-07 Jeff Garzik <jgarzik@pobox.com>
1898
1899 * xmemdup.c: New xmemdup function.
1900 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1901
3dd6c3af
LV
1902Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1903
5194cf08 1904 * config.table: Add openedition target.
3dd6c3af
LV
1905 * config/mh-openedition: New file.
1906
19e28e2a
ME
1907Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1908
1909 * pexecute.c (pexecute): Fill in temp_base when needed.
1910
4dfeccf9
RH
19111999-08-31 Richard Henderson <rth@cygnus.com>
1912
1913 * getpwd.c: Check HAVE_GETCWD before defining it away.
1914
4ac3cb83
KG
19151999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1916
1917 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1918 (REQUIRED_OFILES): Add getpwd.o.
1919 (getpwd.o): Add target.
1920
1921 * configure.in (AC_PREREQ): Bump to 2.13.
1922 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1923
1924 * getpwd.c: New file, moved here from gcc.
1925
e797ff70
KG
19261999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1927
1928 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1929 comparing against a signed quantity.
1930 (arm_special): Likewise.
1931 (demangle_fund_type): Likewise.
1932 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 1933 ATTRIBUTE_UNUSED.
e797ff70
KG
1934 (main): Constify variable `valid_symbols'.
1935
55247fce
PDM
1936Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1937
1938 * strtoul.c (strtoul): Add parentheses around && within ||.
1939
76632dd0
DJ
1940Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1941
1942 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1943 libdir, libsubdir and tooldir.
1944
d080bbfa
MM
19451999-08-01 Mark Mitchell <mark@codesourcery.com>
1946
1947 * splay-tree.c (splay_tree_insert): Return the new node.
1948
a81c752a
RH
19491999-07-14 Richard Henderson <rth@cygnus.com>
1950
5194cf08 1951 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
1952 prototyping directly.
1953 * choose-temp.c: Conditionally include string.h.
1954
8f1824d9
JM
19551999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1956
1957 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1958
652374d3
ILT
19591999-07-11 Ian Lance Taylor <ian@zembu.com>
1960
1961 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1962 warning.
1963
a4494286
JM
19641999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1965
1966 * Makefile.in (needed-list): Only include stuff we actually need
1967 for libstdc++.
1968
90e72e20
AS
19691999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1970
1971 * configure.in (checkfuncs): Add gettimeofday.
1972 * config.in, configure: Regenerated.
1973
b569200e
MK
1974Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1975
1976 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1977 the test fails.
1978 * configure: Regenerate.
1979
73919448
MS
19801999-06-10 Mike Stump <mrs@wrs.com>
1981
1982 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1983 parallel builds.
1984
fee9125c
KG
19851999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1986
1987 * putenv.c: Include ansidecl.h to define `const'.
1988 * setenv.c: Likewise.
1989
71cce721
MN
1990Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1991
a7c9637f
JL
1992 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1993 * configure.in (funcs): Add putenv and setenv.
1994 (AC_CHECK_FUNCS): Check for putenv and setenv.
1995 * configure: Rebuilt.
1996 * putenv.c setenv.c: New files.
1997
71cce721
MN
1998 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1999 bytes of space using malloc.
2000
53504016
SG
2001Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2002
2003 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2004 the *mangled pointer beyond the end of the string. Clean up code to
2005 match prevailing coding style.
2006
34842539
MH
20071999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2008
2009 * tmpnam.c (L_tmpnam): Fix typo.
2010
3a08531d
ME
2011Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2012
2013 * cplus-dem.c (standard_symbol_characters): Renamed from
2014 standard_symbol_alphabet. No longer modify TABLE.
2015 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2016 modify TABLE.
2017 (main): Corresponding changes. Use strchr to determine if a
2018 character is valid.
2019
8db9d08b
JB
20201999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2021
2022 * cplus-dem.c (main): Use table lookup to distinguish identifier
2023 characters from non-identifier characters.
2024 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2025
6a071f4a
FF
2026Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2027
2028 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2029 * getruntime.c: Only attempt to include sys/resource.h and
2030 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2031 are defined.
2032
7dd88617
DT
2033Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2034
2035 * configure.in (alloca detection): Handle alloca directly for interix.
2036 * configure: Rebuilt.
2037
7a1528bc
MK
2038Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2039
2040 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2041
76409268
JB
20421999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2043
2044 Fix from Dale Hawkins:
5194cf08 2045 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
2046 reallocated properly if we use it again.
2047
2048 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2049 stricter about syntax. Always null-terminate string.
2050
acbbd80a
MK
2051Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2052
2053 * configure.in (checkfuncs): Check for sbrk.
2054 * config.in: Rebuilt.
2055 * configure: Likewise.
2056 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2057
92523551
JB
20581999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2059
2060 Fix from Marcus Daniels:
2061 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2062 identifier looking for another underscore.
2063
36eb4217
MK
2064Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2065
2066 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2067 * xmalloc.c: Likewise.
2068 (xcalloc): UWIN has sbrk.
2069 (xrealloc): Fix guard macro.
2070
2c45d1a0
RH
20711999-04-11 Richard Henderson <rth@cygnus.com>
2072
2073 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2074 or <alloca.h>.
2075 * clock.c (GNU_HZ): New definition.
2076 (clock): Use it.
2077 * getruntime.c: Likewise.
2078
2079 * config.table: Use mh-beos.
2080 * config/mh-beos: New file.
2081
391cdef0
MM
20821999-04-11 Mark Mitchell <mark@codesourcery.com>
2083
2084 * cplus-dem.c (demangle_template_value_parm): Handle
2085 pointers-to-members.
2086 (do_type): Handle template parameters as qualifiers.
2087
9d229989
JB
20881999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2089
2090 * cplus-dem.c: Attempt to handle overflows in counts with some
2091 semblance of grace.
2092 (consume_count): Detect overflows. Return -1 to indicate errors,
2093 instead of zero.
2094 (demangle_template_value_parm, demangle_template): Handle change
2095 to consume_count's return convention.
2096
7c72138a
TT
20971999-04-05 Tom Tromey <tromey@cygnus.com>
2098
2099 * testsuite/regress-demangle: New file.
2100 * testsuite/demangle-expected: New file.
2101
2102 * Makefile.in (all, check, installcheck, info, install-info,
2103 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2104 distclean, maintainer-clean, realclean): Depend on corresponding
2105 `-subdir' target.
2106 (all-subdir check-subdir installcheck-subdir info-subdir
2107 install-info-subdir clean-info-subdir dvi-subdir
2108 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2109 distclean-subdir maintainer-clean-subdir): New target.
2110 * testsuite/Makefile.in: New file.
2111 * configure: Rebuilt.
2112 * configure.in: Create testsuite/Makefile.
2113
ae7f7270
MM
21141999-04-02 Mark Mitchell <mark@codesourcery.com>
2115
2116 * splay-tree.h (splay_tree_compare_pointers): Define.
2117
30f72379
MM
21181999-03-30 Mark Mitchell <mark@codesourcery.com>
2119
2120 * splay-tree.c (splay_tree_compare_ints): Define.
2121
4cc48683
TT
21221999-03-30 Tom Tromey <tromey@cygnus.com>
2123
2124 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2125 don't advance input pointer.
2126 (demangle_class_name): If consume_count didn't find a count, do
2127 nothing. Don't bother with `strlen' sanity check; consume_count
2128 does it for us.
2129
3510075c
JL
21301999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2131
2132 From Art Haas <ahaas@neosoft.com>:
2133 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2134 when doing arm or hp style.
2135 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 2136
89f602a7
MK
2137Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2138
2139 * pexecute.c (__CYGWIN32__): Rename to
2140 (__CYGWIN__): this.
2141 * xmalloc.c: Likewise.
2142
2143 Changes to support i386-pc-uwin.
2144 * configure.in (*-*-uwin*): Workaround for vfork bug.
2145 * configure: Regenerate.
2146 * pexecute.c (pexecute): Be like standard Unix.
2147 (pwait): Likewise.
2148 * xmalloc.c (first_break): Define.
2149 (xmalloc_set_program_name): Use.
2150 (xmalloc): Use.
2151
9346c824
FS
2152Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2153
2154 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2155
3510075c
JL
2156Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2157
2158 * config.table: Check cygwin*, not cygwin32*.
2159
8ec65f13
DB
2160Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2161
2162 * Makefile.in: Change mkstemp -> mkstemps.
2163
687361c8
ME
2164Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2165
2166 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2167 * configure.in (funcs): Check for and conditionally add mkstemps to
2168 the list of functions libiberty will provide.
2169 * configure: Rebuilt.
5194cf08 2170
b207e09c
MK
2171Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2172
5194cf08 2173 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2174 platforms that don't have HZ.
2175 * getruntime.c (HZ): Likewise.
2176
16b4c15e
RH
2177Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2178
2179 * Makefile.in (xstrdup.o): Depend on config.h.
2180
38beb75c
UD
2181Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2182
2183 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2184 freeing it.
2185
7e4311a3
KG
2186Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2187
2188 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2189
3510075c
JL
2190Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2191
2192 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2193 splay-tree.o.
2194
21951999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2196
2197 * configure.in: Require autoconf 2.12.1 or higher.
2198
fb9939b8
MM
21991998-12-30 Michael Meissner <meissner@cygnus.com>
2200
2201 * random.c (NULL): Don't redefine NULL if it is already defined.
2202
087aa398
KG
2203Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2204
2205 * argv.c (buildargv): Cast the result of alloca in assignment.
2206
2207 * choose-temp.c: Include stdlib.h.
38beb75c 2208
087aa398 2209 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2210 (snarf_numeric_literal): Constify first parameter.
2211 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2212 int, not a char.
087aa398
KG
2213 (demangle_qualifier): Likewise.
2214 (demangle_signature): Cast the argument of a ctype function to
2215 unsigned char.
2216 (arm_pt): Add parens around assignment used as truth value.
2217 (demangle_arm_hp_template): Constify variable `args'.
2218 (do_hpacc_template_const_value): Cast the argument of a ctype
2219 function to unsigned char.
2220 (do_hpacc_template_literal): Remove unused variable `i'.
2221 (snarf_numeric_literal): Constify parameter `args'.
2222 Cast the argument of a ctype function to unsigned char.
2223
2224 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2225 avoid ambiguous `else'.
38beb75c 2226
087aa398 2227 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2228 `cstart' and `cend' to unsigned char. Cast the argument of macro
2229 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2230
2231 * objalloc.c (free): Add prototype.
2232
21f2174d
HPN
2233Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2234
2235 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2236
3510075c
JL
2237Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2238
2239 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2240 doesn't exist.
3510075c 2241 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2242
e8fc8222
AM
2243Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2244
2245 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2246 bumping the pointer we read from. Also prepend these codes,
2247 as we do in other places.
2248
3510075c
JL
22491998-12-18 Nick Clifton <nickc@cygnus.com>
2250
2251 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2252 'const char *' in order to match its usage when calling siblings.
2253 (snarf_numeric_literal): Make first arg 'const char **' in order
2254 to match usage.
11a0bb74 2255
f4f30aa1
JL
2256Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2257
11a0bb74
KG
2258 * choose-temp.c: Don't check IN_GCC anymore.
2259
2260 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2261 * memchr.c (memchr): Likewise.
2262 * memcpy.c (memcpy): Likewise.
2263 * memmove.c (memmove): Likewise.
38beb75c 2264
11a0bb74
KG
2265 * mkstemp.c: Don't check IN_GCC anymore.
2266 * pexecute.c: Likewise.
2267 * splay-tree.c: Likewise.
38beb75c 2268
11a0bb74
KG
2269 * strchr.c (strchr): Use `const', not `CONST'.
2270 * strrchr.c (strrchr): Likewise.
2271 * strtol.c (strtol): Likewise.
2272 * strtoul.c (strtoul): Likewise.
2273
70d5ccef
DT
2274Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2275 Elena Zannoni <ezannoni@cygnus.com>
2276 Stan Shebs <shebs@cygnus.com>
2277 Edith Epstein <eepstein@cygnus.com>
2278 Andres MacLeod <amacleod@cygnus.com>
2279 Satish Pai <pai@apollo.hp.com>
2280
2281 * HP aCC demangling support.
2282 * cplus-dem.c
2283 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2284 demangling correctly when -edg specified; set the demangling style
2285 when user specifies 'edg'. Set strip_underscore to
2286 prepends_underscore, if not HPUXHPPA. Set
2287 current_demangling_style to hp_demangling if HPUXHPPA. Set
2288 current demangling style correctly if the switch is hp. Read
2289 label correctly also in the HP style case.
70d5ccef 2290 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2291 function.
70d5ccef 2292 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2293 style for this case is the same as ARM.
70d5ccef
DT
2294 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2295 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2296 demangle_arm_pt.); check and set value of temp_start field in
2297 multiple places. Also, when ceching for end of template args,
2298 check to see if at end of static member of template class.
70d5ccef 2299 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2300 include template args in string defining class.
70d5ccef
DT
2301 (demangle_class_name): use demangel_arm_hp_template.
2302 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2303 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2304 Handle EDG_DEMANGLING style. Handle constructor and destructor
2305 ops for HP style.
70d5ccef 2306 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2307 styles. global destructor and constructor for HP style are same
2308 as for ARM style. Same for local variables.
70d5ccef
DT
2309 (demangle_qualified): handle EDG_DEMANGLING style.
2310 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2311 cases '1' - '9' : initialize the temp_start field to -1 and handle
2312 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2313 and AUTO_DEMANGLING styles. If expecting a function and managed
2314 to demangle the funct args, then handle the LUCID_DEMANGLING,
2315 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2316 class name after "Lnnn_ in HP style case. HP style too needs to
2317 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2318 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2319 value param for HP/aCC.
70d5ccef 2320 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2321 literal parameter for HP aCC.
70d5ccef
DT
2322 (recursively_demangle): new function
2323 (snarf_numeric_literal): new function.
2324 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2325 to message.
70d5ccef 2326
8d525fa8
CF
2327Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2328
2329 * pexecute.c: Remove obsolete ifdefed cygwin code.
2330
9b1a92d8
KG
2331Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2332
2333 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2334 * cplus-dem.c: Likewise. Conform to libiberty.h.
2335 * pexecute.c: Likewise.
2336 * splay-tree.c: Likewise.
2337
c85c3232
MS
23381998-11-25 Mike Stump <mrs@wrs.com>
2339
2340 * Makefile.in (splay-tree.o): Add config.h dependency.
2341
35a6cd99
KG
2342Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2343
2344 * configure.in: Use AC_PREREQ(2.12.1).
2345
6e6e34b7
BK
23461998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2347
5194cf08 2348 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2349
59b67c11
JL
2350Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2351
2352 * mpw.c (mpw_access): Add missing parens.
2353
a6458d1d
KG
2354Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2355
2356 * configure.in: Call AC_HEADER_SYS_WAIT.
2357
2358 * pexecute.c: Include sys/wait.h when !IN_GCC.
2359
3510075c
JL
2360Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2361
2362 * pexecute.c: revert back to checking old Cygwin
2363 preprocessor symbol until some time has passed.
2364
2365Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2366
2367 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2368 since it will now support similar constructs.
2369
a9acf741
KG
2370Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2371
2372 * configure.in: Check for calloc.
2373
2374 * calloc.c: New file.
2375
2376 * xmalloc.c (xcalloc): New function.
2377
a49fb37a
AM
2378Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2379
2380 *cplus-dem.c (demangle_prefix): Use the last "__"
2381 in the mangled name when looking for the signature. This allows
2382 template names to begin with "__".
2383
0e714131
MM
23841998-11-08 Mark Mitchell <mark@markmitchell.com>
2385
ec2288ff
MM
2386 * cplus-dem.c (type_kind_t): Add tk_reference.
2387 (demangle_template_value_parm): Handle it.
2388 (do_type): Use it for references, instead of tk_pointer.
2389
0e714131
MM
2390 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2391 not internal_cplus_demangle.
2392
2931b6d4
KG
2393Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2394
2395 * choose-temp.c: Don't include gansidecl.h.
2396 * mkstemp.c: Likewise.
2397 * pexecute.c: Likewise.
2398
dd8f3ed5
GN
2399Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2400
5194cf08
ZW
2401 * configure.in: detect cygwin* instead of cygwin32*
2402 * configure: regenerate
dd8f3ed5 2403
c5f7c445
KG
2404Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2405
2406 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2407 whether to include config.h. Possibly include unistd.h in the
2408 !IN_GCC case. Define VFORK_STRING as a printable function call
2409 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2410 defined, include vfork.h. If VMS is defined, define vfork()
2411 appropriately. Remove vfork check on USG, we're using autoconf.
2412 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2413 locally what string to use.
c5f7c445 2414
ad3ef78e
MM
24151998-10-26 Mark Mitchell <mark@markmitchell.com>
2416
2417 * splay-tree.c: Tweak include directives to make sure declarations of
2418 xmalloc and free are available.
2419
224301c1
MM
24201998-10-25 Mark Mitchell <mark@markmitchell.com>
2421
2422 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2423 anonymous namespaces.
38beb75c 2424
d9db46fd
MM
24251998-10-23 Mark Mitchell <mark@markmitchell.com>
2426
2427 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2428 with type_quals.
2429 (TYPE_UNQUALIFIED): New macro.
2430 (TYPE_QUAL_CONST): Likewise.
2431 (TYPE_QUAL_VOLATILE): Likewise.
2432 (TYPE_QUAL_RESTRICT): Likewise.
2433 (code_for_qualifier): New function.
2434 (qualifier_string): Likewise.
2435 (demangle_qualifier): Likewise.
2436 (internal_cplus_demangle): Use them.
2437 (demangle_signature): Likewise.
2438 (demangle_template_value_parm): Likewise.
2439 (do_type): Likewise.
2440 (demangle_fund_type)): Likewise.
224301c1 2441
b056ad1c
KG
2442Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2443
2444 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2445 to match prototype.
2446
ed87f9c8
MM
24471998-10-21 Mark Mitchell <mark@markmitchell.com>
2448
2449 * splay-tree.c: New file.
2450 * Makefile.in (CFILES): Add it.
2451 (REQUIRED_OFILES): Likewise.
2452 (splay-tree.o): Add dependencies.
2453
e0c13971
AS
2454Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2455
2456 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2457 range of 'K' index.
2458
91e0f659
KG
2459Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2460
2461 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2462
2463 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2464 `unsigned char'.
2465 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2466 comparing against one.
2467 (cplus_mangle_opname): Likewise.
2468 (demangle_integral_value): Cast argument of ctype macro to
2469 `unsigned char'.
2470 (demangle_template_value_parm): Likewise.
2471 (demangle_template): Initialize variable `bindex'. Cast the
2472 result of `strlen' to (int) when comparing against one. Remove
2473 unused variable `start_of_value_parm'.
2474 (demangle_class_name): Cast the result of `strlen' to (int) when
2475 comparing against one.
2476 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2477 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2478 when comparing against one.
2479 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2480 (get_count): Likewise.
2481 (do_type): Likewise. Cast the result of `strlen' to (int) when
2482 comparing against one.
2483 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2484 (demangle_function_name): Cast the result of `strlen' to (int)
2485 when comparing against one.
2486
2487 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2488 comparing against one.
2489
73aeb2ff
JL
2490Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2491
5194cf08
ZW
2492 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2493 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2494 * config.in, configure: Rebuilt.
ae76f1be 2495
73aeb2ff
JL
2496 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2497 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2498 * config.in, configure: Rebuilt.
2499
dd8f3ed5
GN
2500Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2501
5194cf08 2502 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2503
f77d8413
MT
2504Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2505
2506 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2507
ca6b370d
JL
2508Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2509
2510 * Merge egcs & devo libiberty.
2511
ab4856b1
ML
2512