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