Correctly handle phex(*,0) and phex_nz(*,0).
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
1a78a35a
DD
12001-11-12 Jim Meyering <meyering@lucent.com>
2
3 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
4 this code would end up calling gettext even in packages built
5 with --disable-nls.
6 * getopt.c (_): Likewise.
7 * regex.c (_): Likewise.
8
4e55c4b6
DD
92001-11-03 Alan Modra <amodra@bigpond.net.au>
10
11 * configure.in: Cope with missing makeinfo.
12 * configure: Regenerate.
13
d311a83a
DD
142001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15
16 * hex.c (hex_init): Provide empty stub.
17
18 * hex.c (hex_init): Delete.
19 (_hex_value): Const-ify and initialize at compile-time.
20
3bc62f91
DD
212001-10-19 H.J. Lu <hjl@gnu.org>
22
23 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
24 necessary.
25
5d852400
DD
262001-10-17 DJ Delorie <dj@redhat.com>
27
28 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
29 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
30 mkstemps.c, pexecute.c, random.c, strsitnal.c, vasprintf.c:
31 Improve manual formatting.
32 * functions.texi: Regenerate.
33
ba19b94f
DD
342001-10-15 DJ Delorie <dj@redhat.com>
35
36 * Makefile.in (TEXIFILES): Add fnmatch.txh.
37 (maint-undoc): New.
38 maint-tool: Add "undoc" tool.
39 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
40 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
41 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
42 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
43 documentation.
44 * fnmatch.txh: New.
45 * functions.texi: Regenerate.
46
56056af5
DD
472001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
48
49 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
50 * strtod.c: Use "ISO C" instead of "ANSI C".
51 * functions.texi: Regenerate.
52
99b58139
DD
532001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
54
55 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
56 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
57 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
58 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
59 spelling. Give names to function arguments in documentation. Use
60 (void) prototypes in documentation.
61 * functions.texi: Regenerate.
62
e6450fe5
DD
632001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
64
65 * argv.c (buildargv, tests, main): Const-ify.
66 * cp-demangle.c (operator_code): Likewise.
67 * cplus-dem.c (optable, libiberty_demanglers,
68 cplus_demangle_set_style, cplus_demangle_name_to_style,
69 print_demangler_list): Likewise.
70 * hashtab.c (higher_prime_number): Likewise.
71 * strcasecmp.c (charmap): Likewise.
72 * strerror.c (error_info, strerror, main): Likewise.
73 * strncasecmp.c (charmap): Likewise.
74 * strsignal.c (signal_info): Likewise.
75
da191b5b
DD
762001-09-29 DJ Delorie <dj@redhat.com>
77
78 * configure: Regenerate.
79
916aaa12
DD
802001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
81
82 * concat.c: Include stdlib.h.
83
fa9f0e33
DD
842001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
85
86 * libiberty.texi: (Top level): Add syncodeindex pg. Add
87 @dircategory and @direntry directives. Add @finalout.
88 (many nodes): Lose the next,prev,up pointers on the @nide line.
89 (Using, Supplemental Functions, Replacement Functions): Fix
90 markup.
91 (Functions): Move around, to allow makeinfo to build the manual
92 without next,prev,up pointers in thye node lines.
93 (Licenses): Fix typos.
94
95 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
96 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
97 * functions.texi: Regenerate.
98
99 * copying-lib.texi: Lose the next,prev,up pointers on the @node
100 line.
101
1022001-09-27 DJ Delorie <dj@redhat.com>
103
104 * configure.in: Don't use in-tree texinfo, because libiberty must
105 be built before it. Check for makeinfo version 4 or higher.
106 * functions.texi: Regenerate.
107
39423523
DD
1082001-09-20 DJ Delorie <dj@redhat.com>
109 Phil Edwards <pedwards@disaster.jaj.com>
110
111 * configure.in (MAKEINFO, PERL): Detect these.
112 (--enable-maintainer-mode): Add.
113 * configure: Regenerate.
114 * Makefile.in (MAKEINFO, PERL): Define.
115 (libiberty.info, libiberty.dvi, libiberty.html): New.
116 (CFILES): Add bsearch.c.
117 (CONFIGURED_OFILES): New, list of objects configure might add.
118 (maint-missing, maint-buildall): New, for maintainers only.
119 (clean, mostlyclean): Add info/dvi/html files.
120 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
121 * gather-docs: New, for maintainers.
122 * maint-tool: New, for maintainers.
123 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
124 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
125 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
126 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
127 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
128 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
129 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
130 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
131 documentation.
132
66c94e19
DD
1332001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
134
135 * concat.c (reconcat): Fix for traditional C.
136
99ee3a8f
DD
1372001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
138
139 * concat.c (reconcat): New function.
140
54c20242
DD
1412001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
142
143 * concat.c (vconcat_length, vconcat_copy, concat_length,
144 concat_copy, concat_copy2): New functions.
145 (concat): Use vconcat_length/vconcat_copy.
146
147 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
148 Define.
149
843f21be
DD
1502001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
151
152 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
153 VA_FIXEDARG & VA_CLOSE.
154
155 * vasprintf.c: Check HAVE_STRING_H when including string.h.
156 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
157 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
158
8a423cb3
DD
1592001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
160
161 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
162
dc676635
DD
1632001-08-23 Ulrich Drepper <drepper@redhat.com>
164
165 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
166
1672001-08-23 Ulrich Drepper <drepper@redhat.com>
168
169 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
170 instead of mbrtowc.
171 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
172 wcslen, and __wcscoll instead of wcscoll.
173
f080c76d
DD
1742001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
175
4e55c4b6
DD
176 * fibheap.c (fibheap_init, fibnode_init): Remove.
177 (fibheap_new, fibnode_new): Use xcalloc to allocate and
178 initialize memory.
179 (fibheap_insert): Remove check for node allocation failure.
f080c76d 180
f01b59ed
DD
1812001-08-21 Richard Henderson <rth@redhat.com>
182
183 * Makefile.in (fibheap.o): Depend on config.h.
184 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
185 functions for inlining.
186
187Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
188
189 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
190 hosting on cygwin.
191 * configure: Regenerate.
192
eb828599
AC
1932001-08-20 Andrew Cagney <ac131313@redhat.com>
194
195 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
196 HARRIS_FLOAT_FORMAT.
197 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
198 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
199 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
200 (floatformat_m88110_harris_ext): New float formats.
201
4e55c4b6
DD
2022001-08-20 Daniel Berlin <dan@cgsoftware.com>
203
204 * fibheap.c: New file. Fibonacci heap.
205
206 * Makefile.in (CFILES): Add fibheap.c.
207 (REQUIRED_OFILES): Add fibheap.o.
208 (fibheap.o): Add dependencies for fibheap.o.
209
68a41de7
DD
2102001-08-17 Christopher Faylor <cgf@cygnus.com>
211
212 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
213 * configure: Regenerate.
214
8fc34799
DD
2152001-08-16 Richard Henderson <rth@redhat.com>
216
217 * hashtab.c (htab_hash_string): New.
218
16bad250
AC
2192001-08-13 Andrew Cagney <ac131313@redhat.com>
220
221 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
222 name.
223
a9022147
DD
2242001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
225
226 * regex.c (wcs_regex_compile): Use appropriate string
227 to compare with collating element.
228 Fix the padding for the alignment.
229
8aefe91a 2302001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
231
232 * lbasename.c (lbasename): Change function definition to return a
233 const char pointer.
234
e7e9b069
DD
2352001-08-07 Jason Merrill <jason_merrill@redhat.com>
236
237 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
238 for".
239
cc5144f8
DD
2402001-08-03 Richard Henderson <rth@redhat.com>
241
242 * Makefile.in (concat.o): Depend on config.h.
243
8aefe91a
DD
2442001-07-30 Andreas Jaeger <aj@suse.de>
245
246 * concat.c: Include "config.h".
247
86710ce2
DD
2482001-07-30 Andreas Jaeger <aj@suse.de>
249
250 * regex.c: Declare wcs functions only if compiling with
251 MBS_SUPPORT.
252 Don't use #elif for traditional C.
253
2542001-07-23 Ulrich Drepper <drepper@redhat.com>
255
256 * regex.c: Revamp memory allocation for WCHAR functions to
257 not use too much stack.
258
2592001-07-30 Andreas Jaeger <aj@suse.de>
260
261 * regex.c: Declare wcs functions only if compiling with
262 MBS_SUPPORT.
263 Don't use #elif for traditional C.
264
a5d8f731
DD
2652001-07-25 Daniel Jacobowitz <drow@mvista.com>
266
267 * Makefile.in (regex.o): Add dependency on config.h.
268
6ad8a379
DD
2692001-07-18 Andreas Schwab <schwab@suse.de>
270
271 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
272 underscore character.
273
2742001-07-18 Ulrich Drepper <drepper@redhat.com>
275
276 * regex.c: Limit string length printed in debug messages to 100
277 chars.
278
2792001-07-18 Andreas Jaeger <aj@suse.de>
280
281 * regex.c: Place under LGPL version 2.1.
282
2a6ef469
DD
2832001-07-10 Jeff Johnston <jjohnstn@redhat.com>
284
285 * Makefile.in: Add support for regex code.
286 * regex.c: New file.
287
7b78baae
DD
2882001-07-05 Mark Klein <mklein@dis.com>
289
290 * Makefile.in: Add ffs.c dependency.
291 * configure.in: Add ffs.c.
292 * ffs.c: New file.
293
926150e2
DD
2942001-06-18 Richard Henderson <rth@redhat.com>
295
296 * concat.c: Include <sys/types.h>.
297
11f6f21d
DD
2982001-06-11 Loren J. Rittle <ljrittle@acm.org>
299
300 bootstrap/3106
301 * strerror.c (sys_nerr): Hide the OS header version.
302 * strsignal.c (sys_nsig): Likewise.
303
d42dae6c
DD
3042001-06-10 Richard Henderson <rth@redhat.com>
305
306 * concat.c: Include string.h. Fix int vs size_t usage.
307 Simplify the iteration loops. Use memcpy.
308
e05c6d27
DD
3092001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
310
311 * partition.c: Fix misspelling of `implementation'.
312
b50c4073
DD
3132001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
314
315 * md5.c (md5_init_ctx): Declare constants as unsigned.
316 (md5_process_block): Likewise.
317
457161bf
DD
3182001-05-07 Zack Weinberg <zackw@stanford.edu>
319
320 * cp-demangle.c (demangle_v3_with_details,
321 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
322 function definition.
323 * ternary.c: Use K+R style function definitions. Use PTR, not
324 void *. Make arguments constant where possible.
325
e00bc6a7
DD
3262001-05-07 Mark Mitchell <mark@codesourcery.com>
327
328 * splay-tree.h (splay_tree_max): New function.
329 (splay_tree_min): Likewise.
330
400ee7e1
DB
3312001-04-15 Daniel Berlin <dan@cgsoftware.com>
332
333 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
334
335 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 336
d9697354
DD
3372001-04-03 Zack Weinberg <zackw@stanford.edu>
338
339 * make-temp-file.c (try): Inline.
340
a7bf099b
DD
3412001-02-28 Richard Henderson <rth@redhat.com>
342
343 * Makefile.in (make-temp-file.o): Depend on config.h.
344
30a1def2
DD
3452001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
346
347 * memchr.c (memchr): Adjust condition to avoid infinite loop.
348
079c672a
DD
3492001-03-23 Jakub Jelinek <jakub@redhat.com>
350
351 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
352 `_' not followed by a digit is invalid.
353
a88e356a
JB
3542001-03-22 Jim Blandy <jimb@redhat.com>
355
356 * cp-demangle.c (string_list_delete): Use dyn_string_delete
357 instead of free, to free the contents as well as the string
358 structure.
359
1dffcc66
DD
3602001-03-21 Zack Weinberg <zackw@stanford.edu>
361
362 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
363 Don't default P_tmpdir to anything. Try /var/tmp before
364 /usr/tmp.
365
3662001-03-20 Zack Weinberg <zackw@stanford.edu>
367
368 * choose-temp.c: Split off make_temp_file, and the code
369 duplicated between it and choose_temp_base, into...
370 * make-temp-file.c: ... here; new file.
371
372 * Makefile.in (CFILES): Add make-temp-file.c.
373 (REQUIRED_OFILES): Add make-temp-file.o.
374
e61231f1
JB
3752001-03-20 Jim Blandy <jimb@redhat.com>
376
377 * cp-demangle.c (struct demangling_def): New fields:
378 is_constructor and is_destructor.
379 (demangling_new): Initialize them.
380 (demangle_ctor_dtor_name): Set them, if we detect a constructor
381 or destructor.
382 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
383 is_gnu_v3_mangled_dtor): New functions.
384
a9cbbe6d
DD
3852001-03-20 Jason Merrill <jason@redhat.com>
386
387 * cplus-dem.c (main): Skip initial $.
388
b1e51b3c
DD
3892001-03-15 Michael Meissner <meissner@redhat.com>
390
391 * hashtab.c (higher_prime_number): Silence warning that 4294967291
392 might be a signed integer under pre-ISO C systems.
393
8aa30e60 3942001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 395 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 396
8aa30e60
DD
397 * libiberty/lbasename.c: New file.
398 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 399
30673bf5
DD
4002001-03-06 Zack Weinberg <zackw@stanford.edu>
401
402 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
403 * configure.in: Replace all alloca logic with a simple use of
404 the above new macro.
405 * config.table: Kill *-*-beos* entry.
406 * config/mh-beos: Delete.
407 * configure, config.in: Regenerate.
fa03f0a7 408
30673bf5
DD
409 * Makefile.in (ALLOCA, HFILES): Kill.
410 (REQUIRED_OFILES): Add alloca.o.
411 (alloca.o): Depend on libiberty.h.
412 (argv.o): Don't depend on alloca-conf.h.
413 * alloca-conf.h: Delete.
414 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
415 blocks. Provide the C alloca unconditionally. Use PTR where
416 appropriate. Make i00afunc static.
417 * argv.c: Don't include alloca-conf.h.
fa03f0a7 418
5810f394
DD
4192001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
420
421 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 422
a9db032a
DD
4232001-02-16 Loren J. Rittle <ljrittle@acm.org>
424
425 * cplus-dem.c (main): Initialize style.
fa03f0a7 426
8aefe91a
DD
4272001-02-02 Phil Edwards <pme@sources.redhat.com>
428
429 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
430
bc9bf259
DD
4312001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
432
433 Add support for Java demangling under the v3 ABI:
434 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
435 (struct demangling_def): Add `style' field.
436 (demangling_new): New parameter `style'. Set it in demangling_t.
437 (demangle_prefix): Use NAMESPACE_SEPARATOR.
438 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
439 (cp_demangle): New parameter `style'. Pass it to demangling_new().
440 (main): Call cp_demangle with extra parameter.
441 (java_demangle_v3): New function.
442 (java_builtin_type_names): New. Table of primitive type names used
443 for Java demangling.
444 (demangle_builtin_type): Look up in java_builtin_type_names if doing
445 Java output.
446 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
447 demangling.
448 (long_options): Remove obsolete `java' option.
449 (main): Remove explicit handling of `java' option. Instead, pass style
450 parameter in cplus_demangle flags as gdb does.
451 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 452
f6528837
DD
4532000-12-29 DJ Delorie <dj@redhat.com>
454
455 * fnmatch.c: Make the note about the origins of this file more
456 accurate, at least until we can sync with glibc.
457 * getopt.c: Ditto.
458 * getopt1.c: Ditto.
459 * md5.c: Ditto.
460 * obstack.c: Ditto.
9d969b59 461
c6da642e
DD
4622000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
463
464 * bsearch.c: New file.
465 * configure.in (funcs): Add bsearch.
466 (AC_CHECK_FUNCS): Likewise.
467 * configure, config.in: Regenerate.
468
ae7d06ad 4692000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
470
471 * safe-ctype.c: #include "ansidecl.h".
472 * strtod.c: Likewise.
473
ae7d06ad 4742000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
475
476 * strtoul.c: Include safe-ctype.h, not ctype.h.
477
ac424eb3
DD
4782000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
479
480 * safe-ctype.c: New file.
481 * Makefile.in (CFILES): Add safe-ctype.c.
482 (REQUIRED_OFILES): Add safe-ctype.o.
483
484 * argv.c: Define ISBLANK and use it, not isspace.
485 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
486 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
487 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
488 before calling TOLOWER(c)/TOUPPER(c).
489
4415a860
DD
4902000-12-07 Mike Stump <mrs@wrs.com>
491
492 * Makefile.in (distclean): When cleaning, remove testsuite.
493
849ee224
DD
4942000-12-05 Jason Merrill <jason@redhat.com>
495
496 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
497 name before allocating the dyn_string.
498
ae7d06ad 4992000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
500
501 * cp-demangle.c: s/new_abi/v3/.
502 * cplus-dem.c: Likewise.
503 (current_demangling_style): Now auto_demangling.
504 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 505 (main): Use standard symbol chars for auto_demangling.
e49a569c 506
ae7d06ad 5072000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
508
509 * hashtab.c (higher_prime_number): Use a table, rather than a
510 seive, to find the next prime.
ae7d06ad
NC
511
5122000-11-22 H.J. Lu <hjl@gnu.org>
513
514 * cplus-dem.c (main): Handle gnat_demangling.
515
5162000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
517
518 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
519 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
520 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
521 argument form of AC_DEFINE in dummy definitions block. Use
522 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
523 in dummy block. Preload cache variables instead of bypassing
524 tests, where possible.
525 * acconfig.h: Removed.
ae7d06ad 526
2ea7befd
DD
527 * xmalloc.c (xmalloc_failed): New function, does error
528 reporting on failed allocation.
529 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 530
f1775526
HPN
5312000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
532
533 * cplus-dem.c (cplus_demangle): Fix formatting.
534 (grow_vect): Ditto.
535 (ada_demangle): Ditto.
536 (internal_cplus_demangle): Ditto.
537 (mop_up): Ditto.
538
5392000-11-21 H.J. Lu <hjl@gnu.org>
540
541 * cplus-dem.c (main): Handle java_demangling.
542
ae7d06ad 5432000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
544
545 * cplus-dem.c (grow_vect): Prototype.
546 (ada_demangle): Cast the arg of ctype macros to unsigned char.
547
5dd42ef4
HPN
5482000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
549
550 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
551 parameter `option'.
552
296731c1
DD
5532000-11-15 Kenneth Block <kenneth.block@compaq.com>
554
8944fb9d 555 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
556 be used in GCC.
557
6e53a714 5582000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 559
5dd42ef4 560 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
561 list.
562
99a4c1bd
HPN
5632000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
564
565 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
566 xcalloc depending on htab->return_allocation_failure. Return zero
567 if calloc fails.
99a4c1bd
HPN
568 (htab_create): Update comment to cover memory allocation.
569 (htab_try_create): New.
570 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 571 Update comment to cover this.
99a4c1bd 572
e0f3df8f
HPN
5732000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
574
575 * hashtab.c: Change void * to PTR where necessary.
576 (htab_create, htab_expand): Correct formatting of comment before
577 function.
578
ae7d06ad 5792000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
580
581 * cp-demangle.c (string_list_def): Add caret_position and comments.
582 (result_caret_pos): New macro.
583 (result_append_string): Rename to...
584 (result_add_string): ... this, and insert at caret position.
ae7d06ad 585 Rename throughout.
59666b35
DD
586 (result_append): Rename to...
587 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 588 throughout.
59666b35
DD
589 (result_append_char): Rename to...
590 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 591 throughout.
59666b35
DD
592 (result_append_space): Remove.
593 (string_list_new): Initialize caret position.
594 (result_add_separated_char): Use caret position.
595 (result_get_caret): New funtion.
596 (result_set_caret): Likewise.
597 (result_shift_caret): Likewise.
598 (result_previous_char_is_space): Likewise.
599 (substitution_start): Use caret position.
600 (substitution_add): Likewise.
601 (demangling_new): Initialize caret position.
602 (demangle_encoding): Use caret position.
ae7d06ad 603 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
604 (demangle_type_ptr): Use switch statement. Handle pointers to
605 arrays. Don't use result_append_space. Use caret position.
606 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
607 call to demangle_array_type.
608 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 609
ae7d06ad 6102000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
611
612 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
613
6142000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
615
616 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
617
6182000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
619
620 * splay-tree.c: #include <stdio.h>.
621
6222000-09-14 Hans-Peter Nilsson <hp@axis.com>
623
624 * testsuite/demangle-expected: Add two tests for anonymous
625 namespaces.
626 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
627
6282000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
629
630 * splay-tree.c (splay_tree_predecessor): New function.
631 (splay_tree_successor): Likewise.
ae7d06ad
NC
632
6332000-09-10 Hans-Peter Nilsson <hp@axis.com>
634
635 * testsuite/demangle-expected: Add four tests for type_info
636 mangling.
637 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
638 for a non-template non-qualified type_info function or node.
639
6402000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
641
642 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
643
6442000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
645
646 * md5.c: #include "ansidecl.h".
647
6482000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
649
650 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
651 (demangle_type): Handle substitution candidates correctly in the
652 face of special substitutions.
ae7d06ad
NC
653
6542000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
655
656 * cp-demangle.c (demangle_encoding): Rename variable.
657 (demangle_name): Rename parameter. Handle return type
658 suppression.
659 (demangle_nested_name): Rename parameter.
660 (demangle_prefix): Likewise. Change return type suppression.
661 (demangle_unqualified_name): Add parameter. Flag constructors and
662 conversion operators.
663 (demangle_special_name): Fix comment.
664 (demangle_type): Rename variable.
665 (demangle_bare_function_type): Check for missing return type and
666 parameter.
667 (demangle_class_enum_type): Rename parameter.
668 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
669
6702000-08-31 DJ Delorie <dj@redhat.com>
671
672 * configure.in (Cygwin): special case cygwin only when we're
673 building cygwin, not when we're hosting cygwin.
674
6752000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
676
677 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
678 <expression>.
ae7d06ad
NC
679
6802000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
681
682 * cp-demangle.c (demangle_type_ptr): Increment position past
683 pointer and reference characters.
ae7d06ad
NC
684
6852000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
686
687 * cp-demangle.c (demangle_nv_offset): New function.
688 (demangle_v_offset): Likewise.
689 (demangle_call_offset): Likewise.
690 (demangle_special_name): Update thunk demangling to comply with
691 ABI changes.
ae7d06ad
NC
692
6932000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
694
695 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
696 (substitution_def): Remove template_parm_number.
697 (NOT_TEMPLATE_PARM): Remove.
698 (result_insert_string): New macro.
699 (result_insert): Likewise.
700 (result_insert_char): Likewise.
701 (substitution_add): Remove last parameter. Don't store template
702 parm number.
703 (BFT_NO_RETURN_TYPE): Define as NULL.
704 (demangle_encoding): Adjust call to demangle_bare_function_type.
705 (demangle_name): Adjust substitution. Adjust call to
706 substitution_add.
707 (demangle_prefix): Adjust call to substitution_add.
708 (demangle_identifier): Handle anonymous namespaces.
709 (demangle_operator_name): Change demangling of vendor-extended
710 operator to match ABI changes.
711 (demangle_type_ptr): Change parameters. Make recursive. Handle
712 substitutions here.
713 (demangle_type): Adjust calls to demangle_template_param,
714 substitution_add, and demangle_type_ptr. Fix substitution of
715 templated types.
716 (demangle_function_type): Change parameter to a pointer.
717 (demangle_bare_function_type): Likewise. Adjust insertion point.
718 (demangle_template_param): Remove last parameter.
719 (demangle_expr_primary): Remove unused variable. Adjust call to
720 demangle_template_param.
721 (is_mangled_char): Accept `$' and `.'.
722 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
723 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
724
7252000-08-31 Hans-Peter Nilsson <hp@axis.com>
726
727 * testsuite/demangle-expected: Add nine tests for
728 underscore-after-number followed by five tests for name-signature
729 delimiter.
730
7312000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
732
733 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
734
7352000-08-28 Jason Merrill <jason@redhat.com>
736
737 * Makefile.in (REQUIRED_OFILES): Add md5.o.
738 (CFILES): Add md5.c.
739 * md5.c: New file.
740
7412000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
742
743 * cp-demangle.c (demangle_name): Initialize template_p in local
744 name case. Don't re-add substitutions as candidates.
745 (demangle_nested_name): Use <unqualified-name>.
746 (demangle_prefix): Likewise. Don't add template names as
747 substitution candidates twice, or re-add a substitution or the
748 last prefix component.
749 (demangle_local_name): Adjust output format.
ae7d06ad
NC
750
7512000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
752
753 * cp-demangle.c (result_add_separated_char): Change parameter to
754 int.
755 (substitution_add): Don't check for duplicates. Check if
756 previously allocated size is zero.
757 (demangle_name): Remove duplicate check for std substitution.
758 Clear template flag appropriately.
759 (demangle_prefix): Remove argument to demangle_substitution.
760 Don't check that template flag is already set.
761 (demangle_operator_name): Add pt operator.
762 (demangle_type): Don't treat r as built-in type. Remove argument
763 to demangle_substitution. Fix substitution candidate mechanics.
764 Handle <template-template-parm>s. Improve comments.
765 (demangle_template_param): Don't handle template arg lists here.
766 (demangle_substitution): Remove parameter.
767 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
768
7692000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
770
771 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
772
7732000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
774
775 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
776 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
777 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
778
7792000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
780
781 * cp-demangle.c (result_close_template_list): Remove function.
782 (result_add_separated_char): New function.
783 (result_open_template_list): New macro.
784 (result_close_template_list): Likewise.
785 (demangle_prefix): Don't set template_p if the
786 prefix ends with a ctor name.
787 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
788 (demangle_type): Check for template args after substitution.
789 (demangle_template_args): Use result_open_template_list.
d3e85005 790
ae7d06ad 7912000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 792
ae7d06ad 793 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 794
ae7d06ad 7952000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
796
797 * config/mh-openedition.h: Added -DLE370 definition.
798
a9f34fb6
JL
7992000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
800
801 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
802 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
803 Cast program to 'char *' in errmsg_arg assignment.
804 (PWAIT_ERROR): Define.
805 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
806 to DJGPP's WIF* macros.
807
90aaccd1 8082000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 809 Jeff Law <law@cygnus.com>
90aaccd1 810
ae7d06ad 811 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 812
90aaccd1 813 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
814 * rename.c: Include config.h, unistd.h
815 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 816
6ef554e3
HPN
8172000-07-24 Hans-Peter Nilsson <hp@axis.com>
818
819 * cplus-dem.c (work_stuff_copy_to_from): New.
820 (delete_non_B_K_work_stuff): New.
821 (delete_work_stuff): New.
822 (mop_up): Break out work_stuff partly destruction to
823 delete_non_B_K_work_stuff.
824 (iterate_demangle_function): New.
825 (demangle_prefix): Call iterate_demangle_function instead of
826 demangle_function_name. Leave handling of name-signature
827 __-delimiters to iterate_demangle_function.
828 (demangle_integral_value): Strip an optional
829 following underscore cautiously. Handle negative numbers.
830
ae7d06ad 8312000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 832
ae7d06ad 833 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
834 if (AUTO_DEMANGLING || GNU_DEMANGLING)
835
ae7d06ad
NC
8362000-07-21 Alex Samuel <samuel@codesourcery.com>
837
838 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
839 allocating ctor mangling.
840 (demangle_array_type): Handle empty and non-constant array length.
841
b1233257 8422000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
843 Jeff Law <law@cygnus.com>
844
845 * configure.in (AC_CHECK_HEADERS): Add time.h.
846 (AC_HEADER_TIME): Add check.
847 * configure, config.in: Regenerate.
848 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
849
850 * configure.in (AC_CHECK_HEADERS): Add limits.h.
851 * configure, config.in: Regenerate.
852 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
853 * strtol.c, strtoul.c: #include "config.h". Portably #include
854 <limits.h> and/or <sys/param.h>.
855 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 856
7d3ffcaf
JL
857 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
858 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
859 * configure, config.in: Regenerate.
860 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
861
b1233257
JL
862 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
863
ae7d06ad
NC
8642000-07-21 Mike Stump <mrs@wrs.com>
865
866 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
867 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
868
8692000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
870
871 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
872
873 * setenv.c (setenv): Initialize variable `ep'.
874
875 * sigsetmask.c (abort): Prototype.
876
877 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
878 __STDC__ for stdarg.h include.
879 (int_vasprintf): Prototype.
880 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
881 definition. Cast `global_total_width' in comparison.
882 (main): Prototype. Return a value.
883
884 * vfork.c (fork): Prototype.
885
886 * xexit.c: Include config.h.
887
9adf30b2
JL
8882000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
889
890 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
891 and print it with %u.
892
2ed78d1b
HPN
8932000-07-17 Hans-Peter Nilsson <hp@axis.com>
894
895 * testsuite/regress-demangle (failed test): Show result and
896 expected output.
897
0473bdf7
AH
8982000-07-07 Andrew Haley <aph@cygnus.com>
899
900 * cplus-dem.c (main): fflush() after emitting last char before
901 waiting for input.
902
03d5f569
JM
9032000-06-28 Alex Samuel <samuel@codesourcery.com>
904
905 * cp-demangle.c (demangle_encoding): Accept no substitutions.
906 (demangle_name): Handle <substitution> followed by
907 <unqualified-template-name>.
908 (demangle_type): Follow special substitutions with
909 <class-enum-type>
910 (demangle_subtitution): Set template_p for special substitutions.
911 (main): Fix typos.
ae7d06ad 912
03d5f569
JM
9132000-06-27 Alex Samuel <samuel@codesourcery.com>
914
915 * cp-demangle.c (demangle_special_name): Swap base and derived
916 class when demangling construction vtables.
917
9182000-06-21 Alex Samuel <samuel@codesourcery.com>
919
920 * cp-demangle.c: Don't include ctype.h.
921 (IS_DIGIT): New macro.
922 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
923 instead of isdigit and isalpanum.
924 (demangling_def): Make name and next const pointers.
925 (STATUS_ALLOCATION_FAILED): New status code.
926 (dyn_string_append_space): Handle failure in
927 dyn_string_append_char.
928 (int_to_dyn_string): Likewise. Change return value to status_t.
929 (string_list_new): Handle failure of dyn_string_init.
930 (result_close_template_list): Change return type to status_t.
931 Handle failure in dyn_string_append.
932 (result_push): Change return value to status_t. Handle failure in
933 string_list_new. Handle failure of result_push throughout.
934 (substitution_add): Change return value to status_t. Handle
935 dyn_string failures. Handle failure of substitution_add
936 throughout.
937 (template_arg_list_new): Return NULL on allocation failure.
938 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
939 Handle error result throughout.
940 (result_append): Likewise.
941 (result_append_char): Likewise.
942 (result_append_space): Likewise.
943 (demangling_new): Make argument a const pointer. Handle
944 allocation failures.
945 (demangle_template_args): Handle failure in template_arg_list_new
946 and result_close_template_list.
947 (demangle_discriminator): Return if int_to_dyn_string fails.
948 (cp_demangle): Likewise.
949 (cp_demangle_type): New function.
950 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
951 memory allocation failure.
952 (main): Likewise.
953 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
954 IN_LIBGCC2.
955 (dyn_string_init): Change return value to int. Handle
956 RETURN_ON_ALLOCATION_FAILURE case.
957 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
958 (dyn_string_release): Delete the dyn_string.
959 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
960 (dyn_string_copy): Change return type to int.
961 (dyn_string_copy_cstr): Likewise.
962 (dyn_string_prepend): Likewise.
963 (dyn_string_prepend_cstr): Likewise.
964 (dyn_string_insert): Likewise.
965 (dyn_string_insert_cstr): Likewise.
966 (dyn_string_append): Likewise.
967 (dyn_string_append_cstr): Likewise.
968 (dyn_string_append_char): Likewise.
969 (dyn_string_substring): Likewise.
ae7d06ad 970
eb383413 9712000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 972
eb383413
L
973 * cp-demangle.c (demangle_operator_name): Add spaces before
974 names beginning with a letter: delete, delete[], new, new[],
975 sizeof.
976 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 977
eb383413
L
978Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
979
980 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
981
982Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
983
984 * cp-demangle.c (stdio.h): File included unconditionaly.
985 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
986 * dyn-string.c (stdio.h): File included.
987 * partition.c (partition_print): No `&' needed to take the address of
988 a function.
989
9902000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
991
992 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 993
eb383413
L
994 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
995
996 * cp-demangle.c (demangle_char): Change parameter from char to int.
997 (demangle_expression, demangle_expr_primary): Remove extra
998 semi-colon in prototype.
999
1000 * dyn-string.c (dyn_string_append_char): Change parameter from
1001 char to int.
1002
1003 * memcmp.c (memcmp): Constify.
1004
1005 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1006 __extension__.
1007
1008 * partition.c (elem_compare): Prototype. Don't cast away
1009 const-ness.
1010
1011 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1012
eb383413
L
10132000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1014
1015 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1016
1017 * cp-demangle.c: Include demangle.h.
1018 (template_arg_list_new): DeANSIfy.
1019 (cp_demangle): Make static and add prototype.
1020 (operator_code, operators): Constify.
1021 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1022
10232000-06-05 Alex Samuel <samuel@codesourcery.com>
1024
1025 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1026 unsigned char.
1027 (demangle_unqualified_name): Likewise.
1028 (demangle_number_literally): Likewise.
1029 (demangle_type): Likewise.
1030 (demangle_substitution): Likewise.
1031 (is_mangled_char): Likewise, for isalnum.
1032
10332000-06-04 Alex Samuel <samuel@codesourcery.com>
1034
1035 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1036 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1037 (cp-demangle.o): New dependency.
1038 (dyn-string.o): Likewise.
1039
1040 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1041
1042 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1043 demangler.
1044 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1045 demangling mode.
1046 (gnu_new_abi_symbol_characters): New function.
1047 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1048 file.
1049 * cp-demangle.c: New file.
ae7d06ad 1050
f03aa80d
AC
1051Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1052
1053 * floatformat.c: Add name to each floatformat field.
1054
77bfb694
JL
1055Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1056
1057 * Makefile.in (objalloc.o): Depend on config.h
1058
5c82d20a
ZW
10592000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1060
eb383413 1061 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1062 if HAVE_STRING_H.
1063 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1064 * objalloc.c: Include config.h. Include stdlib.h and don't
1065 declare malloc or free if HAVE_STDLIB_H.
1066 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1067 else declare malloc without prototype. Include string.h if
1068 HAVE_STRING_H, else declare memset without prototype. Don't
1069 include stddef.h.
1070
eb383413
L
10712000-05-23 Mike Stump <mrs@wrs.com>
1072
1073 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1074 -j3.
eb383413
L
1075
10762000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1077
1078 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1079
10802000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1081
ae7d06ad 1082 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1083 probably zero, also eliminate a warning on alpha.
1084
10852000-05-15 David Edelsohn <edelsohn@gnu.org>
1086
1087 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1088 on $(enable_shared).
1089
10902000-05-10 Jakub Jelinek <jakub@redhat.com>
1091
1092 * config.table: Use mh-sparcpic for sparc*-*-*.
1093
10942000-05-08 Nick Clifton <nickc@cygnus.com>
1095
1096 * Makefile.in (CFILES): Add strncmp.c.
1097 (NEEDED): Add strncmp.
1098
10992000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1100
eb383413
L
1101 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1102 Cast the arguments to `islower' to `unsigned char'.
1103 (print_demangler_list): Prototype.
1104
1105Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1106
1107 * sort.c (UCHAR_MAX): Provide fallback definition.
1108
11092000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1110
1111 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1112 SUBDIRS.
1113
eb383413
L
11142000-04-28 Kenneth Block <block@zk3.dec.com>
1115 Jason Merrill <jason@casey.cygnus.com>
1116
ae7d06ad
NC
1117 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1118 (cplus_demangle_set_style): New function for setting style.
1119 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1120
11212000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1122
1123 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1124
1125 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1126 (libiberty_AC_FUNC_STRNCMP): Invoke.
1127
1128 * strncmp.c: New file.
1129
1130Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1131
1132 * hashtab.c (htab_expand): Add prototype.
1133 (find_empty_slot_for_expand): Likewise.
1134
11352000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1136
1137 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1138 match prototype.
1139 (htab_expand): Cast the return value of xcalloc.
1140
11412000-04-24 Mark Mitchell <mark@codesourcery.com>
1142
1143 * hashtab.c (hash_pointer): New function.
1144 (eq_pointer): Likewise.
1145 (htab_hash_pointer): New variable.
1146 (htab_eq_pointer): Likewise.
1147
11482000-04-23 Mark Mitchell <mark@codesourcery.com>
1149
1150 * sort.c (sort_pointers): Fix endianness bugs.
1151
1152 * sort.c: New file.
1153 * Makefile.in (CFILES): Add sort.c
1154 (REQUIRED_OFILES): Add sort.o.
1155 (sort.o): New target.
1156
19be4303
JL
11572000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1158
1159 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1160 4.3BSD systems.
1161
eb383413
L
1162Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1163
1164 * hashtab.c: Various minor cleanups.
1165 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1166 (htab_find_slot): Likewise.
1167
11682000-04-16 Dave Pitts <dpitts@cozx.com>
1169
1170 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1171
afe36a78
RH
11722000-04-05 Richard Henderson <rth@cygnus.com>
1173
1174 * splay-tree.c (splay_tree_remove): New.
1175
eb383413
L
11762000-03-30 Mark Mitchell <mark@codesourcery.com>
1177
1178 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1179 codes.
1180 (htab_find_with_hash): Likewise.
1181 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1182
eb383413
L
11832000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1184
1185 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1186 unless it will be used. Rearrange loop for better
1187 optimization.
1188 (higher_prime_number): Add static prototype.
1189
b4fe2683
JM
1190Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1191
1192 * Makefile.in (partition.o): Depend on config.h
1193
11942000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1195
1196 * hashtab.c (find_empty_slot_for_expand): New function.
1197 (htab_expand): Use it instead of htab_find_slot.
1198 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1199 argument HASH.
1200 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1201 (htab_find): New wrapper function.
1202 (htab_find_slot): Likewise.
1203 (htab_traverse): Pass slot, not entry, to called function.
1204
12052000-03-09 Alex Samuel <samuel@codesourcery.com>
1206
1207 * Makefile.in (CFILES): Add partition.c.
1208 (REQUIRED_OFILES): Add partition.o.
1209 (partition.o): New rule.
1210 * partition.c: New file.
ae7d06ad 1211
b4fe2683
JM
12122000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1213
1214 * hashtab.c (htab_create): Set del_f.
1215 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1216 Use it.
1217
12182000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1219
1220 * hashtab.c: Remove debugging variables (all_searches,
1221 all_collisions, all_expansions). Delete
1222 all_hash_table_collisions.
1223 (create_hash_table, delete_hash_table, empty_hash_table,
1224 find_hash_table_entry, remove_element_from_hash_table_entry,
1225 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1226 hash_table_elements_number, hash_table_collisions): Rename to:
1227 htab_create, htab_delete, htab_empty, htab_find_slot,
1228 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1229 htab_elements, htab_collisions.
1230 (htab_find): New function, handles common case where you don't
1231 plan to add or delete an entry.
1232 (htab_expand): Don't create a whole new table, just a new
1233 entry vector.
1234 (htab_find_slot): Simplify logic.
1235
08372f14
ILT
12361999-08-03 Ian Lance Taylor <ian@zembu.com>
1237
1238 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1239 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1240
1241 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1242 $(TARGETLIB)n so it works on MSDOS.
1243 (install_to_tooldir): Likewise.
1244
9c8ac5a9
ILT
12451999-07-21 Ian Lance Taylor <ian@zembu.com>
1246
1247 From Mark Elbrecht:
1248 * makefile.dos: Remove; obsolete.
8f36e47c 1249 * configure.bat: Remove; obsolete.
9c8ac5a9 1250
0c0a36a4
ILT
12511999-07-11 Ian Lance Taylor <ian@zembu.com>
1252
1253 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1254 warning.
1255
12562000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1257
1258 * pexecute.c: Conditionally include string.h.
b4fe2683 1259 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1260
12612000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1262
1263 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1264 we're using gcc.
1265
1266 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1267
12681999-12-27 Geoff Keating <geoffk@cygnus.com>
1269
1270 * vasprintf.c (int_vasprintf): Don't re-read the format character
1271 as this mishandles strings like '%%s'.
1272
12731999-12-05 Mark Mitchell <mark@codesourcery.com>
1274
1275 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1276 rather than struct splay_tree_node.
1277 (splay_tree_insert): Use struct splay_tree_s rather than struct
1278 splay_tree.
1279
1280Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1281
1282 * hashtab.c (sys/types.h): File included.
1283
12841999-11-22 Jason Merrill <jason@casey.cygnus.com>
1285
1286 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1287 BSD license, pursuant with
1288
1289 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1290
1291Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1292
1293 * hashtab.c: Include stdio.h.
1294
1295Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1296
1297 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1298
1299Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1300
1301 * xstrdup (sys/types.h): Include this file.
1302
13031999-10-28 Nathan Sidwell <nathan@acm.org>
1304
1305 * Makefile.in (SUBDIRS): New macro.
1306 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1307 avoid multiple subdirectory cleaning.
1308 (*-subdir): Use SUBDIRS.
1309
13101999-10-25 Jim Kingdon <http://developer.redhat.com/>
1311
1312 * cplus-dem.c: Move declarations of standard_symbol_characters and
1313 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1314 warnings.
1315
13161999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1317
1318 * hashtab.c (find_hash_table_entry): When returning a
1319 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1320 (clear_hash_table_slot): New function which deletes an entry
1321 by its position in the table, not its value.
1322 (traverse_hash_table): New function which calls a hook
1323 function for every live entry in the table.
1324
13251999-10-19 Mark Mitchell <mark@codesourcery.com>
1326
1327 * cplus-dem.c (INTBUF_SIZE): New macro.
1328 (string_append_template_idx): New function.
1329 (demangle_expression): Likewise.
1330 (demangle_integral_value): Use it.
1331 (demangle_real_value): New function, split out from ...
1332 (demangle_template_value_parm): ... here. Use
1333 string_append_template_idx. Use demangle_real_value.
1334 (demangle_template): Use string_append_template_idx.
1335 (demangle_qualified): Use consume_count_with_underscores.
1336 (get_count): Tweak formatting.
1337 (do_type): Use string_append_template_idx.
b4fe2683 1338
0c0a36a4
ILT
13391999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1340
1341 * calloc.c: Add a public domain notice.
1342
1343Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1344
1345 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1346
1347Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1348
1349 * Makefile.in (CFILES): Add hashtab.c
1350 (REQUIRED_OFILES): Add hashtab.o
1351 (hashtab.o): Add dependencies.
1352 * hashtab.c: New file
1353
1354Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1355
1356 * basename.c (DIR_SEPARATOR): New macro.
1357 (DIR_SEPARATOR_2): Likewise.
1358 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1359 (IS_DIR_SEPARATOR): Likewise.
1360 (main): Handle MSDOS style pathname.
1361
13621999-10-11 Mark Mitchell <mark@codesourcery.com>
1363
1364 * cplus-dem.c (do_type): Handle pointer to member types whose
1365 enclosing classes have namespace scope.
1366
1367Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1368
1369 * config.table: Provide a backup shell for executing move-if-change.
1370
13711999-10-02 Mark Mitchell <mark@codesourcery.com>
1372
1373 * xmalloc.c (xmalloc): Fix spelling error.
1374 (xcalloc, xrealloc): Likewise.
1375
13761999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1377
1378 * cplus-dem.c (fancy_abort, demangle_integral_value,
1379 demangle_arm_hp_template, recursively_demangle,
1380 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1381 (program_name, program_version, fatal): Constify a char*.
1382 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1383 (main): Call return, not exit.
1384
13851999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1386
1387 * choose-temp.c: Remove obsolete comment about gcc.
1388 (make_temp_file): Constify a char*.
1389
1390Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1391
1392 * xmemdup.c: Include sys/types.h.
1393
13941999-09-07 Jeff Garzik <jgarzik@pobox.com>
1395
1396 * xmemdup.c: New xmemdup function.
1397 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1398
1399Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1400
b4fe2683 1401 * config.table: Add openedition target.
0c0a36a4
ILT
1402 * config/mh-openedition: New file.
1403
1404Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1405
1406 * pexecute.c (pexecute): Fill in temp_base when needed.
1407
14081999-08-31 Richard Henderson <rth@cygnus.com>
1409
1410 * getpwd.c: Check HAVE_GETCWD before defining it away.
1411
14121999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1413
1414 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1415 (REQUIRED_OFILES): Add getpwd.o.
1416 (getpwd.o): Add target.
1417
1418 * configure.in (AC_PREREQ): Bump to 2.13.
1419 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1420
1421 * getpwd.c: New file, moved here from gcc.
1422
14231999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1424
1425 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1426 comparing against a signed quantity.
1427 (arm_special): Likewise.
1428 (demangle_fund_type): Likewise.
1429 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1430 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1431 (main): Constify variable `valid_symbols'.
1432
1433Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1434
1435 * strtoul.c (strtoul): Add parentheses around && within ||.
1436
1437Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1438
1439 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1440 libdir, libsubdir and tooldir.
1441
14421999-08-01 Mark Mitchell <mark@codesourcery.com>
1443
1444 * splay-tree.c (splay_tree_insert): Return the new node.
1445
35ca97ea
RH
14461999-07-14 Richard Henderson <rth@cygnus.com>
1447
b4fe2683 1448 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1449 prototyping directly.
1450 * choose-temp.c: Conditionally include string.h.
1451
0c0a36a4
ILT
14521999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1453
1454 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1455
af32ff69
ILT
14561999-07-11 Ian Lance Taylor <ian@zembu.com>
1457
1458 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1459 warning.
1460
0c0a36a4
ILT
14611999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1462
1463 * Makefile.in (needed-list): Only include stuff we actually need
1464 for libstdc++.
1465
14661999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1467
1468 * configure.in (checkfuncs): Add gettimeofday.
1469 * config.in, configure: Regenerated.
1470
1471Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1472
1473 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1474 the test fails.
1475 * configure: Regenerate.
1476
14771999-06-10 Mike Stump <mrs@wrs.com>
1478
1479 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1480 parallel builds.
1481
14821999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1483
1484 * putenv.c: Include ansidecl.h to define `const'.
1485 * setenv.c: Likewise.
1486
1487Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1488
1489 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1490 * configure.in (funcs): Add putenv and setenv.
1491 (AC_CHECK_FUNCS): Check for putenv and setenv.
1492 * configure: Rebuilt.
1493 * putenv.c setenv.c: New files.
1494
1495 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1496 bytes of space using malloc.
1497
1498Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1499
1500 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1501 the *mangled pointer beyond the end of the string. Clean up code to
1502 match prevailing coding style.
1503
15041999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1505
1506 * tmpnam.c (L_tmpnam): Fix typo.
1507
1508Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1509
1510 * cplus-dem.c (standard_symbol_characters): Renamed from
1511 standard_symbol_alphabet. No longer modify TABLE.
1512 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1513 modify TABLE.
1514 (main): Corresponding changes. Use strchr to determine if a
1515 character is valid.
1516
e9868447
JB
15171999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1518
1519 * cplus-dem.c (main): Use table lookup to distinguish identifier
1520 characters from non-identifier characters.
1521 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1522
33fbbfbc
RH
1523Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1524
1525 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1526 * getruntime.c: Only attempt to include sys/resource.h and
1527 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1528 are defined.
1529
0c0a36a4
ILT
1530Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1531
1532 * configure.in (alloca detection): Handle alloca directly for interix.
1533 * configure: Rebuilt.
1534
1535Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1536
1537 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1538
252b5132
RH
15391999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1540
1541 Fix from Dale Hawkins:
b4fe2683 1542 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
1543 reallocated properly if we use it again.
1544
1545 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1546 stricter about syntax. Always null-terminate string.
1547
c1687039
ILT
1548Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1549
1550 * configure.in (checkfuncs): Check for sbrk.
1551 * config.in: Rebuilt.
1552 * configure: Likewise.
1553 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1554
0c0a36a4
ILT
15551999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1556
1557 Fix from Marcus Daniels:
1558 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1559 identifier looking for another underscore.
1560
1561Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1562
1563 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1564 * xmalloc.c: Likewise.
1565 (xcalloc): UWIN has sbrk.
1566 (xrealloc): Fix guard macro.
1567
252b5132
RH
15681999-04-11 Richard Henderson <rth@cygnus.com>
1569
1570 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1571 or <alloca.h>.
1572 * clock.c (GNU_HZ): New definition.
1573 (clock): Use it.
1574 * getruntime.c: Likewise.
1575
1576 * config.table: Use mh-beos.
1577 * config/mh-beos: New file.
1578
0c0a36a4
ILT
15791999-04-11 Mark Mitchell <mark@codesourcery.com>
1580
1581 * cplus-dem.c (demangle_template_value_parm): Handle
1582 pointers-to-members.
1583 (do_type): Handle template parameters as qualifiers.
1584
252b5132
RH
15851999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1586
1587 * cplus-dem.c: Attempt to handle overflows in counts with some
1588 semblance of grace.
1589 (consume_count): Detect overflows. Return -1 to indicate errors,
1590 instead of zero.
1591 (demangle_template_value_parm, demangle_template): Handle change
1592 to consume_count's return convention.
1593
0c0a36a4
ILT
15941999-04-05 Tom Tromey <tromey@cygnus.com>
1595
1596 * testsuite/regress-demangle: New file.
1597 * testsuite/demangle-expected: New file.
252b5132 1598
0c0a36a4
ILT
1599 * Makefile.in (all, check, installcheck, info, install-info,
1600 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1601 distclean, maintainer-clean, realclean): Depend on corresponding
1602 `-subdir' target.
1603 (all-subdir check-subdir installcheck-subdir info-subdir
1604 install-info-subdir clean-info-subdir dvi-subdir
1605 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1606 distclean-subdir maintainer-clean-subdir): New target.
1607 * testsuite/Makefile.in: New file.
1608 * configure: Rebuilt.
1609 * configure.in: Create testsuite/Makefile.
252b5132
RH
1610
16111999-04-02 Mark Mitchell <mark@codesourcery.com>
1612
1613 * splay-tree.h (splay_tree_compare_pointers): Define.
1614
16151999-03-30 Mark Mitchell <mark@codesourcery.com>
1616
1617 * splay-tree.c (splay_tree_compare_ints): Define.
1618
16191999-03-30 Tom Tromey <tromey@cygnus.com>
1620
1621 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1622 don't advance input pointer.
1623 (demangle_class_name): If consume_count didn't find a count, do
1624 nothing. Don't bother with `strlen' sanity check; consume_count
1625 does it for us.
1626
16271999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1628
1629 From Art Haas <ahaas@neosoft.com>:
1630 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1631 when doing arm or hp style.
1632 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 1633
252b5132
RH
1634Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1635
1636 * pexecute.c (__CYGWIN32__): Rename to
1637 (__CYGWIN__): this.
1638 * xmalloc.c: Likewise.
1639
1640 Changes to support i386-pc-uwin.
1641 * configure.in (*-*-uwin*): Workaround for vfork bug.
1642 * configure: Regenerate.
1643 * pexecute.c (pexecute): Be like standard Unix.
1644 (pwait): Likewise.
1645 * xmalloc.c (first_break): Define.
1646 (xmalloc_set_program_name): Use.
1647 (xmalloc): Use.
1648
1649Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1650
1651 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1652
1653Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1654
1655 * config.table: Check cygwin*, not cygwin32*.
1656
1657Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1658
1659 * Makefile.in: Change mkstemp -> mkstemps.
1660
1661Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1662
1663 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1664 * configure.in (funcs): Check for and conditionally add mkstemps to
1665 the list of functions libiberty will provide.
1666 * configure: Rebuilt.
b4fe2683 1667
252b5132
RH
1668Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1669
b4fe2683 1670 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
1671 platforms that don't have HZ.
1672 * getruntime.c (HZ): Likewise.
1673
1674Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1675
1676 * Makefile.in (xstrdup.o): Depend on config.h.
1677
1678Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1679
1680 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1681 freeing it.
1682
1683Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1684
1685 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1686
1687Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1688
1689 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1690 splay-tree.o.
1691
16921999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1693
1694 * configure.in: Require autoconf 2.12.1 or higher.
1695
16961998-12-30 Michael Meissner <meissner@cygnus.com>
1697
1698 * random.c (NULL): Don't redefine NULL if it is already defined.
1699
1700Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1701
1702 * argv.c (buildargv): Cast the result of alloca in assignment.
1703
1704 * choose-temp.c: Include stdlib.h.
1705
1706 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
1707 (snarf_numeric_literal): Constify first parameter.
1708 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1709 int, not a char.
252b5132
RH
1710 (demangle_qualifier): Likewise.
1711 (demangle_signature): Cast the argument of a ctype function to
1712 unsigned char.
1713 (arm_pt): Add parens around assignment used as truth value.
1714 (demangle_arm_hp_template): Constify variable `args'.
1715 (do_hpacc_template_const_value): Cast the argument of a ctype
1716 function to unsigned char.
1717 (do_hpacc_template_literal): Remove unused variable `i'.
1718 (snarf_numeric_literal): Constify parameter `args'.
1719 Cast the argument of a ctype function to unsigned char.
1720
1721 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 1722 avoid ambiguous `else'.
252b5132
RH
1723
1724 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
1725 `cstart' and `cend' to unsigned char. Cast the argument of macro
1726 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
1727
1728 * objalloc.c (free): Add prototype.
1729
1730Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1731
1732 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1733
1734Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1735
1736 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 1737 doesn't exist.
252b5132 1738 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 1739
252b5132
RH
1740Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1741
1742 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1743 bumping the pointer we read from. Also prepend these codes,
1744 as we do in other places.
1745
17461998-12-18 Nick Clifton <nickc@cygnus.com>
1747
1748 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1749 'const char *' in order to match its usage when calling siblings.
1750 (snarf_numeric_literal): Make first arg 'const char **' in order
1751 to match usage.
1752
1753Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1754
1755 * choose-temp.c: Don't check IN_GCC anymore.
1756
1757 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1758 * memchr.c (memchr): Likewise.
1759 * memcpy.c (memcpy): Likewise.
1760 * memmove.c (memmove): Likewise.
1761
1762 * mkstemp.c: Don't check IN_GCC anymore.
1763 * pexecute.c: Likewise.
1764 * splay-tree.c: Likewise.
1765
1766 * strchr.c (strchr): Use `const', not `CONST'.
1767 * strrchr.c (strrchr): Likewise.
1768 * strtol.c (strtol): Likewise.
1769 * strtoul.c (strtoul): Likewise.
1770
1771Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1772 Elena Zannoni <ezannoni@cygnus.com>
1773 Stan Shebs <shebs@cygnus.com>
1774 Edith Epstein <eepstein@cygnus.com>
1775 Andres MacLeod <amacleod@cygnus.com>
1776 Satish Pai <pai@apollo.hp.com>
1777
1778 * HP aCC demangling support.
1779 * cplus-dem.c
1780 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
1781 demangling correctly when -edg specified; set the demangling style
1782 when user specifies 'edg'. Set strip_underscore to
1783 prepends_underscore, if not HPUXHPPA. Set
1784 current_demangling_style to hp_demangling if HPUXHPPA. Set
1785 current demangling style correctly if the switch is hp. Read
1786 label correctly also in the HP style case.
252b5132 1787 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 1788 function.
252b5132 1789 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 1790 style for this case is the same as ARM.
252b5132
RH
1791 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1792 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
1793 demangle_arm_pt.); check and set value of temp_start field in
1794 multiple places. Also, when ceching for end of template args,
1795 check to see if at end of static member of template class.
252b5132 1796 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 1797 include template args in string defining class.
252b5132
RH
1798 (demangle_class_name): use demangel_arm_hp_template.
1799 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
1800 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1801 Handle EDG_DEMANGLING style. Handle constructor and destructor
1802 ops for HP style.
252b5132 1803 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
1804 styles. global destructor and constructor for HP style are same
1805 as for ARM style. Same for local variables.
252b5132
RH
1806 (demangle_qualified): handle EDG_DEMANGLING style.
1807 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
1808 cases '1' - '9' : initialize the temp_start field to -1 and handle
1809 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1810 and AUTO_DEMANGLING styles. If expecting a function and managed
1811 to demangle the funct args, then handle the LUCID_DEMANGLING,
1812 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1813 class name after "Lnnn_ in HP style case. HP style too needs to
1814 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 1815 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 1816 value param for HP/aCC.
252b5132 1817 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 1818 literal parameter for HP aCC.
252b5132
RH
1819 (recursively_demangle): new function
1820 (snarf_numeric_literal): new function.
1821 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 1822 to message.
252b5132
RH
1823
1824Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1825
1826 * pexecute.c: Remove obsolete ifdefed cygwin code.
1827
1828Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1829
1830 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1831 * cplus-dem.c: Likewise. Conform to libiberty.h.
1832 * pexecute.c: Likewise.
1833 * splay-tree.c: Likewise.
1834
18351998-11-25 Mike Stump <mrs@wrs.com>
1836
1837 * Makefile.in (splay-tree.o): Add config.h dependency.
1838
1839Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1840
1841 * configure.in: Use AC_PREREQ(2.12.1).
1842
18431998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1844
b4fe2683 1845 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
1846
1847Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1848
1849 * mpw.c (mpw_access): Add missing parens.
1850
1851Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1852
1853 * configure.in: Call AC_HEADER_SYS_WAIT.
1854
1855 * pexecute.c: Include sys/wait.h when !IN_GCC.
1856
1857Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1858
1859 * pexecute.c: revert back to checking old Cygwin
1860 preprocessor symbol until some time has passed.
1861
1862Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1863
1864 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1865 since it will now support similar constructs.
1866
1867Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1868
1869 * configure.in: Check for calloc.
1870
1871 * calloc.c: New file.
1872
1873 * xmalloc.c (xcalloc): New function.
1874
1875Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1876
1877 *cplus-dem.c (demangle_prefix): Use the last "__"
1878 in the mangled name when looking for the signature. This allows
1879 template names to begin with "__".
1880
18811998-11-08 Mark Mitchell <mark@markmitchell.com>
1882
1883 * cplus-dem.c (type_kind_t): Add tk_reference.
1884 (demangle_template_value_parm): Handle it.
1885 (do_type): Use it for references, instead of tk_pointer.
1886
1887 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1888 not internal_cplus_demangle.
1889
1890Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1891
1892 * choose-temp.c: Don't include gansidecl.h.
1893 * mkstemp.c: Likewise.
1894 * pexecute.c: Likewise.
1895
1896Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1897
b4fe2683
JM
1898 * configure.in: detect cygwin* instead of cygwin32*
1899 * configure: regenerate
252b5132
RH
1900
1901Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1902
1903 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
1904 whether to include config.h. Possibly include unistd.h in the
1905 !IN_GCC case. Define VFORK_STRING as a printable function call
1906 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1907 defined, include vfork.h. If VMS is defined, define vfork()
1908 appropriately. Remove vfork check on USG, we're using autoconf.
1909 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1910 locally what string to use.
252b5132
RH
1911
19121998-10-26 Mark Mitchell <mark@markmitchell.com>
1913
1914 * splay-tree.c: Tweak include directives to make sure declarations of
1915 xmalloc and free are available.
1916
19171998-10-25 Mark Mitchell <mark@markmitchell.com>
1918
1919 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1920 anonymous namespaces.
1921
19221998-10-23 Mark Mitchell <mark@markmitchell.com>
1923
1924 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1925 with type_quals.
1926 (TYPE_UNQUALIFIED): New macro.
1927 (TYPE_QUAL_CONST): Likewise.
1928 (TYPE_QUAL_VOLATILE): Likewise.
1929 (TYPE_QUAL_RESTRICT): Likewise.
1930 (code_for_qualifier): New function.
1931 (qualifier_string): Likewise.
1932 (demangle_qualifier): Likewise.
1933 (internal_cplus_demangle): Use them.
1934 (demangle_signature): Likewise.
1935 (demangle_template_value_parm): Likewise.
1936 (do_type): Likewise.
1937 (demangle_fund_type)): Likewise.
1938
1939Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1940
1941 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1942 to match prototype.
1943
19441998-10-21 Mark Mitchell <mark@markmitchell.com>
1945
1946 * splay-tree.c: New file.
1947 * Makefile.in (CFILES): Add it.
1948 (REQUIRED_OFILES): Likewise.
1949 (splay-tree.o): Add dependencies.
1950
1951Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1952
1953 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1954 range of 'K' index.
1955
1956Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1957
1958 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1959
1960 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1961 `unsigned char'.
1962 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1963 comparing against one.
1964 (cplus_mangle_opname): Likewise.
1965 (demangle_integral_value): Cast argument of ctype macro to
1966 `unsigned char'.
1967 (demangle_template_value_parm): Likewise.
1968 (demangle_template): Initialize variable `bindex'. Cast the
1969 result of `strlen' to (int) when comparing against one. Remove
1970 unused variable `start_of_value_parm'.
1971 (demangle_class_name): Cast the result of `strlen' to (int) when
1972 comparing against one.
1973 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1974 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1975 when comparing against one.
1976 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1977 (get_count): Likewise.
1978 (do_type): Likewise. Cast the result of `strlen' to (int) when
1979 comparing against one.
1980 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1981 (demangle_function_name): Cast the result of `strlen' to (int)
1982 when comparing against one.
1983
1984 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1985 comparing against one.
1986
1987Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1988
b4fe2683
JM
1989 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1990 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1991 * config.in, configure: Rebuilt.
252b5132
RH
1992
1993 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1994 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1995 * config.in, configure: Rebuilt.
1996
1997Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1998
b4fe2683 1999 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2000
2001Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2002
2003 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2004
2005Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2006
2007 * Merge egcs & devo libiberty.
2008