]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
Makefile.in: Remove all references to s-under and underscore.c.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
3fd9d606
ZW
12002-09-11 Zack Weinberg <zack@codesourcery.com>
2
3 * cplus-dem.c: Code code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
4 * testsuite/Makefile.in: Adjust for test-demangle.
5 * testsuite/regress-demangle: Deleted.
6 * testsuite/test-demangle.c: New file.
7 * testsuite/demangle-expected: Change \$ to $ throughout, now that
8 this file is not being read by a shell script.
9
70c4e67a
RS
102002-09-05 Roger Sayle <roger@eyesopen.com>
11
12 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
13
65b91091
DD
142002-08-07 DJ Delorie <dj@redhat.com>
15
16 * regex.c (re_error_msgid): Just use a simple array of strings.
17 (re_compile_pattern): Compensate.
18 (re_comp): Likewise.
19 (re_comp): Likewise.
20 (regerror): Likewise.
21
437974a9
NB
222002-07-29 Neil Booth <neil@daikokuya.co.uk>
23
24 * cplus-dem.c (PREPEND_BLANK): Remove.
25
28a34ec1
JM
262002-07-10 Jason Merrill <jason@redhat.com>
27
28 * cp-demangle.c (demangle_identifier): Support extended Unicode
29 characters.
30
84326592
KG
312002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32
33 * cp-demangle.c (demangle_v3_with_details): Wrap in
34 !defined IN_GLIBCPP_V3.
35
5d69ba1f
MM
362002-07-01 Mark Mitchell <mark@codesourcery.com>
37
38 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
39 Set it for the "st" operator.
40 (demangle_expression): Handle expressions with types as arguments.
41
7fda878c
DR
422002-06-30 Douglas Rupp <rupp@gnat.com>
43
44 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
45 * Makefile.in (OUTPUT_OPTION): Use.
46
112bae77
PB
472002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
48
49 * Makefile.in (install_to_libdir): Add $(DESTDIR).
50 (install_to_tooldir): Likewise.
51
53309d5c
DR
522002-06-17 Douglas Rupp <rupp@gnat.com>
53
54 * lbasename.c: Add 2002 to copyright.
55 (IS_DIR_SEPARATOR): Remove VMS junk.
56
045b3a49
GK
572002-06-05 Geoffrey Keating <geoffk@redhat.com>
58
59 * hashtab.c (htab_create): New stub function for backward
60 compatibility.
61 (htab_try_create): Likewise.
62
e2500fed
GK
632002-06-03 Geoffrey Keating <geoffk@redhat.com>
64
65 * hashtab.c (htab_create): Delete.
66 (htab_try_create): Delete.
67 (htab_create_alloc): New.
68 (htab_delete): Support user-specified memory allocation.
69 (htab_expand): Likewise.
70
9f3dbd92
RL
712002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
72
73 * configure.in: Fix typo in the code checking for sys_errlist.
74 * configure: Regenerated.
75
e4723404
AS
762002-05-13 Andreas Schwab <schwab@suse.de>
77
78 * config.table: Use mh-x86pic also for x86-64.
79
6706f116
AO
802002-05-08 Alexandre Oliva <aoliva@redhat.com>
81
82 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
83 script entry, and set LD to it when configuring multilibs.
84 * configure: Rebuilt.
85
deae2ed9
MM
862002-05-07 Mark Mitchell <mark@codesourcery.com>
87
88 * configure.in (AC_TYPE_PID_T): Use it.
89 * configure: Regenerated.
90 * getruntime.c: Include <sys/types.h>.
91 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
92
4fc4e478
RH
932002-04-09 Richard Henderson <rth@redhat.com>
94
95 * hashtab.c (higher_prime_number): Use 7 as minimum.
96 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
97 (htab_find_slot_with_hash): Likewise.
98
bd7e6f2d
PE
992002-04-01 Phil Edwards <pme@gcc.gnu.org>
100
101 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
102 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
103 not compile if IN_GLIBCPP_V3 defined.
104 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
105
a8f55e51
BM
1062002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
107
108 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
109 if it is NULL.
110
96adcacb
DD
1112002-03-27 DJ Delorie <dj@redhat.com>
112
113 * hex.c: Add documentation.
114 (_hex_value): Provide non-ASCII empty table.
115 (hex_init): Initialize the non-ASCII table.
116 * functions.texi: Regenerate.
117
2b613c6a
MM
1182002-03-27 Mark Mitchell <mark@codesourcery.com>
119
120 * dyn-string.c: Add libgcc exception to copyright notice.
121
cd862df8
L
1222002-03-26 H.J. Lu (hjl@gnu.org)
123
124 * config.table: Support --with-build-subdir.
125 * configure.in: Likewise.
126 * configure: Rebuild.
127
ed300793
SG
1282002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
129
130 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
131 seen.
132
b3dd43df
MM
1332002-03-12 Mark Mitchell <mark@codesourcery.com>
134
135 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
136 notice.
137
50c74579
DR
1382002-03-11 Douglas B Rupp <rupp@gnat.com>
139
140 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
141
957978a4
JB
1422002-03-06 Jim Blandy <jimb@redhat.com>
143
144 * splay-tree.c (splay_tree_xmalloc_allocate,
145 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
146 prototyped definitions. Mark `data' arguments as unused.
147
ccc49bed
AC
1482002-03-06 Andrew Cagney <ac131313@redhat.com>
149
150 * floatformat.c (floatformat_arm_ext_big): Delete definition.
151
48d7db63
PE
1522002-03-04 Phil Edwards <pme@gcc.gnu.org>
153
154 * configure.in: Add --enable-install-libiberty option.
155 * Makefile.in (INSTALLED_HEADERS): New variable.
156 (install_to_libdir): Possibly also copy headers.
157 * configure: Regenerated.
158
af18e951
NB
1592002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
160
161 * xmalloc.c (xmalloc_fail): Clarify error message further.
162
d8d7c3c3
NB
1632002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
164
165 * xmalloc.c (xmalloc_fail): Clarify error message.
166
00c2f96f
JB
1672002-02-22 Jim Blandy <jimb@redhat.com>
168
169 * splay-tree.c (splay_tree_xmalloc_allocate,
170 splay_tree_xmalloc_deallocate): New functions.
171 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
172 above functions and a dummy data pointer.
173 (splay_tree_new_with_allocator): New function.
174 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
175 splay_tree_remove): Use the splay tree's allocation and
176 deallocation functions.
177
b1c1a22f
SS
1782002-02-19 Scott Snyder <snyder@fnal.gov>
179
180 * testsuite/demangle-expected: Add test case for infinite loop in
181 demangler.
182 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
183 if do_type() doesn't make any progress --- prevents an infinite
184 loop.
185
336669e7
CW
1862002-02-18 Carlo Wood <carlo@gnu.org>
187
188 PR c++/5390
189 * cplus-dem.c (demangle_integral_value): Accept multi-digit
190 numbers that do not start with an underscore; This is needed
191 for integer template parameters. This doesn't break anything
192 because multi-digit numbers are never followed by a digit.
193 * testsuite/demangle-expected: Corrected all mangled test
194 cases with multi-digit template parameters: g++ 2.95.x does
195 not generate underscores around these parameters.
196
c13db5d1
JM
1972002-02-05 Jason Merrill <jason@redhat.com>
198
199 * cplus-dem.c (flags): Add DMGL_VERBOSE
200 (cplus_demangle_v3_p): Remove.
201 (demangle_it): Add DMGL_TYPES to passed flags.
202 * cp-demangle.c (cplus_demangle_v3_all): Remove.
203 (cplus_demangle_v3_type): Remove.
204 (cplus_demangle_v3): Add options parm.
205
d74697b8
L
2062002-02-02 H.J. Lu (hjl@gnu.org)
207
208 * cp-demangle.c (cp_demangle_type): Do not protect with
209 IN_LIBGCC2.
210 (cplus_demangle_v3_all): New.
211 (cplus_demangle_v3): Call cplus_demangle_v3_all.
212 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
213
214 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
215 Initialized to cplus_demangle_v3.
216 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
217 of cplus_demangle_v3.
218 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
219 command line symbol.
220
221 * testsuite/regress-demangle: Pass the mangled name at the
222 command line.
223
3a441e38
L
2242002-02-01 H.J. Lu <hjl@gnu.org>
225
226 * cp-demangle.c (cp_demangle_type): Call demangling_new with
227 DMGL_GNU_V3.
228
6d747e63
PE
2292002-01-31 Phil Edwards <pme@gcc.gnu.org>
230
231 * cp-demangle.c: Revert yesterday's change.
232
46af757b
AM
2332002-01-31 Adam Megacz <adam@xwt.org>
234
235 * gcc/libiberty/configure.in: Treat mingw the same as cywin
236 wrt HAVE_SYS_ERRLIST.
237
46ab74b1
PE
2382002-01-30 Phil Edwards <pme@gcc.gnu.org>
239
240 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
241 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
242 cp_demangle_type.
243 * testsuite/demangle-expected: New gnu-v3 test.
244
e64d0626
MV
2452002-01-22 Momchil Velikov <velco@fadata.bg>
246
247 * configure.in (variable detection): Use arrays of unspecified
248 size instead of plain integers.
249
9ce3f7e5
DD
2502002-01-18 DJ Delorie <dj@redhat.com>
251
252 * Makefile.in (TESTLIB): New. This library is for future
253 testsuites.
254 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
255 break down by letter.
256 (REQUIRED_OFILES): List long-to-compile files first.
257 (maint-deps): New, target for updating dependencies.
258 (dependencies): Update.
259 * maint-tool: Add dependency-generating option.
260 * configure.in: Check for _doprnt even if we're not providing it.
261 * configure: Regenerate.
262
263 * _doprnt.c: Modifications to allow compiling on any platform.
264 * copysign.c: Likewise.
265 * putenv.c: Likewise.
266 * setenv.c: Likewise.
267 * vsprintf.c: Likewise.
268
0e83ceb1
DR
2692002-01-15 Douglas B Rupp <rupp@gnat.com>
270
271 * mkstemps.c (mkstemps): On VMS, open temp file with option
272 that causes it to be deleted when closed.
273
adddf5bf
KG
2742002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
275
5e65297b
KG
276 * cp-demangle.c (long_options): Const-ify.
277 * cplus-dem.c (long_options): Likewise.
278
adddf5bf
KG
279 * cplus-dem.c (mystrstr): Delete. All callers changed to use
280 strstr instead.
281
a4219437
IR
2822001-12-31 Ira Ruben <ira@apple.com>
283
284 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
285 * configure: Regenerated.
af328d8d
DR
286
2872001-12-24 Douglas B. Rupp <rupp@gnat.com>
288
289 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
290 * configure: Regenerated.
a4219437 291
63de15a4
CR
2922001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
293
294 PR other/2719
295 * cplus-dem.c (consume_count): Treat negative count as an error.
296 * testsuite/demangle-expected: Added testcase.
297
ee262b6f
DR
298Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
299
300 * configure.in: Hardcode that vfork works on VMS host.
301 * configure: Regenerated.
302
d06ba3c7
RH
3032001-12-06 Richard Henderson <rth@redhat.com>
304
305 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
306 (cplus_demangle): Support no_demangling.
307
e490616e
ZW
3082001-11-27 Zack Weinberg <zack@codesourcery.com>
309
310 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
311 in libiberty context. Fix typo in leading comment.
312 * configure.in: Fix various AC_DEFINEs so autoheader works.
313 If any of vprintf, vsprintf, vfprintf is missing from libc,
314 then AC_REPLACE_FUNCS(_doprnt).
315
97e620cf 3162001-11-26 DJ Delorie <dj@redhat.com>
e490616e 317 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
318
319 * Makefile.in (stamp-h): Depend on Makefile for proper
320 serialization.
321 (*-subdir): Depend on config.h for proper serialization.
322
c3bb7df0
DD
3232001-11-26 DJ Delorie <dj@redhat.com>
324
325 * configure.in: Check for alloca.h (for regex.c and putenv.c).
326 * configure: Regenerate.
327 * config.h: Add HAVE_ALLOCA_H.
328
23850d35
KG
3292001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
330
2c47b56b
KG
331 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
332 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
333 is available.
23850d35 334
7ddfb651
JL
335Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
336
d3982b71
JL
337 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
338 * configure.in (HAVE_UINTPTR_T): Test for system defining
339 uintptr_t and define HAVE_UINTPTR_T appropriately.
340 * regex.c (uintptr_t): Do not provide a definition if the
341 system provided one.
342
7ddfb651
JL
343 * regex.c (PREFIX): Provide an alternate definition for
344 non-ANSI/ISO compilers.
345 (ARG_PREFIX): Likewise.
346
2e683037
JM
3472001-11-12 Jim Meyering <meyering@lucent.com>
348
349 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
350 this code would end up calling gettext even in packages built
351 with --disable-nls.
352 * getopt.c (_): Likewise.
353 * regex.c (_): Likewise.
354
f749bd83
AM
3552001-11-03 Alan Modra <amodra@bigpond.net.au>
356
357 * configure.in: Cope with missing makeinfo.
55a10d7c 358 * configure: Regenerate.
f749bd83 359
26ad2982
KG
3602001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
361
e5969ba6
KG
362 * hex.c (hex_init): Provide empty stub.
363
26ad2982
KG
364 * hex.c (hex_init): Delete.
365 (_hex_value): Const-ify and initialize at compile-time.
366
afb649d5
L
3672001-10-19 H.J. Lu <hjl@gnu.org>
368
369 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
370 necessary.
371
5bed56d9
DD
3722001-10-17 DJ Delorie <dj@redhat.com>
373
374 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
375 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 376 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
377 Improve manual formatting.
378 * functions.texi: Regenerate.
379
aac04c15
DD
3802001-10-15 DJ Delorie <dj@redhat.com>
381
382 * Makefile.in (TEXIFILES): Add fnmatch.txh.
383 (maint-undoc): New.
384 maint-tool: Add "undoc" tool.
385 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
386 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
387 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
388 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
389 documentation.
390 * fnmatch.txh: New.
391 * functions.texi: Regenerate.
fae8182a 392
0e4e9e8f
JM
3932001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
394
395 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
396 * strtod.c: Use "ISO C" instead of "ANSI C".
397 * functions.texi: Regenerate.
398
7f8fa05d
JM
3992001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
400
401 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
402 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
403 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
404 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
405 spelling. Give names to function arguments in documentation. Use
406 (void) prototypes in documentation.
407 * functions.texi: Regenerate.
408
0be6abca
KG
4092001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
410
411 * argv.c (buildargv, tests, main): Const-ify.
412 * cp-demangle.c (operator_code): Likewise.
413 * cplus-dem.c (optable, libiberty_demanglers,
414 cplus_demangle_set_style, cplus_demangle_name_to_style,
415 print_demangler_list): Likewise.
416 * hashtab.c (higher_prime_number): Likewise.
417 * strcasecmp.c (charmap): Likewise.
418 * strerror.c (error_info, strerror, main): Likewise.
419 * strncasecmp.c (charmap): Likewise.
420 * strsignal.c (signal_info): Likewise.
421
0e30ffc5
DD
4222001-09-29 DJ Delorie <dj@redhat.com>
423
424 * configure: Regenerate.
425
576fb787
KG
4262001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
427
428 * concat.c: Include stdlib.h.
429
e922f978
EZ
4302001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
431
432 * libiberty.texi: (Top level): Add syncodeindex pg. Add
433 @dircategory and @direntry directives. Add @finalout.
434 (many nodes): Lose the next,prev,up pointers on the @nide line.
435 (Using, Supplemental Functions, Replacement Functions): Fix
436 markup.
437 (Functions): Move around, to allow makeinfo to build the manual
438 without next,prev,up pointers in thye node lines.
439 (Licenses): Fix typos.
440
441 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
442 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
443 * functions.texi: Regenerate.
444
445 * copying-lib.texi: Lose the next,prev,up pointers on the @node
446 line.
447
ae9092da
DD
4482001-09-27 DJ Delorie <dj@redhat.com>
449
450 * configure.in: Don't use in-tree texinfo, because libiberty must
451 be built before it. Check for makeinfo version 4 or higher.
452 * functions.texi: Regenerate.
fae8182a 453
aaa5f039
DD
4542001-09-20 DJ Delorie <dj@redhat.com>
455 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 456
aaa5f039
DD
457 * configure.in (MAKEINFO, PERL): Detect these.
458 (--enable-maintainer-mode): Add.
459 * configure: Regenerate.
460 * Makefile.in (MAKEINFO, PERL): Define.
461 (libiberty.info, libiberty.dvi, libiberty.html): New.
462 (CFILES): Add bsearch.c.
463 (CONFIGURED_OFILES): New, list of objects configure might add.
464 (maint-missing, maint-buildall): New, for maintainers only.
465 (clean, mostlyclean): Add info/dvi/html files.
466 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
467 * gather-docs: New, for maintainers.
468 * maint-tool: New, for maintainers.
469 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
470 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
471 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
472 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
473 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
474 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
475 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
476 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
477 documentation.
fae8182a 478
c1766881
KG
4792001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
480
481 * concat.c (reconcat): Fix for traditional C.
482
ad43d46f
KG
4832001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
484
485 * concat.c (reconcat): New function.
486
c1d49704
KG
4872001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
488
c793eea7
KG
489 * concat.c (vconcat_length, vconcat_copy, concat_length,
490 concat_copy, concat_copy2): New functions.
491 (concat): Use vconcat_length/vconcat_copy.
492
c1d49704
KG
493 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
494 Define.
495
7a98d9b2
KG
4962001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
497
498 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
499 VA_FIXEDARG & VA_CLOSE.
fae8182a 500
7a98d9b2
KG
501 * vasprintf.c: Check HAVE_STRING_H when including string.h.
502 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
503 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
504
e2dff3f2
KG
5052001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
506
507 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
508
d0708dc1
UD
5092001-08-23 Ulrich Drepper <drepper@redhat.com>
510
511 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
512
5132001-08-23 Ulrich Drepper <drepper@redhat.com>
514
515 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
516 instead of mbrtowc.
517 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
518 wcslen, and __wcscoll instead of wcscoll.
519
ffb9435b
MK
5202001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
521
522 * fibheap.c (fibheap_init, fibnode_init): Remove.
523 (fibheap_new, fibnode_new): Use xcalloc to allocate and
524 initialize memory.
525 (fibheap_insert): Remove check for node allocation failure.
526
f379eac3
RH
5272001-08-21 Richard Henderson <rth@redhat.com>
528
529 * Makefile.in (fibheap.o): Depend on config.h.
530 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
531 functions for inlining.
532
b1c45ae4
CF
533Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
534
535 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
536 hosting on cygwin.
537 * configure: Regenerate.
538
0310e5ac
AC
5392001-08-20 Andrew Cagney <ac131313@redhat.com>
540
541 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
542 HARRIS_FLOAT_FORMAT.
543 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
544 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
545 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
546 (floatformat_m88110_harris_ext): New float formats.
547
8c23e0a4
DB
5482001-08-20 Daniel Berlin <dan@cgsoftware.com>
549
550 * fibheap.c: New file. Fibonacci heap.
551
552 * Makefile.in (CFILES): Add fibheap.c.
553 (REQUIRED_OFILES): Add fibheap.o.
554 (fibheap.o): Add dependencies for fibheap.o.
555
91625004
CF
5562001-08-17 Christopher Faylor <cgf@cygnus.com>
557
558 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
559 * configure: Regenerate.
560
9e0ba685
RH
5612001-08-16 Richard Henderson <rth@redhat.com>
562
563 * hashtab.c (htab_hash_string): New.
564
d80dedbe
AC
5652001-08-13 Andrew Cagney <ac131313@redhat.com>
566
567 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
568 name.
569
ccea0d85
IH
5702001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
571
572 * regex.c (wcs_regex_compile): Use appropriate string
573 to compare with collating element.
574 Fix the padding for the alignment.
575
b0e9bc8c 5762001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
577
578 * lbasename.c (lbasename): Change function definition to return a
579 const char pointer.
580
056400f1
JM
5812001-08-07 Jason Merrill <jason_merrill@redhat.com>
582
583 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
584 for".
585
4e627c41
RH
5862001-08-03 Richard Henderson <rth@redhat.com>
587
588 * Makefile.in (concat.o): Depend on config.h.
589
b6a2f884
AJ
5902001-07-30 Andreas Jaeger <aj@suse.de>
591
592 * concat.c: Include "config.h".
593
c4b9cfe0
AJ
5942001-07-30 Andreas Jaeger <aj@suse.de>
595
596 * regex.c: Declare wcs functions only if compiling with
597 MBS_SUPPORT.
598 Don't use #elif for traditional C.
599
6002001-07-23 Ulrich Drepper <drepper@redhat.com>
601
602 * regex.c: Revamp memory allocation for WCHAR functions to
603 not use too much stack.
604
6052001-07-30 Andreas Jaeger <aj@suse.de>
606
607 * regex.c: Declare wcs functions only if compiling with
608 MBS_SUPPORT.
609 Don't use #elif for traditional C.
610
2cf50fd3
DJ
6112001-07-25 Daniel Jacobowitz <drow@mvista.com>
612
613 * Makefile.in (regex.o): Add dependency on config.h.
614
27ffc806
DD
6152001-07-18 Andreas Schwab <schwab@suse.de>
616
617 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
618 underscore character.
619
6202001-07-18 Ulrich Drepper <drepper@redhat.com>
621
622 * regex.c: Limit string length printed in debug messages to 100
623 chars.
624
6252001-07-18 Andreas Jaeger <aj@suse.de>
626
627 * regex.c: Place under LGPL version 2.1.
628
dd771632
JJ
6292001-07-10 Jeff Johnston <jjohnstn@redhat.com>
630
631 * Makefile.in: Add support for regex code.
632 * regex.c: New file.
633
29650b2b
MK
6342001-07-05 Mark Klein <mklein@dis.com>
635
636 * Makefile.in: Add ffs.c dependency.
637 * configure.in: Add ffs.c.
638 * ffs.c: New file.
639
c8b28221
RH
6402001-06-18 Richard Henderson <rth@redhat.com>
641
642 * concat.c: Include <sys/types.h>.
643
473c2d0b
LR
6442001-06-11 Loren J. Rittle <ljrittle@acm.org>
645
a4c03da2 646 bootstrap/3106
473c2d0b
LR
647 * strerror.c (sys_nerr): Hide the OS header version.
648 * strsignal.c (sys_nsig): Likewise.
649
0bdcca68
RH
6502001-06-10 Richard Henderson <rth@redhat.com>
651
652 * concat.c: Include string.h. Fix int vs size_t usage.
653 Simplify the iteration loops. Use memcpy.
654
6de133d3
MK
6552001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
656
657 * partition.c: Fix misspelling of `implementation'.
658
8a153288
TS
6592001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
660
661 * md5.c (md5_init_ctx): Declare constants as unsigned.
662 (md5_process_block): Likewise.
663
641b2721
ZW
6642001-05-07 Zack Weinberg <zackw@stanford.edu>
665
666 * cp-demangle.c (demangle_v3_with_details,
667 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
668 function definition.
669 * ternary.c: Use K+R style function definitions. Use PTR, not
670 void *. Make arguments constant where possible.
671
5cdba4ff
MM
6722001-05-07 Mark Mitchell <mark@codesourcery.com>
673
674 * splay-tree.h (splay_tree_max): New function.
675 (splay_tree_min): Likewise.
676
9dab060e
DB
6772001-04-15 Daniel Berlin <dan@cgsoftware.com>
678
679 * ternary.c: New file - Ternary search tree implementation.
680
681 * Makefile.in: Add ternary.o, and ternary.c dependencies.
682
d02af173
ZW
6832001-04-03 Zack Weinberg <zackw@stanford.edu>
684
685 * make-temp-file.c (try): Inline.
686
94b68558
RH
6872001-02-28 Richard Henderson <rth@redhat.com>
688
689 * Makefile.in (make-temp-file.o): Depend on config.h.
690
27f66c0b
KG
6912001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
692
693 * memchr.c (memchr): Adjust condition to avoid infinite loop.
694
f1a0345c
JJ
6952001-03-23 Jakub Jelinek <jakub@redhat.com>
696
697 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
698 `_' not followed by a digit is invalid.
699
a519fba6
JB
7002001-03-22 Jim Blandy <jimb@redhat.com>
701
702 * cp-demangle.c (string_list_delete): Use dyn_string_delete
703 instead of free, to free the contents as well as the string
704 structure.
705
49ee944b
ZW
7062001-03-21 Zack Weinberg <zackw@stanford.edu>
707
708 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
709 Don't default P_tmpdir to anything. Try /var/tmp before
710 /usr/tmp.
711
33437dc7
ZW
7122001-03-20 Zack Weinberg <zackw@stanford.edu>
713
714 * choose-temp.c: Split off make_temp_file, and the code
715 duplicated between it and choose_temp_base, into...
716 * make-temp-file.c: ... here; new file.
717
718 * Makefile.in (CFILES): Add make-temp-file.c.
719 (REQUIRED_OFILES): Add make-temp-file.o.
720
7dce2eff
JB
7212001-03-20 Jim Blandy <jimb@redhat.com>
722
723 * cp-demangle.c (struct demangling_def): New fields:
724 is_constructor and is_destructor.
725 (demangling_new): Initialize them.
726 (demangle_ctor_dtor_name): Set them, if we detect a constructor
727 or destructor.
728 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
729 is_gnu_v3_mangled_dtor): New functions.
730
e03a61f1
JM
7312001-03-20 Jason Merrill <jason@redhat.com>
732
733 * cplus-dem.c (main): Skip initial $.
734
8860ddab
MM
7352001-03-15 Michael Meissner <meissner@redhat.com>
736
737 * hashtab.c (higher_prime_number): Silence warning that 4294967291
738 might be a signed integer under pre-ISO C systems.
739
2b757d51
NB
7402001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
741 John David Anglin <dave@hiauly1.hia.nrc.ca>
742
743 * libiberty/lbasename.c: New file.
744 * libiberty/Makefile.in: Update for lbasename.
745
1f50aafb
ZW
7462001-03-06 Zack Weinberg <zackw@stanford.edu>
747
748 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
749 * configure.in: Replace all alloca logic with a simple use of
750 the above new macro.
751 * config.table: Kill *-*-beos* entry.
752 * config/mh-beos: Delete.
753 * configure, config.in: Regenerate.
754
755 * Makefile.in (ALLOCA, HFILES): Kill.
756 (REQUIRED_OFILES): Add alloca.o.
757 (alloca.o): Depend on libiberty.h.
758 (argv.o): Don't depend on alloca-conf.h.
759 * alloca-conf.h: Delete.
760 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
761 blocks. Provide the C alloca unconditionally. Use PTR where
762 appropriate. Make i00afunc static.
763 * argv.c: Don't include alloca-conf.h.
764
d9fd5aae
JDA
7652001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
766
767 * cplus-dem.c (main): Cast enum style to int.
768
4031ed65
LR
7692001-02-16 Loren J. Rittle <ljrittle@acm.org>
770
771 * cplus-dem.c (main): Initialize style.
772
2ca46e8a
PE
7732001-02-02 Phil Edwards <pme@sources.redhat.com>
774
775 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
776
3b60dd8e
BM
7772001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
778
779 Add support for Java demangling under the v3 ABI:
780 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
781 (struct demangling_def): Add `style' field.
782 (demangling_new): New parameter `style'. Set it in demangling_t.
783 (demangle_prefix): Use NAMESPACE_SEPARATOR.
784 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
785 (cp_demangle): New parameter `style'. Pass it to demangling_new().
786 (main): Call cp_demangle with extra parameter.
787 (java_demangle_v3): New function.
788 (java_builtin_type_names): New. Table of primitive type names used
789 for Java demangling.
790 (demangle_builtin_type): Look up in java_builtin_type_names if doing
791 Java output.
1f50aafb 792 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
793 demangling.
794 (long_options): Remove obsolete `java' option.
795 (main): Remove explicit handling of `java' option. Instead, pass style
796 parameter in cplus_demangle flags as gdb does.
797 * testsuite/demangle.expected: Add some Java test cases.
798
584932e9
DD
7992000-12-29 DJ Delorie <dj@redhat.com>
800
801 * fnmatch.c: Make the note about the origins of this file more
802 accurate, at least until we can sync with glibc.
803 * getopt.c: Ditto.
804 * getopt1.c: Ditto.
805 * md5.c: Ditto.
806 * obstack.c: Ditto.
807
dac45916
MS
8082000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
809
810 * bsearch.c: New file.
811 * configure.in (funcs): Add bsearch.
812 (AC_CHECK_FUNCS): Likewise.
813 * configure, config.in: Regenerate.
814
a8e4a997
MS
8152000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
816
817 * safe-ctype.c: #include "ansidecl.h".
818 * strtod.c: Likewise.
819
75444da7
MS
8202000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
821
822 * strtoul.c: Include safe-ctype.h, not ctype.h.
823
f6bbde28
ZW
8242000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
825
826 * safe-ctype.c: New file.
827 * Makefile.in (CFILES): Add safe-ctype.c.
828 (REQUIRED_OFILES): Add safe-ctype.o.
829
830 * argv.c: Define ISBLANK and use it, not isspace.
831 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
832 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
833 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
834 before calling TOLOWER(c)/TOUPPER(c).
835
6c1ce62b 8362000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
837
838 * Makefile.in (distclean): When cleaning, remove testsuite.
839
b5d1497d
JM
8402000-12-05 Jason Merrill <jason@redhat.com>
841
842 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
843 name before allocating the dyn_string.
844
c6e13630
JM
8452000-12-04 Jason Merrill <jason@redhat.com>
846
847 * cp-demangle.c: s/new_abi/v3/.
848 * cplus-dem.c: Likewise.
849 (current_demangling_style): Now auto_demangling.
850 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 851 (main): Use standard symbol chars for auto_demangling.
c6e13630 852
a4c9b97e
MM
8532000-11-26 Mark Mitchell <mark@codesourcery.com>
854
855 * hashtab.c (higher_prime_number): Use a table, rather than a
856 seive, to find the next prime.
857
3b3bd9a7
L
8582000-11-22 H.J. Lu <hjl@gnu.org>
859
860 * cplus-dem.c (main): Handle gnat_demangling.
861
d1209685
ZW
8622000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
863
864 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
865 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
866 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
867 argument form of AC_DEFINE in dummy definitions block. Use
868 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
869 in dummy block. Preload cache variables instead of bypassing
870 tests, where possible.
871 * acconfig.h: Removed.
872
873 * xmalloc.c (xmalloc_failed): New function, does error
874 reporting on failed allocation.
875 (xmalloc, xcalloc, xrealloc): Use it.
876
cf183ac2
HPN
8772000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
878
879 * cplus-dem.c (cplus_demangle): Fix formatting.
880 (grow_vect): Ditto.
881 (ada_demangle): Ditto.
882 (internal_cplus_demangle): Ditto.
883 (mop_up): Ditto.
884
8852000-11-21 H.J. Lu <hjl@gnu.org>
886
887 * cplus-dem.c (main): Handle java_demangling.
888
8bcc782c
KG
8892000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
890
891 * cplus-dem.c (grow_vect): Prototype.
892 (ada_demangle): Cast the arg of ctype macros to unsigned char.
893
29120f44
HPN
8942000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
895
896 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
897 parameter `option'.
898
0437a5a8
KB
8992000-11-15 Kenneth Block <kenneth.block@compaq.com>
900
9e038f71 901 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
902 be used in GCC.
903
eab0c1ab 9042000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 905
29120f44 906 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
907 list.
908
d50d20ec
HPN
9092000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
910
911 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
912 xcalloc depending on htab->return_allocation_failure. Return zero
913 if calloc fails.
d50d20ec
HPN
914 (htab_create): Update comment to cover memory allocation.
915 (htab_try_create): New.
916 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 917 Update comment to cover this.
d50d20ec 918
35e9340f
HPN
9192000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
920
921 * hashtab.c: Change void * to PTR where necessary.
922 (htab_create, htab_expand): Correct formatting of comment before
923 function.
924
ea343d1a 9252000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
926
927 * cp-demangle.c (string_list_def): Add caret_position and comments.
928 (result_caret_pos): New macro.
929 (result_append_string): Rename to...
930 (result_add_string): ... this, and insert at caret position.
d1209685 931 Rename throughout.
0870bfd6
AS
932 (result_append): Rename to...
933 (result_add): ... this, and insert at caret position. Rename
d1209685 934 throughout.
0870bfd6
AS
935 (result_append_char): Rename to...
936 (result_add_char): ... this, and insert at caret position. Rename
d1209685 937 throughout.
0870bfd6
AS
938 (result_append_space): Remove.
939 (string_list_new): Initialize caret position.
940 (result_add_separated_char): Use caret position.
941 (result_get_caret): New funtion.
942 (result_set_caret): Likewise.
943 (result_shift_caret): Likewise.
944 (result_previous_char_is_space): Likewise.
945 (substitution_start): Use caret position.
946 (substitution_add): Likewise.
947 (demangling_new): Initialize caret position.
948 (demangle_encoding): Use caret position.
d1209685 949 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
950 (demangle_type_ptr): Use switch statement. Handle pointers to
951 arrays. Don't use result_append_space. Use caret position.
952 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
953 call to demangle_array_type.
954 (demangle_array_type): Add parameter to handle pointers to arrays.
955
f15b9af9
MM
9562000-10-01 Mark Mitchell <mark@codesourcery.com>
957
958 * splay-tree.c (splay_tree_insert): Fix formatting.
959
8f17b5c5
MM
9602000-09-16 Mark Mitchell <mark@codesourcery.com>
961
962 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
963
4eaa189a
MS
9642000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
965
966 * splay-tree.c: #include <stdio.h>.
967
29791078
HPN
9682000-09-14 Hans-Peter Nilsson <hp@axis.com>
969
970 * testsuite/demangle-expected: Add two tests for anonymous
971 namespaces.
972 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
973
2c9f4db7
MM
9742000-09-10 Mark Mitchell <mark@codesourcery.com>
975
976 * splay-tree.c (splay_tree_predecessor): New function.
977 (splay_tree_successor): Likewise.
978
bb22da4b
HPN
9792000-09-10 Hans-Peter Nilsson <hp@axis.com>
980
981 * testsuite/demangle-expected: Add four tests for type_info
982 mangling.
bb22da4b
HPN
983 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
984 for a non-template non-qualified type_info function or node.
985
759e8187
AS
9862000-09-08 Alex Samuel <samuel@codesourcery.com>
987
988 * cp-demangle.c: Fix copyright banner.
989
2ecd81ef
MS
9902000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
991
992 * md5.c: #include "ansidecl.h".
993
d93998ec
AS
9942000-09-06 Alex Samuel <samuel@codesourcery.com>
995
996 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
997 (demangle_type): Handle substitution candidates correctly in the
998 face of special substitutions.
999
1056d228
AS
10002000-09-05 Alex Samuel <samuel@codesourcery.com>
1001
1002 * cp-demangle.c (demangle_encoding): Rename variable.
1003 (demangle_name): Rename parameter. Handle return type
1004 suppression.
1005 (demangle_nested_name): Rename parameter.
1006 (demangle_prefix): Likewise. Change return type suppression.
1007 (demangle_unqualified_name): Add parameter. Flag constructors and
1008 conversion operators.
1009 (demangle_special_name): Fix comment.
1010 (demangle_type): Rename variable.
1011 (demangle_bare_function_type): Check for missing return type and
d1209685 1012 parameter.
1056d228
AS
1013 (demangle_class_enum_type): Rename parameter.
1014 (demangle_discriminator): Fix misspelling in comment.
1015
2f31ed7e
DD
10162000-08-31 DJ Delorie <dj@redhat.com>
1017
1018 * configure.in (Cygwin): special case cygwin only when we're
1019 building cygwin, not when we're hosting cygwin.
1020
02bcb9c6
AS
10212000-09-04 Alex Samuel <samuel@codesourcery.com>
1022
1023 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1024 <expression>.
1025
aee749cf
AS
10262000-09-04 Alex Samuel <samuel@codesourcery.com>
1027
1028 * cp-demangle.c (demangle_type_ptr): Increment position past
1029 pointer and reference characters.
1030
92a16bbe
AS
10312000-09-04 Alex Samuel <samuel@codesourcery.com>
1032
1033 * cp-demangle.c (demangle_nv_offset): New function.
1034 (demangle_v_offset): Likewise.
1035 (demangle_call_offset): Likewise.
1036 (demangle_special_name): Update thunk demangling to comply with
1037 ABI changes.
d1209685 1038
31e0ab1f
AS
10392000-09-03 Alex Samuel <samuel@codesourcery.com>
1040
1041 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1042 (substitution_def): Remove template_parm_number.
1043 (NOT_TEMPLATE_PARM): Remove.
1044 (result_insert_string): New macro.
1045 (result_insert): Likewise.
1046 (result_insert_char): Likewise.
1047 (substitution_add): Remove last parameter. Don't store template
d1209685 1048 parm number.
31e0ab1f
AS
1049 (BFT_NO_RETURN_TYPE): Define as NULL.
1050 (demangle_encoding): Adjust call to demangle_bare_function_type.
1051 (demangle_name): Adjust substitution. Adjust call to
d1209685 1052 substitution_add.
31e0ab1f
AS
1053 (demangle_prefix): Adjust call to substitution_add.
1054 (demangle_identifier): Handle anonymous namespaces.
1055 (demangle_operator_name): Change demangling of vendor-extended
1056 operator to match ABI changes.
1057 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1058 substitutions here.
31e0ab1f
AS
1059 (demangle_type): Adjust calls to demangle_template_param,
1060 substitution_add, and demangle_type_ptr. Fix substitution of
1061 templated types.
1062 (demangle_function_type): Change parameter to a pointer.
1063 (demangle_bare_function_type): Likewise. Adjust insertion point.
1064 (demangle_template_param): Remove last parameter.
1065 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1066 demangle_template_param.
31e0ab1f
AS
1067 (is_mangled_char): Accept `$' and `.'.
1068 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1069 * dyn-string.c (dyn_string_insert_char): New function.
1070
ccbc3eb7
HPN
10712000-08-31 Hans-Peter Nilsson <hp@axis.com>
1072
1073 * testsuite/demangle-expected: Add nine tests for
1074 underscore-after-number followed by five tests for name-signature
1075 delimiter.
1076
53dce582
RH
10772000-08-28 Richard Henderson <rth@cygnus.com>
1078
1079 * Makefile.in (md5.o): Depend on config.h.
1080
881c6935
JM
10812000-08-28 Jason Merrill <jason@redhat.com>
1082
1083 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1084 (CFILES): Add md5.c.
1085 * md5.c: New file.
1086
a440fd19
AS
10872000-08-27 Alex Samuel <samuel@codesourcery.com>
1088
1089 * cp-demangle.c (demangle_name): Initialize template_p in local
1090 name case. Don't re-add substitutions as candidates.
1091 (demangle_nested_name): Use <unqualified-name>.
1092 (demangle_prefix): Likewise. Don't add template names as
1093 substitution candidates twice, or re-add a substitution or the
1094 last prefix component.
1095 (demangle_local_name): Adjust output format.
1096
d01ce591
AS
10972000-08-25 Alex Samuel <samuel@codesourcery.com>
1098
1099 * cp-demangle.c (result_add_separated_char): Change parameter to
1100 int.
1101 (substitution_add): Don't check for duplicates. Check if
1102 previously allocated size is zero.
1103 (demangle_name): Remove duplicate check for std substitution.
1104 Clear template flag appropriately.
1105 (demangle_prefix): Remove argument to demangle_substitution.
1106 Don't check that template flag is already set.
1107 (demangle_operator_name): Add pt operator.
1108 (demangle_type): Don't treat r as built-in type. Remove argument
1109 to demangle_substitution. Fix substitution candidate mechanics.
1110 Handle <template-template-parm>s. Improve comments.
d1209685 1111 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1112 (demangle_substitution): Remove parameter.
1113 (print_usage): Remove extra fprintf option.
1114
2f59c8eb
GM
11152000-08-24 Greg McGary <greg@mcgary.org>
1116
1117 * libiberty/random.c (end_ptr): Revert previous change.
1118
2f26c11d
GM
11192000-08-24 Greg McGary <greg@mcgary.org>
1120
1121 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1122 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1123 * libiberty/random.c (end_ptr): Likewise.
1124
e282c9c9
AS
11252000-08-23 Alex Samuel <samuel@codesourcery.com>
1126
1127 * cp-demangle.c (result_close_template_list): Remove function.
1128 (result_add_separated_char): New function.
1129 (result_open_template_list): New macro.
1130 (result_close_template_list): Likewise.
1131 (demangle_prefix): Don't set template_p if the
1132 prefix ends with a ctor name.
1133 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1134 (demangle_type): Check for template args after substitution.
1135 (demangle_template_args): Use result_open_template_list.
d1209685 1136
c9b6494a
ZW
11372000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1138
1139 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1140
d1209685 11412000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1142
1143 * config/mh-openedition.h: Added -DLE370 definition.
1144
0aab2795
ME
11452000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1146
1147 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1148 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1149 Cast program to 'char *' in errmsg_arg assignment.
1150 (PWAIT_ERROR): Define.
1151 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1152 to DJGPP's WIF* macros.
1153
c2f275e4
RB
11542000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1155 Jeff Law <law@cygnus.com>
1156
73aa9564
RB
1157 * getcwd.c: Include string.h, stdlib.h for prototypes
1158
c2f275e4 1159 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1160 * rename.c: Include config.h, unistd.h
1161 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1162
ccbc3eb7
HPN
11632000-07-24 Hans-Peter Nilsson <hp@axis.com>
1164
1165 * cplus-dem.c (work_stuff_copy_to_from): New.
1166 (delete_non_B_K_work_stuff): New.
1167 (delete_work_stuff): New.
1168 (mop_up): Break out work_stuff partly destruction to
1169 delete_non_B_K_work_stuff.
1170 (iterate_demangle_function): New.
1171 (demangle_prefix): Call iterate_demangle_function instead of
1172 demangle_function_name. Leave handling of name-signature
1173 __-delimiters to iterate_demangle_function.
1174 (demangle_integral_value): Strip an optional
1175 following underscore cautiously. Handle negative numbers.
1176
3388651c
DB
11772000-07-24 Daniel Berlin <dberlin@redhat.com>
1178
d1209685 1179 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1180 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1181
0fac482e
AS
11822000-07-21 Alex Samuel <samuel@codesourcery.com>
1183
1184 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1185 allocating ctor mangling.
1186 (demangle_array_type): Handle empty and non-constant array length.
1187
8502a100 11882000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1189 Jeff Law <law@cygnus.com>
1190
c6451ce1
MS
1191 * configure.in (AC_CHECK_HEADERS): Add time.h.
1192 (AC_HEADER_TIME): Add check.
1193 * configure, config.in: Regenerate.
1194 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1195
cd447360
MS
1196 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1197 * configure, config.in: Regenerate.
1198 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1199 * strtol.c, strtoul.c: #include "config.h". Portably #include
1200 <limits.h> and/or <sys/param.h>.
1201 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1202
3b58c099
MS
1203 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1204 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1205 * configure, config.in: Regenerate.
1206 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1207
8502a100
MS
1208 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1209
da0c7743
MS
12102000-07-21 Mike Stump <mrs@wrs.com>
1211
1212 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1213 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1214
838f8562
KG
12152000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1216
1217 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1218
1219 * setenv.c (setenv): Initialize variable `ep'.
1220
1221 * sigsetmask.c (abort): Prototype.
1222
1223 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1224 __STDC__ for stdarg.h include.
1225 (int_vasprintf): Prototype.
1226 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1227 definition. Cast `global_total_width' in comparison.
1228 (main): Prototype. Return a value.
1229
1230 * vfork.c (fork): Prototype.
1231
1232 * xexit.c: Include config.h.
1233
e9958132
JM
12342000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1235
1236 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1237 and print it with %u.
1238
39a6492f
HPN
12392000-07-17 Hans-Peter Nilsson <hp@axis.com>
1240
1241 * testsuite/regress-demangle (failed test): Show result and
1242 expected output.
1243
6d0be369
AH
12442000-07-07 Andrew Haley <aph@cygnus.com>
1245
1246 * cplus-dem.c (main): fflush() after emitting last char before
1247 waiting for input.
1248
bece74bd
AS
12492000-06-28 Alex Samuel <samuel@codesourcery.com>
1250
1251 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1252 (demangle_name): Handle <substitution> followed by
1253 <unqualified-template-name>.
1254 (demangle_type): Follow special substitutions with
1255 <class-enum-type>
1256 (demangle_subtitution): Set template_p for special substitutions.
1257 (main): Fix typos.
d1209685 1258
229b8ec7
AS
12592000-06-27 Alex Samuel <samuel@codesourcery.com>
1260
1261 * cp-demangle.c (demangle_special_name): Swap base and derived
1262 class when demangling construction vtables.
1263
051664b0
AS
12642000-06-21 Alex Samuel <samuel@codesourcery.com>
1265
1266 * cp-demangle.c: Don't include ctype.h.
1267 (IS_DIGIT): New macro.
1268 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1269 instead of isdigit and isalpanum.
1270 (demangling_def): Make name and next const pointers.
1271 (STATUS_ALLOCATION_FAILED): New status code.
1272 (dyn_string_append_space): Handle failure in
1273 dyn_string_append_char.
1274 (int_to_dyn_string): Likewise. Change return value to status_t.
1275 (string_list_new): Handle failure of dyn_string_init.
1276 (result_close_template_list): Change return type to status_t.
1277 Handle failure in dyn_string_append.
1278 (result_push): Change return value to status_t. Handle failure in
1279 string_list_new. Handle failure of result_push throughout.
1280 (substitution_add): Change return value to status_t. Handle
1281 dyn_string failures. Handle failure of substitution_add
1282 throughout.
1283 (template_arg_list_new): Return NULL on allocation failure.
1284 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1285 Handle error result throughout.
1286 (result_append): Likewise.
1287 (result_append_char): Likewise.
1288 (result_append_space): Likewise.
1289 (demangling_new): Make argument a const pointer. Handle
1290 allocation failures.
1291 (demangle_template_args): Handle failure in template_arg_list_new
1292 and result_close_template_list.
1293 (demangle_discriminator): Return if int_to_dyn_string fails.
1294 (cp_demangle): Likewise.
1295 (cp_demangle_type): New function.
1296 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1297 memory allocation failure.
1298 (main): Likewise.
1299 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1300 IN_LIBGCC2.
1301 (dyn_string_init): Change return value to int. Handle
1302 RETURN_ON_ALLOCATION_FAILURE case.
1303 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1304 (dyn_string_release): Delete the dyn_string.
1305 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1306 (dyn_string_copy): Change return type to int.
1307 (dyn_string_copy_cstr): Likewise.
1308 (dyn_string_prepend): Likewise.
1309 (dyn_string_prepend_cstr): Likewise.
1310 (dyn_string_insert): Likewise.
1311 (dyn_string_insert_cstr): Likewise.
1312 (dyn_string_append): Likewise.
1313 (dyn_string_append_cstr): Likewise.
1314 (dyn_string_append_char): Likewise.
1315 (dyn_string_substring): Likewise.
d1209685 1316
fe06b696
ZW
13172000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1318
1319 * cp-demangle.c (demangle_operator_name): Add spaces before
1320 names beginning with a letter: delete, delete[], new, new[],
1321 sizeof.
1322 (demangle_special_name): Handle TF <type> and TJ <type>.
1323
6223e158
PDM
1324Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1325
1326 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1327
48f3e29b
PDM
1328Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1329
1330 * cp-demangle.c (stdio.h): File included unconditionaly.
1331 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1332 * dyn-string.c (stdio.h): File included.
1333 * partition.c (partition_print): No `&' needed to take the address of
1334 a function.
1335
69197e7e
KG
13362000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1337
1338 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1339
69197e7e
KG
1340 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1341
1342 * cp-demangle.c (demangle_char): Change parameter from char to int.
1343 (demangle_expression, demangle_expr_primary): Remove extra
1344 semi-colon in prototype.
1345
1346 * dyn-string.c (dyn_string_append_char): Change parameter from
1347 char to int.
1348
1349 * memcmp.c (memcmp): Constify.
1350
1351 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1352 __extension__.
1353
1354 * partition.c (elem_compare): Prototype. Don't cast away
1355 const-ness.
1356
1357 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1358
7eb23b1f
KG
13592000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1360
1361 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1362
1363 * cp-demangle.c: Include demangle.h.
1364 (template_arg_list_new): DeANSIfy.
1365 (cp_demangle): Make static and add prototype.
1366 (operator_code, operators): Constify.
1367 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1368
3faa108c
AS
13692000-06-05 Alex Samuel <samuel@codesourcery.com>
1370
1371 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1372 unsigned char.
1373 (demangle_unqualified_name): Likewise.
1374 (demangle_number_literally): Likewise.
1375 (demangle_type): Likewise.
1376 (demangle_substitution): Likewise.
1377 (is_mangled_char): Likewise, for isalnum.
1378
69afa80d
AS
13792000-06-04 Alex Samuel <samuel@codesourcery.com>
1380
1381 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1382 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1383 (cp-demangle.o): New dependency.
1384 (dyn-string.o): Likewise.
1385
1386 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1387
1388 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1389 demangler.
1390 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1391 demangling mode.
1392 (gnu_new_abi_symbol_characters): New function.
1393 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1394 file.
1395 * cp-demangle.c: New file.
d1209685 1396
0b72c3df
AC
1397Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1398
1399 * floatformat.c: Add name to each floatformat field.
1400
270cea06
JL
1401Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1402
1403 * Makefile.in (objalloc.o): Depend on config.h
1404
d11ec6f0
ZW
14052000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1406
1407 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1408 if HAVE_STRING_H.
1409 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1410 * objalloc.c: Include config.h. Include stdlib.h and don't
1411 declare malloc or free if HAVE_STDLIB_H.
1412 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1413 else declare malloc without prototype. Include string.h if
1414 HAVE_STRING_H, else declare memset without prototype. Don't
1415 include stddef.h.
1416
f8e2da56
MS
14172000-05-23 Mike Stump <mrs@wrs.com>
1418
1419 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1420 -j3.
f8e2da56 1421
650f3068
DA
14222000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1423
1424 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1425
1d2da2e1
HB
14262000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1427
d1209685 1428 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1429 probably zero, also eliminate a warning on alpha.
1430
47668d0a
DE
14312000-05-15 David Edelsohn <edelsohn@gnu.org>
1432
c7a79a32 1433 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1434 on $(enable_shared).
1435
36348eab
JJ
14362000-05-10 Jakub Jelinek <jakub@redhat.com>
1437
1438 * config.table: Use mh-sparcpic for sparc*-*-*.
1439
209bbe34
NC
14402000-05-08 Nick Clifton <nickc@cygnus.com>
1441
1442 * Makefile.in (CFILES): Add strncmp.c.
1443 (NEEDED): Add strncmp.
1444
a85a47fb
KG
14452000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1446
1447 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1448 Cast the arguments to `islower' to `unsigned char'.
1449 (print_demangler_list): Prototype.
1450
4aef973c
PDM
1451Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1452
1453 * sort.c (UCHAR_MAX): Provide fallback definition.
1454
3b94497c
AO
14552000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1456
1457 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1458 SUBDIRS.
1459
24eaa47a
KB
14602000-04-28 Kenneth Block <block@zk3.dec.com>
1461 Jason Merrill <jason@casey.cygnus.com>
1462
d1209685
ZW
1463 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1464 (cplus_demangle_set_style): New function for setting style.
1465 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1466
a9266bfa
KG
14672000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1468
1469 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1470
1471 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1472 (libiberty_AC_FUNC_STRNCMP): Invoke.
1473
1474 * strncmp.c: New file.
1475
8e02c4d0
JH
1476Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1477
1478 * hashtab.c (htab_expand): Add prototype.
1479 (find_empty_slot_for_expand): Likewise.
1480
4feeaae3
KG
14812000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1482
1483 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1484 match prototype.
1485 (htab_expand): Cast the return value of xcalloc.
1486
18a94a2f
MM
14872000-04-24 Mark Mitchell <mark@codesourcery.com>
1488
1489 * hashtab.c (hash_pointer): New function.
1490 (eq_pointer): Likewise.
1491 (htab_hash_pointer): New variable.
1492 (htab_eq_pointer): Likewise.
1493
eeb0656f
MM
14942000-04-23 Mark Mitchell <mark@codesourcery.com>
1495
b51024fc
MM
1496 * sort.c (sort_pointers): Fix endianness bugs.
1497
eeb0656f
MM
1498 * sort.c: New file.
1499 * Makefile.in (CFILES): Add sort.c
1500 (REQUIRED_OFILES): Add sort.o.
1501 (sort.o): New target.
1502
7277f72d
MS
15032000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1504
1505 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1506 4.3BSD systems.
1507
e38992e8
RK
1508Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1509
1510 * hashtab.c: Various minor cleanups.
1511 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1512 (htab_find_slot): Likewise.
1513
498e1ab1
DP
15142000-04-16 Dave Pitts <dpitts@cozx.com>
1515
1516 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1517
dc17cc7b
RH
15182000-04-05 Richard Henderson <rth@cygnus.com>
1519
1520 * splay-tree.c (splay_tree_remove): New.
1521
b13eb66b
MM
15222000-03-30 Mark Mitchell <mark@codesourcery.com>
1523
1524 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1525 codes.
1526 (htab_find_with_hash): Likewise.
1527 (htab_find_slot_with_hash): Likewise.
d1209685 1528
0194e877
ZW
15292000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1530
1531 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1532 unless it will be used. Rearrange loop for better
1533 optimization.
1534 (higher_prime_number): Add static prototype.
1535
abc61fd4
JL
1536Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1537
1538 * Makefile.in (partition.o): Depend on config.h
1539
8c5d513f
BS
15402000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1541
1542 * hashtab.c (find_empty_slot_for_expand): New function.
1543 (htab_expand): Use it instead of htab_find_slot.
1544 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1545 argument HASH.
1546 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1547 (htab_find): New wrapper function.
1548 (htab_find_slot): Likewise.
1549 (htab_traverse): Pass slot, not entry, to called function.
1550
d9d4fb43
AS
15512000-03-09 Alex Samuel <samuel@codesourcery.com>
1552
1553 * Makefile.in (CFILES): Add partition.c.
1554 (REQUIRED_OFILES): Add partition.o.
1555 (partition.o): New rule.
1556 * partition.c: New file.
d1209685 1557
5dc9cffd
ZW
15582000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1559
1560 * hashtab.c (htab_create): Set del_f.
1561 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1562 Use it.
1563
5194cf08
ZW
15642000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1565
1566 * hashtab.c: Remove debugging variables (all_searches,
1567 all_collisions, all_expansions). Delete
1568 all_hash_table_collisions.
1569 (create_hash_table, delete_hash_table, empty_hash_table,
1570 find_hash_table_entry, remove_element_from_hash_table_entry,
1571 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1572 hash_table_elements_number, hash_table_collisions): Rename to:
1573 htab_create, htab_delete, htab_empty, htab_find_slot,
1574 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1575 htab_elements, htab_collisions.
1576 (htab_find): New function, handles common case where you don't
1577 plan to add or delete an entry.
1578 (htab_expand): Don't create a whole new table, just a new
1579 entry vector.
1580 (htab_find_slot): Simplify logic.
1581
5ad5a984
ILT
15821999-08-03 Ian Lance Taylor <ian@zembu.com>
1583
1584 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1585 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1586
1587 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1588 $(TARGETLIB)n so it works on MSDOS.
1589 (install_to_tooldir): Likewise.
1590
15911999-07-21 Ian Lance Taylor <ian@zembu.com>
1592
1593 From Mark Elbrecht:
1594 * makefile.dos: Remove; obsolete.
1595 * configure.bat: Remove; obsolete.
1596
15971999-07-11 Ian Lance Taylor <ian@zembu.com>
1598
1599 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1600 warning.
1601
aeecce42
MK
16022000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1603
1604 * pexecute.c: Conditionally include string.h.
5194cf08 1605 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1606
1eaf7d9c
KG
16072000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1608
1609 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1610 we're using gcc.
1611
1612 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1613
0fadedb2
GK
16141999-12-27 Geoff Keating <geoffk@cygnus.com>
1615
1616 * vasprintf.c (int_vasprintf): Don't re-read the format character
1617 as this mishandles strings like '%%s'.
1618
08230f26
MM
16191999-12-05 Mark Mitchell <mark@codesourcery.com>
1620
1621 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1622 rather than struct splay_tree_node.
1623 (splay_tree_insert): Use struct splay_tree_s rather than struct
1624 splay_tree.
1625
6de9b8ff
PDM
1626Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1627
1628 * hashtab.c (sys/types.h): File included.
1629
f3636679
JM
16301999-11-22 Jason Merrill <jason@casey.cygnus.com>
1631
1632 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1633 BSD license, pursuant with
1634
1635 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1636
36dd3a44
JL
1637Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1638
1639 * hashtab.c: Include stdio.h.
1640
6e300472
JL
1641Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1642
1643 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1644
df548dfc
PDM
1645Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1646
1647 * xstrdup (sys/types.h): Include this file.
1648
2c375143
NS
16491999-10-28 Nathan Sidwell <nathan@acm.org>
1650
1651 * Makefile.in (SUBDIRS): New macro.
1652 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1653 avoid multiple subdirectory cleaning.
1654 (*-subdir): Use SUBDIRS.
1655
a82cecda
JK
16561999-10-25 Jim Kingdon <http://developer.redhat.com/>
1657
1658 * cplus-dem.c: Move declarations of standard_symbol_characters and
1659 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1660 warnings.
1661
ed38f5d5
ZW
16621999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1663
1664 * hashtab.c (find_hash_table_entry): When returning a
1665 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1666 (clear_hash_table_slot): New function which deletes an entry
1667 by its position in the table, not its value.
1668 (traverse_hash_table): New function which calls a hook
1669 function for every live entry in the table.
1670
b60fe4a7
MM
16711999-10-19 Mark Mitchell <mark@codesourcery.com>
1672
1673 * cplus-dem.c (INTBUF_SIZE): New macro.
1674 (string_append_template_idx): New function.
1675 (demangle_expression): Likewise.
1676 (demangle_integral_value): Use it.
1677 (demangle_real_value): New function, split out from ...
1678 (demangle_template_value_parm): ... here. Use
1679 string_append_template_idx. Use demangle_real_value.
1680 (demangle_template): Use string_append_template_idx.
1681 (demangle_qualified): Use consume_count_with_underscores.
1682 (get_count): Tweak formatting.
1683 (do_type): Use string_append_template_idx.
5194cf08 1684
3da5522a
KG
16851999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1686
1687 * calloc.c: Add a public domain notice.
1688
d7d36ea8
PDM
1689Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1690
1691 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1692
a2f945c6
VM
1693Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1694
1695 * Makefile.in (CFILES): Add hashtab.c
1696 (REQUIRED_OFILES): Add hashtab.o
1697 (hashtab.o): Add dependencies.
1698 * hashtab.c: New file
1699
7f22ec2e
MK
1700Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1701
1702 * basename.c (DIR_SEPARATOR): New macro.
1703 (DIR_SEPARATOR_2): Likewise.
1704 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1705 (IS_DIR_SEPARATOR): Likewise.
1706 (main): Handle MSDOS style pathname.
1707
7c56a6ce
MM
17081999-10-11 Mark Mitchell <mark@codesourcery.com>
1709
1710 * cplus-dem.c (do_type): Handle pointer to member types whose
1711 enclosing classes have namespace scope.
1712
cd32188b
ME
1713Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1714
1715 * config.table: Provide a backup shell for executing move-if-change.
1716
fc232f7a
MM
17171999-10-02 Mark Mitchell <mark@codesourcery.com>
1718
1719 * xmalloc.c (xmalloc): Fix spelling error.
1720 (xcalloc, xrealloc): Likewise.
1721
2a138827
KG
17221999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1723
1724 * cplus-dem.c (fancy_abort, demangle_integral_value,
1725 demangle_arm_hp_template, recursively_demangle,
1726 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1727 (program_name, program_version, fatal): Constify a char*.
1728 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1729 (main): Call return, not exit.
1730
5a657fc3
KG
17311999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1732
1733 * choose-temp.c: Remove obsolete comment about gcc.
1734 (make_temp_file): Constify a char*.
1735
33c5ddcd
KG
1736Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1737
1738 * xmemdup.c: Include sys/types.h.
1739
b10647f1
JG
17401999-09-07 Jeff Garzik <jgarzik@pobox.com>
1741
1742 * xmemdup.c: New xmemdup function.
1743 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1744
3dd6c3af
LV
1745Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1746
5194cf08 1747 * config.table: Add openedition target.
3dd6c3af
LV
1748 * config/mh-openedition: New file.
1749
19e28e2a
ME
1750Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1751
1752 * pexecute.c (pexecute): Fill in temp_base when needed.
1753
4dfeccf9
RH
17541999-08-31 Richard Henderson <rth@cygnus.com>
1755
1756 * getpwd.c: Check HAVE_GETCWD before defining it away.
1757
4ac3cb83
KG
17581999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1759
1760 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1761 (REQUIRED_OFILES): Add getpwd.o.
1762 (getpwd.o): Add target.
1763
1764 * configure.in (AC_PREREQ): Bump to 2.13.
1765 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1766
1767 * getpwd.c: New file, moved here from gcc.
1768
e797ff70
KG
17691999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1770
1771 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1772 comparing against a signed quantity.
1773 (arm_special): Likewise.
1774 (demangle_fund_type): Likewise.
1775 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 1776 ATTRIBUTE_UNUSED.
e797ff70
KG
1777 (main): Constify variable `valid_symbols'.
1778
55247fce
PDM
1779Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1780
1781 * strtoul.c (strtoul): Add parentheses around && within ||.
1782
76632dd0
DJ
1783Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1784
1785 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1786 libdir, libsubdir and tooldir.
1787
d080bbfa
MM
17881999-08-01 Mark Mitchell <mark@codesourcery.com>
1789
1790 * splay-tree.c (splay_tree_insert): Return the new node.
1791
a81c752a
RH
17921999-07-14 Richard Henderson <rth@cygnus.com>
1793
5194cf08 1794 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
1795 prototyping directly.
1796 * choose-temp.c: Conditionally include string.h.
1797
8f1824d9
JM
17981999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1799
1800 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1801
652374d3
ILT
18021999-07-11 Ian Lance Taylor <ian@zembu.com>
1803
1804 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1805 warning.
1806
a4494286
JM
18071999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1808
1809 * Makefile.in (needed-list): Only include stuff we actually need
1810 for libstdc++.
1811
90e72e20
AS
18121999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1813
1814 * configure.in (checkfuncs): Add gettimeofday.
1815 * config.in, configure: Regenerated.
1816
b569200e
MK
1817Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1818
1819 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1820 the test fails.
1821 * configure: Regenerate.
1822
73919448
MS
18231999-06-10 Mike Stump <mrs@wrs.com>
1824
1825 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1826 parallel builds.
1827
fee9125c
KG
18281999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1829
1830 * putenv.c: Include ansidecl.h to define `const'.
1831 * setenv.c: Likewise.
1832
71cce721
MN
1833Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1834
a7c9637f
JL
1835 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1836 * configure.in (funcs): Add putenv and setenv.
1837 (AC_CHECK_FUNCS): Check for putenv and setenv.
1838 * configure: Rebuilt.
1839 * putenv.c setenv.c: New files.
1840
71cce721
MN
1841 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1842 bytes of space using malloc.
1843
53504016
SG
1844Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1845
1846 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1847 the *mangled pointer beyond the end of the string. Clean up code to
1848 match prevailing coding style.
1849
34842539
MH
18501999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1851
1852 * tmpnam.c (L_tmpnam): Fix typo.
1853
3a08531d
ME
1854Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1855
1856 * cplus-dem.c (standard_symbol_characters): Renamed from
1857 standard_symbol_alphabet. No longer modify TABLE.
1858 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1859 modify TABLE.
1860 (main): Corresponding changes. Use strchr to determine if a
1861 character is valid.
1862
8db9d08b
JB
18631999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1864
1865 * cplus-dem.c (main): Use table lookup to distinguish identifier
1866 characters from non-identifier characters.
1867 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1868
6a071f4a
FF
1869Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1870
1871 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1872 * getruntime.c: Only attempt to include sys/resource.h and
1873 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1874 are defined.
1875
7dd88617
DT
1876Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1877
1878 * configure.in (alloca detection): Handle alloca directly for interix.
1879 * configure: Rebuilt.
1880
7a1528bc
MK
1881Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1882
1883 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1884
76409268
JB
18851999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1886
1887 Fix from Dale Hawkins:
5194cf08 1888 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
1889 reallocated properly if we use it again.
1890
1891 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1892 stricter about syntax. Always null-terminate string.
1893
acbbd80a
MK
1894Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1895
1896 * configure.in (checkfuncs): Check for sbrk.
1897 * config.in: Rebuilt.
1898 * configure: Likewise.
1899 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1900
92523551
JB
19011999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1902
1903 Fix from Marcus Daniels:
1904 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1905 identifier looking for another underscore.
1906
36eb4217
MK
1907Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1908
1909 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1910 * xmalloc.c: Likewise.
1911 (xcalloc): UWIN has sbrk.
1912 (xrealloc): Fix guard macro.
1913
2c45d1a0
RH
19141999-04-11 Richard Henderson <rth@cygnus.com>
1915
1916 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1917 or <alloca.h>.
1918 * clock.c (GNU_HZ): New definition.
1919 (clock): Use it.
1920 * getruntime.c: Likewise.
1921
1922 * config.table: Use mh-beos.
1923 * config/mh-beos: New file.
1924
391cdef0
MM
19251999-04-11 Mark Mitchell <mark@codesourcery.com>
1926
1927 * cplus-dem.c (demangle_template_value_parm): Handle
1928 pointers-to-members.
1929 (do_type): Handle template parameters as qualifiers.
1930
9d229989
JB
19311999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1932
1933 * cplus-dem.c: Attempt to handle overflows in counts with some
1934 semblance of grace.
1935 (consume_count): Detect overflows. Return -1 to indicate errors,
1936 instead of zero.
1937 (demangle_template_value_parm, demangle_template): Handle change
1938 to consume_count's return convention.
1939
7c72138a
TT
19401999-04-05 Tom Tromey <tromey@cygnus.com>
1941
1942 * testsuite/regress-demangle: New file.
1943 * testsuite/demangle-expected: New file.
1944
1945 * Makefile.in (all, check, installcheck, info, install-info,
1946 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1947 distclean, maintainer-clean, realclean): Depend on corresponding
1948 `-subdir' target.
1949 (all-subdir check-subdir installcheck-subdir info-subdir
1950 install-info-subdir clean-info-subdir dvi-subdir
1951 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1952 distclean-subdir maintainer-clean-subdir): New target.
1953 * testsuite/Makefile.in: New file.
1954 * configure: Rebuilt.
1955 * configure.in: Create testsuite/Makefile.
1956
ae7f7270
MM
19571999-04-02 Mark Mitchell <mark@codesourcery.com>
1958
1959 * splay-tree.h (splay_tree_compare_pointers): Define.
1960
30f72379
MM
19611999-03-30 Mark Mitchell <mark@codesourcery.com>
1962
1963 * splay-tree.c (splay_tree_compare_ints): Define.
1964
4cc48683
TT
19651999-03-30 Tom Tromey <tromey@cygnus.com>
1966
1967 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1968 don't advance input pointer.
1969 (demangle_class_name): If consume_count didn't find a count, do
1970 nothing. Don't bother with `strlen' sanity check; consume_count
1971 does it for us.
1972
3510075c
JL
19731999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1974
1975 From Art Haas <ahaas@neosoft.com>:
1976 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1977 when doing arm or hp style.
1978 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 1979
89f602a7
MK
1980Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1981
1982 * pexecute.c (__CYGWIN32__): Rename to
1983 (__CYGWIN__): this.
1984 * xmalloc.c: Likewise.
1985
1986 Changes to support i386-pc-uwin.
1987 * configure.in (*-*-uwin*): Workaround for vfork bug.
1988 * configure: Regenerate.
1989 * pexecute.c (pexecute): Be like standard Unix.
1990 (pwait): Likewise.
1991 * xmalloc.c (first_break): Define.
1992 (xmalloc_set_program_name): Use.
1993 (xmalloc): Use.
1994
9346c824
FS
1995Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1996
1997 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1998
3510075c
JL
1999Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2000
2001 * config.table: Check cygwin*, not cygwin32*.
2002
8ec65f13
DB
2003Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2004
2005 * Makefile.in: Change mkstemp -> mkstemps.
2006
687361c8
ME
2007Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2008
2009 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2010 * configure.in (funcs): Check for and conditionally add mkstemps to
2011 the list of functions libiberty will provide.
2012 * configure: Rebuilt.
5194cf08 2013
b207e09c
MK
2014Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2015
5194cf08 2016 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2017 platforms that don't have HZ.
2018 * getruntime.c (HZ): Likewise.
2019
16b4c15e
RH
2020Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2021
2022 * Makefile.in (xstrdup.o): Depend on config.h.
2023
38beb75c
UD
2024Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2025
2026 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2027 freeing it.
2028
7e4311a3
KG
2029Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2030
2031 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2032
3510075c
JL
2033Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2034
2035 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2036 splay-tree.o.
2037
20381999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2039
2040 * configure.in: Require autoconf 2.12.1 or higher.
2041
fb9939b8
MM
20421998-12-30 Michael Meissner <meissner@cygnus.com>
2043
2044 * random.c (NULL): Don't redefine NULL if it is already defined.
2045
087aa398
KG
2046Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2047
2048 * argv.c (buildargv): Cast the result of alloca in assignment.
2049
2050 * choose-temp.c: Include stdlib.h.
38beb75c 2051
087aa398 2052 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2053 (snarf_numeric_literal): Constify first parameter.
2054 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2055 int, not a char.
087aa398
KG
2056 (demangle_qualifier): Likewise.
2057 (demangle_signature): Cast the argument of a ctype function to
2058 unsigned char.
2059 (arm_pt): Add parens around assignment used as truth value.
2060 (demangle_arm_hp_template): Constify variable `args'.
2061 (do_hpacc_template_const_value): Cast the argument of a ctype
2062 function to unsigned char.
2063 (do_hpacc_template_literal): Remove unused variable `i'.
2064 (snarf_numeric_literal): Constify parameter `args'.
2065 Cast the argument of a ctype function to unsigned char.
2066
2067 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2068 avoid ambiguous `else'.
38beb75c 2069
087aa398 2070 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2071 `cstart' and `cend' to unsigned char. Cast the argument of macro
2072 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2073
2074 * objalloc.c (free): Add prototype.
2075
21f2174d
HPN
2076Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2077
2078 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2079
3510075c
JL
2080Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2081
2082 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2083 doesn't exist.
3510075c 2084 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2085
e8fc8222
AM
2086Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2087
2088 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2089 bumping the pointer we read from. Also prepend these codes,
2090 as we do in other places.
2091
3510075c
JL
20921998-12-18 Nick Clifton <nickc@cygnus.com>
2093
2094 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2095 'const char *' in order to match its usage when calling siblings.
2096 (snarf_numeric_literal): Make first arg 'const char **' in order
2097 to match usage.
11a0bb74 2098
f4f30aa1
JL
2099Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2100
11a0bb74
KG
2101 * choose-temp.c: Don't check IN_GCC anymore.
2102
2103 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2104 * memchr.c (memchr): Likewise.
2105 * memcpy.c (memcpy): Likewise.
2106 * memmove.c (memmove): Likewise.
38beb75c 2107
11a0bb74
KG
2108 * mkstemp.c: Don't check IN_GCC anymore.
2109 * pexecute.c: Likewise.
2110 * splay-tree.c: Likewise.
38beb75c 2111
11a0bb74
KG
2112 * strchr.c (strchr): Use `const', not `CONST'.
2113 * strrchr.c (strrchr): Likewise.
2114 * strtol.c (strtol): Likewise.
2115 * strtoul.c (strtoul): Likewise.
2116
70d5ccef
DT
2117Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2118 Elena Zannoni <ezannoni@cygnus.com>
2119 Stan Shebs <shebs@cygnus.com>
2120 Edith Epstein <eepstein@cygnus.com>
2121 Andres MacLeod <amacleod@cygnus.com>
2122 Satish Pai <pai@apollo.hp.com>
2123
2124 * HP aCC demangling support.
2125 * cplus-dem.c
2126 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2127 demangling correctly when -edg specified; set the demangling style
2128 when user specifies 'edg'. Set strip_underscore to
2129 prepends_underscore, if not HPUXHPPA. Set
2130 current_demangling_style to hp_demangling if HPUXHPPA. Set
2131 current demangling style correctly if the switch is hp. Read
2132 label correctly also in the HP style case.
70d5ccef 2133 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2134 function.
70d5ccef 2135 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2136 style for this case is the same as ARM.
70d5ccef
DT
2137 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2138 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2139 demangle_arm_pt.); check and set value of temp_start field in
2140 multiple places. Also, when ceching for end of template args,
2141 check to see if at end of static member of template class.
70d5ccef 2142 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2143 include template args in string defining class.
70d5ccef
DT
2144 (demangle_class_name): use demangel_arm_hp_template.
2145 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2146 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2147 Handle EDG_DEMANGLING style. Handle constructor and destructor
2148 ops for HP style.
70d5ccef 2149 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2150 styles. global destructor and constructor for HP style are same
2151 as for ARM style. Same for local variables.
70d5ccef
DT
2152 (demangle_qualified): handle EDG_DEMANGLING style.
2153 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2154 cases '1' - '9' : initialize the temp_start field to -1 and handle
2155 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2156 and AUTO_DEMANGLING styles. If expecting a function and managed
2157 to demangle the funct args, then handle the LUCID_DEMANGLING,
2158 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2159 class name after "Lnnn_ in HP style case. HP style too needs to
2160 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2161 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2162 value param for HP/aCC.
70d5ccef 2163 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2164 literal parameter for HP aCC.
70d5ccef
DT
2165 (recursively_demangle): new function
2166 (snarf_numeric_literal): new function.
2167 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2168 to message.
70d5ccef 2169
8d525fa8
CF
2170Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2171
2172 * pexecute.c: Remove obsolete ifdefed cygwin code.
2173
9b1a92d8
KG
2174Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2175
2176 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2177 * cplus-dem.c: Likewise. Conform to libiberty.h.
2178 * pexecute.c: Likewise.
2179 * splay-tree.c: Likewise.
2180
c85c3232
MS
21811998-11-25 Mike Stump <mrs@wrs.com>
2182
2183 * Makefile.in (splay-tree.o): Add config.h dependency.
2184
35a6cd99
KG
2185Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2186
2187 * configure.in: Use AC_PREREQ(2.12.1).
2188
6e6e34b7
BK
21891998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2190
5194cf08 2191 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2192
59b67c11
JL
2193Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2194
2195 * mpw.c (mpw_access): Add missing parens.
2196
a6458d1d
KG
2197Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2198
2199 * configure.in: Call AC_HEADER_SYS_WAIT.
2200
2201 * pexecute.c: Include sys/wait.h when !IN_GCC.
2202
3510075c
JL
2203Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2204
2205 * pexecute.c: revert back to checking old Cygwin
2206 preprocessor symbol until some time has passed.
2207
2208Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2209
2210 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2211 since it will now support similar constructs.
2212
a9acf741
KG
2213Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2214
2215 * configure.in: Check for calloc.
2216
2217 * calloc.c: New file.
2218
2219 * xmalloc.c (xcalloc): New function.
2220
a49fb37a
AM
2221Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2222
2223 *cplus-dem.c (demangle_prefix): Use the last "__"
2224 in the mangled name when looking for the signature. This allows
2225 template names to begin with "__".
2226
0e714131
MM
22271998-11-08 Mark Mitchell <mark@markmitchell.com>
2228
ec2288ff
MM
2229 * cplus-dem.c (type_kind_t): Add tk_reference.
2230 (demangle_template_value_parm): Handle it.
2231 (do_type): Use it for references, instead of tk_pointer.
2232
0e714131
MM
2233 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2234 not internal_cplus_demangle.
2235
2931b6d4
KG
2236Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2237
2238 * choose-temp.c: Don't include gansidecl.h.
2239 * mkstemp.c: Likewise.
2240 * pexecute.c: Likewise.
2241
dd8f3ed5
GN
2242Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2243
5194cf08
ZW
2244 * configure.in: detect cygwin* instead of cygwin32*
2245 * configure: regenerate
dd8f3ed5 2246
c5f7c445
KG
2247Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2248
2249 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2250 whether to include config.h. Possibly include unistd.h in the
2251 !IN_GCC case. Define VFORK_STRING as a printable function call
2252 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2253 defined, include vfork.h. If VMS is defined, define vfork()
2254 appropriately. Remove vfork check on USG, we're using autoconf.
2255 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2256 locally what string to use.
c5f7c445 2257
ad3ef78e
MM
22581998-10-26 Mark Mitchell <mark@markmitchell.com>
2259
2260 * splay-tree.c: Tweak include directives to make sure declarations of
2261 xmalloc and free are available.
2262
224301c1
MM
22631998-10-25 Mark Mitchell <mark@markmitchell.com>
2264
2265 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2266 anonymous namespaces.
38beb75c 2267
d9db46fd
MM
22681998-10-23 Mark Mitchell <mark@markmitchell.com>
2269
2270 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2271 with type_quals.
2272 (TYPE_UNQUALIFIED): New macro.
2273 (TYPE_QUAL_CONST): Likewise.
2274 (TYPE_QUAL_VOLATILE): Likewise.
2275 (TYPE_QUAL_RESTRICT): Likewise.
2276 (code_for_qualifier): New function.
2277 (qualifier_string): Likewise.
2278 (demangle_qualifier): Likewise.
2279 (internal_cplus_demangle): Use them.
2280 (demangle_signature): Likewise.
2281 (demangle_template_value_parm): Likewise.
2282 (do_type): Likewise.
2283 (demangle_fund_type)): Likewise.
224301c1 2284
b056ad1c
KG
2285Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2286
2287 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2288 to match prototype.
2289
ed87f9c8
MM
22901998-10-21 Mark Mitchell <mark@markmitchell.com>
2291
2292 * splay-tree.c: New file.
2293 * Makefile.in (CFILES): Add it.
2294 (REQUIRED_OFILES): Likewise.
2295 (splay-tree.o): Add dependencies.
2296
e0c13971
AS
2297Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2298
2299 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2300 range of 'K' index.
2301
91e0f659
KG
2302Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2303
2304 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2305
2306 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2307 `unsigned char'.
2308 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2309 comparing against one.
2310 (cplus_mangle_opname): Likewise.
2311 (demangle_integral_value): Cast argument of ctype macro to
2312 `unsigned char'.
2313 (demangle_template_value_parm): Likewise.
2314 (demangle_template): Initialize variable `bindex'. Cast the
2315 result of `strlen' to (int) when comparing against one. Remove
2316 unused variable `start_of_value_parm'.
2317 (demangle_class_name): Cast the result of `strlen' to (int) when
2318 comparing against one.
2319 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2320 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2321 when comparing against one.
2322 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2323 (get_count): Likewise.
2324 (do_type): Likewise. Cast the result of `strlen' to (int) when
2325 comparing against one.
2326 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2327 (demangle_function_name): Cast the result of `strlen' to (int)
2328 when comparing against one.
2329
2330 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2331 comparing against one.
2332
73aeb2ff
JL
2333Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2334
5194cf08
ZW
2335 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2336 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2337 * config.in, configure: Rebuilt.
ae76f1be 2338
73aeb2ff
JL
2339 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2340 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2341 * config.in, configure: Rebuilt.
2342
dd8f3ed5
GN
2343Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2344
5194cf08 2345 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2346
f77d8413
MT
2347Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2348
2349 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2350
ca6b370d
JL
2351Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2352
2353 * Merge egcs & devo libiberty.
2354
ab4856b1
ML
2355