]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
rs6000.c (rs6000_mixed_function_arg): Update magic NULL_RTX comment.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
cf61af07
CD
12006-04-06 Carlos O'Donell <carlos@codesourcery.com>
2
3 * Makefile.in: Add install-html, install-html-am, and
4 install-html-recursive targets. Define mkdir_p and
5 NORMAL_INSTALL.
6 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
7 * configure: Regenerate.
8 * testsuite/Makefile.in: Add install-html and html targets.
9
bd9e7c5c
MM
102006-03-31 Mark Mitchell <mark@codesourcery.com>
11
12 * pex-win32.c (<errno.h>): Include.
13 (fix_argv): Remove.
14 (argv_to_cmdline): New function.
15 (std_suffixes): New variable.
16 (no_suffixes): Likewise.
17 (find_executable): New function.
18 (win32_spawn): Likewise.
19 (spawn_script): Use win32_spawn instead of _spawnv[p].
20 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
21 (pex_win32_wait): Likewise.
22
58df1c41
JB
232006-03-24 Jim Blandy <jimb@codesourcery.com>
24
25 * pex-common.c (pex_run): Simplify output name handling.
26
7d898fa2
JB
272006-03-12 Jim Blandy <jimb@red-bean.com>
28
29 * pex-common.h (struct pex_obj): Doc fixes.
30
ddbbee51
JB
312006-03-11 Jim Blandy <jimb@red-bean.com>
32
33 * functions.texi: Regenerate.
34
f49712d8
BE
352006-02-21 Ben Elliston <bje@au.ibm.com>
36
37 * pexecute.c (pwait): Syntax fix for previous change.
38
8f629dc5
UP
392006-02-17 Uttam Pawar <uttamp@us.ibm.com>
40
41 * pexecute.c (pwait): Free vector pointer.
42 * partition.c (partition_print): Free class_elements pointer.
43
12c61ac3
RS
442006-02-11 Roger Sayle <roger@eyesopen.com>
45 R. Scott Bailey <scott.bailey@eds.com>
46 Bill Northcott <w.northcott@unsw.edu.au>
47
48 PR bootstrap/16787
49 * floatformat.c: Include <float.h> where available.
50 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
51
e8f9ec35
GDR
522006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
53
54 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
55 supported.
56 * configure: Regenerated.
57
974c2c56
CD
582006-01-20 Carlos O'Donell <carlos@codesourcery.com>
59
60 * testsuite/Makefile.in: Add test-expandargv test.
61 * testsuite/test-expandargv.c: New test.
62 * argv.c (expandargv): Check for errors with ferror,
63 rather than just by looking at return value from fread.
64
573b07c7
GDR
652005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
66
67 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
68 to convert from "from".
69 (floatformat_to_double): Likewise.
70 (floatformat_from_double): Use explicit cast to convert from "to".
71
92aed1cb
TL
722005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
73
74 PR java/9861
75 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
76 and include return type when found.
77 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
78 conditional logic to change printing order of return type.when
79 the DMGL_RET_POSTFIX option is present.
80 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
81 call.
82 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
83 * testsuite/demangle-expected: Test cases to verify extended encoding.
84 Updated comment to document --ret-postfix option.
85
73a08f87
RG
862005-11-06 Richard Guenther <rguenther@suse.de>
87
88 * splay-tree.c (rotate_left): New function.
89 (rotate_right): Likewise.
90 (splay_tree_splay_helper): Remove.
91 (splay_tree_splay): Re-implement.
92
0432a5de
MK
932005-10-31 Mark Kettenis <kettenis@gnu.org>
94
95 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
96 New variables.
97
cb120852
MM
982005-10-07 Mark Mitchell <mark@codesourcery.com>
99
100 * at-file.texi: Fix typo.
101
36dd6d31
MM
1022005-10-03 Mark Mitchell <mark@codesourcery.com>
103
104 * at-file.texi: New file.
105
affbb54a
MM
1062005-09-27 Mark Mitchell <mark@codesourcery.com>
107
108 * argv.c (expandargv): Do not use xmalloc_failed.
109
97393d0a
MM
1102005-09-26 Mark Mitchell <mark@codesourcery.com>
111
112 * argv.c (safe-ctype.h): Include it.
113 (ISBLANK): Remove.
114 (stdio.h): Include.
115 (buildargv): Use ISSPACE instead of ISBLANK.
116 (expandargv): New function.
240921b9 117 * Makefile.in: Regenerated.
97393d0a 118
0d676b85
CF
1192005-09-14 Christopher Faylor <cgf@timesys.com>
120
121 * pex-win32.c: Include "windows.h".
122 (backslashify): New function.
123 (fix_argv): Use backslashify to convert path to windows format.
124 Allocate one more place in new argv for potential executable from '#!'
125 parsing.
126 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
127 (openkey): Ditto.
128 (mingw_rootify): Ditto.
129 (msys_rootify): Ditto.
130 (spawn_script): New function.
131 (pex_win32_exec_child): Save translated argv in newargv. Pass to
132 spawn_script if spawnv* fails.
133 (main): New function. Conditional on MAIN. Useful for testing.
134
e89b6c1c
MK
1352005-08-17 Mark Kettenis <kettenis@gnu.org>
136
137 * floatformat.c (floatformat_always_valid): Change type of last
138 argument to `void *'.
139 (floatformat_i387_ext_is_valid): Likewise.
140 (floatformat_to_double): Change type of second argument to `const
141 void *'.
142 (floatformat_from_double): Change type of last argument to `void
143 *'.
144 (floatformat_is_valid): Change type of last argument to `const
145 void *'.
146 (ieee_test): Remove redundant casts.
147
0cbe2a68
KC
1482005-08-17 Kelley Cook <kcook@gcc.gnu.org>
149
150 * strverscmp.c: Update FSF address.
151 * testsuite/Makefile.in: Likewise.
152 * testsuite/test-demangle.c: Likewise.
153 * testsuite/test-pexecute.c: Likewise.
154
ca1cc111
KG
1552005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
156
157 * getopt.c: Include ansidecl.h before system headers.
158
f4f94d6b
BE
1592005-07-22 Ben Elliston <bje@gnu.org>
160
161 * getopt.c: Include "ansidecl.h".
162 (_getopt_initialize): Mark argc and argv parameters as unused.
163
8cfb7ab7
BE
1642005-07-22 Ben Elliston <bje@gnu.org>
165
166 * regex.c (regcomp): Change type of `i' from unsigned to int.
167
b4db223f
BE
1682005-07-22 Ben Elliston <bje@gnu.org>
169
170 Recover patch lost in the sourceware repository:
171 2005-07-09 Ben Elliston <bje@au.ibm.com>
172 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
173 * memmove.c: Likewise.
174 * objalloc.c: Likewise.
175
8b82b724
BE
1762005-07-22 Ben Elliston <bje@gnu.org>
177
178 * configure.ac: Check for a getopt(3) declaration.
179 * configure, config.in: Regenerate.
180
7c22afcb
BE
1812005-07-15 Ben Elliston <bje@au.ibm.com>
182
183 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
184
72f93778
BE
1852005-07-12 Ben Elliston <bje@au.ibm.com>
186
187 * floatformat.c (floatformat_to_double): Add a comment about a
188 potential source of warnings when compiling this file.
189
6c5844d2
BE
1902005-07-12 Ben Elliston <bje@au.ibm.com>
191
192 * pexecute.c (pexecute): Cast string litrals to char *.
193 * regex.c (re_comp): Cast a call to gettext() to char *.
194
769b009e
KC
1952005-07-07 Kelley Cook <kcook@gcc.gnu.org>
196
197 * config.table: Delete file. Move former contents into ...
198 * configure.ac: ... here and escape any brackets for m4.
199 * Makefile.in (config.status): Remove dependency on config.table.
200 * configure: Regenerate.
201
f379ddd1
KC
2022005-07-07 Kelley Cook <kcook@gcc.gnu.org>
203
204 * config.in: Regenerate for 6/20 change.
205
6cbfa10e
SE
2062005-07-03 Steve Ellcey <sje@cup.hp.com>
207
208 PR other/13906
209 * md5.c (md5_process_bytes): Check alignment.
210
8c7262af
ILT
2112005-07-01 Ian Lance Taylor <ian@airs.com>
212
213 PR other/22268
214 * cp-demangle.c (d_expr_primary): Don't run off the end of the
215 string while looking for the end of a literal value.
216 * testsuite/demangle-expected: Add test case.
217
a3648cfc
DB
2182005-06-30 Daniel Berlin <dberlin@dberlin.org>
219
220 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
221 (DELETED_ENTRY): Ditto.
222
83fbfe42
GK
2232005-06-20 Geoffrey Keating <geoffk@apple.com>
224
225 * strverscmp.c: New.
226 * Makefile.in (CFILES): Add strverscmp.c.
227 (CONFIGURED_OFILES): Add strverscmp.o.
228 (strverscmp.o): New rule.
229 (stamp-functions): Add $(srcdir) to files in source directory.
230 * configure.ac (funcs): Add strverscmp.
231 (AC_CHECK_FUNCS): Add strverscmp.
232 * configure: Regenerate.
233 * functions.texi: Regenerate.
234
ddcf783b
EZ
2352005-05-28 Eli Zaretskii <eliz@gnu.org>
236
237 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
238 * config.in, configure: Regenerate.
239
15da2806
RH
2402005-05-25 Richard Henderson <rth@redhat.com>
241
242 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
243 (d_make_comp, d_print_comp): Likewise.
244 (d_special_name): Generate one.
245 * testsuite/demangle-expected: Add a hidden alias test.
246
d7cf8390
GDR
2472005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
248
249 * configure.ac: Check declarations for calloc(), getenv(),
ddcf783b 250 malloc(), realloc() and sbrk().
d7cf8390
GDR
251 * config.in: Regenerate.
252 * configure: Likewise.
253
254 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
255 instead of xmalloc.
256 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
257 * concat.c (liiberty_concat_ptr): Surround definition with an
258 extern "C" block, if __cplusplus.
259 (concat): Use XNEWVEC instead of xmalloc.
260 (reconcat): Likewise.
261 * cp-demangle.c (struct d_print_template): Rename member
ddcf783b 262 "template" to "template_decl". Adjust use throughout the file.
d7cf8390
GDR
263 (d_print_resize): Properly cast return value of realloc().
264 (cplus_demangle_print): Same for malloc().
265 (d_demangle): Likewise.
266 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
267 "typename" to "type_name".
268 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
269 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
270 (demangle_template_value_parm): Likewise.
271 (demangle_template): Likewise.
272 (recursively_demangle): Likewise.
273 (do_hpacc_template_literal): Likewise.
274 (do_arg): Likewise.
275 (remember_type): Likewise.
276 (remember_Ktype): Likewise.
277 (register_Btype): Likewise.
278 (string_need): Use XRESIZEVEC instead of xrealloc().
279 * dyn-string.c (dyn_string_init): Use XNEWVEC.
280 (dyn_string_new): Use XNEW.
281 (dyn_string_resize): Use XRESIZEVEC.
282 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
283 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
284 Otherwise include <stdlib.h>.
285 (exchange): Cast return value of malloc().
286 * hashtab.c (htab_size): Define as both macro and non-inline
287 function.
288 (htab_elements): Likewise.
289 * getpwd.c (getpwd): Use XNEWVEC.
290 (htab_create_alloc_ex): Use C90 prototype-style.
291 * lrealpath.c (lrealpath): Appropriately cast return value of
ddcf783b 292 malloc().
d7cf8390
GDR
293 * make-relative-prefix.c (save_string): Likewise.
294 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
295 the file.
296 (choose_tmpdir): Use XNEWVEC.
297 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
298 * pex-common.c (pex_init_common): Use XNEW.
299 (pex_add_remove): Use XRESIZEVEC.
300 (pex_run): Likewise.
301 (pex_get_status_and_time): Likewise.
302 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
303 * pex-msdos.c (pex_init): Use XNEW.
304 (pex_msdos_exec_child): Likewise.
305 (pex_msdos_exec_child): Use XRESIZEVEC.
306 * pex-unix.c (pex_wait): Use XNEW.
307 * pex-win32.c (fix_argv): Use XNEWVEC.
308 * pexecute.c (pwait): Likewise.
309 * setenv.c (setenv): Properly cast return value of malloc().
310 * sigsetmask.c (sigsetmask): Rename local variables "old" and
311 "new" to "old_sig" and "new_sig".
312 * sort.c (main): Use XNEWVEC.
313 * spaces.c (spaces): Cast return value of malloc().
314 * strndup.c (strndup): Likewise.
315 * ternary.c (ternary_insert): Use XNEW.
316 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
317 with an extern "C" block if __cplusplus.
318 * xstrdup.c (xstrdup): Cast return value of memcpy().
319 * xstrerror.c (strerror): Enclose declaration in an extern "C"
320 block if __cplusplus.
321 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
322
99e4078f
AJ
3232005-05-16 Andreas Jaeger <aj@suse.de>
324
325 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
326 that it's only declared if needed.
327
328 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
329 defined.
330
766643be
AJ
3312005-05-15 Andreas Jaeger <aj@suse.de>
332
333 * functions.texi: Regenerated.
334
2b836651
EZ
3352005-05-15 Eli Zaretskii <eliz@gnu.org>
336
337 * pexecute.txh: Enclose multi-word data types in @deftypefn in
338 braces. Minor wording fixes. Use --- for em-dash. Use
339 @enumerate in enumerated lists.
340
d842a495
AJ
341 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
342 braces.
343
5db1c531
EZ
3442005-05-11 Eli Zaretskii <eliz@gnu.org>
345
346 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
347 sys/stat.h.
348 (pex_init): Fix last argument to pex_init_common.
349 (pex_djgpp_exec_child): Remove leading underscore from _open,
350 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
351 which is undeclared, with `executable', which was unused. Remove
352 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
353 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
354
bd7d50f8
PB
3552005-05-11 Paul Brook <paul@codesourcery.com>
356
357 * Makefile.in: Regenerate dependencies.
358
ee58dffd
NC
3592005-05-10 Nick Clifton <nickc@redhat.com>
360
361 * Update the address and phone number of the FSF organization in
362 the GPL notices in the following files:
363 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
364 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
365 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
366 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
367 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
368 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
369 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
370 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
371 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
372 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
373 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
374 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
375 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
376
c1300f45
KC
3772005-05-06 Kelley Cook <kcook@gcc.gnu.org>
378
379 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
380 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
381 * configure: Regenerate.
382
fbc1bc09
KC
3832005-05-06 Kelley Cook <kcook@gcc.gnu.org>
384
385 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
386 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
387 * aclocal.m4: Don't include accross.m4.
388 * configure, config.in: Regenerate.
389
32e82bd8
KG
3902005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
391
392 * fopen_unlocked.c (unlock_std_streams): New.
2b836651 393
32e82bd8
KG
394 * functions.texi: Regenerate.
395
6feaa084
KG
3962005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
397
398 * fopen_unlocked.c (unlock_stream): New.
399 Consolidate unlocking code into a helper function.
400
401 * functions.texi: Regenerate.
402
3c60ae5a
GDR
4032005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
404
405 * asprintf.c: Include config.h.
406 * basename.c: Likewise.
407 * fdmatch.c: Likewise.
408 * hex.c: Likewise.
409 * lbasename.c: Likewise.
410 * spaces.c: Likewise.
411 * xatexit.c:Likewise.
2b836651 412 * configure.ac: Do check declarations for basename, ffs, asprintf
3c60ae5a
GDR
413 and vasprintf for real.
414 * configure: Regenerate.
415
0e0af50b
GDR
4162005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
417
2b836651 418 * argv.c (dupargv): Allocate space of argv[argc], not
fec02a2d 419 sizeof(char *) of that amount. Cast result to char *.
0e0af50b 420
4cf88ac3
GDR
4212005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
422
423 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
2b836651 424 Replace not with negate.
4cf88ac3 425
1ff7682c
GDR
4262005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
427
428 * configure.ac: Check declarations for basename, ffs, asprintf,
429 vasprintf.
430 * configure: Regenerate.
431 * config.in: Likewise.
432
78a7dc90
KG
4332005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
434
435 * Makefile.in (CFILES): Add fopen_unlocked.c.
436 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
437 Regenerate dependencies.
438
439 * configure.ac: Check for stdio_ext.h and __fsetlocking.
440
441 * fopen_unlocked.c: New file.
442
443 * functions.texi, configure, config.in: Regenerate.
444
2f84c996
ILT
4452005-04-04 Ian Lance Taylor <ian@airs.com>
446
447 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
448 declaration before statement.
449
f9a9ac80
KG
4502005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
451
29138797
KG
452 * bcmp.c: Fix warnings and implement using memcmp.
453 * bcopy.c: Fix warnings.
454 * bzero.c: Fix warnings and implement using memset.
455
f9a9ac80
KG
456 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
457 -Wstrict-prototypes.
458 * configure, config.in: Regenerate.
459
460 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
461 warnings and reconcile interfaces with relevant standards.
462
23ea4f4a
ILT
4632005-04-02 Ian Lance Taylor <ian@airs.com>
464
465 * cp-demangle.c: Update copyright.
466
1e3a2100
JM
4672005-03-31 Joseph S. Myers <joseph@codesourcery.com>
468
469 * gettimeofday.c: Add "Supplemental" to @deftypefn.
470 * functions.texi: Regenerate.
471
a584cf65
ILT
4722005-03-28 Ian Lance Taylor <ian@airs.com>
473
474 * pex-common.c: New file.
475 * pex-one.c: New file.
476 * pexecute.c: New file.
477 * pex-common.h: Include <stdio.h>.
478 (struct pex_obj): Define.
479 (struct pex_funcs): Define.
480 (pex_init_common): Declare.
481 * pex-unix.c: Rewrite.
482 * pex-win32.c: Rewrite.
483 * pex-djgpp.c: Rewrite.
484 * pex-msdos.c: Rewrite.
485 * testsuite/text-pexecute.c: New file.
486 * pexecute.txh: Rewrite.
487 * configure.ac: Check for wait3 and wait4. Set CHECK to
488 really-check rather than check-cplus-dem.
489 * functions.texi: Rebuild.
490 * Makefile.in: Rebuild dependencies.
491 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
492 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
493 * testsuite/Makefile.in (really-check): New target.
494 (check-pexecute, test-pexecute): New targets.
495 * configure: Rebuild.
496
93764b5b 4972005-03-28 Mark Kettenis <kettenis@gnu.org>
2b836651 498
93764b5b
MK
499 * unlink-if-ordinary.c: Include <sys/types.h>.
500
93079c81
GDR
5012005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
502
503 Convert libiberty to use ISO C prototype style 7/n.
504 * regex.c (PARAMS): Remove definition.
505 (PREFIX): Unconditionaly define using ISO C ## operator.
2b836651 506 (init_syntax_once, extract_number, extract_number_and_incr,
93079c81 507 print_fastmap, print_partial_compiled_pattern,
2b836651 508 print_compiled_pattern, print_double_string, printchar,
93079c81
GDR
509 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
510 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
2b836651
EZ
511 at_begline_loc_p, at_endline_p, group_in_compile_stack,
512 insert_space, wcs_compile_range, byte_compile_range,
513 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
514 re_set_registers, re_search, re_search_2, re_search_3, re_match,
93079c81
GDR
515 re_match_2, count_mbs_length, wcs_re_match_2_internal,
516 byte_re_match_2_internal, group_match_null_string_p,
517 alt_match_null_string_p, common_op_match_null_string_p,
2b836651 518 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
93079c81
GDR
519 regexec, regerror, regfree): Use ISO C prototype style.
520 * partition.c: (elem_compare): Likewise.
521 * cp-demangle.c (print_usage): Likewise.
522
885f2199
GDR
5232005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
524
525 Convert libiberty to use ISO C prototype style 5/n.
526 * random.c (srandom, initstate, setstate, random): Use ISO C
2b836651 527 prototypes.
885f2199
GDR
528 * putenv.c (putenv): Likewise.
529 * physmem.c (physmem_available, physmem_total, main): Likewise.
530 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
531 * pex-unix.c (pexecute, pwait): Likewise.
532 * pex-msdos.c (pexecute, pwait): Likewise.
533 * pex-djgpp.c (pexecute, pwait): Likewise.
2b836651 534 * partition.c (partition_new, partition_delete, partition_union)
885f2199 535 (elem_compare, partition_print): Likewise.
2b836651
EZ
536 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
537 _obstack_allocated_p, _obstack_free, obstack_free,
885f2199
GDR
538 _obstack_memory_used, print_and_abort, obstack_next_free,
539 obstack_object_size, obstack_base): Likewise. Remove codes
540 predicated on !defined(__STDC__).
2b836651 541 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
885f2199
GDR
542 objalloc_free_block): Use ISO C prototypes.
543 * mkstemps.c (mkstemps): Likewise.
544 * memset.c (memset): Likewise.
545 * mempcpy.c (mempcpy): Likewise.
546 * rename.c (rename): Likewise.
547 * rindex.c (rindex): Likewise.
548 * setenv.c (setenv, unsetenv): Likewise.
549 * sigsetmask.c (sigsetmask): Likewise.
550 * snprintf.c (snprintf): Likewise.
2b836651 551 * sort.c (sort_pointers, xmalloc): Likewise.
885f2199 552 * spaces.c (spaces): Likewise.
2b836651
EZ
553 * splay-tree.c (splay_tree_delete_helper,
554 splay_tree_splay_helper, splay_tree_splay,
885f2199 555 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
2b836651 556 splay_tree_new, splay_tree_xmalloc_allocate,
885f2199 557 splay_tree_new_with_allocator, splay_tree_delete,
2b836651
EZ
558 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
559 splay_tree_max, splay_tree_min, splay_tree_predecessor,
560 splay_tree_successor, splay_tree_foreach,
885f2199
GDR
561 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
562 * stpcpy.c (stpcpy): Likewise.
563 * stpncpy.c (stpncpy): Likewise.
564 * strcasecmp.c (strcasecmp): Likewise.
565 * strchr.c (strchr): Likewise.
566 * strdup.c (strdup): Likewise.
567
7a17ef5e
GDR
5682005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
569
570 Convert libiberty to use ISO C prototype style 6/n.
2b836651 571 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
7a17ef5e
GDR
572 strtoerrno, main): Use ISO C prototype style.
573 * strncasecmp.c (strncasecmp): Likewise.
574 * strncmp.c (strncmp): Likewise.
575 * strndup.c (strndup): Likewise.
576 * strrchr.c (strrchr): Likewise.
2b836651 577 * strsignal.c (init_signal_tables, signo_max, strsignal,
7a17ef5e
GDR
578 strsigno, strtosigno, psignal, main): Likewise.
579 * strstr.c (strstr): Likewise.
580 * strtod.c (strtod, atof): Likewise.
581 * strtol.c (strtol): Likewise.
582 * strtoul.c (strtoul): Likewise.
2b836651 583 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
7a17ef5e
GDR
584 ternary_recursivesearch): Likewise.
585 * tmpnam.c (tmpnam): Likewise.
586 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
587 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
588 * vfork.c (vfork): Likewise.
589 * vfprintf.c (vfprintf): Likewise.
590 * vprintf.c (vprintf): Likewise.
591 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
592 * vsprintf.c (vsprintf): Likewise.
593 * waitpid.c (waitpid): Likewise.
594 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
595 * xexit.c (xexit): Likewise.
2b836651 596 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
7a17ef5e
GDR
597 xcalloc, xrealloc): Likewise.
598 * xmemdup.c (xmemdup): Likewise.
599 * xstrdup.c (xstrdup): Likewise.
600 * xstrerror.c (xstrerror): Likewise.
601 * xstrndup.c (xstrndup): Likewise.
602
1134b11d
AJ
6032005-03-27 Andreas Jaeger <aj@suse.de>
604
605 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
606 flags.
607 * configure: Regenerated.
608
e78410c1
GDR
6092005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
610
611 * getopt1.c (getopt_long_only): Fix thinko.
612
6da879de
GDR
6132005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
614
615 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
616 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
617 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
618 htab_create_alloc, htab_set_functions_ex, htab_create,
619 htab_try_create, htab_delete, htab_empty,
620 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
621 htab_find, htab_find_slot_with_hash, htab_find_slot,
622 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
623 htab_traverse_noresize, htab_traverse, htab_collisions,
6da879de
GDR
624 htab_hash_string, iterative_hash): Use ISO C prototype.
625 * hex.c (hex_init): Likewise.
626 * index.c (index): Likewise.
1134b11d 627 * insque.c (insque, remque): Likewise.
6da879de
GDR
628 * lbasename.c (lbasename): Likewise.
629 * lrealpath.c (lrealpath): Likewise.
1134b11d 630 * make-relative-prefix.c (save_string, split_directories,
6da879de 631 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
632 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
633 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
6da879de
GDR
634 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
635 * memchr.c (memchr): Likewise.
636 * memcpy.c (memcpy): Likewise.
637 * memmove.c (memmove): Likewise.
638 * gettimeofday.c (gettimeofday): Likewise.
639 * getruntime.c (get_run_time): Likewise.
640 * getpwd.c (getpwd, getpwd): Likewise.
641 * getpagesize.c (getpagesize): Likewise.
642 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1134b11d 643 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
644 _getopt_internal, getopt, main): Likewise.
645 * getcwd.c (getcwd): Likewise.
646 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
647 * floatformat.c (floatformat_always_valid,
648 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
649 put_field, floatformat_from_double, floatformat_is_valid,
6da879de 650 ieee_test, main): Likewise.
1134b11d
AJ
651 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
652 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
653 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
654 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
655 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
656 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
657 fibheap_link, fibheap_cut, fibheap_cascading_cut,
6da879de
GDR
658 fibnode_insert_after, fibnode_remove): Likewise.
659 * ffs.c (ffs): Likewise.
660 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
661 * dyn-string.c (dyn_string_init, dyn_string_new,
662 dyn_string_delete, dyn_string_release, dyn_string_resize,
663 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
664 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
665 dyn_string_insert_cstr, dyn_string_insert_char,
666 dyn_string_append, dyn_string_append_cstr,
6da879de 667 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 668 Likewise.
6da879de 669
500d7701
GDR
6702005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
671
672 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
673 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
674 consume_count_with_underscores, code_for_qualifier,
675 qualifier_string, demangle_qualifier, cplus_demangle_opname,
676 cplus_mangle_opname, cplus_demangle_set_style,
677 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
500d7701 678 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
679 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
680 delete_work_stuff, mop_up, demangle_signature,
681 demangle_method_args, demangle_template_template_parm,
682 demangle_expression, demangle_integral_value,
683 demangle_real_value, demangle_template_value_parm,
684 demangle_template, arm_pt, demangle_arm_hp_template,
685 demangle_class_name, demangle_class, iterate_demangle_function,
686 demangle_prefix, gnu_special, recursively_demangle, arm_special,
687 demangle_qualified, get_count, do_type, demangle_fund_type,
688 do_hpacc_template_const_value, do_hpacc_template_literal,
689 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
690 register_Btype, remember_Btype, forget_B_and_K_types,
691 forget_types, demangle_args, demangle_nested_args,
692 demangle_function_name, string_need, string_delete, string_init,
693 string_clear, string_empty, string_append, string_appends,
500d7701
GDR
694 string_appendn, string_prepend, string_prepends, string_prependn,
695 string_append_template_idx): Use ISO C prootype style.
696 * cp-demint.c (cplus_demangle_fill_component,
1134b11d 697 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
698 cplus_demangle_v3_components): Likewise.
699
9486db4f
GDR
7002005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
701
702 Convert libiberty to use ISO C prototype style 2/n.
703 * cp-demangle.h: Remove uses of PARAMS.
704 * cp-demangle.c: Likewise.
1134b11d
AJ
705 (d_dump, cplus_demangle_fill_name,
706 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
707 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
708 d_make_builtin_type, d_make_operator, d_make_extended_operator,
709 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
710 cplus_demangle_mangled_name, has_return_type,
711 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
712 d_prefix, d_unqualified_name, d_source_name, d_number,
713 d_identifier, d_operator_name, d_special_name, d_call_offset,
714 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
715 d_function_type, d_bare_function_type, d_class_enum_type,
716 d_array_type, d_pointer_to_member_type, d_template_param,
717 d_template_args, d_template_arg, d_expression, d_expr_primary,
718 d_local_name, d_discriminator, d_add_substitution,
719 d_substitution, d_print_resize, d_print_append_char,
720 d_print_append_buffer, d_print_error, cplus_demangle_print,
721 d_print_comp, d_print_java_identifier, d_print_mod_list,
722 d_print_mod, d_print_function_type, d_print_array_type,
723 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
724 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9486db4f 725 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 726 print_usage, main):
9486db4f
GDR
727
7282005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
729
730 Convert libiberty to ISO C prototype style 1/n.
731 * _doprnt.c: Remove conditional #include <varargs.h> on
732 ANSI_PROTOTYPES as the latter is always assumed.
733 (_doprnt, checkit, main): Use ISO C prototype.
734 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
735 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1134b11d 736 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
737 * atexit.c (atexit): Likewise
738 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 739 (asprintf): Use ISO C prototype.
9486db4f
GDR
740 * basename.c (basename): Likewise
741 * bcmp.c (bcmp): Likewise.
742 * bcopy.c (bcopy): Likewise.
743 * bzero.c (bzero): Likewise.
744 * bsearch.c (bsearch): Likewise. Improve const-correctness.
745 * choose-temp.c (choose_temp_base): Likewise.
746 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
747 (calloc): Use ISO C prototype.
748 * clock.c (clock): Likewise.
749 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1134b11d 750 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
751 concat_copy2, concat, reconcat, main): Use ISO C prototype.
752 * copysign.c (copysign): Likewise.
753
17998b22
KG
7542005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
755
756 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
757 (REQUIRED_OFILES): Add xstrndup.o.
758 (CONFIGURED_OFILES): Add strndup.o.
759 Regenerate dependencies.
760
761 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
762
763 * strndup.c, xstrndup.c: New.
764
765 * config.in, configure, functions.texi: Regenerate.
766
bb99744f
KG
7672005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
768
769 * xmemdup.c, xstrdup.c: Expose the tail call.
770
17049f0b
MM
7712005-03-09 Mark Mitchell <mark@codesourcery.com>
772
773 * configure.ac (funcs): Add gettimeofday.
774 * configure: Regenerated.
775 * gettimeofday.c: New file.
776 * Makefile.in (CFILES): Add gettimeofday.
777 (CONFIGURED_OFILES): Add gettimeofday.o.
778 (./gettimeofday.o): New rule.
779
6af8bd50
ILT
7802005-03-09 Ian Lance Taylor <ian@airs.com>
781
782 * pex-os2.c: Remove.
783 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
784 * Makefile.in (CFILES): Remove pex-os2.c.
785 (CONFIGURED_OFILES): Remove pex-os2.o.
786 (pex-os2.o): Remove target.
787 * configure: Rebuild.
788
c80d391c
ILT
7892005-03-07 Ian Lance Taylor <ian@airs.com>
790
791 * mpw-config.in: Remove.
792 * mpw-make.sed: Remove.
793 * mpw.c: Remove.
794 * Makefile.in (CFILES): Remove pex-mpw.c.
795 (CONFIGURED_OFILES): Remove pex-mpw.o.
796 (mpw.o, pex-mpw.o): Remove targets.
797 * maint-tool (undoc): Remove reference to mpw.c.
798
fe8ee922
DD
7992005-03-06 DJ Delorie <dj@redhat.com>
800
801 * configure.ac (target_header_dir): vfork is a stub under djgpp.
802 * configure: Regenerated.
803
c363985d
JB
8042005-03-01 Jan Beulich <jbeulich@novell.com>
805
806 * Makefile.in (CFILES): Add unlink-if-ordinary.c
807 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
808 Add dependencies and rule for unlink-if-ordinary.o.
809 * unlink-if-ordinary.c: New.
810
6a88516c
BE
8112005-03-01 Ben Elliston <bje@au.ibm.com>
812
813 * hashtab.c (htab_find_slot_with_hash): Make function
814 documentation clearer.
815
b8b3c655
JM
8162005-02-13 Jason Merrill <jason@redhat.com>
817
818 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
819 arguments.
820
e8805990
TS
8212005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
822
823 * hex.c (hex_value): Group 'unsigned int' together to get correct
824 markup.
825 * functions.texi: Regenerated.
1134b11d 826
24f2cabb
L
8272004-12-27 H.J. Lu <hongjiu.lu@intel.com>
828
829 * Makefile.in: Undo to 2004-12-17.
830 * aclocal.m4: Likewise.
831 * config.table: Likewise.
832 * configure.ac: Likewise.
833 * maint-tool: Likewise.
834 * configure: Likewise.
835
3d815594
L
8362004-12-19 H.J. Lu <hongjiu.lu@intel.com>
837
838 PR bootstrap/19072
839 * Makefile.in (enable_shared): New substitute.
840 (LTTARGETLIB): New.
841 (PREFIXTARGETLIB): New.
842 (LTTESTLIB): New.
843 (PREFIXTESTLIB): New.
844 (CCLD): New.
845 (LINK): New.
846 ($(TARGETLIB)): Use $(LINK) to create libraries and create
847 targets by hand.
848 ($(TESTLIB)): Likewise.
849 (mostlyclean): Don't remove .libs. Remove the libtool object
850 directory.
851
852 * config.table (enable_shared): Removed.
853
854 * configure.ac (enable_static): Set to yes.
855 (AC_PROG_LIBTOOL): Removed.
856 (AM_DISABLE_SHARED): Uncommented.
857 (AM_PROG_LIBTOOL): Likewise.
858 (LIBOBJS): Add `./' to avoid VPATH.
859 (LTLIBOBJS): Likewise.
860 (enable_shared): Substitute.
861 * configure: Regenerated.
862
207db768
L
8632004-12-18 H.J. Lu <hongjiu.lu@intel.com>
864
865 * Makefile.in (top_builddir): Set to `.'.
866 (OUTPUT_OPTION): Removed.
867 (LIBTOOL): New.
868 (LTLIBOBJS): New.
869 (EXTRA_LTOFILES): New.
870 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
871 (all): Remove stamp-picdir.
872 (LTCOMPILE): New.
873 (.c.lo): New rule.
874 (REQUIRED_LTOFILES): New.
875 (CONFIGURED_LTOFILES): New.
876 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
877 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
878 (stamp-picdir): Completely removed.
879 (maint-missing): Pass $(REQUIRED_LTOFILES)
880 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
881 $(CONFIGURED_OFILES)
882 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
883 $(CONFIGURED_LTOFILES).
884 (mostlyclean): Also remove *.lo .libs.
885 Run "make maint-deps".
886
887 * aclocal.m4: Include ../libtool.m4.
888
889 * config.table: Don't check --enable-shared.
890
891 * configure.ac (AC_PROG_LIBTOOL): Add.
892 (AC_PROG_CC_C_O): Removed.
893 (OUTPUT_OPTION): Removed.
894 (NO_MINUS_C_MINUS_O): Removed.
895 (ltpexecute): New substitute.
896 (LIBOBJS): Cleanup.
897 * configure: Regenerated.
898
899 * maint-tool: Updated for .lo/libtool.
900
d49d0907
BE
9012004-12-11 Ben Elliston <bje@au.ibm.com>
902
903 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
904 * configure: Regenerate.
905 * config.in: Likewise.
906
b180d5fb
DD
9072004-12-07 DJ Delorie <dj@redhat.com>
908
909 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
910 that recursion (and thus large stack space) is not needed.
911
ecc30353
MK
9122004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
913
914 * pex-unix.c: Fix the spelling of longjmp.
915
0b167d51
ILT
9162004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
917
918 PR other/18623
919 * cp-demangle.c (d_call_offset): Remove useless local variables
920 offset and virtual_offset.
921 * cplus-dem.c (ada_demangle): Remove useless local variable
922 at_start_name.
923 (demangle_template): Remove useless local variable start.
924
2d59754f
RS
9252004-11-19 Roger Sayle <roger@eyesopen.com>
926
927 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
928 "ansidecl.h" to avoid redeclaration errors with native compilers.
929 * regex.c: Protect config.h from multiple inclusion.
930
ea27a394
MS
9312004-11-12 Mike Stump <mrs@apple.com>
932
610784f0
MS
933 * Makefile.in (libiberty.html): Fix html generation.
934
626ff3de
AN
9352004-09-08 Adam Nemet <anemet@lnxw.com>
936
937 * vasprintf.c: Accept __va_copy in addition to va_copy.
938
1134b11d 9392004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
940
941 * configure: Regenerate.
942
1134b11d 9432004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
944
945 * configure.ac: Do not enable multilibs for build-side libiberty.
946
1134b11d 9472004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
948
949 * lrealpath.c (lrealpath): Add _WIN32 support.
950
0cf61401
ZW
9512004-06-28 Zack Weinberg <zack@codesourcery.com>
952
953 * cp-demangle.h: Declare cplus_demangle_operators,
954 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
955 cplus_demangle_type as static if IN_GLIBCPP_V3.
956
00a5aa9c
ILT
9572004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
958
959 PR other/16240
960 * cp-demangle.c (d_expr_primary): Check for a failure return from
961 cplus_demangle_type.
5cd29062 962 * testsuite/demangle-expected: Add test case.
00a5aa9c 963
b47785f4
DS
9642004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
965
966 * pex-win32.c (fix_argv): Expand comment.
967
54b2f310
DJ
9682004-05-25 Daniel Jacobowitz <drow@false.org>
969
970 * Makefile.in: Add .NOEXPORT.
971
8fd58397
DR
9722004-04-29 Douglas B Rupp <rupp@gnat.com>
973
974 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
975 copyright.
976
6489430a
MR
9772004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
978
979 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
980 * configure: Regenerate.
981
9bf3c9cc
RH
9822004-04-22 Richard Henderson <rth@redhat.com>
983
984 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
985 (CHAR_BIT): Provide default.
986 (struct prime_ent, prime_tab): New.
987 (higher_prime_index): Rename from higher_prime_number, return index.
988 (htab_mod_1): New.
989 (htab_mod, htab_mod_m2): Use it.
990 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
991 (htab_expand): Likewise.
992 * configure.ac: Check for stdint.h.
993 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
994 * config.in, configure: Rebuild.
995
80790b05
ILT
9962004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
997
998 * strerror.c: Include config.h, and redefine sys_nerr and
999 sys_errlist, before including ansidecl.h and libiberty.h.
1000
7f96816a
JL
10012004-04-13 Jeff Law <law@redhat.com>
1002
1003 * hashtab.c (htab_remove_elt_with_hash): New function.
1004 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
1005
d9175b87
RH
10062004-03-31 Richard Henderson <rth@redhat.com>
1007
1008 * hashtab.c (htab_size): Move to top of file; mark inline.
1009 (htab_elements): Likewise.
1010 (htab_mod, htab_mod_m2): New.
1011 (htab_delete): Refactor htab->size and htab->entries.
1012 (htab_empty): Likewise.
1013 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
1014 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
1015 (htab_clear_slot): Use htab_size, htab_elements.
1016 (htab_traverse_noresize, htab_traverse): Likewise.
1017
e8190aa2
ILT
10182004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
1019
fed8129b
ILT
1020 * pex-unix.c (pexecute): Use vfork instead of fork, with
1021 appropriate changes to make this safe.
1022 * pex-common.h (STDERR_FILE_NO): Define.
1023
e8190aa2
ILT
1024 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
1025 an 80 column screen. Run maint-deps.
1026
a4f74b58
KC
10272004-03-09 Kelley Cook <kcook@gcc.gnu.org>
1028
1029 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
1030 * acconfig.h: Delete redundant file.
1031 * config.in: Regenerate.
1032 * configure: Regenerate.
1033
3beb1315
HPN
10342004-03-09 Hans-Peter Nilsson <hp@axis.com>
1035
1036 * configure: Regenerate for config/accross.m4 correction.
1037
688556b9
AJ
10382004-03-07 Andreas Jaeger <aj@suse.de>
1039
1040 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
1041 prototypes.
1042 (main): Initialize style.
1043
80a19ac8
ILT
10442004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
1045
31058ee3
ILT
1046 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
1047 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
1048 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
1049 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
1050 short types to D_PRINT_DEFAULT. Change other integer types to use
1051 new D_PRINT_* values where appropriate. Change float types to
1052 D_PRINT_FLOAT.
1053 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
1054 values.
1055 * testsuite/demangle-expected: Adjust two test cases.
1056
1057 * cp-demangle.c (d_print_function_type): Print a space before the
1058 parenthesis around the function type in more cases.
1059 * testsuite/demangle-expected: Adjust one test case.
1060
93f20626
ILT
1061 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
1062 parentheses around a cast.
1063 * testsuite/demangle-expected: Adjust two test cases to match new
1064 output.
1065
dbd6ec2b
ILT
1066 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
1067
80a19ac8
ILT
1068 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
1069 push more than one of the same CV-qualifier on the top of the
1070 stack.
1071 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
1072 move the CV-qualifiers to apply to the element type instead.
1073 (d_print_array_type): When checking the modifiers, keep looking
1074 past ones which have been printed already.
1075 * testsuite/demangle-expected: Add three test cases.
1076
8ad1c80e
ILT
10772004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1078
e8ed4ac2
ILT
1079 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
1080 empty string correctly.
1081
4a368ffd
ILT
1082 * cp-demangle.c (__cxa_demangle): It is not an error if status is
1083 not NULL. It is an error if the mangled name is the same as a
1084 built-in type name.
1085 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
1086 than cplus_demangle_v3.
1087
8ad1c80e
ILT
1088 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
1089 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
1090
ef2a223f
MK
10912004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
1092
1093 * regex.c: Include <ansidecl.h>.
1094 (regcomp): Cast i to int.
1095 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
1096
5254fd7b
ILT
10972004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
1098
1099 * configure.ac: Add m4_pattern_allow(LIBOBJS).
1100 * configure: Regenerate.
1101
398b3deb
DD
11022004-01-22 DJ Delorie <dj@redhat.com>
1103
1104 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
1105 with explicit build rules.
1106 (VPATH): Remove.
1107 (.c.o): Poison.
1108 * configure.ac (pexecute, LIBOBJS): Add ./ .
1109 * maint-tool: Build dependencies with explicit rules.
1110
4e394293
KH
11112004-01-15 Kazu Hirata <kazu@cs.umass.edu>
1112
1113 * strdup.c (strdup): Constify the argument.
1114
0046e342
LR
11152004-01-14 Loren J. Rittle <ljrittle@acm.org>
1116
1117 * Makefile.in (distclean): Remove config.cache.
1118
d4f3ce5c
DJ
11192004-01-13 Daniel Jacobowitz <drow@mvista.com>
1120
1121 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
1122 takes two parameters.
1123 * cp-demint.c (cplus_demangle_fill_component): Likewise.
1124
5e777af5
ILT
11252004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1126
1127 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
1128 defined, rename some functions which are to become static via
1129 #define.
1130 (CP_STATIC_IF_GLIBCPP_V3): Define.
1131 (struct d_operator_info): Move definition to cp-demangle.h, and
1132 rename to demangle_operator_info. Change all uses.
1133 (enum d_builtin_type_print): Move definition to cp-demangle.h.
1134 (struct d_builtin_type_info): Move definition to cp-demangle.h,
1135 and rename to demangle_builtin_type_info. Change all uses.
1136 (enum d_comp_type): Move definition to include/demangle.h, and
1137 rename to demangle_component_type, and change all enums to start
1138 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
1139 (struct d_comp): Move definition to include/demangle.h, and rename
1140 to demangle_component. Change all uses.
1141 (struct d_info): Move definition to cp-demangle.h.
1142 (cplus_demangle_fill_name): New function.
1143 (cplus_demangle_fill_extended_operator): New function.
1144 (cplus_demangle_fill_ctor): New function.
1145 (cplus_demangle_fill_dtor): New function.
1146 (d_make_empty): Remove type parameter. Change all callers.
1147 (d_make_name): Use cplus_demangle_fill_name.
1148 (d_make_extended_operator): Use
1149 cplus_demangle_fill_extended_operator.
1150 (d_make_ctor): Use cplus_demangle_fill_ctor.
1151 (d_make_dtor): Use cplus_demangle_fill_dtor.
1152 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
1153 non-static by default. Change all callers.
1154 (cplus_demangle_operators): Rename from d_operators. Change all
1155 uses. Make non-static by default. Add sentinel at end of array.
1156 (d_operator_name): Adjust initialization of high for new sentinel
1157 in cplus_demangle_operators.
1158 (cplus_demangle_builtin_types): Rename from d_builtin_types.
1159 Change all uses. Make non-static by default. Change initializer
1160 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
1161 (cplus_demangle_type): Rename from d_type. Make non-static by
1162 default. Change all callers.
1163 (cplus_demangle_init_info): Rename from d_init_info. Make
1164 non-static by default. Change all callers.
1165 * cp-demangle.h: New file.
1166 * cp-demint.c: New file.
1167 * Makefile.in: Rebuild dependencies.
1168 (CFILES): Add cp-demint.c.
1169 (REQUIRED_OFILES): Add cp-demint.o.
1170
c31d56ed
KC
11712004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1172
1173 * configure.in: Rename file to ...
1174 * configure.ac: ... this.
1175 * Makefile.in: Update a comment for above change.
1176 * README: Likewise.
1177 * config.in: Regenerate.
1178
e4796f1c
ILT
11792004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1180
1181 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1182 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1183 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1184 demangling template parameters.
1185 * testsuite/test-demangle.c (fail): New static function.
1186 (main): Support new options in input file: --no-params,
1187 --is-v3-ctor, and --is-v3-dtor.
1188 * testsuite/demangle-expected: Add --no-params to most tests, and
1189 add the correct result when parameters are not demangled. Add
1190 some simple tests for V3 constructor/destructor recognition.
1191
4d425229
KG
11922003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1193
1194 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1195
6b309c6e
DJ
11962003-12-22 Daniel Jacobowitz <drow@mvista.com>
1197
1198 PR debug/13272
1199 * Makefile.in (lbasename.o): Depend on filenames.h.
1200 * lbasename.c: Include "filenames.h" instead of defining
1201 its macros locally.
1202
2d6c4025
ILT
12032003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1204
1205 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1206 dynamic arrays.
1207 (struct d_operator_info): Add len field.
1208 (struct d_builtin_type_info): Add len and java_len fields.
1209 (struct d_standard_sub_info): Add simple_len, full_len, and
1210 set_last_name_len fields.
1211 (struct d_comp): Add len field to s_string.
1212 (struct d_info): Add send, did_subs, and expansion fields.
1213 (d_append_string_constant): Define.
1214 (d_append_string): Remove. Change all users to use
1215 d_append_string_constant or d_append_buffer instead.
1216 (d_make_sub): Add len parameter. Change all callers.
1217 (d_name): Increase expansion when substituting std::.
1218 (d_unqualified_name): Increase expansion for an operator.
1219 (d_number): Don't use multiplication for negative numbers.
1220 (d_identifier): Make sure there are enough characters in the
1221 string for the specified length. Adjust expansion for an
1222 anonymous namespace.
1223 (d_operators): Initialize len field.
1224 (d_special_name, d_ctor_dtor_name): Increase expansion.
1225 (d_builtin_types): Initialize len and java_len fields.
1226 (d_type): Increase expansion for a builtin type.
1227 (d_cv_qualifiers): Increase expansion for each qualifier.
1228 (d_bare_function_type): Decrease expansion when removing single
1229 void parameter.
1230 (d_template_param): Increment did_subs.
1231 (d_expression): Increase expansion for an operator.
1232 (d_expr_primary): Decrease expansion for a type we will print
1233 specially.
1234 (standard_subs): Initialize new fields.
1235 (d_substitution): Increment did_subs when doing a normal
1236 substitution. Increase expansion for a special substitution.
1237 (d_print): Add estimate parameter. Change all callers.
1238 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1239 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1240 (d_print_java_identifier): Rename from d_print_identifier. Handle
1241 only Java case. Change caller.
1242 (d_init_info): Change return type to void. Change all callers.
1243 Initialize send, did_subs, and expansion fields. Do not
1244 initialize comps and subs fields.
1245 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1246 arrays on stack. Make an estimate of the length of the demangled
1247 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1248 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1249 subs arrays on stack.
1250
2307e075
ILT
12512003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1252
1253 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1254 after the identifier.
1255 * testsuite/demangle-expected: Add test case.
1256
a91d1af0
ILT
12572003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1258
1259 Fix for PR c++/13447:
1260 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1261 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1262 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1263 D_COMP_QUAL_NAME.
1264 (is_ctor_or_dtor): Likewise.
1265 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1266 D_COMP_QUAL_NAME.
1267 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1268 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1269 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1270 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1271 * testsuite/demangle-expected: Add two test cases.
1272
1273 * cp-demangle.c (d_print_function_type): Clear the global modifier
1274 list when printing the modifiers, not just when printing the
1275 function parameters.
1276 * testsuite/demangle-expected: Add two test cases.
1277
8d686df2
ILT
12782003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1279
cbc278f4
ILT
1280 * cp-demangle.c (d_print_function_type): Print the function
1281 parameters with no modifiers.
1282 * testsuite/demangle-expected: Add test case.
1283
8d686df2
ILT
1284 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1285 expect that we've read the entire string.
1286 (is_ctor_or_dtor): Don't expect that we've read the entire
1287 string--reverse patch of 2003-11-29.
1288
adf269c7
BK
12892003-12-15 Brendan Kehoe <brendan@zen.org>
1290
1291 * libiberty/Makefile.in (floatformat.o): Add dependency on
1292 config.h to accompany change of 2003-12-03.
1293
374caa50
ILT
12942003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1295
1296 Fix handling of constructor/destructor of standard substitution:
1297 * cp-demangle.c (struct d_standard_sub_info): Define.
1298 (d_substitution): Add prefix argument. Change all callers.
1299 Rework handling of standard substitutions to print full name when
1300 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1301 * testsuite/demangle-expected: Add test case.
1302
1303 Fix handling of negative literal constants:
1304 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1305 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1306 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1307 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1308 * testsuite/demangle-expected: Add test case.
1309
a51753e4
ILT
13102003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1311
1312 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1313 (d_last_char): Define new macro.
1314 (d_make_name): Reject an empty name.
1315 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1316 (d_substitution, d_print_identifier): Likewise.
1317 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1318 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1319 (d_print_mod) Use new d_last_char macro.
1320 (d_print_cast): Use new d_last_char macro.
1321 (is_ctor_or_dtor): Don't leak memory.
1322
1323 Fix handling of member function modifiers:
1324 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1325 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1326 (d_dump): Dump new d_comp_type values.
1327 (d_make_comp): Accept new d_comp_type values.
1328 (has_return_type): Only accept _THIS variants of qualifiers.
1329 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1330 qualifiers.
1331 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1332 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1333 qualifiers and printing them at the end, add _THIS qualifiers to
1334 the modifier list.
1335 (d_print_comp) [D_COMP_*_THIS]: New cases.
1336 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1337 qualifiers.
1338 (d_print_mod_list): Add suffix parameter. Change all callers.
1339 Keep walking the list even if the current modifier has been
1340 printed.
1341 (d_print_mod): Handle new _THIS qualifiers.
1342 (d_print_function_type): Handle new _THIS qualifiers when deciding
1343 whether to print a parenthesis. Put a space before the
1344 parenthesis in some cases. Call d_print_mod_list again at the
1345 end, passing suffix as 1.
1346 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1347 * testsuite/demangle-expected: Add test case.
1348
1349 Fix for PR gcc/13304:
1350 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1351 before the '<' is itself a '<', insert a space.
1352 (d_print_cast): Likewise.
1353 * testsuite/demangle-expected: Add test case.
1354
1355 Fix for PR gcc/13244:
1356 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1357 which uses the '>' operator in an extra layer of parens.
1358 * testsuite/demangle-expected: Add test case.
1359
bee6ab3e
ILT
13602003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1361
1362 * floatformat.c: Include "config.h" and <string.h> if available.
1363 (INFINITY, NAN): Define if not defined by <math.h>.
1364 (floatformat_to_double): Handle NaN, infinity, and denormalized
1365 numbers.
1366 (floatformat_from_double): Likewise.
1367 (ieee_test): In debugging code, use little endian rather than big
1368 endian. Correct tests to handle NaN and to check correct sign of
1369 zero. Omit m68k extended test.
1370 (main): Add more debugging cases.
1371
f26deb3d
ILT
13722003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1373
1374 * cp-demangle.c (d_demangle): Only return success if we consumed
1375 the entire demangled string.
1376 (is_ctor_or_dtor): Likewise.
1377
1378 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1379 to restore expected result of EDG test case to original expected
1380 result.
1381
81dc098b
ILT
13822003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1383
1384 * cp-demangle.c (struct d_print_mod): Add templates field.
1385 (d_make_builtin_type): Check for NULL type.
1386 (d_make_extended_operator): Check for NULL name.
1387 (d_make_ctor, d_make_dtor): Likewise.
1388 (d_mangled_name): Add top_level parameter. Change all callers.
1389 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1390 CV-qualifiers.
1391 (d_type): Check some return values we rely on.
1392 (d_bare_function_type, d_array_type): Likewise.
1393 (d_pointer_to_member_type, d_template_args): Likewise.
1394 (d_add_substitution): Fail if argument is NULL.
1395 (d_print_resize): Check whether buf is NULL.
1396 (d_print_comp): Save current templates list with each modifier.
1397 Don't pass the modifier list down when printing a template.
1398 (d_print_cast): Don't pass the modifier list down when printing a
1399 template.
1400 (d_print_mod_list): Temporarily set templates list while printing
1401 a modifier.
1402 (d_print_mod): Check that buf is not NULL before using it.
1403 (d_print_function_type): Print parens if there is no modifier.
1404 (d_init_info): Permit as many substitutions as there are
1405 characters in the mangled name.
1406 * testsuite/demangle-expected: Add two new test cases.
1407
eb459c81
ILT
14082003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1409
1410 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1411 d_demangle.
1412
ad07f5e5
ILT
14132003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1414
1415 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1416 callers.
1417 (print_usage): Display new -p option.
1418 (long_options): Add --no-params.
1419 (main): Accept and handle -p.
1420
0ba5c8a2
ILT
14212003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1422
1423 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1424 whether we have a template.
1425 * testsuite/demangle-expected: Add four new tests.
1426
bd6946d1
ILT
14272003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1428
9cca376f
ILT
1429 * testsuite/demangle-expected: Minor changes to match output of
1430 new demangler: adjust whitespace in four tests, and change order
1431 of qualifiers in one test.
1432
bd6946d1
ILT
1433 * cp-demangle.c: Complete rewrite.
1434
6df5a5c7
MM
14352003-11-19 Mark Mitchell <mark@codesourcery.com>
1436
1437 * cp-demangle.c (demangle_type): Correct thinko in substitution
1438 processing.
1439
a9b571f2
ILT
14402003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1441
820555e6
ILT
1442 * cp-demangle.c (demangle_operator_name): Remove space before
1443 "sizeof".
1444 (demangle_type_ptr): Put qualifiers in the right place. Handle
1445 qualifiers in pointer to member specially.
1446 (demangle_type): Handle qualifiers for pointer or reference
1447 specially. Handle function type.
1448 (demangle_local_name): Save and restore caret around demangling of
1449 initial encoding.
1450
c4328d32
ILT
1451 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1452 cplus_demangle.
1453
a9b571f2
ILT
1454 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1455
ad37274a
AJ
14562003-10-31 Andreas Jaeger <aj@suse.de>
1457
1458 * floatformat.c (floatformat_always_valid): Add unused attribute.
1459
27eb8ab1
JZ
14602003-10-30 Josef Zlomek <zlomekj@suse.cz>
1461
1462 Jan Hubicka <jh@suse.cz>
1463 * vasprintf.c (int_vasprintf): Pass va_list by value.
1464 Use va_copy for copying va_list.
1465 (vasprintf): Pass va_list by value.
1466
e0432c1c
JZ
14672003-10-30 Josef Zlomek <zlomekj@suse.cz>
1468
1469 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1470 instead of increasing n_elements when inserting to deleted slot.
1471
08c5b96d
B
14722003-10-20 J. Brobecker <brobecker@gnat.com>
1473
1474 * cplus-dem.c (demangle_template): Register a new Btype only
1475 when needed.
1476 * testsuite/demangle-expected: Add a new test.
1477
968e3f93
L
14782003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1479
1480 * testsuite/demangle-expected: Update the expected output of
1481 _GLOBAL__I__Z2fnv.
1482
bca48dc6
DJ
14832003-10-02 Daniel Jacobowitz <drow@mvista.com>
1484
1485 * strerror.c: Revert last change. Declare static sys_nerr
1486 and sys_errlist using different names.
1487
b9e8f4b3
DJ
14882003-10-01 Daniel Jacobowitz <drow@mvista.com>
1489
1490 * strerror.c: Don't provide or reference sys_errlist if
1491 strerror is available.
1492
c0590bfd
L
14932003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1494
1495 * configure.in: Check if $MAKEINFO is missing.
1496 * configure: Regenerated.
1497
b033df90
DJ
14982003-09-24 Daniel Jacobowitz <drow@mvista.com>
1499
1500 * configure.in: Use AC_PROG_CPP_WERROR.
1501 * configure: Regenerated.
1502
83c07342
AC
15032003-09-22 Andrew Cagney <cagney@redhat.com>
1504
1505 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1506 (floatformat_always_valid): New function.
1507 (floatformat_i387_ext): Initialize new "is_valid" field to
1508 "floatformat_i387_ext_is_valid".
1509 (floatformat_ieee_single_little): Initialize "is_valid" field to
1510 floatformat_always_valid.
1511 (floatformat_ieee_double_big): Ditto.
1512 (floatformat_ieee_double_little): Ditto.
1513 (floatformat_ieee_double_little): Ditto.
1514 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1515 (floatformat_i960_ext): Ditto.
1516 (floatformat_m88110_ext): Ditto.
1517 (floatformat_m88110_harris_ext): Ditto.
1518 (floatformat_arm_ext_big): Ditto.
1519 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1520 (floatformat_ia64_spill_big): Ditto.
1521 (floatformat_ia64_spill_little): Ditto.
1522 (floatformat_ia64_quad_big): Ditto.
1523 (floatformat_ia64_quad_little): Ditto.
1524 (floatformat_ia64_quad_little): Ditto.
1525 (floatformat_is_valid): Call "is_valid".
1526
c9fbef12
AC
15272003-09-15 Andrew Cagney <cagney@redhat.com>
1528
1529 * floatformat.c (get_field): Make "data" constant.
1530 (floatformat_is_valid, floatformat_to_double): Make "from"
1531 constant, fix casts.
1532 (floatformat_from_double): Make "from" constant.
1533
9c8860c3
DJ
15342003-09-15 Daniel Jacobowitz <drow@mvista.com>
1535
1536 * floatformat.c (floatformat_is_valid): New function.
1537 (get_field, put_field): Correct comments.
1538
13f7d3a1
JZ
15392003-09-06 Josef Zlomek <zlomekj@suse.cz>
1540
1541 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1542 FIBHEAPKEY_T.
1543
03eec143 15442003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
1545
1546 PR bootstrap/12100
1547 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1548 * configure: Rebuilt.
1549
238235ef
DJ
15502003-08-27 Daniel Jacobowitz <drow@mvista.com>
1551
1552 * aclocal.m4: Include acx.m4 and no-executables.m4.
1553 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1554 (LIB_AC_PROG_CC): Remove.
1555 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1556 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1557 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1558 performing link tests.
1559 * configure: Regenerated.
1560
2b81b2c9
NN
15612003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1562
0cf61401 1563 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 1564
7b96f3e4
DS
15652003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1566
1567 * pex-win32.c (pexecute): Mark parameters this_pname and
1568 temp_base as unused. Remove unused variables retries,
1569 sleep_interval. Initialize org_stdin, org_stdout.
1570 (pwait): Mark parameter flags as unused.
1571
15722003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
1573
1574 * pex-win32.c (fix_argv): Ensure that the executable pathname
1575 uses Win32 backslashes.
1576 (pexecute): Cast away constness when assigning *errmsg_arg.
1577
6f8507b1
L
15782003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1579
1580 * testsuite/demangle-expected: Add more GNU V3 testcases.
1581
21299dbd
ZW
15822003-06-22 Zack Weinberg <zack@codesourcery.com>
1583
1584 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1585 not HC_ASCII and HC_EBCDIC.
1586 Add documentation in form expected by gather-docs.
1587 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1588 * Makefile.in, functions.texi: Regenerate.
1589
7468e0b5
ZW
15902003-06-21 Zack Weinberg <zack@codesourcery.com>
1591
1592 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1593 for charset determination.
1594
cf8e4b78
DH
15952003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1596
1597 * configure.in: Add check for malloc.h needed by
1598 m68k for function free().
1599 * configure: Regenerated.
1600 * config.in: Add HAVE_MALLOC_H.
1601 * hashtab.c: include malloc.h were available for
1602 free().
1603
aa9dc53d 16042003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 1605
aa9dc53d
ACY
1606 PR bootstrap/10974
1607 * physmem.c: Update comment.
1608 * configure.in: Modify test for _system_configuration for older
1609 AIX systems.
1610
1611 * config.in, configure: Regenerated.
7468e0b5 1612
8191fe81
JDA
16132003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1614
1615 PR other/10810
1616 * test-demangle.c (getline): Fix fence-post error.
1617
8d398258
NC
16182003-06-03 Nick Clifton <nickc@redhat.com>
1619
1620 * asprintf.c: Change comment to note that -1 is returned upon
1621 error.
1622 * vasprintf.c: Likewise.
1623 (vasprintf): Return -1 upon error.
1624 * functions.texi: Document changes to asprintf and vasprintf.
1625
29ad6d3f
KC
16262003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1627
1628 * config.table: Accept i[345867]86 variant.
1629
49a19cfd
JB
16302003-05-15 Jim Blandy <jimb@redhat.com>
1631
1632 * hex.c (_hex_value): Make this unsigned.
1633 (hex_value): Update documentation for new return type. hex_value
1634 now expands to an unsigned int expression, to avoid unexpected
1635 sign extension when we store it in a bfd_vma, which is larger than
1636 int on some platforms.
1637 * functions.texi: Regenerated.
1638
d5d4eae2
JZ
16392003-05-07 Josef Zlomek <zlomekj@suse.cz>
1640
1641 * splay-tree.c (splay_tree_predecessor): Fix comment.
1642 (splay_tree_successor): Fix comment.
1643
5cc5a0d0
JM
16442003-05-07 Jason Merrill <jason@redhat.com>
1645
9d70d418 1646 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
1647 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1648 * aclocal.m4: Include accross.m4.
1649 * configure, config.in: Regenerate.
1650
05c30f22
KG
16512003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1652
1653 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1654 * configure: Regenerate.
1655
41fe9404
CW
16562003-05-03 Carlo Wood <carlo@alinoe.com>
1657
1658 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1659
52dd3224
KG
16602003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1661
1662 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1663 (main): Test that we don't write too much data.
1664
bd3fbc6b
KG
16652003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1666
1667 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1668 vsnprintf.
1669 * snprintf.c, vsnprintf.c: New files.
1670 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1671 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1672 Regenerate dependencies.
1673
1674 * functions.texi, configure, config.in: Regenerated.
1675
029bcc09
KG
16762003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1677
1678 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1679 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1680 and stpncpy.
1681 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1682 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1683 Regenerate dependencies.
1684
1685 * functions.texi, configure, config.in: Regenerated.
1686
c9ac9147
KG
16872003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1688
1689 * argv.c: Fix comments.
1690 * calloc.c: Don't unnecessarily include "libiberty.h".
1691 (bzero): Add prototype.
1692 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1693 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1694 with system headers.
1695 * hashtab.c (htab_traverse): Delete unused variables.
1696 * rename.c: Include "ansidecl.h".
1697 (rename): Use standard definition to avoid conflicts with system
1698 headers.
1699 * strsignal.c: Rely on ANSI_PROTOTYPES.
1700 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1701 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1702 * vprintf.c: Include "ansidecl.h" earlier, rely on
1703 ANSI_PROTOTYPES.
1704 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1705 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 1706
c9ac9147
KG
1707 * Makefile.in: Regenerate dependencies.
1708
98475c57
DD
17092003-04-15 DJ Delorie <dj@redhat.com>
1710
1711 * maint-tool (deps): Scan for headers in $srcdir also.
1712
55adc7bd
KG
17132003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1714
1715 PR target/10338
1716 PR bootstrap/10198
1717 PR bootstrap/10140
1718 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1719 __mempcpy.
1720 * regex.c (regerror): Likewise.
1721
0ae0f1b0
RS
17222003-04-14 Roger Sayle <roger@eyesopen.com>
1723
1724 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1725 * memchr.c: Likewise.
1726 * strcasecmp.c: Likewise.
1727 * strncasecmp.c: Likewise.
1728 * strncmp.c: Likewise.
1729 * xatexit.c: Likewise.
1730 * xmalloc.c: Likewise.
1731
1732 * copysign.c: Use traditional function declaration instead of DEFUN.
1733 * sigsetmask.c: Likewise.
1734
1735 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1736 * memset.c: Likewise.
1737
1738 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1739 * memmove.c: Likewise.
1740
88702c45
RS
17412003-04-14 Roger Sayle <roger@eyesopen.com>
1742
1743 * strdup.c (strdup): Tweak implementation to use memcpy.
1744
39e8d049
KG
17452003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1746
1747 * configure.in (HAVE_UINTPTR_T): Always define.
1748 * configure: Regenerated.
1749
9f2e0608
AO
17502003-03-23 Alexandre Oliva <aoliva@redhat.com>
1751
1752 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1753 instead of $$CC alone.
1754 (install_to_tooldir): Use it.
1755
dbccdc42
JH
17562003-17-03 Jan Hubicka <jh@suse.cz>
1757
1758 * hashtab.c (htab_traverse_noresize): Break out from ...
1759 * hashtab.c (htab_traverse): ... here.
1760
0a8e3de3
JH
17612003-12-03 Jan Hubicka <jh@suse.cz>
1762
cd22e4af
JH
1763 * hashtab.c (htab_expand): Fix warning.
1764
0a8e3de3
JH
1765 * hashtab.c (htab_expand): Compute the size of hashtable based
1766 on the number of elements actually used.
1767 (htab_traverse): Call htab_expand when table is too empty.
1768
8fe85775
CW
17692003-03-11 Carlo Wood <carlo@gnu.org>
1770
1771 * cplus-dem.c (demangle_integral_value): Correction to reflect
1772 patch of 2002-01-10 in order to also make negative multi-digits
1773 without leading underscore work.
1774
3bf27822
MM
17752003-03-03 Mark Mitchell <mark@codesourcery.com>
1776
1777 * cplus-dem.c: Add license exception to copyright notice.
1778
434fa0b8
KG
17792003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1780
1781 * physmem.c: Formatting changes from upstream.
1782
ed935c35
DS
17832003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1784
1785 * physmem.c (physmem_total): Add _WIN32 support.
1786 (physmem_available): Likewise.
1787
7f9fc006
RO
17882003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1789
1790 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1791 GSI_PHYSMEM.
1792 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1793
d47f75c4
KG
17942003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1795
1796 * configure.in: Check for sys/systemcfg.h and
1797 _system_configuration.
1798 * physmem.c: Add support for AIX. Tweek formatting as per
1799 upstream coreutils beta.
1800
170230b7
KG
18012003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1802 Richard Earnshaw <rearnsha@arm.com>
1803 Geoffrey Keating <geoffk@apple.com>
7468e0b5 1804
170230b7
KG
1805 * configure.in: Check for sys/sysctl.h and sysctl.
1806 * physmem.c: Add support for *bsd and darwin.
1807 * Makefile.in: Generate depedency for physmem.o.
1808
4a06f7f2
RO
18092003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1810
1811 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1812 Tru64 UNIX.
1813 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1814 Tru64 UNIX.
1815
1816 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1817 machine/hal_sysinfo.h, sys/table.h.
1818 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1819 * configure, config.in: Regenerate.
1820
64c7e556
KG
18212003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1822
1823 * configure.in: Check for sys/sysmp.h and sysmp.
1824 * physmem.c: Pull upstream copy, add support for irix6.
1825
1826 * config.in, configure: Regenerated.
1827
e9019af6
KG
18282003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1829
1830 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1831 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1832 pstat_getdynamic.
7468e0b5 1833
a354191e
KG
18342003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1835
1836 * Makefile.in (CFILES): Add physmem.c.
1837 (REQUIRED_OFILES): Add physmem.o.
1838 * configure.in: Check for sys/pstat.h.
1839 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1840 * physmem.c: New file, copied from textutils.
1841
1842 * config.in, configure: Regenerated.
1843
4876b2b4
DJ
18442003-02-20 Daniel Jacobowitz <drow@mvista.com>
1845
1846 * Makefile.in (CFILES): Add lrealpath.c.
1847 (REQUIRED_OFILES): Add lrealpath.o.
1848 (lrealpath.o): Add rule.
1849 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1850 * configure.in: Add realpath and canonicalize_file_name to
1851 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1852 for canonicalize_file_name.
1853 * lrealpath.c: New file.
1854 * make-relative-prefix.c: Update documentation.
1855 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1856 * config.in: Regenerated.
1857 * configure: Regenerated.
1858 * functions.texi: Regenerated.
1859
e182f0a3 18602003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1861
1862 * cplus_dem.c: Fix typo: intializes -> initializes.
1863
3343fdd2
AO
18642003-02-20 Alexandre Oliva <aoliva@redhat.com>
1865
1866 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1867 config.status.
1868 * configure: Rebuilt.
1869
902cf50c
DJ
18702003-02-13 Daniel Jacobowitz <drow@mvista.com>
1871
1872 Fix PR c++/7612.
1873 * cplus-dem.c (demangle_signature): Call string_delete.
1874 Remove extra string_init.
1875 (demangle_arm_hp_template): Call string_delete instead of
1876 string_clear. Add missing string_delete call.
1877 (demangle_qualified): Add missing string_delete call.
1878 (do_type): Remove unused variable btype. Add missing string_delete
1879 call. Call string_delete instead of string_clear.
1880 (demangle_fund_type): Move variable btype inside of the switch
1881 statement. Add missing string_delete call.
1882 (do_arg): Call string_delete instead of string_clear. Remove extra
1883 string_init.
1884 (demangle_nested_args): Free work->previous_argument.
1885
7ac27e08
KG
18862003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1887
1888 * acconfig.h: New file. Add uintptr_t.
1889 * config.in: Regenerated.
1890
b3a8389d
JM
18912003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1892
1893 * libiberty.texi: Update to GFDL 1.2.
1894
d8c22ce7
CC
18952003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1896
1897 * Makefile.in (libiberty_topdir): New subst.
1898 (mkinstalldirs): Redefine in terms of the above.
1899 * configure.in: AC_SUBST it.
1900 * configure: Regenerate.
1901
4ce1921a
CC
19022003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1903
1904 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1905 (info-subdir, install-info-subdir, clean-info-subdir)
1906 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1907 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1908 Pass $(FLAGS_TO_PASS).
1909
93239fdb
AO
19102003-01-27 Alexandre Oliva <aoliva@redhat.com>
1911
1912 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1913 /`$$CC -print-multi-os-directory`.
1914
74828682
DJ
19152003-01-26 Daniel Jacobowitz <drow@mvista.com>
1916
1917 * hashtab.c (htab_create_alloc_ex): New function.
1918 (hatab_set_functions_ex): New function.
1919 (htab_delete, htab_expand): Support alternate allocation functions.
1920
ece0e59f
CF
19212003-01-24 Christopher Faylor <cgf@redhat.com>
1922
1923 * configure.in: Remove special pex-cygwin consideration.
1924 * configure: Regenerate.
1925 * pex-cygwin.c: Remove.
1926 * Makefile.in: Remove pex-cygwin.[co] lines.
1927
55d0e5e0
ZW
19282003-01-24 Zack Weinberg <zack@codesourcery.com>
1929
1930 * Makefile.in (CFILES): Add pex-*.c.
1931 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1932 (CONFIGURED_OFILES): Add pex-*.o.
1933 (TEXIFILES): Add pexecute.txh.
1934 (pexecute.o): Delete rule.
1935 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1936 pex-unix.o, pex-win32.o): New rules.
1937 * configure.in: Change AC_INIT argument to xmalloc.c.
1938 Compute appropriate pexecute implementation and substitute it
1939 as @pexecute@.
1940
1941 * pexecute.c: Split up into...
1942 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1943 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1944 new files.
1945
1946 * functions.texi: Regenerate.
1947 * configure: Regenerate.
1948
120cdf68
JZ
19492003-01-20 Josef Zlomek <zlomekj@suse.cz>
1950
1951 * hashtab.c (htab_expand): Fix allocation of new entries.
1952
90e5b39f
CC
19532003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1954
1955 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1956
d7082cd7
CC
1957 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1958 mkinstalldirs command.
1959
eaed9290
DS
19602002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1961
1962 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1963 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1964
ef4e4181
NC
19652002-11-24 Nick Clifton <nickc@redhat.com>
1966
1967 * make-relative-prefix.c (make_relative_prefix): Ensure return
1968 string is empty before using strcat to construct it.
1969
42766f8d
DJ
19702002-11-22 Daniel Jacobowitz <drow@mvista.com>
1971
1972 * Makefile.in: Add make-relative-prefix.c.
1973 * make-relative-prefix.c: New file.
1974 * functions.texi: Rebuilt.
1975
783080ab
JJ
19762002-11-16 Jakub Jelinek <jakub@redhat.com>
1977
1978 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1979 used with arguments in traditional C' warnings.
1980
7da64d7a
JJ
19812002-10-16 Jakub Jelinek <jakub@redhat.com>
1982
1983 * config.table: Use mh-s390pic for s390x too.
1984
de78f58b
AJ
19852002-10-06 Andreas Jaeger <aj@suse.de>
1986
1987 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1988 variable and of strict-aliasing warning.
1989 (grow_vect): Use char as first parameter.
1990
6c5d742e
KG
19912002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1992
1993 * Makefile.in (all): Fix multilib parallel build.
1994
f08b7eee
JDA
19952002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1996
1997 * cp-demangle.c (demangling_new): Cast 0 to enum.
1998 (demangle_char): Cast return of strdup to char *.
1999 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
2000 (is_gnu_v3_mangled_dtor): Likewise.
2001 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
2002 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
2003 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
2004 * md5.c (md5_process_bytes): Cast results back to const void *.
2005 (md5_process_block): Add cast to const md5_uint32 *.
2006 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
2007 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
2008 unsigned short.
2009 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
2010 to void *.
2011 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
2012
8d87f295
NC
20132002-09-19 Nick Clifton <nickc@redhat.com>
2014
2015 * README: Update email addresses for bugs and patches.
2016
6eedb9ca
MS
20172002-09-10 Mike Stump <mrs@apple.com>
2018
2019 * splay-tree.c (splay_tree_successor): Fix comments.
2020
3fd9d606
ZW
20212002-09-11 Zack Weinberg <zack@codesourcery.com>
2022
b2196e8f 2023 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
2024 * testsuite/Makefile.in: Adjust for test-demangle.
2025 * testsuite/regress-demangle: Deleted.
2026 * testsuite/test-demangle.c: New file.
2027 * testsuite/demangle-expected: Change \$ to $ throughout, now that
2028 this file is not being read by a shell script.
2029
70c4e67a
RS
20302002-09-05 Roger Sayle <roger@eyesopen.com>
2031
2032 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
2033
65b91091
DD
20342002-08-07 DJ Delorie <dj@redhat.com>
2035
2036 * regex.c (re_error_msgid): Just use a simple array of strings.
2037 (re_compile_pattern): Compensate.
2038 (re_comp): Likewise.
2039 (re_comp): Likewise.
2040 (regerror): Likewise.
2041
437974a9
NB
20422002-07-29 Neil Booth <neil@daikokuya.co.uk>
2043
2044 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 2045
28a34ec1
JM
20462002-07-10 Jason Merrill <jason@redhat.com>
2047
2048 * cp-demangle.c (demangle_identifier): Support extended Unicode
2049 characters.
2050
84326592
KG
20512002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2052
2053 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 2054 !defined IN_GLIBCPP_V3.
84326592 2055
5d69ba1f
MM
20562002-07-01 Mark Mitchell <mark@codesourcery.com>
2057
2058 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
2059 Set it for the "st" operator.
2060 (demangle_expression): Handle expressions with types as arguments.
2061
7fda878c
DR
20622002-06-30 Douglas Rupp <rupp@gnat.com>
2063
2064 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2065 * Makefile.in (OUTPUT_OPTION): Use.
2066
112bae77
PB
20672002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
2068
2069 * Makefile.in (install_to_libdir): Add $(DESTDIR).
2070 (install_to_tooldir): Likewise.
2071
53309d5c
DR
20722002-06-17 Douglas Rupp <rupp@gnat.com>
2073
2074 * lbasename.c: Add 2002 to copyright.
2075 (IS_DIR_SEPARATOR): Remove VMS junk.
2076
045b3a49
GK
20772002-06-05 Geoffrey Keating <geoffk@redhat.com>
2078
2079 * hashtab.c (htab_create): New stub function for backward
2080 compatibility.
2081 (htab_try_create): Likewise.
2082
e2500fed
GK
20832002-06-03 Geoffrey Keating <geoffk@redhat.com>
2084
2085 * hashtab.c (htab_create): Delete.
2086 (htab_try_create): Delete.
2087 (htab_create_alloc): New.
2088 (htab_delete): Support user-specified memory allocation.
2089 (htab_expand): Likewise.
2090
9f3dbd92
RL
20912002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2092
2093 * configure.in: Fix typo in the code checking for sys_errlist.
2094 * configure: Regenerated.
2095
e4723404
AS
20962002-05-13 Andreas Schwab <schwab@suse.de>
2097
2098 * config.table: Use mh-x86pic also for x86-64.
2099
6706f116
AO
21002002-05-08 Alexandre Oliva <aoliva@redhat.com>
2101
2102 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2103 script entry, and set LD to it when configuring multilibs.
2104 * configure: Rebuilt.
2105
deae2ed9
MM
21062002-05-07 Mark Mitchell <mark@codesourcery.com>
2107
2108 * configure.in (AC_TYPE_PID_T): Use it.
2109 * configure: Regenerated.
2110 * getruntime.c: Include <sys/types.h>.
2111 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2112
4fc4e478
RH
21132002-04-09 Richard Henderson <rth@redhat.com>
2114
2115 * hashtab.c (higher_prime_number): Use 7 as minimum.
2116 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
2117 (htab_find_slot_with_hash): Likewise.
2118
bd7e6f2d
PE
21192002-04-01 Phil Edwards <pme@gcc.gnu.org>
2120
2121 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2122 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
2123 not compile if IN_GLIBCPP_V3 defined.
2124 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2125
a8f55e51
BM
21262002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2127
de78f58b 2128 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
2129 if it is NULL.
2130
96adcacb
DD
21312002-03-27 DJ Delorie <dj@redhat.com>
2132
2133 * hex.c: Add documentation.
2134 (_hex_value): Provide non-ASCII empty table.
2135 (hex_init): Initialize the non-ASCII table.
2136 * functions.texi: Regenerate.
2137
2b613c6a
MM
21382002-03-27 Mark Mitchell <mark@codesourcery.com>
2139
2140 * dyn-string.c: Add libgcc exception to copyright notice.
2141
cd862df8
L
21422002-03-26 H.J. Lu (hjl@gnu.org)
2143
2144 * config.table: Support --with-build-subdir.
2145 * configure.in: Likewise.
2146 * configure: Rebuild.
2147
ed300793
SG
21482002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
2149
2150 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2151 seen.
2152
b3dd43df
MM
21532002-03-12 Mark Mitchell <mark@codesourcery.com>
2154
2155 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2156 notice.
2157
50c74579
DR
21582002-03-11 Douglas B Rupp <rupp@gnat.com>
2159
2160 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2161
957978a4
JB
21622002-03-06 Jim Blandy <jimb@redhat.com>
2163
2164 * splay-tree.c (splay_tree_xmalloc_allocate,
2165 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
2166 prototyped definitions. Mark `data' arguments as unused.
2167
ccc49bed
AC
21682002-03-06 Andrew Cagney <ac131313@redhat.com>
2169
2170 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2171
48d7db63
PE
21722002-03-04 Phil Edwards <pme@gcc.gnu.org>
2173
2174 * configure.in: Add --enable-install-libiberty option.
2175 * Makefile.in (INSTALLED_HEADERS): New variable.
2176 (install_to_libdir): Possibly also copy headers.
2177 * configure: Regenerated.
2178
af18e951
NB
21792002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2180
2181 * xmalloc.c (xmalloc_fail): Clarify error message further.
2182
d8d7c3c3
NB
21832002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2184
2185 * xmalloc.c (xmalloc_fail): Clarify error message.
2186
00c2f96f
JB
21872002-02-22 Jim Blandy <jimb@redhat.com>
2188
2189 * splay-tree.c (splay_tree_xmalloc_allocate,
2190 splay_tree_xmalloc_deallocate): New functions.
2191 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2192 above functions and a dummy data pointer.
2193 (splay_tree_new_with_allocator): New function.
2194 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2195 splay_tree_remove): Use the splay tree's allocation and
2196 deallocation functions.
2197
b1c1a22f
SS
21982002-02-19 Scott Snyder <snyder@fnal.gov>
2199
2200 * testsuite/demangle-expected: Add test case for infinite loop in
2201 demangler.
2202 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2203 if do_type() doesn't make any progress --- prevents an infinite
2204 loop.
2205
336669e7
CW
22062002-02-18 Carlo Wood <carlo@gnu.org>
2207
2208 PR c++/5390
2209 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2210 numbers that do not start with an underscore; This is needed
2211 for integer template parameters. This doesn't break anything
2212 because multi-digit numbers are never followed by a digit.
2213 * testsuite/demangle-expected: Corrected all mangled test
2214 cases with multi-digit template parameters: g++ 2.95.x does
2215 not generate underscores around these parameters.
2216
c13db5d1
JM
22172002-02-05 Jason Merrill <jason@redhat.com>
2218
2219 * cplus-dem.c (flags): Add DMGL_VERBOSE
2220 (cplus_demangle_v3_p): Remove.
2221 (demangle_it): Add DMGL_TYPES to passed flags.
2222 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2223 (cplus_demangle_v3_type): Remove.
2224 (cplus_demangle_v3): Add options parm.
2225
d74697b8
L
22262002-02-02 H.J. Lu (hjl@gnu.org)
2227
2228 * cp-demangle.c (cp_demangle_type): Do not protect with
2229 IN_LIBGCC2.
2230 (cplus_demangle_v3_all): New.
2231 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2232 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2233
2234 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2235 Initialized to cplus_demangle_v3.
2236 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2237 of cplus_demangle_v3.
2238 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2239 command line symbol.
2240
2241 * testsuite/regress-demangle: Pass the mangled name at the
2242 command line.
2243
3a441e38
L
22442002-02-01 H.J. Lu <hjl@gnu.org>
2245
2246 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2247 DMGL_GNU_V3.
2248
6d747e63
PE
22492002-01-31 Phil Edwards <pme@gcc.gnu.org>
2250
2251 * cp-demangle.c: Revert yesterday's change.
2252
46af757b
AM
22532002-01-31 Adam Megacz <adam@xwt.org>
2254
2255 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2256 wrt HAVE_SYS_ERRLIST.
2257
46ab74b1
PE
22582002-01-30 Phil Edwards <pme@gcc.gnu.org>
2259
2260 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2261 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2262 cp_demangle_type.
2263 * testsuite/demangle-expected: New gnu-v3 test.
2264
e64d0626
MV
22652002-01-22 Momchil Velikov <velco@fadata.bg>
2266
2267 * configure.in (variable detection): Use arrays of unspecified
2268 size instead of plain integers.
2269
9ce3f7e5
DD
22702002-01-18 DJ Delorie <dj@redhat.com>
2271
2272 * Makefile.in (TESTLIB): New. This library is for future
2273 testsuites.
2274 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2275 break down by letter.
2276 (REQUIRED_OFILES): List long-to-compile files first.
2277 (maint-deps): New, target for updating dependencies.
2278 (dependencies): Update.
2279 * maint-tool: Add dependency-generating option.
2280 * configure.in: Check for _doprnt even if we're not providing it.
2281 * configure: Regenerate.
2282
2283 * _doprnt.c: Modifications to allow compiling on any platform.
2284 * copysign.c: Likewise.
2285 * putenv.c: Likewise.
2286 * setenv.c: Likewise.
2287 * vsprintf.c: Likewise.
2288
0e83ceb1
DR
22892002-01-15 Douglas B Rupp <rupp@gnat.com>
2290
2291 * mkstemps.c (mkstemps): On VMS, open temp file with option
2292 that causes it to be deleted when closed.
2293
adddf5bf
KG
22942002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2295
5e65297b
KG
2296 * cp-demangle.c (long_options): Const-ify.
2297 * cplus-dem.c (long_options): Likewise.
2298
adddf5bf
KG
2299 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2300 strstr instead.
2301
a4219437
IR
23022001-12-31 Ira Ruben <ira@apple.com>
2303
2304 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2305 * configure: Regenerated.
af328d8d
DR
2306
23072001-12-24 Douglas B. Rupp <rupp@gnat.com>
2308
2309 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2310 * configure: Regenerated.
a4219437 2311
63de15a4
CR
23122001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2313
2314 PR other/2719
2315 * cplus-dem.c (consume_count): Treat negative count as an error.
2316 * testsuite/demangle-expected: Added testcase.
2317
ee262b6f
DR
2318Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2319
2320 * configure.in: Hardcode that vfork works on VMS host.
2321 * configure: Regenerated.
2322
d06ba3c7
RH
23232001-12-06 Richard Henderson <rth@redhat.com>
2324
2325 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2326 (cplus_demangle): Support no_demangling.
2327
e490616e
ZW
23282001-11-27 Zack Weinberg <zack@codesourcery.com>
2329
2330 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2331 in libiberty context. Fix typo in leading comment.
2332 * configure.in: Fix various AC_DEFINEs so autoheader works.
2333 If any of vprintf, vsprintf, vfprintf is missing from libc,
2334 then AC_REPLACE_FUNCS(_doprnt).
2335
97e620cf 23362001-11-26 DJ Delorie <dj@redhat.com>
e490616e 2337 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
2338
2339 * Makefile.in (stamp-h): Depend on Makefile for proper
2340 serialization.
2341 (*-subdir): Depend on config.h for proper serialization.
2342
c3bb7df0
DD
23432001-11-26 DJ Delorie <dj@redhat.com>
2344
2345 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2346 * configure: Regenerate.
2347 * config.h: Add HAVE_ALLOCA_H.
2348
23850d35
KG
23492001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2350
2c47b56b
KG
2351 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2352 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2353 is available.
23850d35 2354
7ddfb651
JL
2355Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2356
d3982b71
JL
2357 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2358 * configure.in (HAVE_UINTPTR_T): Test for system defining
2359 uintptr_t and define HAVE_UINTPTR_T appropriately.
2360 * regex.c (uintptr_t): Do not provide a definition if the
2361 system provided one.
2362
7ddfb651
JL
2363 * regex.c (PREFIX): Provide an alternate definition for
2364 non-ANSI/ISO compilers.
2365 (ARG_PREFIX): Likewise.
2366
2e683037
JM
23672001-11-12 Jim Meyering <meyering@lucent.com>
2368
2369 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2370 this code would end up calling gettext even in packages built
2371 with --disable-nls.
2372 * getopt.c (_): Likewise.
2373 * regex.c (_): Likewise.
2374
f749bd83
AM
23752001-11-03 Alan Modra <amodra@bigpond.net.au>
2376
2377 * configure.in: Cope with missing makeinfo.
55a10d7c 2378 * configure: Regenerate.
f749bd83 2379
26ad2982
KG
23802001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2381
e5969ba6
KG
2382 * hex.c (hex_init): Provide empty stub.
2383
26ad2982
KG
2384 * hex.c (hex_init): Delete.
2385 (_hex_value): Const-ify and initialize at compile-time.
2386
afb649d5
L
23872001-10-19 H.J. Lu <hjl@gnu.org>
2388
2389 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2390 necessary.
2391
5bed56d9
DD
23922001-10-17 DJ Delorie <dj@redhat.com>
2393
2394 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2395 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 2396 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
2397 Improve manual formatting.
2398 * functions.texi: Regenerate.
2399
aac04c15
DD
24002001-10-15 DJ Delorie <dj@redhat.com>
2401
2402 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2403 (maint-undoc): New.
2404 maint-tool: Add "undoc" tool.
2405 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2406 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2407 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2408 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2409 documentation.
2410 * fnmatch.txh: New.
2411 * functions.texi: Regenerate.
fae8182a 2412
0e4e9e8f
JM
24132001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2414
2415 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2416 * strtod.c: Use "ISO C" instead of "ANSI C".
2417 * functions.texi: Regenerate.
2418
7f8fa05d
JM
24192001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2420
2421 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2422 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2423 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2424 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2425 spelling. Give names to function arguments in documentation. Use
2426 (void) prototypes in documentation.
2427 * functions.texi: Regenerate.
2428
0be6abca
KG
24292001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2430
2431 * argv.c (buildargv, tests, main): Const-ify.
2432 * cp-demangle.c (operator_code): Likewise.
2433 * cplus-dem.c (optable, libiberty_demanglers,
2434 cplus_demangle_set_style, cplus_demangle_name_to_style,
2435 print_demangler_list): Likewise.
2436 * hashtab.c (higher_prime_number): Likewise.
2437 * strcasecmp.c (charmap): Likewise.
2438 * strerror.c (error_info, strerror, main): Likewise.
2439 * strncasecmp.c (charmap): Likewise.
2440 * strsignal.c (signal_info): Likewise.
2441
0e30ffc5
DD
24422001-09-29 DJ Delorie <dj@redhat.com>
2443
2444 * configure: Regenerate.
2445
576fb787
KG
24462001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2447
2448 * concat.c: Include stdlib.h.
2449
e922f978
EZ
24502001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2451
2452 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2453 @dircategory and @direntry directives. Add @finalout.
2454 (many nodes): Lose the next,prev,up pointers on the @nide line.
2455 (Using, Supplemental Functions, Replacement Functions): Fix
2456 markup.
2457 (Functions): Move around, to allow makeinfo to build the manual
2458 without next,prev,up pointers in thye node lines.
2459 (Licenses): Fix typos.
2460
2461 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2462 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2463 * functions.texi: Regenerate.
2464
2465 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2466 line.
2467
ae9092da
DD
24682001-09-27 DJ Delorie <dj@redhat.com>
2469
2470 * configure.in: Don't use in-tree texinfo, because libiberty must
2471 be built before it. Check for makeinfo version 4 or higher.
2472 * functions.texi: Regenerate.
fae8182a 2473
aaa5f039
DD
24742001-09-20 DJ Delorie <dj@redhat.com>
2475 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 2476
aaa5f039
DD
2477 * configure.in (MAKEINFO, PERL): Detect these.
2478 (--enable-maintainer-mode): Add.
2479 * configure: Regenerate.
2480 * Makefile.in (MAKEINFO, PERL): Define.
2481 (libiberty.info, libiberty.dvi, libiberty.html): New.
2482 (CFILES): Add bsearch.c.
2483 (CONFIGURED_OFILES): New, list of objects configure might add.
2484 (maint-missing, maint-buildall): New, for maintainers only.
2485 (clean, mostlyclean): Add info/dvi/html files.
2486 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2487 * gather-docs: New, for maintainers.
2488 * maint-tool: New, for maintainers.
2489 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2490 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2491 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2492 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2493 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2494 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2495 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2496 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2497 documentation.
fae8182a 2498
c1766881
KG
24992001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2500
2501 * concat.c (reconcat): Fix for traditional C.
2502
ad43d46f
KG
25032001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2504
2505 * concat.c (reconcat): New function.
2506
c1d49704
KG
25072001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2508
c793eea7
KG
2509 * concat.c (vconcat_length, vconcat_copy, concat_length,
2510 concat_copy, concat_copy2): New functions.
2511 (concat): Use vconcat_length/vconcat_copy.
2512
c1d49704
KG
2513 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2514 Define.
2515
7a98d9b2
KG
25162001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2517
2518 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2519 VA_FIXEDARG & VA_CLOSE.
fae8182a 2520
7a98d9b2
KG
2521 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2522 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2523 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2524
e2dff3f2
KG
25252001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2526
2527 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2528
d0708dc1
UD
25292001-08-23 Ulrich Drepper <drepper@redhat.com>
2530
2531 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2532
25332001-08-23 Ulrich Drepper <drepper@redhat.com>
2534
2535 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2536 instead of mbrtowc.
2537 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2538 wcslen, and __wcscoll instead of wcscoll.
2539
ffb9435b
MK
25402001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2541
de78f58b
AJ
2542 * fibheap.c (fibheap_init, fibnode_init): Remove.
2543 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2544 initialize memory.
2545 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 2546
f379eac3
RH
25472001-08-21 Richard Henderson <rth@redhat.com>
2548
2549 * Makefile.in (fibheap.o): Depend on config.h.
2550 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2551 functions for inlining.
2552
b1c45ae4
CF
2553Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2554
2555 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2556 hosting on cygwin.
2557 * configure: Regenerate.
2558
0310e5ac
AC
25592001-08-20 Andrew Cagney <ac131313@redhat.com>
2560
2561 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2562 HARRIS_FLOAT_FORMAT.
2563 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2564 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2565 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2566 (floatformat_m88110_harris_ext): New float formats.
2567
8c23e0a4
DB
25682001-08-20 Daniel Berlin <dan@cgsoftware.com>
2569
2570 * fibheap.c: New file. Fibonacci heap.
2571
2572 * Makefile.in (CFILES): Add fibheap.c.
2573 (REQUIRED_OFILES): Add fibheap.o.
2574 (fibheap.o): Add dependencies for fibheap.o.
2575
91625004
CF
25762001-08-17 Christopher Faylor <cgf@cygnus.com>
2577
2578 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2579 * configure: Regenerate.
2580
9e0ba685
RH
25812001-08-16 Richard Henderson <rth@redhat.com>
2582
2583 * hashtab.c (htab_hash_string): New.
2584
d80dedbe
AC
25852001-08-13 Andrew Cagney <ac131313@redhat.com>
2586
2587 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2588 name.
2589
ccea0d85
IH
25902001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2591
2592 * regex.c (wcs_regex_compile): Use appropriate string
2593 to compare with collating element.
2594 Fix the padding for the alignment.
2595
b0e9bc8c 25962001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
2597
2598 * lbasename.c (lbasename): Change function definition to return a
2599 const char pointer.
2600
056400f1
JM
26012001-08-07 Jason Merrill <jason_merrill@redhat.com>
2602
2603 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2604 for".
2605
4e627c41
RH
26062001-08-03 Richard Henderson <rth@redhat.com>
2607
2608 * Makefile.in (concat.o): Depend on config.h.
2609
b6a2f884
AJ
26102001-07-30 Andreas Jaeger <aj@suse.de>
2611
2612 * concat.c: Include "config.h".
2613
c4b9cfe0
AJ
26142001-07-30 Andreas Jaeger <aj@suse.de>
2615
2616 * regex.c: Declare wcs functions only if compiling with
2617 MBS_SUPPORT.
2618 Don't use #elif for traditional C.
2619
26202001-07-23 Ulrich Drepper <drepper@redhat.com>
2621
2622 * regex.c: Revamp memory allocation for WCHAR functions to
2623 not use too much stack.
2624
26252001-07-30 Andreas Jaeger <aj@suse.de>
2626
2627 * regex.c: Declare wcs functions only if compiling with
2628 MBS_SUPPORT.
2629 Don't use #elif for traditional C.
2630
2cf50fd3
DJ
26312001-07-25 Daniel Jacobowitz <drow@mvista.com>
2632
2633 * Makefile.in (regex.o): Add dependency on config.h.
2634
27ffc806
DD
26352001-07-18 Andreas Schwab <schwab@suse.de>
2636
2637 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2638 underscore character.
2639
26402001-07-18 Ulrich Drepper <drepper@redhat.com>
2641
2642 * regex.c: Limit string length printed in debug messages to 100
2643 chars.
2644
26452001-07-18 Andreas Jaeger <aj@suse.de>
2646
2647 * regex.c: Place under LGPL version 2.1.
2648
dd771632
JJ
26492001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2650
2651 * Makefile.in: Add support for regex code.
2652 * regex.c: New file.
2653
29650b2b
MK
26542001-07-05 Mark Klein <mklein@dis.com>
2655
2656 * Makefile.in: Add ffs.c dependency.
2657 * configure.in: Add ffs.c.
2658 * ffs.c: New file.
2659
c8b28221
RH
26602001-06-18 Richard Henderson <rth@redhat.com>
2661
2662 * concat.c: Include <sys/types.h>.
2663
473c2d0b
LR
26642001-06-11 Loren J. Rittle <ljrittle@acm.org>
2665
a4c03da2 2666 bootstrap/3106
473c2d0b
LR
2667 * strerror.c (sys_nerr): Hide the OS header version.
2668 * strsignal.c (sys_nsig): Likewise.
2669
0bdcca68
RH
26702001-06-10 Richard Henderson <rth@redhat.com>
2671
2672 * concat.c: Include string.h. Fix int vs size_t usage.
2673 Simplify the iteration loops. Use memcpy.
2674
6de133d3
MK
26752001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2676
2677 * partition.c: Fix misspelling of `implementation'.
2678
8a153288
TS
26792001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2680
2681 * md5.c (md5_init_ctx): Declare constants as unsigned.
2682 (md5_process_block): Likewise.
2683
641b2721
ZW
26842001-05-07 Zack Weinberg <zackw@stanford.edu>
2685
2686 * cp-demangle.c (demangle_v3_with_details,
2687 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2688 function definition.
2689 * ternary.c: Use K+R style function definitions. Use PTR, not
2690 void *. Make arguments constant where possible.
2691
5cdba4ff
MM
26922001-05-07 Mark Mitchell <mark@codesourcery.com>
2693
2694 * splay-tree.h (splay_tree_max): New function.
2695 (splay_tree_min): Likewise.
2696
9dab060e
DB
26972001-04-15 Daniel Berlin <dan@cgsoftware.com>
2698
2699 * ternary.c: New file - Ternary search tree implementation.
2700
2701 * Makefile.in: Add ternary.o, and ternary.c dependencies.
2702
d02af173
ZW
27032001-04-03 Zack Weinberg <zackw@stanford.edu>
2704
2705 * make-temp-file.c (try): Inline.
2706
94b68558
RH
27072001-02-28 Richard Henderson <rth@redhat.com>
2708
2709 * Makefile.in (make-temp-file.o): Depend on config.h.
2710
27f66c0b
KG
27112001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2712
2713 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2714
f1a0345c
JJ
27152001-03-23 Jakub Jelinek <jakub@redhat.com>
2716
2717 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2718 `_' not followed by a digit is invalid.
2719
a519fba6
JB
27202001-03-22 Jim Blandy <jimb@redhat.com>
2721
2722 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2723 instead of free, to free the contents as well as the string
2724 structure.
2725
49ee944b
ZW
27262001-03-21 Zack Weinberg <zackw@stanford.edu>
2727
2728 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2729 Don't default P_tmpdir to anything. Try /var/tmp before
2730 /usr/tmp.
2731
33437dc7
ZW
27322001-03-20 Zack Weinberg <zackw@stanford.edu>
2733
2734 * choose-temp.c: Split off make_temp_file, and the code
2735 duplicated between it and choose_temp_base, into...
2736 * make-temp-file.c: ... here; new file.
2737
2738 * Makefile.in (CFILES): Add make-temp-file.c.
2739 (REQUIRED_OFILES): Add make-temp-file.o.
2740
7dce2eff
JB
27412001-03-20 Jim Blandy <jimb@redhat.com>
2742
2743 * cp-demangle.c (struct demangling_def): New fields:
2744 is_constructor and is_destructor.
2745 (demangling_new): Initialize them.
2746 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2747 or destructor.
2748 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2749 is_gnu_v3_mangled_dtor): New functions.
2750
e03a61f1
JM
27512001-03-20 Jason Merrill <jason@redhat.com>
2752
2753 * cplus-dem.c (main): Skip initial $.
2754
8860ddab
MM
27552001-03-15 Michael Meissner <meissner@redhat.com>
2756
2757 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2758 might be a signed integer under pre-ISO C systems.
2759
2b757d51
NB
27602001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2761 John David Anglin <dave@hiauly1.hia.nrc.ca>
2762
2763 * libiberty/lbasename.c: New file.
2764 * libiberty/Makefile.in: Update for lbasename.
2765
1f50aafb
ZW
27662001-03-06 Zack Weinberg <zackw@stanford.edu>
2767
2768 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2769 * configure.in: Replace all alloca logic with a simple use of
2770 the above new macro.
2771 * config.table: Kill *-*-beos* entry.
2772 * config/mh-beos: Delete.
2773 * configure, config.in: Regenerate.
2774
2775 * Makefile.in (ALLOCA, HFILES): Kill.
2776 (REQUIRED_OFILES): Add alloca.o.
2777 (alloca.o): Depend on libiberty.h.
2778 (argv.o): Don't depend on alloca-conf.h.
2779 * alloca-conf.h: Delete.
2780 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2781 blocks. Provide the C alloca unconditionally. Use PTR where
2782 appropriate. Make i00afunc static.
2783 * argv.c: Don't include alloca-conf.h.
2784
d9fd5aae
JDA
27852001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2786
2787 * cplus-dem.c (main): Cast enum style to int.
2788
4031ed65
LR
27892001-02-16 Loren J. Rittle <ljrittle@acm.org>
2790
2791 * cplus-dem.c (main): Initialize style.
2792
2ca46e8a
PE
27932001-02-02 Phil Edwards <pme@sources.redhat.com>
2794
2795 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2796
3b60dd8e
BM
27972001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2798
2799 Add support for Java demangling under the v3 ABI:
2800 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2801 (struct demangling_def): Add `style' field.
2802 (demangling_new): New parameter `style'. Set it in demangling_t.
2803 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2804 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2805 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2806 (main): Call cp_demangle with extra parameter.
2807 (java_demangle_v3): New function.
2808 (java_builtin_type_names): New. Table of primitive type names used
2809 for Java demangling.
2810 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2811 Java output.
1f50aafb 2812 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
2813 demangling.
2814 (long_options): Remove obsolete `java' option.
2815 (main): Remove explicit handling of `java' option. Instead, pass style
2816 parameter in cplus_demangle flags as gdb does.
2817 * testsuite/demangle.expected: Add some Java test cases.
2818
584932e9
DD
28192000-12-29 DJ Delorie <dj@redhat.com>
2820
2821 * fnmatch.c: Make the note about the origins of this file more
2822 accurate, at least until we can sync with glibc.
2823 * getopt.c: Ditto.
2824 * getopt1.c: Ditto.
2825 * md5.c: Ditto.
2826 * obstack.c: Ditto.
2827
dac45916
MS
28282000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2829
2830 * bsearch.c: New file.
2831 * configure.in (funcs): Add bsearch.
2832 (AC_CHECK_FUNCS): Likewise.
2833 * configure, config.in: Regenerate.
2834
a8e4a997
MS
28352000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2836
2837 * safe-ctype.c: #include "ansidecl.h".
2838 * strtod.c: Likewise.
2839
75444da7
MS
28402000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2841
2842 * strtoul.c: Include safe-ctype.h, not ctype.h.
2843
f6bbde28
ZW
28442000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2845
2846 * safe-ctype.c: New file.
2847 * Makefile.in (CFILES): Add safe-ctype.c.
2848 (REQUIRED_OFILES): Add safe-ctype.o.
2849
2850 * argv.c: Define ISBLANK and use it, not isspace.
2851 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2852 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2853 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2854 before calling TOLOWER(c)/TOUPPER(c).
2855
6c1ce62b 28562000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
2857
2858 * Makefile.in (distclean): When cleaning, remove testsuite.
2859
b5d1497d
JM
28602000-12-05 Jason Merrill <jason@redhat.com>
2861
2862 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2863 name before allocating the dyn_string.
2864
c6e13630
JM
28652000-12-04 Jason Merrill <jason@redhat.com>
2866
2867 * cp-demangle.c: s/new_abi/v3/.
2868 * cplus-dem.c: Likewise.
2869 (current_demangling_style): Now auto_demangling.
2870 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 2871 (main): Use standard symbol chars for auto_demangling.
c6e13630 2872
a4c9b97e
MM
28732000-11-26 Mark Mitchell <mark@codesourcery.com>
2874
2875 * hashtab.c (higher_prime_number): Use a table, rather than a
2876 seive, to find the next prime.
2877
3b3bd9a7
L
28782000-11-22 H.J. Lu <hjl@gnu.org>
2879
2880 * cplus-dem.c (main): Handle gnat_demangling.
2881
d1209685
ZW
28822000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2883
2884 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2885 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2886 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2887 argument form of AC_DEFINE in dummy definitions block. Use
2888 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2889 in dummy block. Preload cache variables instead of bypassing
2890 tests, where possible.
2891 * acconfig.h: Removed.
2892
2893 * xmalloc.c (xmalloc_failed): New function, does error
2894 reporting on failed allocation.
2895 (xmalloc, xcalloc, xrealloc): Use it.
2896
cf183ac2
HPN
28972000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2898
2899 * cplus-dem.c (cplus_demangle): Fix formatting.
2900 (grow_vect): Ditto.
2901 (ada_demangle): Ditto.
2902 (internal_cplus_demangle): Ditto.
2903 (mop_up): Ditto.
2904
29052000-11-21 H.J. Lu <hjl@gnu.org>
2906
2907 * cplus-dem.c (main): Handle java_demangling.
2908
8bcc782c
KG
29092000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2910
2911 * cplus-dem.c (grow_vect): Prototype.
2912 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2913
29120f44
HPN
29142000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2915
2916 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2917 parameter `option'.
2918
0437a5a8
KB
29192000-11-15 Kenneth Block <kenneth.block@compaq.com>
2920
9e038f71 2921 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
2922 be used in GCC.
2923
eab0c1ab 29242000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 2925
29120f44 2926 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
2927 list.
2928
d50d20ec
HPN
29292000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2930
2931 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
2932 xcalloc depending on htab->return_allocation_failure. Return zero
2933 if calloc fails.
d50d20ec
HPN
2934 (htab_create): Update comment to cover memory allocation.
2935 (htab_try_create): New.
2936 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 2937 Update comment to cover this.
d50d20ec 2938
35e9340f
HPN
29392000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2940
2941 * hashtab.c: Change void * to PTR where necessary.
2942 (htab_create, htab_expand): Correct formatting of comment before
2943 function.
2944
ea343d1a 29452000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
2946
2947 * cp-demangle.c (string_list_def): Add caret_position and comments.
2948 (result_caret_pos): New macro.
2949 (result_append_string): Rename to...
2950 (result_add_string): ... this, and insert at caret position.
d1209685 2951 Rename throughout.
0870bfd6
AS
2952 (result_append): Rename to...
2953 (result_add): ... this, and insert at caret position. Rename
d1209685 2954 throughout.
0870bfd6
AS
2955 (result_append_char): Rename to...
2956 (result_add_char): ... this, and insert at caret position. Rename
d1209685 2957 throughout.
0870bfd6
AS
2958 (result_append_space): Remove.
2959 (string_list_new): Initialize caret position.
2960 (result_add_separated_char): Use caret position.
2961 (result_get_caret): New funtion.
2962 (result_set_caret): Likewise.
2963 (result_shift_caret): Likewise.
2964 (result_previous_char_is_space): Likewise.
2965 (substitution_start): Use caret position.
2966 (substitution_add): Likewise.
2967 (demangling_new): Initialize caret position.
2968 (demangle_encoding): Use caret position.
d1209685 2969 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
2970 (demangle_type_ptr): Use switch statement. Handle pointers to
2971 arrays. Don't use result_append_space. Use caret position.
2972 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
2973 call to demangle_array_type.
2974 (demangle_array_type): Add parameter to handle pointers to arrays.
2975
f15b9af9
MM
29762000-10-01 Mark Mitchell <mark@codesourcery.com>
2977
2978 * splay-tree.c (splay_tree_insert): Fix formatting.
2979
8f17b5c5
MM
29802000-09-16 Mark Mitchell <mark@codesourcery.com>
2981
2982 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2983
4eaa189a
MS
29842000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2985
2986 * splay-tree.c: #include <stdio.h>.
2987
29791078
HPN
29882000-09-14 Hans-Peter Nilsson <hp@axis.com>
2989
2990 * testsuite/demangle-expected: Add two tests for anonymous
2991 namespaces.
2992 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2993
2c9f4db7
MM
29942000-09-10 Mark Mitchell <mark@codesourcery.com>
2995
2996 * splay-tree.c (splay_tree_predecessor): New function.
2997 (splay_tree_successor): Likewise.
2998
bb22da4b
HPN
29992000-09-10 Hans-Peter Nilsson <hp@axis.com>
3000
3001 * testsuite/demangle-expected: Add four tests for type_info
3002 mangling.
bb22da4b
HPN
3003 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
3004 for a non-template non-qualified type_info function or node.
3005
759e8187
AS
30062000-09-08 Alex Samuel <samuel@codesourcery.com>
3007
3008 * cp-demangle.c: Fix copyright banner.
3009
2ecd81ef
MS
30102000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3011
3012 * md5.c: #include "ansidecl.h".
3013
d93998ec
AS
30142000-09-06 Alex Samuel <samuel@codesourcery.com>
3015
3016 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
3017 (demangle_type): Handle substitution candidates correctly in the
3018 face of special substitutions.
3019
1056d228
AS
30202000-09-05 Alex Samuel <samuel@codesourcery.com>
3021
3022 * cp-demangle.c (demangle_encoding): Rename variable.
3023 (demangle_name): Rename parameter. Handle return type
3024 suppression.
3025 (demangle_nested_name): Rename parameter.
3026 (demangle_prefix): Likewise. Change return type suppression.
3027 (demangle_unqualified_name): Add parameter. Flag constructors and
3028 conversion operators.
3029 (demangle_special_name): Fix comment.
3030 (demangle_type): Rename variable.
3031 (demangle_bare_function_type): Check for missing return type and
d1209685 3032 parameter.
1056d228
AS
3033 (demangle_class_enum_type): Rename parameter.
3034 (demangle_discriminator): Fix misspelling in comment.
3035
2f31ed7e
DD
30362000-08-31 DJ Delorie <dj@redhat.com>
3037
3038 * configure.in (Cygwin): special case cygwin only when we're
3039 building cygwin, not when we're hosting cygwin.
3040
02bcb9c6
AS
30412000-09-04 Alex Samuel <samuel@codesourcery.com>
3042
3043 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
3044 <expression>.
3045
aee749cf
AS
30462000-09-04 Alex Samuel <samuel@codesourcery.com>
3047
3048 * cp-demangle.c (demangle_type_ptr): Increment position past
3049 pointer and reference characters.
3050
92a16bbe
AS
30512000-09-04 Alex Samuel <samuel@codesourcery.com>
3052
3053 * cp-demangle.c (demangle_nv_offset): New function.
3054 (demangle_v_offset): Likewise.
3055 (demangle_call_offset): Likewise.
3056 (demangle_special_name): Update thunk demangling to comply with
3057 ABI changes.
d1209685 3058
31e0ab1f
AS
30592000-09-03 Alex Samuel <samuel@codesourcery.com>
3060
3061 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
3062 (substitution_def): Remove template_parm_number.
3063 (NOT_TEMPLATE_PARM): Remove.
3064 (result_insert_string): New macro.
3065 (result_insert): Likewise.
3066 (result_insert_char): Likewise.
3067 (substitution_add): Remove last parameter. Don't store template
d1209685 3068 parm number.
31e0ab1f
AS
3069 (BFT_NO_RETURN_TYPE): Define as NULL.
3070 (demangle_encoding): Adjust call to demangle_bare_function_type.
3071 (demangle_name): Adjust substitution. Adjust call to
d1209685 3072 substitution_add.
31e0ab1f
AS
3073 (demangle_prefix): Adjust call to substitution_add.
3074 (demangle_identifier): Handle anonymous namespaces.
3075 (demangle_operator_name): Change demangling of vendor-extended
3076 operator to match ABI changes.
3077 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 3078 substitutions here.
31e0ab1f
AS
3079 (demangle_type): Adjust calls to demangle_template_param,
3080 substitution_add, and demangle_type_ptr. Fix substitution of
3081 templated types.
3082 (demangle_function_type): Change parameter to a pointer.
3083 (demangle_bare_function_type): Likewise. Adjust insertion point.
3084 (demangle_template_param): Remove last parameter.
3085 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 3086 demangle_template_param.
31e0ab1f
AS
3087 (is_mangled_char): Accept `$' and `.'.
3088 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
3089 * dyn-string.c (dyn_string_insert_char): New function.
3090
ccbc3eb7
HPN
30912000-08-31 Hans-Peter Nilsson <hp@axis.com>
3092
3093 * testsuite/demangle-expected: Add nine tests for
3094 underscore-after-number followed by five tests for name-signature
3095 delimiter.
3096
53dce582
RH
30972000-08-28 Richard Henderson <rth@cygnus.com>
3098
3099 * Makefile.in (md5.o): Depend on config.h.
3100
881c6935
JM
31012000-08-28 Jason Merrill <jason@redhat.com>
3102
3103 * Makefile.in (REQUIRED_OFILES): Add md5.o.
3104 (CFILES): Add md5.c.
3105 * md5.c: New file.
3106
a440fd19
AS
31072000-08-27 Alex Samuel <samuel@codesourcery.com>
3108
3109 * cp-demangle.c (demangle_name): Initialize template_p in local
3110 name case. Don't re-add substitutions as candidates.
3111 (demangle_nested_name): Use <unqualified-name>.
3112 (demangle_prefix): Likewise. Don't add template names as
3113 substitution candidates twice, or re-add a substitution or the
3114 last prefix component.
3115 (demangle_local_name): Adjust output format.
3116
d01ce591
AS
31172000-08-25 Alex Samuel <samuel@codesourcery.com>
3118
3119 * cp-demangle.c (result_add_separated_char): Change parameter to
3120 int.
3121 (substitution_add): Don't check for duplicates. Check if
3122 previously allocated size is zero.
3123 (demangle_name): Remove duplicate check for std substitution.
3124 Clear template flag appropriately.
3125 (demangle_prefix): Remove argument to demangle_substitution.
3126 Don't check that template flag is already set.
3127 (demangle_operator_name): Add pt operator.
3128 (demangle_type): Don't treat r as built-in type. Remove argument
3129 to demangle_substitution. Fix substitution candidate mechanics.
3130 Handle <template-template-parm>s. Improve comments.
d1209685 3131 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
3132 (demangle_substitution): Remove parameter.
3133 (print_usage): Remove extra fprintf option.
3134
2f59c8eb
GM
31352000-08-24 Greg McGary <greg@mcgary.org>
3136
3137 * libiberty/random.c (end_ptr): Revert previous change.
3138
2f26c11d
GM
31392000-08-24 Greg McGary <greg@mcgary.org>
3140
3141 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
3142 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
3143 * libiberty/random.c (end_ptr): Likewise.
3144
e282c9c9
AS
31452000-08-23 Alex Samuel <samuel@codesourcery.com>
3146
3147 * cp-demangle.c (result_close_template_list): Remove function.
3148 (result_add_separated_char): New function.
3149 (result_open_template_list): New macro.
3150 (result_close_template_list): Likewise.
3151 (demangle_prefix): Don't set template_p if the
3152 prefix ends with a ctor name.
3153 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
3154 (demangle_type): Check for template args after substitution.
3155 (demangle_template_args): Use result_open_template_list.
d1209685 3156
c9b6494a
ZW
31572000-08-02 Zack Weinberg <zack@wolery.cumb.org>
3158
3159 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
3160
d1209685 31612000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
3162
3163 * config/mh-openedition.h: Added -DLE370 definition.
3164
0aab2795
ME
31652000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
3166
3167 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
3168 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
3169 Cast program to 'char *' in errmsg_arg assignment.
3170 (PWAIT_ERROR): Define.
3171 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
3172 to DJGPP's WIF* macros.
3173
c2f275e4
RB
31742000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
3175 Jeff Law <law@cygnus.com>
3176
73aa9564
RB
3177 * getcwd.c: Include string.h, stdlib.h for prototypes
3178
c2f275e4 3179 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
3180 * rename.c: Include config.h, unistd.h
3181 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 3182
ccbc3eb7
HPN
31832000-07-24 Hans-Peter Nilsson <hp@axis.com>
3184
3185 * cplus-dem.c (work_stuff_copy_to_from): New.
3186 (delete_non_B_K_work_stuff): New.
3187 (delete_work_stuff): New.
3188 (mop_up): Break out work_stuff partly destruction to
3189 delete_non_B_K_work_stuff.
3190 (iterate_demangle_function): New.
3191 (demangle_prefix): Call iterate_demangle_function instead of
3192 demangle_function_name. Leave handling of name-signature
3193 __-delimiters to iterate_demangle_function.
3194 (demangle_integral_value): Strip an optional
3195 following underscore cautiously. Handle negative numbers.
3196
3388651c
DB
31972000-07-24 Daniel Berlin <dberlin@redhat.com>
3198
d1209685 3199 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
3200 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3201
0fac482e
AS
32022000-07-21 Alex Samuel <samuel@codesourcery.com>
3203
3204 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3205 allocating ctor mangling.
3206 (demangle_array_type): Handle empty and non-constant array length.
3207
8502a100 32082000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
3209 Jeff Law <law@cygnus.com>
3210
c6451ce1
MS
3211 * configure.in (AC_CHECK_HEADERS): Add time.h.
3212 (AC_HEADER_TIME): Add check.
3213 * configure, config.in: Regenerate.
3214 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3215
cd447360
MS
3216 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3217 * configure, config.in: Regenerate.
3218 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3219 * strtol.c, strtoul.c: #include "config.h". Portably #include
3220 <limits.h> and/or <sys/param.h>.
3221 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 3222
3b58c099
MS
3223 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3224 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3225 * configure, config.in: Regenerate.
3226 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3227
8502a100
MS
3228 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3229
da0c7743
MS
32302000-07-21 Mike Stump <mrs@wrs.com>
3231
3232 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 3233 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 3234
838f8562
KG
32352000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3236
3237 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3238
3239 * setenv.c (setenv): Initialize variable `ep'.
3240
3241 * sigsetmask.c (abort): Prototype.
3242
3243 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3244 __STDC__ for stdarg.h include.
3245 (int_vasprintf): Prototype.
3246 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3247 definition. Cast `global_total_width' in comparison.
3248 (main): Prototype. Return a value.
3249
3250 * vfork.c (fork): Prototype.
3251
3252 * xexit.c: Include config.h.
3253
e9958132
JM
32542000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3255
3256 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3257 and print it with %u.
3258
39a6492f
HPN
32592000-07-17 Hans-Peter Nilsson <hp@axis.com>
3260
3261 * testsuite/regress-demangle (failed test): Show result and
3262 expected output.
3263
6d0be369
AH
32642000-07-07 Andrew Haley <aph@cygnus.com>
3265
3266 * cplus-dem.c (main): fflush() after emitting last char before
3267 waiting for input.
3268
bece74bd
AS
32692000-06-28 Alex Samuel <samuel@codesourcery.com>
3270
3271 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3272 (demangle_name): Handle <substitution> followed by
3273 <unqualified-template-name>.
3274 (demangle_type): Follow special substitutions with
3275 <class-enum-type>
3276 (demangle_subtitution): Set template_p for special substitutions.
3277 (main): Fix typos.
d1209685 3278
229b8ec7
AS
32792000-06-27 Alex Samuel <samuel@codesourcery.com>
3280
3281 * cp-demangle.c (demangle_special_name): Swap base and derived
3282 class when demangling construction vtables.
3283
051664b0
AS
32842000-06-21 Alex Samuel <samuel@codesourcery.com>
3285
3286 * cp-demangle.c: Don't include ctype.h.
3287 (IS_DIGIT): New macro.
3288 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3289 instead of isdigit and isalpanum.
3290 (demangling_def): Make name and next const pointers.
3291 (STATUS_ALLOCATION_FAILED): New status code.
3292 (dyn_string_append_space): Handle failure in
3293 dyn_string_append_char.
3294 (int_to_dyn_string): Likewise. Change return value to status_t.
3295 (string_list_new): Handle failure of dyn_string_init.
3296 (result_close_template_list): Change return type to status_t.
3297 Handle failure in dyn_string_append.
3298 (result_push): Change return value to status_t. Handle failure in
3299 string_list_new. Handle failure of result_push throughout.
3300 (substitution_add): Change return value to status_t. Handle
3301 dyn_string failures. Handle failure of substitution_add
3302 throughout.
3303 (template_arg_list_new): Return NULL on allocation failure.
3304 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3305 Handle error result throughout.
3306 (result_append): Likewise.
3307 (result_append_char): Likewise.
3308 (result_append_space): Likewise.
3309 (demangling_new): Make argument a const pointer. Handle
3310 allocation failures.
3311 (demangle_template_args): Handle failure in template_arg_list_new
3312 and result_close_template_list.
3313 (demangle_discriminator): Return if int_to_dyn_string fails.
3314 (cp_demangle): Likewise.
3315 (cp_demangle_type): New function.
3316 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3317 memory allocation failure.
3318 (main): Likewise.
3319 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3320 IN_LIBGCC2.
3321 (dyn_string_init): Change return value to int. Handle
3322 RETURN_ON_ALLOCATION_FAILURE case.
3323 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3324 (dyn_string_release): Delete the dyn_string.
3325 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3326 (dyn_string_copy): Change return type to int.
3327 (dyn_string_copy_cstr): Likewise.
3328 (dyn_string_prepend): Likewise.
3329 (dyn_string_prepend_cstr): Likewise.
3330 (dyn_string_insert): Likewise.
3331 (dyn_string_insert_cstr): Likewise.
3332 (dyn_string_append): Likewise.
3333 (dyn_string_append_cstr): Likewise.
3334 (dyn_string_append_char): Likewise.
3335 (dyn_string_substring): Likewise.
d1209685 3336
fe06b696
ZW
33372000-06-09 Zack Weinberg <zack@wolery.cumb.org>
3338
3339 * cp-demangle.c (demangle_operator_name): Add spaces before
3340 names beginning with a letter: delete, delete[], new, new[],
3341 sizeof.
3342 (demangle_special_name): Handle TF <type> and TJ <type>.
3343
6223e158
PDM
3344Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3345
3346 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3347
48f3e29b
PDM
3348Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3349
3350 * cp-demangle.c (stdio.h): File included unconditionaly.
3351 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3352 * dyn-string.c (stdio.h): File included.
3353 * partition.c (partition_print): No `&' needed to take the address of
3354 a function.
3355
69197e7e
KG
33562000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3357
3358 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 3359
69197e7e
KG
3360 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3361
3362 * cp-demangle.c (demangle_char): Change parameter from char to int.
3363 (demangle_expression, demangle_expr_primary): Remove extra
3364 semi-colon in prototype.
3365
3366 * dyn-string.c (dyn_string_append_char): Change parameter from
3367 char to int.
3368
3369 * memcmp.c (memcmp): Constify.
3370
3371 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3372 __extension__.
3373
3374 * partition.c (elem_compare): Prototype. Don't cast away
3375 const-ness.
3376
3377 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 3378
7eb23b1f
KG
33792000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3380
3381 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3382
3383 * cp-demangle.c: Include demangle.h.
3384 (template_arg_list_new): DeANSIfy.
3385 (cp_demangle): Make static and add prototype.
3386 (operator_code, operators): Constify.
3387 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3388
3faa108c
AS
33892000-06-05 Alex Samuel <samuel@codesourcery.com>
3390
3391 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3392 unsigned char.
3393 (demangle_unqualified_name): Likewise.
3394 (demangle_number_literally): Likewise.
3395 (demangle_type): Likewise.
3396 (demangle_substitution): Likewise.
3397 (is_mangled_char): Likewise, for isalnum.
3398
69afa80d
AS
33992000-06-04 Alex Samuel <samuel@codesourcery.com>
3400
3401 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3402 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3403 (cp-demangle.o): New dependency.
3404 (dyn-string.o): Likewise.
3405
3406 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3407
3408 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3409 demangler.
3410 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3411 demangling mode.
3412 (gnu_new_abi_symbol_characters): New function.
3413 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3414 file.
3415 * cp-demangle.c: New file.
d1209685 3416
0b72c3df
AC
3417Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3418
3419 * floatformat.c: Add name to each floatformat field.
3420
270cea06
JL
3421Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3422
3423 * Makefile.in (objalloc.o): Depend on config.h
3424
d11ec6f0
ZW
34252000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3426
3427 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
3428 if HAVE_STRING_H.
3429 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3430 * objalloc.c: Include config.h. Include stdlib.h and don't
3431 declare malloc or free if HAVE_STDLIB_H.
3432 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3433 else declare malloc without prototype. Include string.h if
3434 HAVE_STRING_H, else declare memset without prototype. Don't
3435 include stddef.h.
3436
f8e2da56
MS
34372000-05-23 Mike Stump <mrs@wrs.com>
3438
3439 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 3440 -j3.
f8e2da56 3441
650f3068
DA
34422000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3443
3444 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3445
1d2da2e1
HB
34462000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3447
d1209685 3448 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
3449 probably zero, also eliminate a warning on alpha.
3450
47668d0a
DE
34512000-05-15 David Edelsohn <edelsohn@gnu.org>
3452
c7a79a32 3453 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
3454 on $(enable_shared).
3455
36348eab
JJ
34562000-05-10 Jakub Jelinek <jakub@redhat.com>
3457
3458 * config.table: Use mh-sparcpic for sparc*-*-*.
3459
209bbe34
NC
34602000-05-08 Nick Clifton <nickc@cygnus.com>
3461
3462 * Makefile.in (CFILES): Add strncmp.c.
3463 (NEEDED): Add strncmp.
3464
a85a47fb
KG
34652000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3466
3467 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3468 Cast the arguments to `islower' to `unsigned char'.
3469 (print_demangler_list): Prototype.
3470
4aef973c
PDM
3471Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3472
3473 * sort.c (UCHAR_MAX): Provide fallback definition.
3474
3b94497c
AO
34752000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3476
3477 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3478 SUBDIRS.
3479
24eaa47a
KB
34802000-04-28 Kenneth Block <block@zk3.dec.com>
3481 Jason Merrill <jason@casey.cygnus.com>
3482
d1209685
ZW
3483 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3484 (cplus_demangle_set_style): New function for setting style.
3485 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 3486
a9266bfa
KG
34872000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3488
3489 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3490
3491 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3492 (libiberty_AC_FUNC_STRNCMP): Invoke.
3493
3494 * strncmp.c: New file.
3495
8e02c4d0
JH
3496Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3497
3498 * hashtab.c (htab_expand): Add prototype.
3499 (find_empty_slot_for_expand): Likewise.
3500
4feeaae3
KG
35012000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3502
3503 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3504 match prototype.
3505 (htab_expand): Cast the return value of xcalloc.
3506
18a94a2f
MM
35072000-04-24 Mark Mitchell <mark@codesourcery.com>
3508
3509 * hashtab.c (hash_pointer): New function.
3510 (eq_pointer): Likewise.
3511 (htab_hash_pointer): New variable.
3512 (htab_eq_pointer): Likewise.
3513
eeb0656f
MM
35142000-04-23 Mark Mitchell <mark@codesourcery.com>
3515
b51024fc
MM
3516 * sort.c (sort_pointers): Fix endianness bugs.
3517
eeb0656f
MM
3518 * sort.c: New file.
3519 * Makefile.in (CFILES): Add sort.c
3520 (REQUIRED_OFILES): Add sort.o.
3521 (sort.o): New target.
3522
7277f72d
MS
35232000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3524
3525 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3526 4.3BSD systems.
3527
e38992e8
RK
3528Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3529
3530 * hashtab.c: Various minor cleanups.
3531 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3532 (htab_find_slot): Likewise.
3533
498e1ab1
DP
35342000-04-16 Dave Pitts <dpitts@cozx.com>
3535
3536 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 3537
dc17cc7b
RH
35382000-04-05 Richard Henderson <rth@cygnus.com>
3539
3540 * splay-tree.c (splay_tree_remove): New.
3541
b13eb66b
MM
35422000-03-30 Mark Mitchell <mark@codesourcery.com>
3543
3544 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3545 codes.
3546 (htab_find_with_hash): Likewise.
3547 (htab_find_slot_with_hash): Likewise.
d1209685 3548
0194e877
ZW
35492000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3550
3551 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3552 unless it will be used. Rearrange loop for better
3553 optimization.
3554 (higher_prime_number): Add static prototype.
3555
abc61fd4
JL
3556Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3557
3558 * Makefile.in (partition.o): Depend on config.h
3559
8c5d513f
BS
35602000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3561
3562 * hashtab.c (find_empty_slot_for_expand): New function.
3563 (htab_expand): Use it instead of htab_find_slot.
3564 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3565 argument HASH.
3566 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3567 (htab_find): New wrapper function.
3568 (htab_find_slot): Likewise.
3569 (htab_traverse): Pass slot, not entry, to called function.
3570
d9d4fb43
AS
35712000-03-09 Alex Samuel <samuel@codesourcery.com>
3572
3573 * Makefile.in (CFILES): Add partition.c.
3574 (REQUIRED_OFILES): Add partition.o.
3575 (partition.o): New rule.
3576 * partition.c: New file.
d1209685 3577
5dc9cffd
ZW
35782000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3579
3580 * hashtab.c (htab_create): Set del_f.
3581 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3582 Use it.
3583
5194cf08
ZW
35842000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3585
3586 * hashtab.c: Remove debugging variables (all_searches,
3587 all_collisions, all_expansions). Delete
3588 all_hash_table_collisions.
3589 (create_hash_table, delete_hash_table, empty_hash_table,
3590 find_hash_table_entry, remove_element_from_hash_table_entry,
3591 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3592 hash_table_elements_number, hash_table_collisions): Rename to:
3593 htab_create, htab_delete, htab_empty, htab_find_slot,
3594 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3595 htab_elements, htab_collisions.
3596 (htab_find): New function, handles common case where you don't
3597 plan to add or delete an entry.
3598 (htab_expand): Don't create a whole new table, just a new
3599 entry vector.
3600 (htab_find_slot): Simplify logic.
3601
5ad5a984
ILT
36021999-08-03 Ian Lance Taylor <ian@zembu.com>
3603
3604 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3605 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3606
3607 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3608 $(TARGETLIB)n so it works on MSDOS.
3609 (install_to_tooldir): Likewise.
3610
36111999-07-21 Ian Lance Taylor <ian@zembu.com>
3612
3613 From Mark Elbrecht:
3614 * makefile.dos: Remove; obsolete.
3615 * configure.bat: Remove; obsolete.
3616
36171999-07-11 Ian Lance Taylor <ian@zembu.com>
3618
3619 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3620 warning.
3621
aeecce42
MK
36222000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3623
3624 * pexecute.c: Conditionally include string.h.
5194cf08 3625 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 3626
1eaf7d9c
KG
36272000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3628
3629 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3630 we're using gcc.
3631
3632 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3633
0fadedb2
GK
36341999-12-27 Geoff Keating <geoffk@cygnus.com>
3635
3636 * vasprintf.c (int_vasprintf): Don't re-read the format character
3637 as this mishandles strings like '%%s'.
3638
08230f26
MM
36391999-12-05 Mark Mitchell <mark@codesourcery.com>
3640
3641 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3642 rather than struct splay_tree_node.
3643 (splay_tree_insert): Use struct splay_tree_s rather than struct
3644 splay_tree.
3645
6de9b8ff
PDM
3646Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3647
3648 * hashtab.c (sys/types.h): File included.
3649
f3636679
JM
36501999-11-22 Jason Merrill <jason@casey.cygnus.com>
3651
3652 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3653 BSD license, pursuant with
3654
3655 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3656
36dd3a44
JL
3657Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3658
3659 * hashtab.c: Include stdio.h.
3660
6e300472
JL
3661Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3662
3663 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3664
df548dfc
PDM
3665Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3666
3667 * xstrdup (sys/types.h): Include this file.
3668
2c375143
NS
36691999-10-28 Nathan Sidwell <nathan@acm.org>
3670
3671 * Makefile.in (SUBDIRS): New macro.
3672 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3673 avoid multiple subdirectory cleaning.
3674 (*-subdir): Use SUBDIRS.
3675
a82cecda
JK
36761999-10-25 Jim Kingdon <http://developer.redhat.com/>
3677
3678 * cplus-dem.c: Move declarations of standard_symbol_characters and
3679 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3680 warnings.
3681
ed38f5d5
ZW
36821999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3683
3684 * hashtab.c (find_hash_table_entry): When returning a
3685 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3686 (clear_hash_table_slot): New function which deletes an entry
3687 by its position in the table, not its value.
3688 (traverse_hash_table): New function which calls a hook
3689 function for every live entry in the table.
3690
b60fe4a7
MM
36911999-10-19 Mark Mitchell <mark@codesourcery.com>
3692
3693 * cplus-dem.c (INTBUF_SIZE): New macro.
3694 (string_append_template_idx): New function.
3695 (demangle_expression): Likewise.
3696 (demangle_integral_value): Use it.
3697 (demangle_real_value): New function, split out from ...
3698 (demangle_template_value_parm): ... here. Use
3699 string_append_template_idx. Use demangle_real_value.
3700 (demangle_template): Use string_append_template_idx.
3701 (demangle_qualified): Use consume_count_with_underscores.
3702 (get_count): Tweak formatting.
3703 (do_type): Use string_append_template_idx.
5194cf08 3704
3da5522a
KG
37051999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3706
3707 * calloc.c: Add a public domain notice.
3708
d7d36ea8
PDM
3709Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3710
3711 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3712
a2f945c6
VM
3713Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3714
3715 * Makefile.in (CFILES): Add hashtab.c
3716 (REQUIRED_OFILES): Add hashtab.o
3717 (hashtab.o): Add dependencies.
3718 * hashtab.c: New file
3719
7f22ec2e
MK
3720Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3721
3722 * basename.c (DIR_SEPARATOR): New macro.
3723 (DIR_SEPARATOR_2): Likewise.
3724 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3725 (IS_DIR_SEPARATOR): Likewise.
3726 (main): Handle MSDOS style pathname.
3727
7c56a6ce
MM
37281999-10-11 Mark Mitchell <mark@codesourcery.com>
3729
3730 * cplus-dem.c (do_type): Handle pointer to member types whose
3731 enclosing classes have namespace scope.
3732
cd32188b
ME
3733Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3734
3735 * config.table: Provide a backup shell for executing move-if-change.
3736
fc232f7a
MM
37371999-10-02 Mark Mitchell <mark@codesourcery.com>
3738
3739 * xmalloc.c (xmalloc): Fix spelling error.
3740 (xcalloc, xrealloc): Likewise.
3741
2a138827
KG
37421999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3743
3744 * cplus-dem.c (fancy_abort, demangle_integral_value,
3745 demangle_arm_hp_template, recursively_demangle,
3746 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3747 (program_name, program_version, fatal): Constify a char*.
3748 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3749 (main): Call return, not exit.
3750
5a657fc3
KG
37511999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3752
3753 * choose-temp.c: Remove obsolete comment about gcc.
3754 (make_temp_file): Constify a char*.
3755
33c5ddcd
KG
3756Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3757
3758 * xmemdup.c: Include sys/types.h.
3759
b10647f1
JG
37601999-09-07 Jeff Garzik <jgarzik@pobox.com>
3761
3762 * xmemdup.c: New xmemdup function.
3763 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3764
3dd6c3af
LV
3765Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3766
5194cf08 3767 * config.table: Add openedition target.
3dd6c3af
LV
3768 * config/mh-openedition: New file.
3769
19e28e2a
ME
3770Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3771
3772 * pexecute.c (pexecute): Fill in temp_base when needed.
3773
4dfeccf9
RH
37741999-08-31 Richard Henderson <rth@cygnus.com>
3775
3776 * getpwd.c: Check HAVE_GETCWD before defining it away.
3777
4ac3cb83
KG
37781999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3779
3780 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3781 (REQUIRED_OFILES): Add getpwd.o.
3782 (getpwd.o): Add target.
3783
3784 * configure.in (AC_PREREQ): Bump to 2.13.
3785 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3786
3787 * getpwd.c: New file, moved here from gcc.
3788
e797ff70
KG
37891999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3790
3791 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3792 comparing against a signed quantity.
3793 (arm_special): Likewise.
3794 (demangle_fund_type): Likewise.
3795 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 3796 ATTRIBUTE_UNUSED.
e797ff70
KG
3797 (main): Constify variable `valid_symbols'.
3798
55247fce
PDM
3799Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3800
3801 * strtoul.c (strtoul): Add parentheses around && within ||.
3802
76632dd0
DJ
3803Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3804
3805 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3806 libdir, libsubdir and tooldir.
3807
d080bbfa
MM
38081999-08-01 Mark Mitchell <mark@codesourcery.com>
3809
3810 * splay-tree.c (splay_tree_insert): Return the new node.
3811
a81c752a
RH
38121999-07-14 Richard Henderson <rth@cygnus.com>
3813
5194cf08 3814 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
3815 prototyping directly.
3816 * choose-temp.c: Conditionally include string.h.
3817
8f1824d9
JM
38181999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3819
3820 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3821
652374d3
ILT
38221999-07-11 Ian Lance Taylor <ian@zembu.com>
3823
3824 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3825 warning.
3826
a4494286
JM
38271999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3828
3829 * Makefile.in (needed-list): Only include stuff we actually need
3830 for libstdc++.
3831
90e72e20
AS
38321999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3833
3834 * configure.in (checkfuncs): Add gettimeofday.
3835 * config.in, configure: Regenerated.
3836
b569200e
MK
3837Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3838
3839 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3840 the test fails.
3841 * configure: Regenerate.
3842
73919448
MS
38431999-06-10 Mike Stump <mrs@wrs.com>
3844
3845 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3846 parallel builds.
3847
fee9125c
KG
38481999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3849
3850 * putenv.c: Include ansidecl.h to define `const'.
3851 * setenv.c: Likewise.
3852
71cce721
MN
3853Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3854
a7c9637f
JL
3855 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3856 * configure.in (funcs): Add putenv and setenv.
3857 (AC_CHECK_FUNCS): Check for putenv and setenv.
3858 * configure: Rebuilt.
3859 * putenv.c setenv.c: New files.
3860
71cce721
MN
3861 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3862 bytes of space using malloc.
3863
53504016
SG
3864Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3865
3866 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3867 the *mangled pointer beyond the end of the string. Clean up code to
3868 match prevailing coding style.
3869
34842539
MH
38701999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3871
3872 * tmpnam.c (L_tmpnam): Fix typo.
3873
3a08531d
ME
3874Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3875
3876 * cplus-dem.c (standard_symbol_characters): Renamed from
3877 standard_symbol_alphabet. No longer modify TABLE.
3878 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3879 modify TABLE.
3880 (main): Corresponding changes. Use strchr to determine if a
3881 character is valid.
3882
8db9d08b
JB
38831999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3884
3885 * cplus-dem.c (main): Use table lookup to distinguish identifier
3886 characters from non-identifier characters.
3887 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3888
6a071f4a
FF
3889Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3890
3891 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3892 * getruntime.c: Only attempt to include sys/resource.h and
3893 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3894 are defined.
3895
7dd88617
DT
3896Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3897
3898 * configure.in (alloca detection): Handle alloca directly for interix.
3899 * configure: Rebuilt.
3900
7a1528bc
MK
3901Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3902
3903 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3904
76409268
JB
39051999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3906
3907 Fix from Dale Hawkins:
5194cf08 3908 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
3909 reallocated properly if we use it again.
3910
3911 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3912 stricter about syntax. Always null-terminate string.
3913
acbbd80a
MK
3914Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3915
3916 * configure.in (checkfuncs): Check for sbrk.
3917 * config.in: Rebuilt.
3918 * configure: Likewise.
3919 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3920
92523551
JB
39211999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3922
3923 Fix from Marcus Daniels:
3924 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3925 identifier looking for another underscore.
3926
36eb4217
MK
3927Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3928
3929 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3930 * xmalloc.c: Likewise.
3931 (xcalloc): UWIN has sbrk.
3932 (xrealloc): Fix guard macro.
3933
2c45d1a0
RH
39341999-04-11 Richard Henderson <rth@cygnus.com>
3935
3936 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3937 or <alloca.h>.
3938 * clock.c (GNU_HZ): New definition.
3939 (clock): Use it.
3940 * getruntime.c: Likewise.
3941
3942 * config.table: Use mh-beos.
3943 * config/mh-beos: New file.
3944
391cdef0
MM
39451999-04-11 Mark Mitchell <mark@codesourcery.com>
3946
3947 * cplus-dem.c (demangle_template_value_parm): Handle
3948 pointers-to-members.
3949 (do_type): Handle template parameters as qualifiers.
3950
9d229989
JB
39511999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3952
3953 * cplus-dem.c: Attempt to handle overflows in counts with some
3954 semblance of grace.
3955 (consume_count): Detect overflows. Return -1 to indicate errors,
3956 instead of zero.
3957 (demangle_template_value_parm, demangle_template): Handle change
3958 to consume_count's return convention.
3959
7c72138a
TT
39601999-04-05 Tom Tromey <tromey@cygnus.com>
3961
3962 * testsuite/regress-demangle: New file.
3963 * testsuite/demangle-expected: New file.
3964
3965 * Makefile.in (all, check, installcheck, info, install-info,
3966 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3967 distclean, maintainer-clean, realclean): Depend on corresponding
3968 `-subdir' target.
3969 (all-subdir check-subdir installcheck-subdir info-subdir
3970 install-info-subdir clean-info-subdir dvi-subdir
3971 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3972 distclean-subdir maintainer-clean-subdir): New target.
3973 * testsuite/Makefile.in: New file.
3974 * configure: Rebuilt.
3975 * configure.in: Create testsuite/Makefile.
3976
ae7f7270
MM
39771999-04-02 Mark Mitchell <mark@codesourcery.com>
3978
3979 * splay-tree.h (splay_tree_compare_pointers): Define.
3980
30f72379
MM
39811999-03-30 Mark Mitchell <mark@codesourcery.com>
3982
3983 * splay-tree.c (splay_tree_compare_ints): Define.
3984
4cc48683
TT
39851999-03-30 Tom Tromey <tromey@cygnus.com>
3986
3987 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3988 don't advance input pointer.
3989 (demangle_class_name): If consume_count didn't find a count, do
3990 nothing. Don't bother with `strlen' sanity check; consume_count
3991 does it for us.
3992
3510075c
JL
39931999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3994
3995 From Art Haas <ahaas@neosoft.com>:
3996 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3997 when doing arm or hp style.
3998 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 3999
89f602a7
MK
4000Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
4001
4002 * pexecute.c (__CYGWIN32__): Rename to
4003 (__CYGWIN__): this.
4004 * xmalloc.c: Likewise.
4005
4006 Changes to support i386-pc-uwin.
4007 * configure.in (*-*-uwin*): Workaround for vfork bug.
4008 * configure: Regenerate.
4009 * pexecute.c (pexecute): Be like standard Unix.
4010 (pwait): Likewise.
4011 * xmalloc.c (first_break): Define.
4012 (xmalloc_set_program_name): Use.
4013 (xmalloc): Use.
4014
9346c824
FS
4015Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4016
4017 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
4018
3510075c
JL
4019Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
4020
4021 * config.table: Check cygwin*, not cygwin32*.
4022
8ec65f13
DB
4023Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
4024
4025 * Makefile.in: Change mkstemp -> mkstemps.
4026
687361c8
ME
4027Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
4028
4029 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
4030 * configure.in (funcs): Check for and conditionally add mkstemps to
4031 the list of functions libiberty will provide.
4032 * configure: Rebuilt.
5194cf08 4033
b207e09c
MK
4034Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
4035
5194cf08 4036 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
4037 platforms that don't have HZ.
4038 * getruntime.c (HZ): Likewise.
4039
16b4c15e
RH
4040Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
4041
4042 * Makefile.in (xstrdup.o): Depend on config.h.
4043
38beb75c
UD
4044Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
4045
4046 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
4047 freeing it.
4048
7e4311a3
KG
4049Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4050
4051 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
4052
3510075c
JL
4053Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4054
4055 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
4056 splay-tree.o.
4057
40581999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4059
4060 * configure.in: Require autoconf 2.12.1 or higher.
4061
fb9939b8
MM
40621998-12-30 Michael Meissner <meissner@cygnus.com>
4063
4064 * random.c (NULL): Don't redefine NULL if it is already defined.
4065
087aa398
KG
4066Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4067
4068 * argv.c (buildargv): Cast the result of alloca in assignment.
4069
4070 * choose-temp.c: Include stdlib.h.
38beb75c 4071
087aa398 4072 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
4073 (snarf_numeric_literal): Constify first parameter.
4074 (code_for_qualifier): Avoid a gcc extension, make the parameter an
4075 int, not a char.
087aa398
KG
4076 (demangle_qualifier): Likewise.
4077 (demangle_signature): Cast the argument of a ctype function to
4078 unsigned char.
4079 (arm_pt): Add parens around assignment used as truth value.
4080 (demangle_arm_hp_template): Constify variable `args'.
4081 (do_hpacc_template_const_value): Cast the argument of a ctype
4082 function to unsigned char.
4083 (do_hpacc_template_literal): Remove unused variable `i'.
4084 (snarf_numeric_literal): Constify parameter `args'.
4085 Cast the argument of a ctype function to unsigned char.
4086
4087 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 4088 avoid ambiguous `else'.
38beb75c 4089
087aa398 4090 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
4091 `cstart' and `cend' to unsigned char. Cast the argument of macro
4092 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
4093
4094 * objalloc.c (free): Add prototype.
4095
21f2174d
HPN
4096Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
4097
4098 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
4099
3510075c
JL
4100Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
4101
4102 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 4103 doesn't exist.
3510075c 4104 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 4105
e8fc8222
AM
4106Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4107
4108 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
4109 bumping the pointer we read from. Also prepend these codes,
4110 as we do in other places.
4111
3510075c
JL
41121998-12-18 Nick Clifton <nickc@cygnus.com>
4113
4114 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
4115 'const char *' in order to match its usage when calling siblings.
4116 (snarf_numeric_literal): Make first arg 'const char **' in order
4117 to match usage.
11a0bb74 4118
f4f30aa1
JL
4119Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4120
11a0bb74
KG
4121 * choose-temp.c: Don't check IN_GCC anymore.
4122
4123 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
4124 * memchr.c (memchr): Likewise.
4125 * memcpy.c (memcpy): Likewise.
4126 * memmove.c (memmove): Likewise.
38beb75c 4127
11a0bb74
KG
4128 * mkstemp.c: Don't check IN_GCC anymore.
4129 * pexecute.c: Likewise.
4130 * splay-tree.c: Likewise.
38beb75c 4131
11a0bb74
KG
4132 * strchr.c (strchr): Use `const', not `CONST'.
4133 * strrchr.c (strrchr): Likewise.
4134 * strtol.c (strtol): Likewise.
4135 * strtoul.c (strtoul): Likewise.
4136
70d5ccef
DT
4137Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
4138 Elena Zannoni <ezannoni@cygnus.com>
4139 Stan Shebs <shebs@cygnus.com>
4140 Edith Epstein <eepstein@cygnus.com>
4141 Andres MacLeod <amacleod@cygnus.com>
4142 Satish Pai <pai@apollo.hp.com>
4143
4144 * HP aCC demangling support.
4145 * cplus-dem.c
4146 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
4147 demangling correctly when -edg specified; set the demangling style
4148 when user specifies 'edg'. Set strip_underscore to
4149 prepends_underscore, if not HPUXHPPA. Set
4150 current_demangling_style to hp_demangling if HPUXHPPA. Set
4151 current demangling style correctly if the switch is hp. Read
4152 label correctly also in the HP style case.
70d5ccef 4153 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 4154 function.
70d5ccef 4155 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 4156 style for this case is the same as ARM.
70d5ccef
DT
4157 (demangle_args): handle EDG_DEMANGLING style; support HP style.
4158 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
4159 demangle_arm_pt.); check and set value of temp_start field in
4160 multiple places. Also, when ceching for end of template args,
4161 check to see if at end of static member of template class.
70d5ccef 4162 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 4163 include template args in string defining class.
70d5ccef
DT
4164 (demangle_class_name): use demangel_arm_hp_template.
4165 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
4166 HP_DEMANGLING and currently point at an 'X' in the mangled name.
4167 Handle EDG_DEMANGLING style. Handle constructor and destructor
4168 ops for HP style.
70d5ccef 4169 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
4170 styles. global destructor and constructor for HP style are same
4171 as for ARM style. Same for local variables.
70d5ccef
DT
4172 (demangle_qualified): handle EDG_DEMANGLING style.
4173 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
4174 cases '1' - '9' : initialize the temp_start field to -1 and handle
4175 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
4176 and AUTO_DEMANGLING styles. If expecting a function and managed
4177 to demangle the funct args, then handle the LUCID_DEMANGLING,
4178 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
4179 class name after "Lnnn_ in HP style case. HP style too needs to
4180 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 4181 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 4182 value param for HP/aCC.
70d5ccef 4183 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 4184 literal parameter for HP aCC.
70d5ccef
DT
4185 (recursively_demangle): new function
4186 (snarf_numeric_literal): new function.
4187 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 4188 to message.
70d5ccef 4189
8d525fa8
CF
4190Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
4191
4192 * pexecute.c: Remove obsolete ifdefed cygwin code.
4193
9b1a92d8
KG
4194Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4195
4196 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
4197 * cplus-dem.c: Likewise. Conform to libiberty.h.
4198 * pexecute.c: Likewise.
4199 * splay-tree.c: Likewise.
4200
c85c3232
MS
42011998-11-25 Mike Stump <mrs@wrs.com>
4202
4203 * Makefile.in (splay-tree.o): Add config.h dependency.
4204
35a6cd99
KG
4205Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4206
4207 * configure.in: Use AC_PREREQ(2.12.1).
4208
6e6e34b7
BK
42091998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
4210
5194cf08 4211 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 4212
59b67c11
JL
4213Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
4214
4215 * mpw.c (mpw_access): Add missing parens.
4216
a6458d1d
KG
4217Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4218
4219 * configure.in: Call AC_HEADER_SYS_WAIT.
4220
4221 * pexecute.c: Include sys/wait.h when !IN_GCC.
4222
3510075c
JL
4223Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
4224
4225 * pexecute.c: revert back to checking old Cygwin
4226 preprocessor symbol until some time has passed.
4227
4228Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
4229
4230 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4231 since it will now support similar constructs.
4232
a9acf741
KG
4233Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4234
4235 * configure.in: Check for calloc.
4236
4237 * calloc.c: New file.
4238
4239 * xmalloc.c (xcalloc): New function.
4240
a49fb37a
AM
4241Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4242
4243 *cplus-dem.c (demangle_prefix): Use the last "__"
4244 in the mangled name when looking for the signature. This allows
4245 template names to begin with "__".
4246
0e714131
MM
42471998-11-08 Mark Mitchell <mark@markmitchell.com>
4248
ec2288ff
MM
4249 * cplus-dem.c (type_kind_t): Add tk_reference.
4250 (demangle_template_value_parm): Handle it.
4251 (do_type): Use it for references, instead of tk_pointer.
4252
0e714131
MM
4253 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4254 not internal_cplus_demangle.
4255
2931b6d4
KG
4256Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4257
4258 * choose-temp.c: Don't include gansidecl.h.
4259 * mkstemp.c: Likewise.
4260 * pexecute.c: Likewise.
4261
dd8f3ed5
GN
4262Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4263
5194cf08
ZW
4264 * configure.in: detect cygwin* instead of cygwin32*
4265 * configure: regenerate
dd8f3ed5 4266
c5f7c445
KG
4267Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4268
4269 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
4270 whether to include config.h. Possibly include unistd.h in the
4271 !IN_GCC case. Define VFORK_STRING as a printable function call
4272 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
4273 defined, include vfork.h. If VMS is defined, define vfork()
4274 appropriately. Remove vfork check on USG, we're using autoconf.
4275 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
4276 locally what string to use.
c5f7c445 4277
ad3ef78e
MM
42781998-10-26 Mark Mitchell <mark@markmitchell.com>
4279
4280 * splay-tree.c: Tweak include directives to make sure declarations of
4281 xmalloc and free are available.
4282
224301c1
MM
42831998-10-25 Mark Mitchell <mark@markmitchell.com>
4284
4285 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4286 anonymous namespaces.
38beb75c 4287
d9db46fd
MM
42881998-10-23 Mark Mitchell <mark@markmitchell.com>
4289
4290 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
4291 with type_quals.
4292 (TYPE_UNQUALIFIED): New macro.
4293 (TYPE_QUAL_CONST): Likewise.
4294 (TYPE_QUAL_VOLATILE): Likewise.
4295 (TYPE_QUAL_RESTRICT): Likewise.
4296 (code_for_qualifier): New function.
4297 (qualifier_string): Likewise.
4298 (demangle_qualifier): Likewise.
4299 (internal_cplus_demangle): Use them.
4300 (demangle_signature): Likewise.
4301 (demangle_template_value_parm): Likewise.
4302 (do_type): Likewise.
4303 (demangle_fund_type)): Likewise.
224301c1 4304
b056ad1c
KG
4305Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4306
4307 * splay-tree.c (splay_tree_foreach_helper): Make definition static
4308 to match prototype.
4309
ed87f9c8
MM
43101998-10-21 Mark Mitchell <mark@markmitchell.com>
4311
4312 * splay-tree.c: New file.
4313 * Makefile.in (CFILES): Add it.
4314 (REQUIRED_OFILES): Likewise.
4315 (splay-tree.o): Add dependencies.
4316
e0c13971
AS
4317Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4318
4319 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
4320 range of 'K' index.
4321
91e0f659
KG
4322Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4323
4324 * choose-temp.c: Prototype mkstemps() when IN_GCC.
4325
4326 * cplus-dem.c (consume_count): Cast argument of ctype macro to
4327 `unsigned char'.
4328 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
4329 comparing against one.
4330 (cplus_mangle_opname): Likewise.
4331 (demangle_integral_value): Cast argument of ctype macro to
4332 `unsigned char'.
4333 (demangle_template_value_parm): Likewise.
4334 (demangle_template): Initialize variable `bindex'. Cast the
4335 result of `strlen' to (int) when comparing against one. Remove
4336 unused variable `start_of_value_parm'.
4337 (demangle_class_name): Cast the result of `strlen' to (int) when
4338 comparing against one.
4339 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
4340 (gnu_special): Likewise. Cast the result of `strlen' to (int)
4341 when comparing against one.
4342 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
4343 (get_count): Likewise.
4344 (do_type): Likewise. Cast the result of `strlen' to (int) when
4345 comparing against one.
4346 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
4347 (demangle_function_name): Cast the result of `strlen' to (int)
4348 when comparing against one.
4349
4350 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
4351 comparing against one.
4352
73aeb2ff
JL
4353Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
4354
5194cf08
ZW
4355 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
4356 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
4357 * config.in, configure: Rebuilt.
ae76f1be 4358
73aeb2ff
JL
4359 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
4360 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
4361 * config.in, configure: Rebuilt.
4362
dd8f3ed5
GN
4363Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4364
5194cf08 4365 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 4366
f77d8413
MT
4367Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
4368
4369 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4370
ca6b370d
JL
4371Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4372
4373 * Merge egcs & devo libiberty.
4374
ab4856b1
ML
4375