Refactor getting children name, value and type access
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
cc0732ba
BE
12007-01-12 Ben Elliston <bje@au.ibm.com>
2
0bbe7a79
BE
3 * pex-unix.c (writeerr): Cast write result to void.
4
cc0732ba
BE
5 * choose-temp.c (choose_temp_base): Check the result of the call
6 to mktemp rather than testing the length of the modified string.
2da20a1b 7
6ef6358e
GK
82006-12-20 Geoffrey Keating <geoffk@apple.com>
9
10 * cp-demangle.h: Add comment explaining what to do to avoid
11 overrunning string.
12 (d_check_char): New.
13 (d_next_char): Don't advance past trailing '\0'.
14 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
15 (d_nested_name): Likewise.
16 (d_special_name): Likewise.
17 (d_call_offset): Likewise.
18 (d_function_type): Likewise.
19 (d_array_type): Likewise.
20 (d_pointer_to_member_type): Likewise.
21 (d_template_param): Likewise.
22 (d_template_args): Likewise.
23 (d_template_arg): Likewise.
24 (d_expr_primary): Likewise.
25 (d_local_name): Likewise.
26 (d_substitution): Likewise.
27 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
28 * testsuite/test-demangle.c: Include sys/mman.h.
29 (MAP_ANONYMOUS): Define.
30 (protect_end): New.
31 (main): Use protect_end.
32 * testsuite/demangle-expected: Add testcases for overrunning
33 the end of the string.
34
d8f813d4
JR
352006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
36 J"orn Rennecke <joern.rennecke@st.com>
37
38 PR driver/29931
39 * make-relative-prefix.c (make_relative_prefix_1): New function,
40 broken out of make_relative_prefix. Make link resolution dependent
41 on new parameter.
42 (make_relative_prefix): Use make_relative_prefix_1.
43 (make_relative_prefix_ignore_links): New function.
44
fb347196
VP
452006-11-08 Vladimir Prus <vladimir@codesourcery.com>
46
47 * pex-win32.c (no_suffixes): Remove.
48 (std_suffixes): Add "" as first element.
49 (find_executable): Remove detection of already-present
50 extension. Try all suffixes in std_suffixes.
3c9f59e4 51
9e59254c
JB
522006-11-07 Julian Brown <julian@codesourcery.com>
53
54 * floatformat.c (get_field): Fix segfault with little-endian word
55 order on 64-bit hosts.
56 (put_field): Likewise.
57 (min): Move definition.
58
3ac01eb2
DD
592006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
60
61 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
62 (find_executable): Likewise.
63 (win32_spawn): Cast alloca return to (char**).
64 Replace malloc with XNEWVEC.
65 bcopy.c (bcopy): Add explict casts in assignments.
66
78de3ccc
DD
672006-10-25 Ben Elliston <bje@au.ibm.com>
68
69 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
70
bff368bd
DD
712006-10-10 Brooks Moses <bmoses@stanford.edu>
72
73 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
74 * testsuite/Makefile.in: Added empty "pdf" target.
75
e63f184e
DD
762006-09-22 Ian Lance Taylor <ian@airs.com>
77
78 PR other/29176
79 * cp-demangle.c (d_substitution): Check for overflow when
80 computing substitution index.
81
069e4b19
CV
822006-08-30 Corinna Vinschen <corinna@vinschen.de>
83
84 * configure.ac: Add case for Mingw as host.
85 * configure: Regenerate.
86
cb6c09ac
DD
872006-08-27 Ian Lance Taylor <ian@airs.com>
88
89 PR driver/27622
90 * pex-common.h (struct pex_funcs): Add toclose parameter to
91 exec_child field.
92 * pex-common.c (pex_run_in_environment): Pass toclose to
93 exec_child.
94 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
95 * pex-unix.c (pex_unix_exec_child): Likewise.
96 * pex-msdos.c (pex_msdos_exec_child): Likewise.
97 * pex-win32.c (pex_win32_exec_child): Likewise.
98
99 PR other/28797
100 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
101 for a qualified member which is not a function.
102 * testsuite/demangle-expected: Add test case.
103
a7d421b8
DD
1042006-07-27 Jan Hubicka <jh@suse.cz>
105
106 PR rtl-optimization/28071
107 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
108 downsize the hashtable.
109
6816f995
AO
1102006-07-04 Peter O'Gorman <peter@pogma.com>
111
112 * Makefile.in: chmod 644 before ranlib during install.
113
7741be99
DD
1142006-06-02 Mark Shinwell <shinwell@codesourcery.com>
115
116 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
117 to environ.
118
014a8caf
DD
1192006-06-01 Mark Shinwell <shinwell@codesourcery.com>
120
121 * pex-common.c: New function pex_run_in_environment.
122 * pex-common.h: Add environment parameter to exec_child.
123 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
124 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
125 (pex_djgpp_exec_child): Pass environment to child process.
126 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
127 (pex_unix_exec_child): Pass environment to child process.
128 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
129 New function env_compare for comparing VAR=VALUE pairs.
130 (win32_spawn): Assemble environment block and pass to CreateProcess.
131 (spawn_script): Pass environment through to win32_spawn.
132 (pex_win32_exec_child): Pass environment through to spawn_script and
133 win32_spawn.
134 * functions.texi: Regenerate.
135 * pexecute.txh: Document pex_run_in_environment.
136
069c63e2
DD
1372006-05-28 Mark Shinwell <shinwell@codesourcery.com>
138
139 * mkstemps.c: Open temporary files in binary mode.
140
f6b66e90
DD
1412006-05-12 Anton Blanchard <anton@samba.org>
142
143 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
144 hold "int%u_t".
145
c77d28ac
JB
1462006-04-24 Julian Brown <julian@codesourcery.com>
147
148 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
149
3db2e6dd
DD
1502006-03-29 Jim Blandy <jimb@codesourcery.com>
151
b5d60b68 152 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
3db2e6dd
DD
153 (pex_init_common): Initialize obj->input_file.
154 (pex_run): Close any file opened by pex_input_file.
b5d60b68
DD
155 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
156 * pex-common.h (struct pex_obj): New field input_file.
3db2e6dd 157 (struct pex_funcs): New function ptr fdopenw.
b5d60b68
DD
158 * pex-unix.c (pex_unix_fdopenw): New function.
159 (funcs): List it as our fdopenw function.
160 * pex-win32.c (pex_win32_fdopenw): New function.
161 (funcs): List it as our fdopenw function.
162 * pex-djgpp.c (funcs): Leave fdopenw null.
163 * pex-msdos (funcs): Same.
164 * functions.texi: Regenerated.
3db2e6dd
DD
165
1662006-04-10 Jim Blandy <jimb@codesourcery.com>
167
168 * pex-common.c (temp_file): New function, containing guts of
169 pex-style temporary file name generation.
170 (pex_run): Use it.
171
545c9aee
DD
1722006-04-06 Carlos O'Donell <carlos@codesourcery.com>
173
174 * Makefile.in: Add install-html, install-html-am, and
175 install-html-recursive targets. Define mkdir_p and
176 NORMAL_INSTALL.
177 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
178 * configure: Regenerate.
179 * testsuite/Makefile.in: Add install-html and html targets.
180
8e1e9959
DD
1812006-03-31 Mark Mitchell <mark@codesourcery.com>
182
183 * pex-win32.c (<errno.h>): Include.
184 (fix_argv): Remove.
185 (argv_to_cmdline): New function.
186 (std_suffixes): New variable.
187 (no_suffixes): Likewise.
188 (find_executable): New function.
189 (win32_spawn): Likewise.
190 (spawn_script): Use win32_spawn instead of _spawnv[p].
191 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
192 (pex_win32_wait): Likewise.
193
57b126a3
DD
1942006-03-24 Jim Blandy <jimb@codesourcery.com>
195
196 * pex-common.c (pex_run): Simplify output name handling.
197
9223c945
DD
1982006-03-12 Jim Blandy <jimb@red-bean.com>
199
200 * pex-common.h (struct pex_obj): Doc fixes.
201
2022006-03-11 Jim Blandy <jimb@red-bean.com>
203
204 * functions.texi: Regenerate.
205
96f4851a
DD
2062006-02-21 Ben Elliston <bje@au.ibm.com>
207
208 * pexecute.c (pwait): Syntax fix for previous change.
209
1c7a49d2
DD
2102006-02-17 Uttam Pawar <uttamp@us.ibm.com>
211
212 * pexecute.c (pwait): Free vector pointer.
213 * partition.c (partition_print): Free class_elements pointer.
214
e27d251e
DD
2152006-02-11 Roger Sayle <roger@eyesopen.com>
216 R. Scott Bailey <scott.bailey@eds.com>
217 Bill Northcott <w.northcott@unsw.edu.au>
218
219 PR bootstrap/16787
220 * floatformat.c: Include <float.h> where available.
221 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
222
fd7d450d
DD
2232006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
224
225 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
226 supported.
227 * configure: Regenerated.
228
67d78caa
DD
2292006-01-20 Carlos O'Donell <carlos@codesourcery.com>
230
231 * testsuite/Makefile.in: Add test-expandargv test.
232 * testsuite/test-expandargv.c: New test.
233 * argv.c (expandargv): Check for errors with ferror,
234 rather than just by looking at return value from fread.
235
648c3dc0
DD
2362005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
237
238 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
239 to convert from "from".
240 (floatformat_to_double): Likewise.
241 (floatformat_from_double): Use explicit cast to convert from "to".
242
7887b2ce
DD
2432005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
244
245 PR java/9861
246 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
247 and include return type when found.
248 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
249 conditional logic to change printing order of return type.when
250 the DMGL_RET_POSTFIX option is present.
251 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
252 call.
253 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
254 * testsuite/demangle-expected: Test cases to verify extended encoding.
255 Updated comment to document --ret-postfix option.
256
718c0ded
DD
2572005-11-06 Richard Guenther <rguenther@suse.de>
258
259 * splay-tree.c (rotate_left): New function.
260 (rotate_right): Likewise.
261 (splay_tree_splay_helper): Remove.
262 (splay_tree_splay): Re-implement.
263
fb10537e
DD
2642005-10-31 Mark Kettenis <kettenis@gnu.org>
265
266 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
267 New variables.
268
5209596c
MM
2692005-10-07 Mark Mitchell <mark@codesourcery.com>
270
271 * at-file.texi: Fix typo.
272
7b96829c
MM
2732005-10-03 Mark Mitchell <mark@codesourcery.com>
274
275 * at-file.texi: New file.
276
48e79b0a
MM
2772005-09-27 Mark Mitchell <mark@codesourcery.com>
278
279 * argv.c (expandargv): Do not use xmalloc_failed.
280
7b17bc29
MM
2812005-09-26 Mark Mitchell <mark@codesourcery.com>
282
283 * argv.c (safe-ctype.h): Include it.
284 (ISBLANK): Remove.
285 (stdio.h): Include.
286 (buildargv): Use ISSPACE instead of ISBLANK.
287 (expandargv): New function.
288 * Makefile.in: Regenerated.
289
f59e96e0
DD
2902005-09-14 Christopher Faylor <cgf@timesys.com>
291
292 * pex-win32.c: Include "windows.h".
293 (backslashify): New function.
294 (fix_argv): Use backslashify to convert path to windows format.
295 Allocate one more place in new argv for potential executable from '#!'
296 parsing.
297 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
298 (openkey): Ditto.
299 (mingw_rootify): Ditto.
300 (msys_rootify): Ditto.
301 (spawn_script): New function.
302 (pex_win32_exec_child): Save translated argv in newargv. Pass to
303 spawn_script if spawnv* fails.
304 (main): New function. Conditional on MAIN. Useful for testing.
305
3b6940c0
DD
3062005-08-17 Mark Kettenis <kettenis@gnu.org>
307
308 * floatformat.c (floatformat_always_valid): Change type of last
309 argument to `void *'.
310 (floatformat_i387_ext_is_valid): Likewise.
311 (floatformat_to_double): Change type of second argument to `const
312 void *'.
313 (floatformat_from_double): Change type of last argument to `void
314 *'.
315 (floatformat_is_valid): Change type of last argument to `const
316 void *'.
317 (ieee_test): Remove redundant casts.
318
a9479c3f
KC
3192005-08-17 Kelley Cook <kcook@gcc.gnu.org>
320
321 * strverscmp.c: Update FSF address.
322 * testsuite/Makefile.in: Likewise.
323 * testsuite/test-demangle.c: Likewise.
324 * testsuite/test-pexecute.c: Likewise.
325
55060c0b
DD
3262005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
327
328 * getopt.c: Include ansidecl.h before system headers.
329
6038baea
DD
3302005-07-22 Ben Elliston <bje@gnu.org>
331
332 * getopt.c: Include "ansidecl.h".
333 (_getopt_initialize): Mark argc and argv parameters as unused.
334
3352005-07-22 Ben Elliston <bje@gnu.org>
336
337 * regex.c (regcomp): Change type of `i' from unsigned to int.
338
c750388a
DD
3392005-07-22 Ben Elliston <bje@gnu.org>
340
341 Recover patch lost in the sourceware repository:
342 2005-07-09 Ben Elliston <bje@au.ibm.com>
343 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
344 * memmove.c: Likewise.
345 * objalloc.c: Likewise.
346
a4e5c0d8
DD
3472005-07-22 Ben Elliston <bje@gnu.org>
348
349 * configure.ac: Check for a getopt(3) declaration.
350 * configure, config.in: Regenerate.
351
4fe19082
DD
3522005-07-15 Ben Elliston <bje@au.ibm.com>
353
354 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
355
f2942ea4
DD
3562005-07-12 Ben Elliston <bje@au.ibm.com>
357
358 * floatformat.c (floatformat_to_double): Add a comment about a
359 potential source of warnings when compiling this file.
360
3612005-07-12 Ben Elliston <bje@au.ibm.com>
362
363 * pexecute.c (pexecute): Cast string litrals to char *.
364 * regex.c (re_comp): Cast a call to gettext() to char *.
365
4cf896a5
KC
3662005-07-07 Kelley Cook <kcook@gcc.gnu.org>
367
368 * config.table: Delete file. Move former contents into ...
369 * configure.ac: ... here and escape any brackets for m4.
370 * Makefile.in (config.status): Remove dependency on config.table.
371 * configure: Regenerate.
372
20ae7c34
KC
3732005-07-07 Kelley Cook <kcook@gcc.gnu.org>
374
375 * config.in: Regenerate for 6/20 change.
376
6ba85b8c
DD
3772005-07-03 Steve Ellcey <sje@cup.hp.com>
378
379 PR other/13906
380 * md5.c (md5_process_bytes): Check alignment.
381
3822005-07-01 Ian Lance Taylor <ian@airs.com>
383
384 PR other/22268
385 * cp-demangle.c (d_expr_primary): Don't run off the end of the
386 string while looking for the end of a literal value.
387 * testsuite/demangle-expected: Add test case.
388
c3cca4c9
DD
3892005-06-30 Daniel Berlin <dberlin@dberlin.org>
390
391 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
392 (DELETED_ENTRY): Ditto.
393
67f3cb05
GK
3942005-06-20 Geoffrey Keating <geoffk@apple.com>
395
396 * strverscmp.c: New.
397 * Makefile.in (CFILES): Add strverscmp.c.
398 (CONFIGURED_OFILES): Add strverscmp.o.
399 (strverscmp.o): New rule.
400 (stamp-functions): Add $(srcdir) to files in source directory.
401 * configure.ac (funcs): Add strverscmp.
402 (AC_CHECK_FUNCS): Add strverscmp.
403 * configure: Regenerate.
404 * functions.texi: Regenerate.
405
01e94249
DD
4062005-05-28 Eli Zaretskii <eliz@gnu.org>
407
408 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
409 * config.in, configure: Regenerate.
410
839e4798
RH
4112005-05-25 Richard Henderson <rth@redhat.com>
412
413 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
414 (d_make_comp, d_print_comp): Likewise.
415 (d_special_name): Generate one.
416 * testsuite/demangle-expected: Add a hidden alias test.
417
abf6a75b
DD
4182005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
419
420 * configure.ac: Check declarations for calloc(), getenv(),
01e94249 421 malloc(), realloc() and sbrk().
abf6a75b
DD
422 * config.in: Regenerate.
423 * configure: Likewise.
424
425 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
426 instead of xmalloc.
427 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
428 * concat.c (liiberty_concat_ptr): Surround definition with an
429 extern "C" block, if __cplusplus.
430 (concat): Use XNEWVEC instead of xmalloc.
431 (reconcat): Likewise.
432 * cp-demangle.c (struct d_print_template): Rename member
01e94249 433 "template" to "template_decl". Adjust use throughout the file.
abf6a75b
DD
434 (d_print_resize): Properly cast return value of realloc().
435 (cplus_demangle_print): Same for malloc().
436 (d_demangle): Likewise.
437 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
438 "typename" to "type_name".
439 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
440 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
441 (demangle_template_value_parm): Likewise.
442 (demangle_template): Likewise.
443 (recursively_demangle): Likewise.
444 (do_hpacc_template_literal): Likewise.
445 (do_arg): Likewise.
446 (remember_type): Likewise.
447 (remember_Ktype): Likewise.
448 (register_Btype): Likewise.
449 (string_need): Use XRESIZEVEC instead of xrealloc().
450 * dyn-string.c (dyn_string_init): Use XNEWVEC.
451 (dyn_string_new): Use XNEW.
452 (dyn_string_resize): Use XRESIZEVEC.
453 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
454 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
455 Otherwise include <stdlib.h>.
456 (exchange): Cast return value of malloc().
457 * hashtab.c (htab_size): Define as both macro and non-inline
458 function.
459 (htab_elements): Likewise.
460 * getpwd.c (getpwd): Use XNEWVEC.
461 (htab_create_alloc_ex): Use C90 prototype-style.
462 * lrealpath.c (lrealpath): Appropriately cast return value of
01e94249 463 malloc().
abf6a75b
DD
464 * make-relative-prefix.c (save_string): Likewise.
465 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
466 the file.
467 (choose_tmpdir): Use XNEWVEC.
468 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
469 * pex-common.c (pex_init_common): Use XNEW.
470 (pex_add_remove): Use XRESIZEVEC.
471 (pex_run): Likewise.
472 (pex_get_status_and_time): Likewise.
473 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
474 * pex-msdos.c (pex_init): Use XNEW.
475 (pex_msdos_exec_child): Likewise.
476 (pex_msdos_exec_child): Use XRESIZEVEC.
477 * pex-unix.c (pex_wait): Use XNEW.
478 * pex-win32.c (fix_argv): Use XNEWVEC.
479 * pexecute.c (pwait): Likewise.
480 * setenv.c (setenv): Properly cast return value of malloc().
481 * sigsetmask.c (sigsetmask): Rename local variables "old" and
482 "new" to "old_sig" and "new_sig".
483 * sort.c (main): Use XNEWVEC.
484 * spaces.c (spaces): Cast return value of malloc().
485 * strndup.c (strndup): Likewise.
486 * ternary.c (ternary_insert): Use XNEW.
487 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
488 with an extern "C" block if __cplusplus.
489 * xstrdup.c (xstrdup): Cast return value of memcpy().
490 * xstrerror.c (strerror): Enclose declaration in an extern "C"
491 block if __cplusplus.
492 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
493
2349f557
DD
4942005-05-16 Andreas Jaeger <aj@suse.de>
495
496 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
497 that it's only declared if needed.
498
499 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
500 defined.
501
e9edcedc
DD
5022005-05-15 Andreas Jaeger <aj@suse.de>
503
504 * functions.texi: Regenerated.
505
f13c9bea
DD
5062005-05-15 Eli Zaretskii <eliz@gnu.org>
507
508 * pexecute.txh: Enclose multi-word data types in @deftypefn in
509 braces. Minor wording fixes. Use --- for em-dash. Use
510 @enumerate in enumerated lists.
511
e9edcedc
DD
512 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
513 braces.
514
282d9ec3
ILT
5152005-05-11 Eli Zaretskii <eliz@gnu.org>
516
517 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
518 sys/stat.h.
519 (pex_init): Fix last argument to pex_init_common.
520 (pex_djgpp_exec_child): Remove leading underscore from _open,
521 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
522 which is undeclared, with `executable', which was unused. Remove
523 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
524 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
525
75919f94
DD
5262005-05-11 Paul Brook <paul@codesourcery.com>
527
528 * Makefile.in: Regenerate dependencies.
529
979c05d3
NC
5302005-05-10 Nick Clifton <nickc@redhat.com>
531
532 * Update the address and phone number of the FSF organization in
533 the GPL notices in the following files:
75919f94
DD
534 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
535 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
536 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
537 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
538 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
539 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
540 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
541 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
542 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
543 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
544 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
545 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
546 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
979c05d3 547
0093138c
DD
5482005-05-06 Kelley Cook <kcook@gcc.gnu.org>
549
550 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
551 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
552 * configure: Regenerate.
553
5542005-05-06 Kelley Cook <kcook@gcc.gnu.org>
555
556 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
557 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
558 * aclocal.m4: Don't include accross.m4.
559 * configure, config.in: Regenerate.
560
c631edf1
DD
5612005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
562
563 * fopen_unlocked.c (unlock_std_streams): New.
f13c9bea 564
c631edf1
DD
565 * functions.texi: Regenerate.
566
7b6f6286
DD
5672005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
568
569 * fopen_unlocked.c (unlock_stream): New.
570 Consolidate unlocking code into a helper function.
571
572 * functions.texi: Regenerate.
573
fa99459d
DD
5742005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
575
576 * asprintf.c: Include config.h.
577 * basename.c: Likewise.
578 * fdmatch.c: Likewise.
579 * hex.c: Likewise.
580 * lbasename.c: Likewise.
581 * spaces.c: Likewise.
582 * xatexit.c:Likewise.
f13c9bea 583 * configure.ac: Do check declarations for basename, ffs, asprintf
fa99459d
DD
584 and vasprintf for real.
585 * configure: Regenerate.
586
ab70e2a5
DD
5872005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
588
f13c9bea 589 * argv.c (dupargv): Allocate space of argv[argc], not
ab70e2a5
DD
590 sizeof(char *) of that amount. Cast result to char *.
591
ea7143ac
DD
5922005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
593
594 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
f13c9bea 595 Replace not with negate.
ea7143ac 596
41c953f9
DD
5972005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
598
599 * configure.ac: Check declarations for basename, ffs, asprintf,
600 vasprintf.
601 * configure: Regenerate.
602 * config.in: Likewise.
603
ac119ae8
DD
6042005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
605
606 * Makefile.in (CFILES): Add fopen_unlocked.c.
607 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
608 Regenerate dependencies.
609
610 * configure.ac: Check for stdio_ext.h and __fsetlocking.
611
612 * fopen_unlocked.c: New file.
613
614 * functions.texi, configure, config.in: Regenerate.
615
6e933b47
DD
6162005-04-04 Ian Lance Taylor <ian@airs.com>
617
618 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
619 declaration before statement.
620
aa55ccb1
DD
6212005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
622
14a88c49
DD
623 * bcmp.c: Fix warnings and implement using memcmp.
624 * bcopy.c: Fix warnings.
625 * bzero.c: Fix warnings and implement using memset.
626
aa55ccb1
DD
627 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
628 -Wstrict-prototypes.
629 * configure, config.in: Regenerate.
630
631 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
632 warnings and reconcile interfaces with relevant standards.
633
b31a49d7
ILT
6342005-04-02 Ian Lance Taylor <ian@airs.com>
635
636 * cp-demangle.c: Update copyright.
637
0e867e79
DD
6382005-03-31 Joseph S. Myers <joseph@codesourcery.com>
639
640 * gettimeofday.c: Add "Supplemental" to @deftypefn.
641 * functions.texi: Regenerate.
642
b109e79a
ILT
6432005-03-28 Ian Lance Taylor <ian@airs.com>
644
645 * pex-common.c: New file.
646 * pex-one.c: New file.
647 * pexecute.c: New file.
648 * pex-common.h: Include <stdio.h>.
649 (struct pex_obj): Define.
650 (struct pex_funcs): Define.
651 (pex_init_common): Declare.
652 * pex-unix.c: Rewrite.
653 * pex-win32.c: Rewrite.
654 * pex-djgpp.c: Rewrite.
655 * pex-msdos.c: Rewrite.
656 * testsuite/text-pexecute.c: New file.
657 * pexecute.txh: Rewrite.
658 * configure.ac: Check for wait3 and wait4. Set CHECK to
659 really-check rather than check-cplus-dem.
660 * functions.texi: Rebuild.
661 * Makefile.in: Rebuild dependencies.
662 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
663 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
664 * testsuite/Makefile.in (really-check): New target.
665 (check-pexecute, test-pexecute): New targets.
666 * configure: Rebuild.
667
864e8148 6682005-03-28 Mark Kettenis <kettenis@gnu.org>
f13c9bea 669
864e8148
DD
670 * unlink-if-ordinary.c: Include <sys/types.h>.
671
e064c173
DD
6722005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
673
674 Convert libiberty to use ISO C prototype style 7/n.
675 * regex.c (PARAMS): Remove definition.
676 (PREFIX): Unconditionaly define using ISO C ## operator.
f13c9bea 677 (init_syntax_once, extract_number, extract_number_and_incr,
e064c173 678 print_fastmap, print_partial_compiled_pattern,
f13c9bea 679 print_compiled_pattern, print_double_string, printchar,
e064c173
DD
680 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
681 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
f13c9bea
DD
682 at_begline_loc_p, at_endline_p, group_in_compile_stack,
683 insert_space, wcs_compile_range, byte_compile_range,
684 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
685 re_set_registers, re_search, re_search_2, re_search_3, re_match,
e064c173
DD
686 re_match_2, count_mbs_length, wcs_re_match_2_internal,
687 byte_re_match_2_internal, group_match_null_string_p,
688 alt_match_null_string_p, common_op_match_null_string_p,
f13c9bea 689 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
e064c173
DD
690 regexec, regerror, regfree): Use ISO C prototype style.
691 * partition.c: (elem_compare): Likewise.
692 * cp-demangle.c (print_usage): Likewise.
693
1e45deed
DD
6942005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
695
696 Convert libiberty to use ISO C prototype style 5/n.
697 * random.c (srandom, initstate, setstate, random): Use ISO C
f13c9bea 698 prototypes.
1e45deed
DD
699 * putenv.c (putenv): Likewise.
700 * physmem.c (physmem_available, physmem_total, main): Likewise.
701 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
702 * pex-unix.c (pexecute, pwait): Likewise.
703 * pex-msdos.c (pexecute, pwait): Likewise.
704 * pex-djgpp.c (pexecute, pwait): Likewise.
f13c9bea 705 * partition.c (partition_new, partition_delete, partition_union)
1e45deed 706 (elem_compare, partition_print): Likewise.
f13c9bea
DD
707 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
708 _obstack_allocated_p, _obstack_free, obstack_free,
1e45deed
DD
709 _obstack_memory_used, print_and_abort, obstack_next_free,
710 obstack_object_size, obstack_base): Likewise. Remove codes
711 predicated on !defined(__STDC__).
f13c9bea 712 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
1e45deed
DD
713 objalloc_free_block): Use ISO C prototypes.
714 * mkstemps.c (mkstemps): Likewise.
715 * memset.c (memset): Likewise.
716 * mempcpy.c (mempcpy): Likewise.
717 * rename.c (rename): Likewise.
718 * rindex.c (rindex): Likewise.
719 * setenv.c (setenv, unsetenv): Likewise.
720 * sigsetmask.c (sigsetmask): Likewise.
721 * snprintf.c (snprintf): Likewise.
f13c9bea 722 * sort.c (sort_pointers, xmalloc): Likewise.
1e45deed 723 * spaces.c (spaces): Likewise.
f13c9bea
DD
724 * splay-tree.c (splay_tree_delete_helper,
725 splay_tree_splay_helper, splay_tree_splay,
1e45deed 726 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
f13c9bea 727 splay_tree_new, splay_tree_xmalloc_allocate,
1e45deed 728 splay_tree_new_with_allocator, splay_tree_delete,
f13c9bea
DD
729 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
730 splay_tree_max, splay_tree_min, splay_tree_predecessor,
731 splay_tree_successor, splay_tree_foreach,
1e45deed
DD
732 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
733 * stpcpy.c (stpcpy): Likewise.
734 * stpncpy.c (stpncpy): Likewise.
735 * strcasecmp.c (strcasecmp): Likewise.
736 * strchr.c (strchr): Likewise.
737 * strdup.c (strdup): Likewise.
738
49b1fae4
DD
7392005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
740
741 Convert libiberty to use ISO C prototype style 6/n.
f13c9bea 742 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
49b1fae4
DD
743 strtoerrno, main): Use ISO C prototype style.
744 * strncasecmp.c (strncasecmp): Likewise.
745 * strncmp.c (strncmp): Likewise.
746 * strndup.c (strndup): Likewise.
747 * strrchr.c (strrchr): Likewise.
f13c9bea 748 * strsignal.c (init_signal_tables, signo_max, strsignal,
49b1fae4
DD
749 strsigno, strtosigno, psignal, main): Likewise.
750 * strstr.c (strstr): Likewise.
751 * strtod.c (strtod, atof): Likewise.
752 * strtol.c (strtol): Likewise.
753 * strtoul.c (strtoul): Likewise.
f13c9bea 754 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
49b1fae4
DD
755 ternary_recursivesearch): Likewise.
756 * tmpnam.c (tmpnam): Likewise.
757 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
758 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
759 * vfork.c (vfork): Likewise.
760 * vfprintf.c (vfprintf): Likewise.
761 * vprintf.c (vprintf): Likewise.
762 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
763 * vsprintf.c (vsprintf): Likewise.
764 * waitpid.c (waitpid): Likewise.
765 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
766 * xexit.c (xexit): Likewise.
f13c9bea 767 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
49b1fae4
DD
768 xcalloc, xrealloc): Likewise.
769 * xmemdup.c (xmemdup): Likewise.
770 * xstrdup.c (xstrdup): Likewise.
771 * xstrerror.c (xstrerror): Likewise.
772 * xstrndup.c (xstrndup): Likewise.
773
7742005-03-27 Andreas Jaeger <aj@suse.de>
775
776 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
777 flags.
778 * configure: Regenerated.
779
7802005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
781
782 * getopt1.c (getopt_long_only): Fix thinko.
783
7842005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
785
786 Convert libiberty to use ISO C prototype style 4/n.
787 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
788 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
789 htab_create_alloc, htab_set_functions_ex, htab_create,
790 htab_try_create, htab_delete, htab_empty,
791 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
792 htab_find, htab_find_slot_with_hash, htab_find_slot,
793 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
794 htab_traverse_noresize, htab_traverse, htab_collisions,
795 htab_hash_string, iterative_hash): Use ISO C prototype.
796 * hex.c (hex_init): Likewise.
797 * index.c (index): Likewise.
798 * insque.c (insque, remque): Likewise.
799 * lbasename.c (lbasename): Likewise.
800 * lrealpath.c (lrealpath): Likewise.
801 * make-relative-prefix.c (save_string, split_directories,
802 free_split_directories, make_relative_prefix): Likewise.
803 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
804 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
805 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
806 * memchr.c (memchr): Likewise.
807 * memcpy.c (memcpy): Likewise.
808 * memmove.c (memmove): Likewise.
809 * gettimeofday.c (gettimeofday): Likewise.
810 * getruntime.c (get_run_time): Likewise.
811 * getpwd.c (getpwd, getpwd): Likewise.
812 * getpagesize.c (getpagesize): Likewise.
813 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
814 * getopt.c (my_index, exchange, _getopt_initialize,
815 _getopt_internal, getopt, main): Likewise.
816 * getcwd.c (getcwd): Likewise.
817 * fnmatch.c (fnmatch): Likewise.
818 * floatformat.c (floatformat_always_valid,
819 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
820 put_field, floatformat_from_double, floatformat_is_valid,
821 ieee_test, main): Likewise.
822 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
823 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
824 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
825 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
826 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
827 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
828 fibheap_link, fibheap_cut, fibheap_cascading_cut,
829 fibnode_insert_after, fibnode_remove): Likewise.
830 * ffs.c (ffs): Likewise.
831 * fdmatch.c (fdmatch): Likewise.
832 * dyn-string.c (dyn_string_init, dyn_string_new,
833 dyn_string_delete, dyn_string_release, dyn_string_resize,
834 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
835 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
836 dyn_string_insert_cstr, dyn_string_insert_char,
837 dyn_string_append, dyn_string_append_cstr,
838 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
839 Likewise.
840
9334f9c6
DD
8412005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
842
843 Convert libiberty to use ISO C prototype style 3/n.
49b1fae4
DD
844 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
845 consume_count_with_underscores, code_for_qualifier,
846 qualifier_string, demangle_qualifier, cplus_demangle_opname,
847 cplus_mangle_opname, cplus_demangle_set_style,
848 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
9334f9c6 849 ada_demangle, internal_cplus_demangle, squangle_mop_up,
49b1fae4
DD
850 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
851 delete_work_stuff, mop_up, demangle_signature,
852 demangle_method_args, demangle_template_template_parm,
853 demangle_expression, demangle_integral_value,
854 demangle_real_value, demangle_template_value_parm,
855 demangle_template, arm_pt, demangle_arm_hp_template,
856 demangle_class_name, demangle_class, iterate_demangle_function,
857 demangle_prefix, gnu_special, recursively_demangle, arm_special,
858 demangle_qualified, get_count, do_type, demangle_fund_type,
859 do_hpacc_template_const_value, do_hpacc_template_literal,
860 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
861 register_Btype, remember_Btype, forget_B_and_K_types,
862 forget_types, demangle_args, demangle_nested_args,
863 demangle_function_name, string_need, string_delete, string_init,
864 string_clear, string_empty, string_append, string_appends,
9334f9c6
DD
865 string_appendn, string_prepend, string_prepends, string_prependn,
866 string_append_template_idx): Use ISO C prootype style.
867 * cp-demint.c (cplus_demangle_fill_component,
49b1fae4 868 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
9334f9c6
DD
869 cplus_demangle_v3_components): Likewise.
870
8712005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
872
873 Convert libiberty to use ISO C prototype style 2/n.
874 * cp-demangle.h: Remove uses of PARAMS.
875 * cp-demangle.c: Likewise.
49b1fae4
DD
876 (d_dump, cplus_demangle_fill_name,
877 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
878 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
879 d_make_builtin_type, d_make_operator, d_make_extended_operator,
880 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
881 cplus_demangle_mangled_name, has_return_type,
882 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
883 d_prefix, d_unqualified_name, d_source_name, d_number,
884 d_identifier, d_operator_name, d_special_name, d_call_offset,
885 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
886 d_function_type, d_bare_function_type, d_class_enum_type,
887 d_array_type, d_pointer_to_member_type, d_template_param,
888 d_template_args, d_template_arg, d_expression, d_expr_primary,
889 d_local_name, d_discriminator, d_add_substitution,
890 d_substitution, d_print_resize, d_print_append_char,
891 d_print_append_buffer, d_print_error, cplus_demangle_print,
892 d_print_comp, d_print_java_identifier, d_print_mod_list,
893 d_print_mod, d_print_function_type, d_print_array_type,
894 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
895 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9334f9c6 896 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
49b1fae4 897 print_usage, main):
9334f9c6
DD
898
8992005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
900
901 Convert libiberty to ISO C prototype style 1/n.
902 * _doprnt.c: Remove conditional #include <varargs.h> on
903 ANSI_PROTOTYPES as the latter is always assumed.
904 (_doprnt, checkit, main): Use ISO C prototype.
905 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
906 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
49b1fae4 907 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9334f9c6
DD
908 * atexit.c (atexit): Likewise
909 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
49b1fae4 910 (asprintf): Use ISO C prototype.
9334f9c6
DD
911 * basename.c (basename): Likewise
912 * bcmp.c (bcmp): Likewise.
913 * bcopy.c (bcopy): Likewise.
914 * bzero.c (bzero): Likewise.
915 * bsearch.c (bsearch): Likewise. Improve const-correctness.
916 * choose-temp.c (choose_temp_base): Likewise.
917 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
918 (calloc): Use ISO C prototype.
919 * clock.c (clock): Likewise.
920 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
49b1fae4 921 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9334f9c6
DD
922 concat_copy2, concat, reconcat, main): Use ISO C prototype.
923 * copysign.c (copysign): Likewise.
924
0fad4bdb
DD
9252005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
926
927 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
928 (REQUIRED_OFILES): Add xstrndup.o.
929 (CONFIGURED_OFILES): Add strndup.o.
930 Regenerate dependencies.
931
932 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
933
934 * strndup.c, xstrndup.c: New.
935
936 * config.in, configure, functions.texi: Regenerate.
937
51e32d64
DD
9382005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
939
940 * xmemdup.c, xstrdup.c: Expose the tail call.
941
8ec32723
DD
9422005-03-09 Mark Mitchell <mark@codesourcery.com>
943
944 * configure.ac (funcs): Add gettimeofday.
945 * configure: Regenerated.
946 * gettimeofday.c: New file.
947 * Makefile.in (CFILES): Add gettimeofday.
948 (CONFIGURED_OFILES): Add gettimeofday.o.
949 (./gettimeofday.o): New rule.
950
27ff8836
ILT
9512005-03-09 Ian Lance Taylor <ian@airs.com>
952
953 * pex-os2.c: Remove.
954 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
955 * Makefile.in (CFILES): Remove pex-os2.c.
956 (CONFIGURED_OFILES): Remove pex-os2.o.
957 (pex-os2.o): Remove target.
958 * configure: Rebuild.
959
48e39b59
ILT
9602005-03-07 Ian Lance Taylor <ian@airs.com>
961
962 * mpw-config.in: Remove.
963 * mpw-make.sed: Remove.
964 * mpw.c: Remove.
965 * Makefile.in (CFILES): Remove pex-mpw.c.
966 (CONFIGURED_OFILES): Remove pex-mpw.o.
967 (mpw.o, pex-mpw.o): Remove targets.
968 * maint-tool (undoc): Remove reference to mpw.c.
969
65dce80e
DD
9702005-03-06 DJ Delorie <dj@redhat.com>
971
972 * configure.ac (target_header_dir): vfork is a stub under djgpp.
973 * configure: Regenerated.
974
190eb137
DD
9752005-03-01 Jan Beulich <jbeulich@novell.com>
976
977 * Makefile.in (CFILES): Add unlink-if-ordinary.c
978 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
979 Add dependencies and rule for unlink-if-ordinary.o.
980 * unlink-if-ordinary.c: New.
981
bac7199c
DD
9822005-03-01 Ben Elliston <bje@au.ibm.com>
983
984 * hashtab.c (htab_find_slot_with_hash): Make function
985 documentation clearer.
986
aca9a742
JM
9872005-02-13 Jason Merrill <jason@redhat.com>
988
989 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
990 arguments.
991
b5c3b3de
DD
9922005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
993
994 * hex.c (hex_value): Group 'unsigned int' together to get correct
995 markup.
996 * functions.texi: Regenerated.
49b1fae4 997
46a10049
DD
9982004-12-27 H.J. Lu <hongjiu.lu@intel.com>
999
1000 * Makefile.in: Undo to 2004-12-17.
1001 * aclocal.m4: Likewise.
1002 * config.table: Likewise.
1003 * configure.ac: Likewise.
1004 * maint-tool: Likewise.
1005 * configure: Likewise.
1006
fbfdf750
DD
10072004-12-19 H.J. Lu <hongjiu.lu@intel.com>
1008
1009 PR bootstrap/19072
1010 * Makefile.in (enable_shared): New substitute.
1011 (LTTARGETLIB): New.
1012 (PREFIXTARGETLIB): New.
1013 (LTTESTLIB): New.
1014 (PREFIXTESTLIB): New.
1015 (CCLD): New.
1016 (LINK): New.
1017 ($(TARGETLIB)): Use $(LINK) to create libraries and create
1018 targets by hand.
1019 ($(TESTLIB)): Likewise.
1020 (mostlyclean): Don't remove .libs. Remove the libtool object
1021 directory.
1022
1023 * config.table (enable_shared): Removed.
1024
1025 * configure.ac (enable_static): Set to yes.
1026 (AC_PROG_LIBTOOL): Removed.
1027 (AM_DISABLE_SHARED): Uncommented.
1028 (AM_PROG_LIBTOOL): Likewise.
1029 (LIBOBJS): Add `./' to avoid VPATH.
1030 (LTLIBOBJS): Likewise.
1031 (enable_shared): Substitute.
1032 * configure: Regenerated.
1033
96e00b33
L
10342004-12-18 H.J. Lu <hongjiu.lu@intel.com>
1035
1036 * Makefile.in (top_builddir): Set to `.'.
1037 (OUTPUT_OPTION): Removed.
1038 (LIBTOOL): New.
1039 (LTLIBOBJS): New.
1040 (EXTRA_LTOFILES): New.
1041 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
1042 (all): Remove stamp-picdir.
1043 (LTCOMPILE): New.
1044 (.c.lo): New rule.
1045 (REQUIRED_LTOFILES): New.
1046 (CONFIGURED_LTOFILES): New.
1047 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
1048 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
1049 (stamp-picdir): Completely removed.
1050 (maint-missing): Pass $(REQUIRED_LTOFILES)
1051 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
1052 $(CONFIGURED_OFILES)
1053 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
1054 $(CONFIGURED_LTOFILES).
1055 (mostlyclean): Also remove *.lo .libs.
1056 Run "make maint-deps".
1057
1058 * aclocal.m4: Include ../libtool.m4.
1059
1060 * config.table: Don't check --enable-shared.
1061
1062 * configure.ac (AC_PROG_LIBTOOL): Add.
1063 (AC_PROG_CC_C_O): Removed.
1064 (OUTPUT_OPTION): Removed.
1065 (NO_MINUS_C_MINUS_O): Removed.
1066 (ltpexecute): New substitute.
1067 (LIBOBJS): Cleanup.
1068 * configure: Regenerated.
1069
1070 * maint-tool: Updated for .lo/libtool.
1071
40a59a4c
DD
10722004-12-11 Ben Elliston <bje@au.ibm.com>
1073
1074 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
1075 * configure: Regenerate.
1076 * config.in: Likewise.
1077
9923bc33
DD
10782004-12-07 DJ Delorie <dj@redhat.com>
1079
1080 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
1081 that recursion (and thus large stack space) is not needed.
1082
70615d15
DD
10832004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
1084
1085 * pex-unix.c: Fix the spelling of longjmp.
1086
eb129e35
DD
10872004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
1088
1089 PR other/18623
1090 * cp-demangle.c (d_call_offset): Remove useless local variables
1091 offset and virtual_offset.
1092 * cplus-dem.c (ada_demangle): Remove useless local variable
1093 at_start_name.
1094 (demangle_template): Remove useless local variable start.
1095
3e0f1404
DD
10962004-11-19 Roger Sayle <roger@eyesopen.com>
1097
1098 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
1099 "ansidecl.h" to avoid redeclaration errors with native compilers.
1100 * regex.c: Protect config.h from multiple inclusion.
1101
6cfb3176
DD
11022004-11-12 Mike Stump <mrs@apple.com>
1103
1104 * Makefile.in (libiberty.html): Fix html generation.
1105
f9b4e353
DD
11062004-09-08 Adam Nemet <anemet@lnxw.com>
1107
1108 * vasprintf.c: Accept __va_copy in addition to va_copy.
1109
49b1fae4 11102004-09-03 Paolo Bonzini <bonzini@gnu.org>
c7efc4d5
PB
1111
1112 * configure: Regenerate.
1113
49b1fae4 11142004-09-02 Paolo Bonzini <bonzini@gnu.org>
f5396bbe
PB
1115
1116 * configure.ac: Do not enable multilibs for build-side libiberty.
1117
49b1fae4 11182004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
950ad202
DD
1119
1120 * lrealpath.c (lrealpath): Add _WIN32 support.
1121
a21da8bf
DD
11222004-06-28 Zack Weinberg <zack@codesourcery.com>
1123
1124 * cp-demangle.h: Declare cplus_demangle_operators,
1125 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
1126 cplus_demangle_type as static if IN_GLIBCPP_V3.
1127
11282004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
1129
1130 PR other/16240
1131 * cp-demangle.c (d_expr_primary): Check for a failure return from
1132 cplus_demangle_type.
1133 * testsuite/demangle-expected: Add test case.
1134
9f7d3e7d
DD
11352004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
1136
1137 * pex-win32.c (fix_argv): Expand comment.
1138
0cb2db3a
DD
11392004-05-25 Daniel Jacobowitz <drow@false.org>
1140
1141 * Makefile.in: Add .NOEXPORT.
1142
25319993
DD
11432004-04-29 Douglas B Rupp <rupp@gnat.com>
1144
1145 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
1146 copyright.
1147
7e9f5c71
DD
11482004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1149
1150 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
1151 * configure: Regenerate.
1152
bb6a587d
DD
11532004-04-22 Richard Henderson <rth@redhat.com>
1154
1155 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
1156 (CHAR_BIT): Provide default.
1157 (struct prime_ent, prime_tab): New.
1158 (higher_prime_index): Rename from higher_prime_number, return index.
1159 (htab_mod_1): New.
1160 (htab_mod, htab_mod_m2): Use it.
1161 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
1162 (htab_expand): Likewise.
1163 * configure.ac: Check for stdint.h.
1164 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
1165 * config.in, configure: Rebuild.
1166
53239e41
DD
11672004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
1168
1169 * strerror.c: Include config.h, and redefine sys_nerr and
1170 sys_errlist, before including ansidecl.h and libiberty.h.
1171
d6ea4e80
DD
11722004-04-13 Jeff Law <law@redhat.com>
1173
1174 * hashtab.c (htab_remove_elt_with_hash): New function.
1175 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
1176
fe046a17
DD
11772004-03-31 Richard Henderson <rth@redhat.com>
1178
1179 * hashtab.c (htab_size): Move to top of file; mark inline.
1180 (htab_elements): Likewise.
1181 (htab_mod, htab_mod_m2): New.
1182 (htab_delete): Refactor htab->size and htab->entries.
1183 (htab_empty): Likewise.
1184 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
1185 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
1186 (htab_clear_slot): Use htab_size, htab_elements.
1187 (htab_traverse_noresize, htab_traverse): Likewise.
1188
e0c148a7
DD
11892004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
1190
12a7367e
DD
1191 * pex-unix.c (pexecute): Use vfork instead of fork, with
1192 appropriate changes to make this safe.
1193 * pex-common.h (STDERR_FILE_NO): Define.
1194
e0c148a7
DD
1195 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
1196 an 80 column screen. Run maint-deps.
1197
85f969cd
DD
11982004-03-09 Kelley Cook <kcook@gcc.gnu.org>
1199
1200 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
1201 * acconfig.h: Delete redundant file.
1202 * config.in: Regenerate.
1203 * configure: Regenerate.
1204
58670637
DD
12052004-03-09 Hans-Peter Nilsson <hp@axis.com>
1206
1207 * configure: Regenerate for config/accross.m4 correction.
1208
758d77be
DD
12092004-03-07 Andreas Jaeger <aj@suse.de>
1210
1211 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
1212 prototypes.
1213 (main): Initialize style.
1214
74aee4eb
DD
12152004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
1216
2d733211
DD
1217 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
1218 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
1219 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
1220 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
1221 short types to D_PRINT_DEFAULT. Change other integer types to use
1222 new D_PRINT_* values where appropriate. Change float types to
1223 D_PRINT_FLOAT.
1224 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
1225 values.
1226 * testsuite/demangle-expected: Adjust two test cases.
1227
1228 * cp-demangle.c (d_print_function_type): Print a space before the
1229 parenthesis around the function type in more cases.
1230 * testsuite/demangle-expected: Adjust one test case.
1231
099f84cf
DD
1232 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
1233 parentheses around a cast.
1234 * testsuite/demangle-expected: Adjust two test cases to match new
1235 output.
1236
74aee4eb
DD
1237 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
1238
1239 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
1240 push more than one of the same CV-qualifier on the top of the
1241 stack.
1242 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
1243 move the CV-qualifiers to apply to the element type instead.
1244 (d_print_array_type): When checking the modifiers, keep looking
1245 past ones which have been printed already.
1246 * testsuite/demangle-expected: Add three test cases.
1247
12482004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1249
1250 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
1251 empty string correctly.
1252
1253 * cp-demangle.c (__cxa_demangle): It is not an error if status is
1254 not NULL. It is an error if the mangled name is the same as a
1255 built-in type name.
1256 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
1257 than cplus_demangle_v3.
1258
1259 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
1260 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
1261
f9375305
DD
12622004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
1263
1264 * regex.c: Include <ansidecl.h>.
1265 (regcomp): Cast i to int.
1266 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
1267
cbf0ee79
DD
12682004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
1269
1270 * configure.ac: Add m4_pattern_allow(LIBOBJS).
1271 * configure: Regenerate.
1272
37254c9a
DD
12732004-01-22 DJ Delorie <dj@redhat.com>
1274
1275 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
1276 with explicit build rules.
1277 (VPATH): Remove.
1278 (.c.o): Poison.
1279 * configure.ac (pexecute, LIBOBJS): Add ./ .
1280 * maint-tool: Build dependencies with explicit rules.
1281
211333f6
DD
12822004-01-15 Kazu Hirata <kazu@cs.umass.edu>
1283
1284 * strdup.c (strdup): Constify the argument.
1285
3795d586
DD
12862004-01-14 Loren J. Rittle <ljrittle@acm.org>
1287
1288 * Makefile.in (distclean): Remove config.cache.
1289
2d6520ee
DJ
12902004-01-13 Daniel Jacobowitz <drow@mvista.com>
1291
1292 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
1293 takes two parameters.
1294 * cp-demint.c (cplus_demangle_fill_component): Likewise.
1295
59727473
DD
12962004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1297
1298 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
1299 defined, rename some functions which are to become static via
1300 #define.
1301 (CP_STATIC_IF_GLIBCPP_V3): Define.
1302 (struct d_operator_info): Move definition to cp-demangle.h, and
1303 rename to demangle_operator_info. Change all uses.
1304 (enum d_builtin_type_print): Move definition to cp-demangle.h.
1305 (struct d_builtin_type_info): Move definition to cp-demangle.h,
1306 and rename to demangle_builtin_type_info. Change all uses.
1307 (enum d_comp_type): Move definition to include/demangle.h, and
1308 rename to demangle_component_type, and change all enums to start
1309 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
1310 (struct d_comp): Move definition to include/demangle.h, and rename
1311 to demangle_component. Change all uses.
1312 (struct d_info): Move definition to cp-demangle.h.
1313 (cplus_demangle_fill_name): New function.
1314 (cplus_demangle_fill_extended_operator): New function.
1315 (cplus_demangle_fill_ctor): New function.
1316 (cplus_demangle_fill_dtor): New function.
1317 (d_make_empty): Remove type parameter. Change all callers.
1318 (d_make_name): Use cplus_demangle_fill_name.
1319 (d_make_extended_operator): Use
1320 cplus_demangle_fill_extended_operator.
1321 (d_make_ctor): Use cplus_demangle_fill_ctor.
1322 (d_make_dtor): Use cplus_demangle_fill_dtor.
1323 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
1324 non-static by default. Change all callers.
1325 (cplus_demangle_operators): Rename from d_operators. Change all
1326 uses. Make non-static by default. Add sentinel at end of array.
1327 (d_operator_name): Adjust initialization of high for new sentinel
1328 in cplus_demangle_operators.
1329 (cplus_demangle_builtin_types): Rename from d_builtin_types.
1330 Change all uses. Make non-static by default. Change initializer
1331 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
1332 (cplus_demangle_type): Rename from d_type. Make non-static by
1333 default. Change all callers.
1334 (cplus_demangle_init_info): Rename from d_init_info. Make
1335 non-static by default. Change all callers.
1336 * cp-demangle.h: New file.
1337 * cp-demint.c: New file.
1338 * Makefile.in: Rebuild dependencies.
1339 (CFILES): Add cp-demint.c.
1340 (REQUIRED_OFILES): Add cp-demint.o.
1341
1a79b024
DD
13422004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1343
1344 * configure.in: Rename file to ...
1345 * configure.ac: ... this.
1346 * Makefile.in: Update a comment for above change.
1347 * README: Likewise.
1348 * config.in: Regenerate.
1349
820542c9
DD
13502004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1351
1352 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1353 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1354 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1355 demangling template parameters.
1356 * testsuite/test-demangle.c (fail): New static function.
1357 (main): Support new options in input file: --no-params,
1358 --is-v3-ctor, and --is-v3-dtor.
1359 * testsuite/demangle-expected: Add --no-params to most tests, and
1360 add the correct result when parameters are not demangled. Add
1361 some simple tests for V3 constructor/destructor recognition.
1362
2f9c4058
DD
13632003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1364
1365 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1366
4fd47f10
DJ
13672003-12-22 Daniel Jacobowitz <drow@mvista.com>
1368
1369 PR debug/13272
1370 * Makefile.in (lbasename.o): Depend on filenames.h.
1371 * lbasename.c: Include "filenames.h" instead of defining
1372 its macros locally.
1373
b6fb00c0
DD
13742003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1375
1376 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1377 dynamic arrays.
1378 (struct d_operator_info): Add len field.
1379 (struct d_builtin_type_info): Add len and java_len fields.
1380 (struct d_standard_sub_info): Add simple_len, full_len, and
1381 set_last_name_len fields.
1382 (struct d_comp): Add len field to s_string.
1383 (struct d_info): Add send, did_subs, and expansion fields.
1384 (d_append_string_constant): Define.
1385 (d_append_string): Remove. Change all users to use
1386 d_append_string_constant or d_append_buffer instead.
1387 (d_make_sub): Add len parameter. Change all callers.
1388 (d_name): Increase expansion when substituting std::.
1389 (d_unqualified_name): Increase expansion for an operator.
1390 (d_number): Don't use multiplication for negative numbers.
1391 (d_identifier): Make sure there are enough characters in the
1392 string for the specified length. Adjust expansion for an
1393 anonymous namespace.
1394 (d_operators): Initialize len field.
1395 (d_special_name, d_ctor_dtor_name): Increase expansion.
1396 (d_builtin_types): Initialize len and java_len fields.
1397 (d_type): Increase expansion for a builtin type.
1398 (d_cv_qualifiers): Increase expansion for each qualifier.
1399 (d_bare_function_type): Decrease expansion when removing single
1400 void parameter.
1401 (d_template_param): Increment did_subs.
1402 (d_expression): Increase expansion for an operator.
1403 (d_expr_primary): Decrease expansion for a type we will print
1404 specially.
1405 (standard_subs): Initialize new fields.
1406 (d_substitution): Increment did_subs when doing a normal
1407 substitution. Increase expansion for a special substitution.
1408 (d_print): Add estimate parameter. Change all callers.
1409 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1410 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1411 (d_print_java_identifier): Rename from d_print_identifier. Handle
1412 only Java case. Change caller.
1413 (d_init_info): Change return type to void. Change all callers.
1414 Initialize send, did_subs, and expansion fields. Do not
1415 initialize comps and subs fields.
1416 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1417 arrays on stack. Make an estimate of the length of the demangled
1418 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1419 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1420 subs arrays on stack.
1421
2730f651
DD
14222003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1423
1424 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1425 after the identifier.
1426 * testsuite/demangle-expected: Add test case.
1427
d4edd112
DD
14282003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1429
1430 Fix for PR c++/13447:
1431 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1432 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1433 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1434 D_COMP_QUAL_NAME.
1435 (is_ctor_or_dtor): Likewise.
1436 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1437 D_COMP_QUAL_NAME.
1438 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1439 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1440 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1441 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1442 * testsuite/demangle-expected: Add two test cases.
1443
1444 * cp-demangle.c (d_print_function_type): Clear the global modifier
1445 list when printing the modifiers, not just when printing the
1446 function parameters.
1447 * testsuite/demangle-expected: Add two test cases.
1448
d35d0cd4
DD
14492003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1450
1451 * cp-demangle.c (d_print_function_type): Print the function
1452 parameters with no modifiers.
1453 * testsuite/demangle-expected: Add test case.
1454
1455 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1456 expect that we've read the entire string.
1457 (is_ctor_or_dtor): Don't expect that we've read the entire
1458 string--reverse patch of 2003-11-29.
1459
09e9708c
DD
14602003-12-15 Brendan Kehoe <brendan@zen.org>
1461
1462 * libiberty/Makefile.in (floatformat.o): Add dependency on
1463 config.h to accompany change of 2003-12-03.
1464
97ceaf5b
DD
14652003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1466
1467 Fix handling of constructor/destructor of standard substitution:
1468 * cp-demangle.c (struct d_standard_sub_info): Define.
1469 (d_substitution): Add prefix argument. Change all callers.
1470 Rework handling of standard substitutions to print full name when
1471 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1472 * testsuite/demangle-expected: Add test case.
1473
1474 Fix handling of negative literal constants:
1475 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1476 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1477 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1478 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1479 * testsuite/demangle-expected: Add test case.
1480
858b45cf
DD
14812003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1482
1483 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1484 (d_last_char): Define new macro.
1485 (d_make_name): Reject an empty name.
1486 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1487 (d_substitution, d_print_identifier): Likewise.
1488 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1489 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1490 (d_print_mod) Use new d_last_char macro.
1491 (d_print_cast): Use new d_last_char macro.
1492 (is_ctor_or_dtor): Don't leak memory.
1493
1494 Fix handling of member function modifiers:
1495 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1496 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1497 (d_dump): Dump new d_comp_type values.
1498 (d_make_comp): Accept new d_comp_type values.
1499 (has_return_type): Only accept _THIS variants of qualifiers.
1500 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1501 qualifiers.
1502 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1503 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1504 qualifiers and printing them at the end, add _THIS qualifiers to
1505 the modifier list.
1506 (d_print_comp) [D_COMP_*_THIS]: New cases.
1507 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1508 qualifiers.
1509 (d_print_mod_list): Add suffix parameter. Change all callers.
1510 Keep walking the list even if the current modifier has been
1511 printed.
1512 (d_print_mod): Handle new _THIS qualifiers.
1513 (d_print_function_type): Handle new _THIS qualifiers when deciding
1514 whether to print a parenthesis. Put a space before the
1515 parenthesis in some cases. Call d_print_mod_list again at the
1516 end, passing suffix as 1.
1517 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1518 * testsuite/demangle-expected: Add test case.
1519
1520 Fix for PR gcc/13304:
1521 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1522 before the '<' is itself a '<', insert a space.
1523 (d_print_cast): Likewise.
1524 * testsuite/demangle-expected: Add test case.
1525
1526 Fix for PR gcc/13244:
1527 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1528 which uses the '>' operator in an extra layer of parens.
1529 * testsuite/demangle-expected: Add test case.
1530
b52927b7
DD
15312003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1532
1533 * floatformat.c: Include "config.h" and <string.h> if available.
1534 (INFINITY, NAN): Define if not defined by <math.h>.
1535 (floatformat_to_double): Handle NaN, infinity, and denormalized
1536 numbers.
1537 (floatformat_from_double): Likewise.
1538 (ieee_test): In debugging code, use little endian rather than big
1539 endian. Correct tests to handle NaN and to check correct sign of
1540 zero. Omit m68k extended test.
1541 (main): Add more debugging cases.
1542
24afc00d
DD
15432003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1544
1545 * cp-demangle.c (d_demangle): Only return success if we consumed
1546 the entire demangled string.
1547 (is_ctor_or_dtor): Likewise.
1548
1549 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1550 to restore expected result of EDG test case to original expected
1551 result.
1552
331c3da2
DD
15532003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1554
1555 * cp-demangle.c (struct d_print_mod): Add templates field.
1556 (d_make_builtin_type): Check for NULL type.
1557 (d_make_extended_operator): Check for NULL name.
1558 (d_make_ctor, d_make_dtor): Likewise.
1559 (d_mangled_name): Add top_level parameter. Change all callers.
1560 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1561 CV-qualifiers.
1562 (d_type): Check some return values we rely on.
1563 (d_bare_function_type, d_array_type): Likewise.
1564 (d_pointer_to_member_type, d_template_args): Likewise.
1565 (d_add_substitution): Fail if argument is NULL.
1566 (d_print_resize): Check whether buf is NULL.
1567 (d_print_comp): Save current templates list with each modifier.
1568 Don't pass the modifier list down when printing a template.
1569 (d_print_cast): Don't pass the modifier list down when printing a
1570 template.
1571 (d_print_mod_list): Temporarily set templates list while printing
1572 a modifier.
1573 (d_print_mod): Check that buf is not NULL before using it.
1574 (d_print_function_type): Print parens if there is no modifier.
1575 (d_init_info): Permit as many substitutions as there are
1576 characters in the mangled name.
1577 * testsuite/demangle-expected: Add two new test cases.
1578
51948b34
DD
15792003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1580
1581 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1582 d_demangle.
1583
6d95373e
DD
15842003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1585
1586 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1587 callers.
1588 (print_usage): Display new -p option.
1589 (long_options): Add --no-params.
1590 (main): Accept and handle -p.
1591
54a962d9
DD
15922003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1593
1594 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1595 whether we have a template.
1596 * testsuite/demangle-expected: Add four new tests.
1597
8fe0d347
DD
15982003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1599
1600 * testsuite/demangle-expected: Minor changes to match output of
1601 new demangler: adjust whitespace in four tests, and change order
1602 of qualifiers in one test.
1603
1604 * cp-demangle.c: Complete rewrite.
1605
dd9d4b48
DD
16062003-11-19 Mark Mitchell <mark@codesourcery.com>
1607
1608 * cp-demangle.c (demangle_type): Correct thinko in substitution
1609 processing.
1610
0976f6a7
DD
16112003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1612
1613 * cp-demangle.c (demangle_operator_name): Remove space before
1614 "sizeof".
1615 (demangle_type_ptr): Put qualifiers in the right place. Handle
1616 qualifiers in pointer to member specially.
1617 (demangle_type): Handle qualifiers for pointer or reference
1618 specially. Handle function type.
1619 (demangle_local_name): Save and restore caret around demangling of
1620 initial encoding.
1621
1622 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1623 cplus_demangle.
1624
1625 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1626
e7e6980b
DD
16272003-10-31 Andreas Jaeger <aj@suse.de>
1628
1629 * floatformat.c (floatformat_always_valid): Add unused attribute.
1630
97ceaf5b
DD
16312003-10-30 Josef Zlomek <zlomekj@suse.cz>
1632
1633 Jan Hubicka <jh@suse.cz>
1634 * vasprintf.c (int_vasprintf): Pass va_list by value.
1635 Use va_copy for copying va_list.
1636 (vasprintf): Pass va_list by value.
1637
686e72d7
DD
16382003-10-30 Josef Zlomek <zlomekj@suse.cz>
1639
1640 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1641 instead of increasing n_elements when inserting to deleted slot.
1642
eec65ede
JB
16432003-10-20 J. Brobecker <brobecker@gnat.com>
1644
1645 * cplus-dem.c (demangle_template): Register a new Btype only
1646 when needed.
1647 * testsuite/demangle-expected: Add a new test.
1648
cd275bff
L
16492003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1650
1651 * testsuite/demangle-expected: Update the expected output of
1652 _GLOBAL__I__Z2fnv.
1653
e3b1168e
DJ
16542003-10-02 Daniel Jacobowitz <drow@mvista.com>
1655
1656 * strerror.c: Revert last change. Declare static sys_nerr
1657 and sys_errlist using different names.
1658
efb150d5
DJ
16592003-10-01 Daniel Jacobowitz <drow@mvista.com>
1660
1661 * strerror.c: Don't provide or reference sys_errlist if
1662 strerror is available.
1663
b7ca9213
L
16642003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1665
1666 * configure.in: Check if $MAKEINFO is missing.
1667 * configure: Regenerated.
1668
8ddbb593
DJ
16692003-09-24 Daniel Jacobowitz <drow@mvista.com>
1670
1671 * configure.in: Use AC_PROG_CPP_WERROR.
1672 * configure: Regenerated.
1673
5324d185
AC
16742003-09-22 Andrew Cagney <cagney@redhat.com>
1675
1676 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1677 (floatformat_always_valid): New function.
1678 (floatformat_i387_ext): Initialize new "is_valid" field to
1679 "floatformat_i387_ext_is_valid".
1680 (floatformat_ieee_single_little): Initialize "is_valid" field to
1681 floatformat_always_valid.
1682 (floatformat_ieee_double_big): Ditto.
1683 (floatformat_ieee_double_little): Ditto.
1684 (floatformat_ieee_double_little): Ditto.
1685 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1686 (floatformat_i960_ext): Ditto.
1687 (floatformat_m88110_ext): Ditto.
1688 (floatformat_m88110_harris_ext): Ditto.
1689 (floatformat_arm_ext_big): Ditto.
1690 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1691 (floatformat_ia64_spill_big): Ditto.
1692 (floatformat_ia64_spill_little): Ditto.
1693 (floatformat_ia64_quad_big): Ditto.
1694 (floatformat_ia64_quad_little): Ditto.
1695 (floatformat_ia64_quad_little): Ditto.
1696 (floatformat_is_valid): Call "is_valid".
1697
34f4a113
AC
16982003-09-15 Andrew Cagney <cagney@redhat.com>
1699
1700 * floatformat.c (get_field): Make "data" constant.
1701 (floatformat_is_valid, floatformat_to_double): Make "from"
1702 constant, fix casts.
1703 (floatformat_from_double): Make "from" constant.
1704
3f2aacaf
DJ
17052003-09-15 Daniel Jacobowitz <drow@mvista.com>
1706
1707 * floatformat.c (floatformat_is_valid): New function.
1708 (get_field, put_field): Correct comments.
1709
aae66b9f
DD
17102003-09-06 Josef Zlomek <zlomekj@suse.cz>
1711
1712 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1713 FIBHEAPKEY_T.
1714
60b04ee8
DD
17152003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1716
1717 PR bootstrap/12100
1718 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1719 * configure: Rebuilt.
1720
2299a76d
DJ
17212003-08-27 Daniel Jacobowitz <drow@mvista.com>
1722
1723 * aclocal.m4: Include acx.m4 and no-executables.m4.
1724 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1725 (LIB_AC_PROG_CC): Remove.
1726 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1727 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1728 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1729 performing link tests.
1730 * configure: Regenerated.
1731
9ad1aa29
DD
17322003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1733
a21da8bf 1734 * cp-demangle.c: Clarify what package(s) this is part of.
9ad1aa29 1735
dbb9d0f3
DD
17362003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1737
1738 * pex-win32.c (pexecute): Mark parameters this_pname and
1739 temp_base as unused. Remove unused variables retries,
1740 sleep_interval. Initialize org_stdin, org_stdout.
1741 (pwait): Mark parameter flags as unused.
1742
17432003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
1744
1745 * pex-win32.c (fix_argv): Ensure that the executable pathname
1746 uses Win32 backslashes.
1747 (pexecute): Cast away constness when assigning *errmsg_arg.
1748
78c5b0a5
L
17492003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1750
1751 * testsuite/demangle-expected: Add more GNU V3 testcases.
1752
70ecf948
DD
17532003-06-22 Zack Weinberg <zack@codesourcery.com>
1754
1755 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1756 not HC_ASCII and HC_EBCDIC.
1757 Add documentation in form expected by gather-docs.
1758 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1759 * Makefile.in, functions.texi: Regenerate.
1760
cbc0188b
DD
17612003-06-21 Zack Weinberg <zack@codesourcery.com>
1762
1763 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1764 for charset determination.
1765
5f73c378
DD
17662003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1767
1768 * configure.in: Add check for malloc.h needed by
1769 m68k for function free().
1770 * configure: Regenerated.
1771 * config.in: Add HAVE_MALLOC_H.
1772 * hashtab.c: include malloc.h were available for
1773 free().
1774
e69f6c8c 17752003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 1776
e69f6c8c
DD
1777 PR bootstrap/10974
1778 * physmem.c: Update comment.
1779 * configure.in: Modify test for _system_configuration for older
1780 AIX systems.
1781
1782 * config.in, configure: Regenerated.
cbc0188b 1783
54c60684
DD
17842003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1785
1786 PR other/10810
1787 * test-demangle.c (getline): Fix fence-post error.
1788
5a4e47bd
NC
17892003-06-03 Nick Clifton <nickc@redhat.com>
1790
1791 * asprintf.c: Change comment to note that -1 is returned upon
1792 error.
1793 * vasprintf.c: Likewise.
1794 (vasprintf): Return -1 upon error.
1795 * functions.texi: Document changes to asprintf and vasprintf.
1796
916f5d13
DD
17972003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1798
1799 * config.table: Accept i[345867]86 variant.
1800
e4f79046
JB
18012003-05-15 Jim Blandy <jimb@redhat.com>
1802
1803 * hex.c (_hex_value): Make this unsigned.
1804 (hex_value): Update documentation for new return type. hex_value
1805 now expands to an unsigned int expression, to avoid unexpected
1806 sign extension when we store it in a bfd_vma, which is larger than
1807 int on some platforms.
1808 * functions.texi: Regenerated.
1809
0f3538e7
DD
18102003-05-07 Josef Zlomek <zlomekj@suse.cz>
1811
1812 * splay-tree.c (splay_tree_predecessor): Fix comment.
1813 (splay_tree_successor): Fix comment.
1814
7108c5dc
JM
18152003-05-07 Jason Merrill <jason@redhat.com>
1816
eafaf5eb 1817 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
1818 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1819 * aclocal.m4: Include accross.m4.
1820 * configure, config.in: Regenerate.
1821
0b555173
DD
18222003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1823
1824 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1825 * configure: Regenerate.
1826
8730135a
DD
18272003-05-03 Carlo Wood <carlo@alinoe.com>
1828
1829 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1830
341eccbc
DD
18312003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1832
1833 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1834 (main): Test that we don't write too much data.
1835
2ed1e5cc
DD
18362003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1837
1838 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1839 vsnprintf.
1840 * snprintf.c, vsnprintf.c: New files.
1841 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1842 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1843 Regenerate dependencies.
1844
1845 * functions.texi, configure, config.in: Regenerated.
1846
10b57b38
DD
18472003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1848
1849 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1850 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1851 and stpncpy.
1852 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1853 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1854 Regenerate dependencies.
1855
1856 * functions.texi, configure, config.in: Regenerated.
1857
ff773b85
DD
18582003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1859
1860 * argv.c: Fix comments.
1861 * calloc.c: Don't unnecessarily include "libiberty.h".
1862 (bzero): Add prototype.
1863 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1864 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1865 with system headers.
1866 * hashtab.c (htab_traverse): Delete unused variables.
1867 * rename.c: Include "ansidecl.h".
1868 (rename): Use standard definition to avoid conflicts with system
1869 headers.
1870 * strsignal.c: Rely on ANSI_PROTOTYPES.
1871 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1872 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1873 * vprintf.c: Include "ansidecl.h" earlier, rely on
1874 ANSI_PROTOTYPES.
1875 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1876 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 1877
ff773b85
DD
1878 * Makefile.in: Regenerate dependencies.
1879
bb325820
DD
18802003-04-15 DJ Delorie <dj@redhat.com>
1881
1882 * maint-tool (deps): Scan for headers in $srcdir also.
1883
258a4893
DD
18842003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1885
1886 PR target/10338
1887 PR bootstrap/10198
1888 PR bootstrap/10140
1889 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1890 __mempcpy.
1891 * regex.c (regerror): Likewise.
1892
ff773b85
DD
18932003-04-14 Roger Sayle <roger@eyesopen.com>
1894
1895 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1896 * memchr.c: Likewise.
1897 * strcasecmp.c: Likewise.
1898 * strncasecmp.c: Likewise.
1899 * strncmp.c: Likewise.
1900 * xatexit.c: Likewise.
1901 * xmalloc.c: Likewise.
1902
1903 * copysign.c: Use traditional function declaration instead of DEFUN.
1904 * sigsetmask.c: Likewise.
1905
1906 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1907 * memset.c: Likewise.
1908
1909 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1910 * memmove.c: Likewise.
1911
eec539c7
DD
19122003-04-14 Roger Sayle <roger@eyesopen.com>
1913
1914 * strdup.c (strdup): Tweak implementation to use memcpy.
1915
daf7c4ad
DD
19162003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1917
1918 * configure.in (HAVE_UINTPTR_T): Always define.
1919 * configure: Regenerated.
1920
aa072e59
AO
19212003-03-23 Alexandre Oliva <aoliva@redhat.com>
1922
1923 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1924 instead of $$CC alone.
1925 (install_to_tooldir): Use it.
1926
f77ed96c
DD
19272003-17-03 Jan Hubicka <jh@suse.cz>
1928
1929 * hashtab.c (htab_traverse_noresize): Break out from ...
1930 * hashtab.c (htab_traverse): ... here.
1931
2336e177
DD
19322003-12-03 Jan Hubicka <jh@suse.cz>
1933
1934 * hashtab.c (htab_expand): Fix warning.
1935
1936 * hashtab.c (htab_expand): Compute the size of hashtable based
1937 on the number of elements actually used.
1938 (htab_traverse): Call htab_expand when table is too empty.
1939
d8cbbf95
DD
19402003-03-11 Carlo Wood <carlo@gnu.org>
1941
1942 * cplus-dem.c (demangle_integral_value): Correction to reflect
1943 patch of 2002-01-10 in order to also make negative multi-digits
1944 without leading underscore work.
1945
a01fefeb
DD
19462003-03-03 Mark Mitchell <mark@codesourcery.com>
1947
1948 * cplus-dem.c: Add license exception to copyright notice.
1949
638ceb1a
DD
19502003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1951
1952 * physmem.c: Formatting changes from upstream.
1953
ef803806
DD
19542003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1955
1956 * physmem.c (physmem_total): Add _WIN32 support.
1957 (physmem_available): Likewise.
1958
181fa229
DD
19592003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1960
1961 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1962 GSI_PHYSMEM.
1963 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1964
cc529274
DD
19652003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1966
1967 * configure.in: Check for sys/systemcfg.h and
1968 _system_configuration.
1969 * physmem.c: Add support for AIX. Tweek formatting as per
1970 upstream coreutils beta.
1971
19722003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1973 Richard Earnshaw <rearnsha@arm.com>
1974 Geoffrey Keating <geoffk@apple.com>
cbc0188b 1975
cc529274
DD
1976 * configure.in: Check for sys/sysctl.h and sysctl.
1977 * physmem.c: Add support for *bsd and darwin.
1978 * Makefile.in: Generate depedency for physmem.o.
1979
192cbe66
DD
19802003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1981
1982 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1983 Tru64 UNIX.
1984 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1985 Tru64 UNIX.
1986
1987 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1988 machine/hal_sysinfo.h, sys/table.h.
1989 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1990 * configure, config.in: Regenerate.
1991
ff773b85
DD
19922003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1993
1994 * configure.in: Check for sys/sysmp.h and sysmp.
1995 * physmem.c: Pull upstream copy, add support for irix6.
1996
1997 * config.in, configure: Regenerated.
1998
900d2082
DD
19992003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2000
2001 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
2002 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
2003 pstat_getdynamic.
cbc0188b 2004
4938384a
DD
20052003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2006
2007 * Makefile.in (CFILES): Add physmem.c.
2008 (REQUIRED_OFILES): Add physmem.o.
2009 * configure.in: Check for sys/pstat.h.
2010 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
2011 * physmem.c: New file, copied from textutils.
2012
2013 * config.in, configure: Regenerated.
2014
ba61a412
DJ
20152003-02-20 Daniel Jacobowitz <drow@mvista.com>
2016
2017 * Makefile.in (CFILES): Add lrealpath.c.
2018 (REQUIRED_OFILES): Add lrealpath.o.
2019 (lrealpath.o): Add rule.
2020 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
2021 * configure.in: Add realpath and canonicalize_file_name to
2022 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
2023 for canonicalize_file_name.
2024 * lrealpath.c: New file.
2025 * make-relative-prefix.c: Update documentation.
2026 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
2027 * config.in: Regenerated.
2028 * configure: Regenerated.
2029 * functions.texi: Regenerated.
2030
25dfe0ac
DD
20312003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2032
2033 * cplus_dem.c: Fix typo: intializes -> initializes.
2034
8b90eef4
AO
20352003-02-20 Alexandre Oliva <aoliva@redhat.com>
2036
2037 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2038 config.status.
2039 * configure: Rebuilt.
2040
fcd7c7c9
DD
20412003-02-13 Daniel Jacobowitz <drow@mvista.com>
2042
2043 Fix PR c++/7612.
2044 * cplus-dem.c (demangle_signature): Call string_delete.
2045 Remove extra string_init.
2046 (demangle_arm_hp_template): Call string_delete instead of
2047 string_clear. Add missing string_delete call.
2048 (demangle_qualified): Add missing string_delete call.
2049 (do_type): Remove unused variable btype. Add missing string_delete
2050 call. Call string_delete instead of string_clear.
2051 (demangle_fund_type): Move variable btype inside of the switch
2052 statement. Add missing string_delete call.
2053 (do_arg): Call string_delete instead of string_clear. Remove extra
2054 string_init.
2055 (demangle_nested_args): Free work->previous_argument.
2056
073c427b
DD
20572003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2058
2059 * acconfig.h: New file. Add uintptr_t.
2060 * config.in: Regenerated.
2061
f8bd3000
DD
20622003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
2063
2064 * libiberty.texi: Update to GFDL 1.2.
2065
85b9a938
DD
20662003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2067
2068 * Makefile.in (libiberty_topdir): New subst.
2069 (mkinstalldirs): Redefine in terms of the above.
2070 * configure.in: AC_SUBST it.
2071 * configure: Regenerate.
2072
578460f2
AO
20732003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2074
2075 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
2076 (info-subdir, install-info-subdir, clean-info-subdir)
2077 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
2078 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
2079 Pass $(FLAGS_TO_PASS).
2080
7f285245
AO
20812003-01-27 Alexandre Oliva <aoliva@redhat.com>
2082
2083 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
2084 /`$$CC -print-multi-os-directory`.
2085
5f9624e3
DJ
20862003-01-26 Daniel Jacobowitz <drow@mvista.com>
2087
2088 * hashtab.c (htab_create_alloc_ex): New function.
2089 (hatab_set_functions_ex): New function.
2090 (htab_delete, htab_expand): Support alternate allocation functions.
2091
9c2259b8
DD
20922003-01-24 Christopher Faylor <cgf@redhat.com>
2093
2094 * configure.in: Remove special pex-cygwin consideration.
2095 * configure: Regenerate.
2096 * pex-cygwin.c: Remove.
2097 * Makefile.in: Remove pex-cygwin.[co] lines.
2098
5a17353c
DD
20992003-01-24 Zack Weinberg <zack@codesourcery.com>
2100
2101 * Makefile.in (CFILES): Add pex-*.c.
2102 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
2103 (CONFIGURED_OFILES): Add pex-*.o.
2104 (TEXIFILES): Add pexecute.txh.
2105 (pexecute.o): Delete rule.
2106 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
2107 pex-unix.o, pex-win32.o): New rules.
2108 * configure.in: Change AC_INIT argument to xmalloc.c.
2109 Compute appropriate pexecute implementation and substitute it
2110 as @pexecute@.
2111
2112 * pexecute.c: Split up into...
2113 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
2114 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
2115 new files.
2116
2117 * functions.texi: Regenerate.
2118 * configure: Regenerate.
2119
eed2b28c
DD
21202003-01-20 Josef Zlomek <zlomekj@suse.cz>
2121
2122 * hashtab.c (htab_expand): Fix allocation of new entries.
2123
27a39a5f
DD
21242003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2125
2126 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2127
2128 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
2129 mkinstalldirs command.
2130
b51c1553
DD
21312002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
2132
2133 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
2134 Define for hosts with HOST_EXECUTABLE_SUFFIX.
2135
756954c3
DD
21362002-11-24 Nick Clifton <nickc@redhat.com>
2137
2138 * make-relative-prefix.c (make_relative_prefix): Ensure return
2139 string is empty before using strcat to construct it.
2140
2a80c0a4
DD
21412002-11-22 Daniel Jacobowitz <drow@mvista.com>
2142
2143 * Makefile.in: Add make-relative-prefix.c.
2144 * make-relative-prefix.c: New file.
2145 * functions.texi: Rebuilt.
2146
768b20d8
JJ
21472002-11-16 Jakub Jelinek <jakub@redhat.com>
2148
2149 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
2150 used with arguments in traditional C' warnings.
2151
f52d1d64
JJ
21522002-10-16 Jakub Jelinek <jakub@redhat.com>
2153
2154 * config.table: Use mh-s390pic for s390x too.
2155
0d3deb8d
DD
21562002-10-06 Andreas Jaeger <aj@suse.de>
2157
2158 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
2159 variable and of strict-aliasing warning.
2160 (grow_vect): Use char as first parameter.
2161
1b67de92
DD
21622002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2163
2164 * Makefile.in (all): Fix multilib parallel build.
2165
585cc78f
DD
21662002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
2167
2168 * cp-demangle.c (demangling_new): Cast 0 to enum.
2169 (demangle_char): Cast return of strdup to char *.
2170 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
2171 (is_gnu_v3_mangled_dtor): Likewise.
2172 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
2173 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
2174 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
2175 * md5.c (md5_process_bytes): Cast results back to const void *.
2176 (md5_process_block): Add cast to const md5_uint32 *.
2177 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
2178 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
2179 unsigned short.
2180 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
2181 to void *.
2182 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
2183
e21b0cc1
NC
21842002-09-19 Nick Clifton <nickc@redhat.com>
2185
2186 * README: Update email addresses for bugs and patches.
2187
a54ba43f
DD
21882002-09-10 Mike Stump <mrs@apple.com>
2189
2190 * splay-tree.c (splay_tree_successor): Fix comments.
2191
21922002-09-11 Zack Weinberg <zack@codesourcery.com>
2193
2194 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
2195 * testsuite/Makefile.in: Adjust for test-demangle.
2196 * testsuite/regress-demangle: Deleted.
2197 * testsuite/test-demangle.c: New file.
2198 * testsuite/demangle-expected: Change \$ to $ throughout, now that
2199 this file is not being read by a shell script.
2200
01cea699
DD
22012002-09-05 Roger Sayle <roger@eyesopen.com>
2202
2203 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
2204
a2832523
DD
22052002-08-07 DJ Delorie <dj@redhat.com>
2206
2207 * regex.c (re_error_msgid): Just use a simple array of strings.
2208 (re_compile_pattern): Compensate.
2209 (re_comp): Likewise.
2210 (re_comp): Likewise.
2211 (regerror): Likewise.
2212
1e3f0be0
DD
22132002-07-29 Neil Booth <neil@daikokuya.co.uk>
2214
2215 * cplus-dem.c (PREPEND_BLANK): Remove.
2216
b851d07b
DD
22172002-07-10 Jason Merrill <jason@redhat.com>
2218
2219 * cp-demangle.c (demangle_identifier): Support extended Unicode
2220 characters.
2221
2a9dffbf
DD
22222002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2223
2224 * cp-demangle.c (demangle_v3_with_details): Wrap in
2225 !defined IN_GLIBCPP_V3.
2226
793011ca
DD
22272002-07-01 Mark Mitchell <mark@codesourcery.com>
2228
2229 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
2230 Set it for the "st" operator.
2231 (demangle_expression): Handle expressions with types as arguments.
2232
b39b76b8
DD
22332002-06-30 Douglas Rupp <rupp@gnat.com>
2234
2235 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2236 * Makefile.in (OUTPUT_OPTION): Use.
2237
4748c6d8
DD
22382002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
2239
2240 * Makefile.in (install_to_libdir): Add $(DESTDIR).
2241 (install_to_tooldir): Likewise.
2242
f9c3326a
DD
22432002-06-17 Douglas Rupp <rupp@gnat.com>
2244
2245 * lbasename.c: Add 2002 to copyright.
2246 (IS_DIR_SEPARATOR): Remove VMS junk.
2247
18893690
DD
22482002-06-05 Geoffrey Keating <geoffk@redhat.com>
2249
2250 * hashtab.c (htab_create): New stub function for backward
2251 compatibility.
2252 (htab_try_create): Likewise.
2253
22542002-06-03 Geoffrey Keating <geoffk@redhat.com>
2255
2256 * hashtab.c (htab_create): Delete.
2257 (htab_try_create): Delete.
2258 (htab_create_alloc): New.
2259 (htab_delete): Support user-specified memory allocation.
2260 (htab_expand): Likewise.
2261
22622002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2263
2264 * configure.in: Fix typo in the code checking for sys_errlist.
2265 * configure: Regenerated.
2266
9296c8b2
DD
22672002-05-13 Andreas Schwab <schwab@suse.de>
2268
2269 * config.table: Use mh-x86pic also for x86-64.
2270
52d98c2d
DD
22712002-05-08 Alexandre Oliva <aoliva@redhat.com>
2272
2273 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2274 script entry, and set LD to it when configuring multilibs.
2275 * configure: Rebuilt.
2276
cafa3917
DD
22772002-05-07 Mark Mitchell <mark@codesourcery.com>
2278
2279 * configure.in (AC_TYPE_PID_T): Use it.
2280 * configure: Regenerated.
2281 * getruntime.c: Include <sys/types.h>.
2282 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2283
b1c933fc
RH
22842002-04-09 Richard Henderson <rth@redhat.com>
2285
2286 * hashtab.c (higher_prime_number): Use 7 as minimum.
2287 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
2288 (htab_find_slot_with_hash): Likewise.
2289
0c4460bb
DD
22902002-04-01 Phil Edwards <pme@gcc.gnu.org>
2291
2292 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2293 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
2294 not compile if IN_GLIBCPP_V3 defined.
2295 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2296
f2160d2b
DD
22972002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2298
3ebf1f59 2299 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
2300 if it is NULL.
2301
7dd4d42a
DD
23022002-03-27 DJ Delorie <dj@redhat.com>
2303
2304 * hex.c: Add documentation.
2305 (_hex_value): Provide non-ASCII empty table.
2306 (hex_init): Initialize the non-ASCII table.
2307 * functions.texi: Regenerate.
2308
38e57a35
DD
23092002-03-27 Mark Mitchell <mark@codesourcery.com>
2310
2311 * dyn-string.c: Add libgcc exception to copyright notice.
2312
cfed0715
DD
23132002-03-26 H.J. Lu (hjl@gnu.org)
2314
2315 * config.table: Support --with-build-subdir.
2316 * configure.in: Likewise.
2317 * configure: Rebuild.
2318
1504972f
DD
23192002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
2320
2321 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2322 seen.
2323
35efcd67
DD
23242002-03-12 Mark Mitchell <mark@codesourcery.com>
2325
2326 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2327 notice.
2328
dabc64ea
DD
23292002-03-11 Douglas B Rupp <rupp@gnat.com>
2330
2331 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2332
3ddbd84c
JB
23332002-03-06 Jim Blandy <jimb@redhat.com>
2334
2335 * splay-tree.c (splay_tree_xmalloc_allocate,
2336 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
2337 prototyped definitions. Mark `data' arguments as unused.
2338
efdab807
AC
23392002-03-06 Andrew Cagney <ac131313@redhat.com>
2340
2341 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2342
50d4562d
DD
23432002-03-04 Phil Edwards <pme@gcc.gnu.org>
2344
2345 * configure.in: Add --enable-install-libiberty option.
2346 * Makefile.in (INSTALLED_HEADERS): New variable.
2347 (install_to_libdir): Possibly also copy headers.
2348 * configure: Regenerated.
2349
23502002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2351
2352 * xmalloc.c (xmalloc_fail): Clarify error message further.
2353
6e9980f5
DD
23542002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2355
2356 * xmalloc.c (xmalloc_fail): Clarify error message.
2357
18893690 23582002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
2359
2360 * splay-tree.c (splay_tree_xmalloc_allocate,
2361 splay_tree_xmalloc_deallocate): New functions.
2362 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2363 above functions and a dummy data pointer.
2364 (splay_tree_new_with_allocator): New function.
2365 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2366 splay_tree_remove): Use the splay tree's allocation and
2367 deallocation functions.
2368
59ea9fe7
DD
23692002-02-19 Scott Snyder <snyder@fnal.gov>
2370
2371 * testsuite/demangle-expected: Add test case for infinite loop in
2372 demangler.
2373 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2374 if do_type() doesn't make any progress --- prevents an infinite
2375 loop.
2376
6f848550
DD
23772002-02-18 Carlo Wood <carlo@gnu.org>
2378
2379 PR c++/5390
2380 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2381 numbers that do not start with an underscore; This is needed
2382 for integer template parameters. This doesn't break anything
2383 because multi-digit numbers are never followed by a digit.
2384 * testsuite/demangle-expected: Corrected all mangled test
2385 cases with multi-digit template parameters: g++ 2.95.x does
2386 not generate underscores around these parameters.
2387
44354ae1
DD
23882002-02-05 Jason Merrill <jason@redhat.com>
2389
2390 * cplus-dem.c (flags): Add DMGL_VERBOSE
2391 (cplus_demangle_v3_p): Remove.
2392 (demangle_it): Add DMGL_TYPES to passed flags.
2393 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2394 (cplus_demangle_v3_type): Remove.
2395 (cplus_demangle_v3): Add options parm.
2396
42da15d6
DD
23972002-02-02 H.J. Lu (hjl@gnu.org)
2398
2399 * cp-demangle.c (cp_demangle_type): Do not protect with
2400 IN_LIBGCC2.
2401 (cplus_demangle_v3_all): New.
2402 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2403 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2404
2405 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2406 Initialized to cplus_demangle_v3.
2407 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2408 of cplus_demangle_v3.
2409 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2410 command line symbol.
2411
2412 * testsuite/regress-demangle: Pass the mangled name at the
2413 command line.
2414
b117c158
DD
24152002-02-01 H.J. Lu <hjl@gnu.org>
2416
2417 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2418 DMGL_GNU_V3.
2419
c78d91b1
DD
24202002-01-31 Phil Edwards <pme@gcc.gnu.org>
2421
2422 * cp-demangle.c: Revert yesterday's change.
2423
bef8b55d
DD
24242002-01-31 Adam Megacz <adam@xwt.org>
2425
2426 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2427 wrt HAVE_SYS_ERRLIST.
2428
2c955b8b
DD
24292002-01-30 Phil Edwards <pme@gcc.gnu.org>
2430
2431 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2432 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2433 cp_demangle_type.
2434 * testsuite/demangle-expected: New gnu-v3 test.
2435
58b1717a
RH
24362002-01-22 Momchil Velikov <velco@fadata.bg>
2437
2438 * configure.in (variable detection): Use arrays of unspecified
2439 size instead of plain integers.
2440
cc096b71
DD
24412002-01-18 DJ Delorie <dj@redhat.com>
2442
2443 * Makefile.in (TESTLIB): New. This library is for future
2444 testsuites.
2445 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2446 break down by letter.
2447 (REQUIRED_OFILES): List long-to-compile files first.
2448 (maint-deps): New, target for updating dependencies.
2449 (dependencies): Update.
2450 * maint-tool: Add dependency-generating option.
2451 * configure.in: Check for _doprnt even if we're not providing it.
2452 * configure: Regenerate.
2453
2454 * _doprnt.c: Modifications to allow compiling on any platform.
2455 * copysign.c: Likewise.
2456 * putenv.c: Likewise.
2457 * setenv.c: Likewise.
2458 * vsprintf.c: Likewise.
2459
24602002-01-15 Douglas B Rupp <rupp@gnat.com>
2461
2462 * mkstemps.c (mkstemps): On VMS, open temp file with option
2463 that causes it to be deleted when closed.
2464
20d54542
DD
24652002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2466
c23795e2
DD
2467 * cp-demangle.c (long_options): Const-ify.
2468 * cplus-dem.c (long_options): Likewise.
2469
20d54542
DD
2470 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2471 strstr instead.
2472
f348a7b1
DD
24732001-12-31 Ira Ruben <ira@apple.com>
2474
2475 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2476 * configure: Regenerated.
2477
d86cd745
DD
24782001-12-24 Douglas B. Rupp <rupp@gnat.com>
2479
2480 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2481 * configure: Regenerated.
2482
ae533646
DD
24832001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2484
2485 PR other/2719
2486 * cplus-dem.c (consume_count): Treat negative count as an error.
2487 * testsuite/demangle-expected: Added testcase.
2488
c0eb281b
DD
2489Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2490
2491 * configure.in: Hardcode that vfork works on VMS host.
2492 * configure: Regenerated.
2493
2da4c07f
RH
24942001-12-06 Richard Henderson <rth@redhat.com>
2495
2496 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2497 (cplus_demangle): Support no_demangling.
2498
24acd898
DD
24992001-11-27 Zack Weinberg <zack@codesourcery.com>
2500
2501 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2502 in libiberty context. Fix typo in leading comment.
2503 * configure.in: Fix various AC_DEFINEs so autoheader works.
2504 If any of vprintf, vsprintf, vfprintf is missing from libc,
2505 then AC_REPLACE_FUNCS(_doprnt).
2506
fec50157 25072001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 2508 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
2509
2510 * Makefile.in (stamp-h): Depend on Makefile for proper
2511 serialization.
2512 (*-subdir): Depend on config.h for proper serialization.
2513
5527febf
DD
25142001-11-26 DJ Delorie <dj@redhat.com>
2515
2516 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2517 * configure: Regenerate.
2518 * config.h: Add HAVE_ALLOCA_H.
2519
941d74a0
DD
25202001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2521
2522 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2523 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2524 is available.
2525
dc579051
DD
2526Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2527
2528 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2529 * configure.in (HAVE_UINTPTR_T): Test for system defining
2530 uintptr_t and define HAVE_UINTPTR_T appropriately.
2531 * regex.c (uintptr_t): Do not provide a definition if the
2532 system provided one.
2533
2534 * regex.c (PREFIX): Provide an alternate definition for
2535 non-ANSI/ISO compilers.
2536 (ARG_PREFIX): Likewise.
2537
1a78a35a
DD
25382001-11-12 Jim Meyering <meyering@lucent.com>
2539
2540 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2541 this code would end up calling gettext even in packages built
2542 with --disable-nls.
2543 * getopt.c (_): Likewise.
2544 * regex.c (_): Likewise.
2545
4e55c4b6
DD
25462001-11-03 Alan Modra <amodra@bigpond.net.au>
2547
2548 * configure.in: Cope with missing makeinfo.
2549 * configure: Regenerate.
2550
d311a83a
DD
25512001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2552
2553 * hex.c (hex_init): Provide empty stub.
2554
2555 * hex.c (hex_init): Delete.
2556 (_hex_value): Const-ify and initialize at compile-time.
2557
3bc62f91
DD
25582001-10-19 H.J. Lu <hjl@gnu.org>
2559
2560 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2561 necessary.
2562
5d852400
DD
25632001-10-17 DJ Delorie <dj@redhat.com>
2564
2565 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2566 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 2567 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
2568 Improve manual formatting.
2569 * functions.texi: Regenerate.
2570
ba19b94f
DD
25712001-10-15 DJ Delorie <dj@redhat.com>
2572
2573 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2574 (maint-undoc): New.
2575 maint-tool: Add "undoc" tool.
2576 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2577 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2578 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2579 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2580 documentation.
2581 * fnmatch.txh: New.
2582 * functions.texi: Regenerate.
2583
56056af5
DD
25842001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2585
2586 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2587 * strtod.c: Use "ISO C" instead of "ANSI C".
2588 * functions.texi: Regenerate.
2589
99b58139
DD
25902001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2591
2592 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2593 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2594 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2595 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2596 spelling. Give names to function arguments in documentation. Use
2597 (void) prototypes in documentation.
2598 * functions.texi: Regenerate.
2599
e6450fe5
DD
26002001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2601
2602 * argv.c (buildargv, tests, main): Const-ify.
2603 * cp-demangle.c (operator_code): Likewise.
2604 * cplus-dem.c (optable, libiberty_demanglers,
2605 cplus_demangle_set_style, cplus_demangle_name_to_style,
2606 print_demangler_list): Likewise.
2607 * hashtab.c (higher_prime_number): Likewise.
2608 * strcasecmp.c (charmap): Likewise.
2609 * strerror.c (error_info, strerror, main): Likewise.
2610 * strncasecmp.c (charmap): Likewise.
2611 * strsignal.c (signal_info): Likewise.
2612
da191b5b
DD
26132001-09-29 DJ Delorie <dj@redhat.com>
2614
2615 * configure: Regenerate.
2616
916aaa12
DD
26172001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2618
2619 * concat.c: Include stdlib.h.
2620
fa9f0e33
DD
26212001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2622
2623 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2624 @dircategory and @direntry directives. Add @finalout.
2625 (many nodes): Lose the next,prev,up pointers on the @nide line.
2626 (Using, Supplemental Functions, Replacement Functions): Fix
2627 markup.
2628 (Functions): Move around, to allow makeinfo to build the manual
2629 without next,prev,up pointers in thye node lines.
2630 (Licenses): Fix typos.
2631
2632 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2633 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2634 * functions.texi: Regenerate.
2635
2636 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2637 line.
2638
26392001-09-27 DJ Delorie <dj@redhat.com>
2640
2641 * configure.in: Don't use in-tree texinfo, because libiberty must
2642 be built before it. Check for makeinfo version 4 or higher.
2643 * functions.texi: Regenerate.
2644
39423523
DD
26452001-09-20 DJ Delorie <dj@redhat.com>
2646 Phil Edwards <pedwards@disaster.jaj.com>
2647
2648 * configure.in (MAKEINFO, PERL): Detect these.
2649 (--enable-maintainer-mode): Add.
2650 * configure: Regenerate.
2651 * Makefile.in (MAKEINFO, PERL): Define.
2652 (libiberty.info, libiberty.dvi, libiberty.html): New.
2653 (CFILES): Add bsearch.c.
2654 (CONFIGURED_OFILES): New, list of objects configure might add.
2655 (maint-missing, maint-buildall): New, for maintainers only.
2656 (clean, mostlyclean): Add info/dvi/html files.
2657 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2658 * gather-docs: New, for maintainers.
2659 * maint-tool: New, for maintainers.
2660 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2661 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2662 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2663 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2664 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2665 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2666 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2667 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2668 documentation.
2669
66c94e19
DD
26702001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2671
2672 * concat.c (reconcat): Fix for traditional C.
2673
99ee3a8f
DD
26742001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2675
2676 * concat.c (reconcat): New function.
2677
54c20242
DD
26782001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2679
2680 * concat.c (vconcat_length, vconcat_copy, concat_length,
2681 concat_copy, concat_copy2): New functions.
2682 (concat): Use vconcat_length/vconcat_copy.
2683
2684 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2685 Define.
2686
843f21be
DD
26872001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2688
2689 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2690 VA_FIXEDARG & VA_CLOSE.
2691
2692 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2693 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2694 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2695
8a423cb3
DD
26962001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2697
2698 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2699
dc676635
DD
27002001-08-23 Ulrich Drepper <drepper@redhat.com>
2701
2702 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2703
27042001-08-23 Ulrich Drepper <drepper@redhat.com>
2705
2706 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2707 instead of mbrtowc.
2708 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2709 wcslen, and __wcscoll instead of wcscoll.
2710
f080c76d
DD
27112001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2712
3ebf1f59
DD
2713 * fibheap.c (fibheap_init, fibnode_init): Remove.
2714 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2715 initialize memory.
2716 (fibheap_insert): Remove check for node allocation failure.
f080c76d 2717
f01b59ed
DD
27182001-08-21 Richard Henderson <rth@redhat.com>
2719
2720 * Makefile.in (fibheap.o): Depend on config.h.
2721 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2722 functions for inlining.
2723
2724Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2725
2726 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2727 hosting on cygwin.
2728 * configure: Regenerate.
2729
eb828599
AC
27302001-08-20 Andrew Cagney <ac131313@redhat.com>
2731
2732 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2733 HARRIS_FLOAT_FORMAT.
2734 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2735 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2736 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2737 (floatformat_m88110_harris_ext): New float formats.
2738
4e55c4b6
DD
27392001-08-20 Daniel Berlin <dan@cgsoftware.com>
2740
2741 * fibheap.c: New file. Fibonacci heap.
2742
2743 * Makefile.in (CFILES): Add fibheap.c.
2744 (REQUIRED_OFILES): Add fibheap.o.
2745 (fibheap.o): Add dependencies for fibheap.o.
2746
68a41de7
DD
27472001-08-17 Christopher Faylor <cgf@cygnus.com>
2748
2749 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2750 * configure: Regenerate.
2751
8fc34799
DD
27522001-08-16 Richard Henderson <rth@redhat.com>
2753
2754 * hashtab.c (htab_hash_string): New.
2755
16bad250
AC
27562001-08-13 Andrew Cagney <ac131313@redhat.com>
2757
2758 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2759 name.
2760
a9022147
DD
27612001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2762
2763 * regex.c (wcs_regex_compile): Use appropriate string
2764 to compare with collating element.
2765 Fix the padding for the alignment.
2766
8aefe91a 27672001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
2768
2769 * lbasename.c (lbasename): Change function definition to return a
2770 const char pointer.
2771
e7e9b069
DD
27722001-08-07 Jason Merrill <jason_merrill@redhat.com>
2773
2774 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2775 for".
2776
cc5144f8
DD
27772001-08-03 Richard Henderson <rth@redhat.com>
2778
2779 * Makefile.in (concat.o): Depend on config.h.
2780
8aefe91a
DD
27812001-07-30 Andreas Jaeger <aj@suse.de>
2782
2783 * concat.c: Include "config.h".
2784
86710ce2
DD
27852001-07-30 Andreas Jaeger <aj@suse.de>
2786
2787 * regex.c: Declare wcs functions only if compiling with
2788 MBS_SUPPORT.
2789 Don't use #elif for traditional C.
2790
27912001-07-23 Ulrich Drepper <drepper@redhat.com>
2792
2793 * regex.c: Revamp memory allocation for WCHAR functions to
2794 not use too much stack.
2795
27962001-07-30 Andreas Jaeger <aj@suse.de>
2797
2798 * regex.c: Declare wcs functions only if compiling with
2799 MBS_SUPPORT.
2800 Don't use #elif for traditional C.
2801
a5d8f731
DD
28022001-07-25 Daniel Jacobowitz <drow@mvista.com>
2803
2804 * Makefile.in (regex.o): Add dependency on config.h.
2805
6ad8a379
DD
28062001-07-18 Andreas Schwab <schwab@suse.de>
2807
2808 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2809 underscore character.
2810
28112001-07-18 Ulrich Drepper <drepper@redhat.com>
2812
2813 * regex.c: Limit string length printed in debug messages to 100
2814 chars.
2815
28162001-07-18 Andreas Jaeger <aj@suse.de>
2817
2818 * regex.c: Place under LGPL version 2.1.
2819
2a6ef469
DD
28202001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2821
2822 * Makefile.in: Add support for regex code.
2823 * regex.c: New file.
2824
7b78baae
DD
28252001-07-05 Mark Klein <mklein@dis.com>
2826
2827 * Makefile.in: Add ffs.c dependency.
2828 * configure.in: Add ffs.c.
2829 * ffs.c: New file.
2830
926150e2
DD
28312001-06-18 Richard Henderson <rth@redhat.com>
2832
2833 * concat.c: Include <sys/types.h>.
2834
11f6f21d
DD
28352001-06-11 Loren J. Rittle <ljrittle@acm.org>
2836
2837 bootstrap/3106
2838 * strerror.c (sys_nerr): Hide the OS header version.
2839 * strsignal.c (sys_nsig): Likewise.
2840
d42dae6c
DD
28412001-06-10 Richard Henderson <rth@redhat.com>
2842
2843 * concat.c: Include string.h. Fix int vs size_t usage.
2844 Simplify the iteration loops. Use memcpy.
2845
e05c6d27
DD
28462001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2847
2848 * partition.c: Fix misspelling of `implementation'.
2849
b50c4073
DD
28502001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2851
2852 * md5.c (md5_init_ctx): Declare constants as unsigned.
2853 (md5_process_block): Likewise.
2854
457161bf
DD
28552001-05-07 Zack Weinberg <zackw@stanford.edu>
2856
2857 * cp-demangle.c (demangle_v3_with_details,
2858 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2859 function definition.
2860 * ternary.c: Use K+R style function definitions. Use PTR, not
2861 void *. Make arguments constant where possible.
2862
e00bc6a7
DD
28632001-05-07 Mark Mitchell <mark@codesourcery.com>
2864
2865 * splay-tree.h (splay_tree_max): New function.
2866 (splay_tree_min): Likewise.
2867
400ee7e1
DB
28682001-04-15 Daniel Berlin <dan@cgsoftware.com>
2869
2870 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
2871
2872 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 2873
d9697354
DD
28742001-04-03 Zack Weinberg <zackw@stanford.edu>
2875
2876 * make-temp-file.c (try): Inline.
2877
a7bf099b
DD
28782001-02-28 Richard Henderson <rth@redhat.com>
2879
2880 * Makefile.in (make-temp-file.o): Depend on config.h.
2881
30a1def2
DD
28822001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2883
2884 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2885
079c672a
DD
28862001-03-23 Jakub Jelinek <jakub@redhat.com>
2887
2888 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2889 `_' not followed by a digit is invalid.
2890
a88e356a
JB
28912001-03-22 Jim Blandy <jimb@redhat.com>
2892
2893 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2894 instead of free, to free the contents as well as the string
2895 structure.
2896
1dffcc66
DD
28972001-03-21 Zack Weinberg <zackw@stanford.edu>
2898
2899 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2900 Don't default P_tmpdir to anything. Try /var/tmp before
2901 /usr/tmp.
2902
29032001-03-20 Zack Weinberg <zackw@stanford.edu>
2904
2905 * choose-temp.c: Split off make_temp_file, and the code
2906 duplicated between it and choose_temp_base, into...
2907 * make-temp-file.c: ... here; new file.
2908
2909 * Makefile.in (CFILES): Add make-temp-file.c.
2910 (REQUIRED_OFILES): Add make-temp-file.o.
2911
e61231f1
JB
29122001-03-20 Jim Blandy <jimb@redhat.com>
2913
2914 * cp-demangle.c (struct demangling_def): New fields:
2915 is_constructor and is_destructor.
2916 (demangling_new): Initialize them.
2917 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2918 or destructor.
2919 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2920 is_gnu_v3_mangled_dtor): New functions.
2921
a9cbbe6d
DD
29222001-03-20 Jason Merrill <jason@redhat.com>
2923
2924 * cplus-dem.c (main): Skip initial $.
2925
b1e51b3c
DD
29262001-03-15 Michael Meissner <meissner@redhat.com>
2927
2928 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2929 might be a signed integer under pre-ISO C systems.
2930
8aa30e60 29312001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 2932 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 2933
8aa30e60
DD
2934 * libiberty/lbasename.c: New file.
2935 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 2936
30673bf5
DD
29372001-03-06 Zack Weinberg <zackw@stanford.edu>
2938
2939 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2940 * configure.in: Replace all alloca logic with a simple use of
2941 the above new macro.
2942 * config.table: Kill *-*-beos* entry.
2943 * config/mh-beos: Delete.
2944 * configure, config.in: Regenerate.
fa03f0a7 2945
30673bf5
DD
2946 * Makefile.in (ALLOCA, HFILES): Kill.
2947 (REQUIRED_OFILES): Add alloca.o.
2948 (alloca.o): Depend on libiberty.h.
2949 (argv.o): Don't depend on alloca-conf.h.
2950 * alloca-conf.h: Delete.
2951 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2952 blocks. Provide the C alloca unconditionally. Use PTR where
2953 appropriate. Make i00afunc static.
2954 * argv.c: Don't include alloca-conf.h.
fa03f0a7 2955
5810f394
DD
29562001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2957
2958 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 2959
a9db032a
DD
29602001-02-16 Loren J. Rittle <ljrittle@acm.org>
2961
2962 * cplus-dem.c (main): Initialize style.
fa03f0a7 2963
8aefe91a
DD
29642001-02-02 Phil Edwards <pme@sources.redhat.com>
2965
2966 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2967
bc9bf259
DD
29682001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2969
2970 Add support for Java demangling under the v3 ABI:
2971 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2972 (struct demangling_def): Add `style' field.
2973 (demangling_new): New parameter `style'. Set it in demangling_t.
2974 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2975 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2976 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2977 (main): Call cp_demangle with extra parameter.
2978 (java_demangle_v3): New function.
2979 (java_builtin_type_names): New. Table of primitive type names used
2980 for Java demangling.
2981 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2982 Java output.
2983 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
2984 demangling.
2985 (long_options): Remove obsolete `java' option.
2986 (main): Remove explicit handling of `java' option. Instead, pass style
2987 parameter in cplus_demangle flags as gdb does.
2988 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 2989
f6528837
DD
29902000-12-29 DJ Delorie <dj@redhat.com>
2991
2992 * fnmatch.c: Make the note about the origins of this file more
2993 accurate, at least until we can sync with glibc.
2994 * getopt.c: Ditto.
2995 * getopt1.c: Ditto.
2996 * md5.c: Ditto.
2997 * obstack.c: Ditto.
9d969b59 2998
c6da642e
DD
29992000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3000
3001 * bsearch.c: New file.
3002 * configure.in (funcs): Add bsearch.
3003 (AC_CHECK_FUNCS): Likewise.
3004 * configure, config.in: Regenerate.
3005
ae7d06ad 30062000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
3007
3008 * safe-ctype.c: #include "ansidecl.h".
3009 * strtod.c: Likewise.
3010
ae7d06ad 30112000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
3012
3013 * strtoul.c: Include safe-ctype.h, not ctype.h.
3014
ac424eb3
DD
30152000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
3016
3017 * safe-ctype.c: New file.
3018 * Makefile.in (CFILES): Add safe-ctype.c.
3019 (REQUIRED_OFILES): Add safe-ctype.o.
3020
3021 * argv.c: Define ISBLANK and use it, not isspace.
3022 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
3023 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
3024 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
3025 before calling TOLOWER(c)/TOUPPER(c).
3026
4415a860
DD
30272000-12-07 Mike Stump <mrs@wrs.com>
3028
3029 * Makefile.in (distclean): When cleaning, remove testsuite.
3030
849ee224
DD
30312000-12-05 Jason Merrill <jason@redhat.com>
3032
3033 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
3034 name before allocating the dyn_string.
3035
ae7d06ad 30362000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
3037
3038 * cp-demangle.c: s/new_abi/v3/.
3039 * cplus-dem.c: Likewise.
3040 (current_demangling_style): Now auto_demangling.
3041 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 3042 (main): Use standard symbol chars for auto_demangling.
e49a569c 3043
ae7d06ad 30442000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
3045
3046 * hashtab.c (higher_prime_number): Use a table, rather than a
3047 seive, to find the next prime.
ae7d06ad
NC
3048
30492000-11-22 H.J. Lu <hjl@gnu.org>
3050
3051 * cplus-dem.c (main): Handle gnat_demangling.
3052
30532000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
3054
3055 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
3056 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
3057 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
3058 argument form of AC_DEFINE in dummy definitions block. Use
3059 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
3060 in dummy block. Preload cache variables instead of bypassing
3061 tests, where possible.
3062 * acconfig.h: Removed.
ae7d06ad 3063
2ea7befd
DD
3064 * xmalloc.c (xmalloc_failed): New function, does error
3065 reporting on failed allocation.
3066 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 3067
f1775526
HPN
30682000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
3069
3070 * cplus-dem.c (cplus_demangle): Fix formatting.
3071 (grow_vect): Ditto.
3072 (ada_demangle): Ditto.
3073 (internal_cplus_demangle): Ditto.
3074 (mop_up): Ditto.
3075
30762000-11-21 H.J. Lu <hjl@gnu.org>
3077
3078 * cplus-dem.c (main): Handle java_demangling.
3079
ae7d06ad 30802000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
3081
3082 * cplus-dem.c (grow_vect): Prototype.
3083 (ada_demangle): Cast the arg of ctype macros to unsigned char.
3084
5dd42ef4
HPN
30852000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
3086
3087 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
3088 parameter `option'.
3089
296731c1
DD
30902000-11-15 Kenneth Block <kenneth.block@compaq.com>
3091
8944fb9d 3092 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
3093 be used in GCC.
3094
6e53a714 30952000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 3096
5dd42ef4 3097 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
3098 list.
3099
99a4c1bd
HPN
31002000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
3101
3102 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
3103 xcalloc depending on htab->return_allocation_failure. Return zero
3104 if calloc fails.
99a4c1bd
HPN
3105 (htab_create): Update comment to cover memory allocation.
3106 (htab_try_create): New.
3107 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 3108 Update comment to cover this.
99a4c1bd 3109
e0f3df8f
HPN
31102000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
3111
3112 * hashtab.c: Change void * to PTR where necessary.
3113 (htab_create, htab_expand): Correct formatting of comment before
3114 function.
3115
ae7d06ad 31162000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
3117
3118 * cp-demangle.c (string_list_def): Add caret_position and comments.
3119 (result_caret_pos): New macro.
3120 (result_append_string): Rename to...
3121 (result_add_string): ... this, and insert at caret position.
ae7d06ad 3122 Rename throughout.
59666b35
DD
3123 (result_append): Rename to...
3124 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 3125 throughout.
59666b35
DD
3126 (result_append_char): Rename to...
3127 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 3128 throughout.
59666b35
DD
3129 (result_append_space): Remove.
3130 (string_list_new): Initialize caret position.
3131 (result_add_separated_char): Use caret position.
3132 (result_get_caret): New funtion.
3133 (result_set_caret): Likewise.
3134 (result_shift_caret): Likewise.
3135 (result_previous_char_is_space): Likewise.
3136 (substitution_start): Use caret position.
3137 (substitution_add): Likewise.
3138 (demangling_new): Initialize caret position.
3139 (demangle_encoding): Use caret position.
ae7d06ad 3140 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
3141 (demangle_type_ptr): Use switch statement. Handle pointers to
3142 arrays. Don't use result_append_space. Use caret position.
3143 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
3144 call to demangle_array_type.
3145 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 3146
ae7d06ad 31472000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
3148
3149 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
3150
31512000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
3152
3153 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
3154
31552000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3156
3157 * splay-tree.c: #include <stdio.h>.
3158
31592000-09-14 Hans-Peter Nilsson <hp@axis.com>
3160
3161 * testsuite/demangle-expected: Add two tests for anonymous
3162 namespaces.
3163 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
3164
31652000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
3166
3167 * splay-tree.c (splay_tree_predecessor): New function.
3168 (splay_tree_successor): Likewise.
ae7d06ad
NC
3169
31702000-09-10 Hans-Peter Nilsson <hp@axis.com>
3171
3172 * testsuite/demangle-expected: Add four tests for type_info
3173 mangling.
3174 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
3175 for a non-template non-qualified type_info function or node.
3176
31772000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3178
3179 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
3180
31812000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3182
3183 * md5.c: #include "ansidecl.h".
3184
31852000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3186
3187 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
3188 (demangle_type): Handle substitution candidates correctly in the
3189 face of special substitutions.
ae7d06ad
NC
3190
31912000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3192
3193 * cp-demangle.c (demangle_encoding): Rename variable.
3194 (demangle_name): Rename parameter. Handle return type
3195 suppression.
3196 (demangle_nested_name): Rename parameter.
3197 (demangle_prefix): Likewise. Change return type suppression.
3198 (demangle_unqualified_name): Add parameter. Flag constructors and
3199 conversion operators.
3200 (demangle_special_name): Fix comment.
3201 (demangle_type): Rename variable.
3202 (demangle_bare_function_type): Check for missing return type and
3203 parameter.
3204 (demangle_class_enum_type): Rename parameter.
3205 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
3206
32072000-08-31 DJ Delorie <dj@redhat.com>
3208
3209 * configure.in (Cygwin): special case cygwin only when we're
3210 building cygwin, not when we're hosting cygwin.
3211
32122000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3213
3214 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
3215 <expression>.
ae7d06ad
NC
3216
32172000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3218
3219 * cp-demangle.c (demangle_type_ptr): Increment position past
3220 pointer and reference characters.
ae7d06ad
NC
3221
32222000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3223
3224 * cp-demangle.c (demangle_nv_offset): New function.
3225 (demangle_v_offset): Likewise.
3226 (demangle_call_offset): Likewise.
3227 (demangle_special_name): Update thunk demangling to comply with
3228 ABI changes.
ae7d06ad
NC
3229
32302000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3231
3232 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
3233 (substitution_def): Remove template_parm_number.
3234 (NOT_TEMPLATE_PARM): Remove.
3235 (result_insert_string): New macro.
3236 (result_insert): Likewise.
3237 (result_insert_char): Likewise.
3238 (substitution_add): Remove last parameter. Don't store template
3239 parm number.
3240 (BFT_NO_RETURN_TYPE): Define as NULL.
3241 (demangle_encoding): Adjust call to demangle_bare_function_type.
3242 (demangle_name): Adjust substitution. Adjust call to
3243 substitution_add.
3244 (demangle_prefix): Adjust call to substitution_add.
3245 (demangle_identifier): Handle anonymous namespaces.
3246 (demangle_operator_name): Change demangling of vendor-extended
3247 operator to match ABI changes.
3248 (demangle_type_ptr): Change parameters. Make recursive. Handle
3249 substitutions here.
3250 (demangle_type): Adjust calls to demangle_template_param,
3251 substitution_add, and demangle_type_ptr. Fix substitution of
3252 templated types.
3253 (demangle_function_type): Change parameter to a pointer.
3254 (demangle_bare_function_type): Likewise. Adjust insertion point.
3255 (demangle_template_param): Remove last parameter.
3256 (demangle_expr_primary): Remove unused variable. Adjust call to
3257 demangle_template_param.
3258 (is_mangled_char): Accept `$' and `.'.
3259 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
3260 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
3261
32622000-08-31 Hans-Peter Nilsson <hp@axis.com>
3263
3264 * testsuite/demangle-expected: Add nine tests for
3265 underscore-after-number followed by five tests for name-signature
3266 delimiter.
3267
32682000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
3269
3270 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
3271
32722000-08-28 Jason Merrill <jason@redhat.com>
3273
3274 * Makefile.in (REQUIRED_OFILES): Add md5.o.
3275 (CFILES): Add md5.c.
3276 * md5.c: New file.
3277
32782000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3279
3280 * cp-demangle.c (demangle_name): Initialize template_p in local
3281 name case. Don't re-add substitutions as candidates.
3282 (demangle_nested_name): Use <unqualified-name>.
3283 (demangle_prefix): Likewise. Don't add template names as
3284 substitution candidates twice, or re-add a substitution or the
3285 last prefix component.
3286 (demangle_local_name): Adjust output format.
ae7d06ad
NC
3287
32882000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3289
3290 * cp-demangle.c (result_add_separated_char): Change parameter to
3291 int.
3292 (substitution_add): Don't check for duplicates. Check if
3293 previously allocated size is zero.
3294 (demangle_name): Remove duplicate check for std substitution.
3295 Clear template flag appropriately.
3296 (demangle_prefix): Remove argument to demangle_substitution.
3297 Don't check that template flag is already set.
3298 (demangle_operator_name): Add pt operator.
3299 (demangle_type): Don't treat r as built-in type. Remove argument
3300 to demangle_substitution. Fix substitution candidate mechanics.
3301 Handle <template-template-parm>s. Improve comments.
3302 (demangle_template_param): Don't handle template arg lists here.
3303 (demangle_substitution): Remove parameter.
3304 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
3305
33062000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
3307
3308 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
3309
33102000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
3311
3312 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
3313 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
3314 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
3315
33162000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3317
3318 * cp-demangle.c (result_close_template_list): Remove function.
3319 (result_add_separated_char): New function.
3320 (result_open_template_list): New macro.
3321 (result_close_template_list): Likewise.
3322 (demangle_prefix): Don't set template_p if the
3323 prefix ends with a ctor name.
3324 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
3325 (demangle_type): Check for template args after substitution.
3326 (demangle_template_args): Use result_open_template_list.
d3e85005 3327
ae7d06ad 33282000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 3329
ae7d06ad 3330 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 3331
ae7d06ad 33322000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
3333
3334 * config/mh-openedition.h: Added -DLE370 definition.
3335
a9f34fb6
JL
33362000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
3337
3338 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
3339 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
3340 Cast program to 'char *' in errmsg_arg assignment.
3341 (PWAIT_ERROR): Define.
3342 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
3343 to DJGPP's WIF* macros.
3344
90aaccd1 33452000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 3346 Jeff Law <law@cygnus.com>
90aaccd1 3347
ae7d06ad 3348 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 3349
90aaccd1 3350 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
3351 * rename.c: Include config.h, unistd.h
3352 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 3353
6ef554e3
HPN
33542000-07-24 Hans-Peter Nilsson <hp@axis.com>
3355
3356 * cplus-dem.c (work_stuff_copy_to_from): New.
3357 (delete_non_B_K_work_stuff): New.
3358 (delete_work_stuff): New.
3359 (mop_up): Break out work_stuff partly destruction to
3360 delete_non_B_K_work_stuff.
3361 (iterate_demangle_function): New.
3362 (demangle_prefix): Call iterate_demangle_function instead of
3363 demangle_function_name. Leave handling of name-signature
3364 __-delimiters to iterate_demangle_function.
3365 (demangle_integral_value): Strip an optional
3366 following underscore cautiously. Handle negative numbers.
3367
ae7d06ad 33682000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 3369
ae7d06ad 3370 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
3371 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3372
ae7d06ad
NC
33732000-07-21 Alex Samuel <samuel@codesourcery.com>
3374
3375 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3376 allocating ctor mangling.
3377 (demangle_array_type): Handle empty and non-constant array length.
3378
b1233257 33792000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
3380 Jeff Law <law@cygnus.com>
3381
3382 * configure.in (AC_CHECK_HEADERS): Add time.h.
3383 (AC_HEADER_TIME): Add check.
3384 * configure, config.in: Regenerate.
3385 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3386
3387 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3388 * configure, config.in: Regenerate.
3389 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3390 * strtol.c, strtoul.c: #include "config.h". Portably #include
3391 <limits.h> and/or <sys/param.h>.
3392 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 3393
7d3ffcaf
JL
3394 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3395 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3396 * configure, config.in: Regenerate.
3397 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3398
b1233257
JL
3399 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3400
ae7d06ad
NC
34012000-07-21 Mike Stump <mrs@wrs.com>
3402
3403 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
3404 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
3405
34062000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3407
3408 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3409
3410 * setenv.c (setenv): Initialize variable `ep'.
3411
3412 * sigsetmask.c (abort): Prototype.
3413
3414 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3415 __STDC__ for stdarg.h include.
3416 (int_vasprintf): Prototype.
3417 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3418 definition. Cast `global_total_width' in comparison.
3419 (main): Prototype. Return a value.
3420
3421 * vfork.c (fork): Prototype.
3422
3423 * xexit.c: Include config.h.
3424
9adf30b2
JL
34252000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3426
3427 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3428 and print it with %u.
3429
2ed78d1b
HPN
34302000-07-17 Hans-Peter Nilsson <hp@axis.com>
3431
3432 * testsuite/regress-demangle (failed test): Show result and
3433 expected output.
3434
0473bdf7
AH
34352000-07-07 Andrew Haley <aph@cygnus.com>
3436
3437 * cplus-dem.c (main): fflush() after emitting last char before
3438 waiting for input.
3439
03d5f569
JM
34402000-06-28 Alex Samuel <samuel@codesourcery.com>
3441
3442 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3443 (demangle_name): Handle <substitution> followed by
3444 <unqualified-template-name>.
3445 (demangle_type): Follow special substitutions with
3446 <class-enum-type>
3447 (demangle_subtitution): Set template_p for special substitutions.
3448 (main): Fix typos.
ae7d06ad 3449
03d5f569
JM
34502000-06-27 Alex Samuel <samuel@codesourcery.com>
3451
3452 * cp-demangle.c (demangle_special_name): Swap base and derived
3453 class when demangling construction vtables.
3454
34552000-06-21 Alex Samuel <samuel@codesourcery.com>
3456
3457 * cp-demangle.c: Don't include ctype.h.
3458 (IS_DIGIT): New macro.
3459 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3460 instead of isdigit and isalpanum.
3461 (demangling_def): Make name and next const pointers.
3462 (STATUS_ALLOCATION_FAILED): New status code.
3463 (dyn_string_append_space): Handle failure in
3464 dyn_string_append_char.
3465 (int_to_dyn_string): Likewise. Change return value to status_t.
3466 (string_list_new): Handle failure of dyn_string_init.
3467 (result_close_template_list): Change return type to status_t.
3468 Handle failure in dyn_string_append.
3469 (result_push): Change return value to status_t. Handle failure in
3470 string_list_new. Handle failure of result_push throughout.
3471 (substitution_add): Change return value to status_t. Handle
3472 dyn_string failures. Handle failure of substitution_add
3473 throughout.
3474 (template_arg_list_new): Return NULL on allocation failure.
3475 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3476 Handle error result throughout.
3477 (result_append): Likewise.
3478 (result_append_char): Likewise.
3479 (result_append_space): Likewise.
3480 (demangling_new): Make argument a const pointer. Handle
3481 allocation failures.
3482 (demangle_template_args): Handle failure in template_arg_list_new
3483 and result_close_template_list.
3484 (demangle_discriminator): Return if int_to_dyn_string fails.
3485 (cp_demangle): Likewise.
3486 (cp_demangle_type): New function.
3487 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3488 memory allocation failure.
3489 (main): Likewise.
3490 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3491 IN_LIBGCC2.
3492 (dyn_string_init): Change return value to int. Handle
3493 RETURN_ON_ALLOCATION_FAILURE case.
3494 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3495 (dyn_string_release): Delete the dyn_string.
3496 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3497 (dyn_string_copy): Change return type to int.
3498 (dyn_string_copy_cstr): Likewise.
3499 (dyn_string_prepend): Likewise.
3500 (dyn_string_prepend_cstr): Likewise.
3501 (dyn_string_insert): Likewise.
3502 (dyn_string_insert_cstr): Likewise.
3503 (dyn_string_append): Likewise.
3504 (dyn_string_append_cstr): Likewise.
3505 (dyn_string_append_char): Likewise.
3506 (dyn_string_substring): Likewise.
ae7d06ad 3507
eb383413 35082000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 3509
eb383413
L
3510 * cp-demangle.c (demangle_operator_name): Add spaces before
3511 names beginning with a letter: delete, delete[], new, new[],
3512 sizeof.
3513 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 3514
eb383413
L
3515Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3516
3517 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3518
3519Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3520
3521 * cp-demangle.c (stdio.h): File included unconditionaly.
3522 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3523 * dyn-string.c (stdio.h): File included.
3524 * partition.c (partition_print): No `&' needed to take the address of
3525 a function.
3526
35272000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3528
3529 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 3530
eb383413
L
3531 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3532
3533 * cp-demangle.c (demangle_char): Change parameter from char to int.
3534 (demangle_expression, demangle_expr_primary): Remove extra
3535 semi-colon in prototype.
3536
3537 * dyn-string.c (dyn_string_append_char): Change parameter from
3538 char to int.
3539
3540 * memcmp.c (memcmp): Constify.
3541
3542 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3543 __extension__.
3544
3545 * partition.c (elem_compare): Prototype. Don't cast away
3546 const-ness.
3547
3548 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 3549
eb383413
L
35502000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3551
3552 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3553
3554 * cp-demangle.c: Include demangle.h.
3555 (template_arg_list_new): DeANSIfy.
3556 (cp_demangle): Make static and add prototype.
3557 (operator_code, operators): Constify.
3558 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3559
35602000-06-05 Alex Samuel <samuel@codesourcery.com>
3561
3562 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3563 unsigned char.
3564 (demangle_unqualified_name): Likewise.
3565 (demangle_number_literally): Likewise.
3566 (demangle_type): Likewise.
3567 (demangle_substitution): Likewise.
3568 (is_mangled_char): Likewise, for isalnum.
3569
35702000-06-04 Alex Samuel <samuel@codesourcery.com>
3571
3572 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3573 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3574 (cp-demangle.o): New dependency.
3575 (dyn-string.o): Likewise.
3576
3577 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3578
3579 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3580 demangler.
3581 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3582 demangling mode.
3583 (gnu_new_abi_symbol_characters): New function.
3584 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3585 file.
3586 * cp-demangle.c: New file.
ae7d06ad 3587
f03aa80d
AC
3588Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3589
3590 * floatformat.c: Add name to each floatformat field.
3591
77bfb694
JL
3592Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3593
3594 * Makefile.in (objalloc.o): Depend on config.h
3595
5c82d20a
ZW
35962000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3597
eb383413 3598 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
3599 if HAVE_STRING_H.
3600 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3601 * objalloc.c: Include config.h. Include stdlib.h and don't
3602 declare malloc or free if HAVE_STDLIB_H.
3603 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3604 else declare malloc without prototype. Include string.h if
3605 HAVE_STRING_H, else declare memset without prototype. Don't
3606 include stddef.h.
3607
eb383413
L
36082000-05-23 Mike Stump <mrs@wrs.com>
3609
3610 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 3611 -j3.
eb383413
L
3612
36132000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3614
3615 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3616
36172000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3618
ae7d06ad 3619 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
3620 probably zero, also eliminate a warning on alpha.
3621
36222000-05-15 David Edelsohn <edelsohn@gnu.org>
3623
3624 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
3625 on $(enable_shared).
3626
36272000-05-10 Jakub Jelinek <jakub@redhat.com>
3628
3629 * config.table: Use mh-sparcpic for sparc*-*-*.
3630
36312000-05-08 Nick Clifton <nickc@cygnus.com>
3632
3633 * Makefile.in (CFILES): Add strncmp.c.
3634 (NEEDED): Add strncmp.
3635
36362000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 3637
eb383413
L
3638 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3639 Cast the arguments to `islower' to `unsigned char'.
3640 (print_demangler_list): Prototype.
3641
3642Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3643
3644 * sort.c (UCHAR_MAX): Provide fallback definition.
3645
36462000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
3647
3648 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3649 SUBDIRS.
3650
eb383413
L
36512000-04-28 Kenneth Block <block@zk3.dec.com>
3652 Jason Merrill <jason@casey.cygnus.com>
3653
ae7d06ad
NC
3654 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3655 (cplus_demangle_set_style): New function for setting style.
3656 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
3657
36582000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3659
3660 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3661
3662 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3663 (libiberty_AC_FUNC_STRNCMP): Invoke.
3664
3665 * strncmp.c: New file.
3666
3667Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3668
3669 * hashtab.c (htab_expand): Add prototype.
3670 (find_empty_slot_for_expand): Likewise.
3671
36722000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3673
3674 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3675 match prototype.
3676 (htab_expand): Cast the return value of xcalloc.
3677
36782000-04-24 Mark Mitchell <mark@codesourcery.com>
3679
3680 * hashtab.c (hash_pointer): New function.
3681 (eq_pointer): Likewise.
3682 (htab_hash_pointer): New variable.
3683 (htab_eq_pointer): Likewise.
3684
36852000-04-23 Mark Mitchell <mark@codesourcery.com>
3686
3687 * sort.c (sort_pointers): Fix endianness bugs.
3688
3689 * sort.c: New file.
3690 * Makefile.in (CFILES): Add sort.c
3691 (REQUIRED_OFILES): Add sort.o.
3692 (sort.o): New target.
3693
19be4303
JL
36942000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3695
3696 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3697 4.3BSD systems.
3698
eb383413
L
3699Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3700
3701 * hashtab.c: Various minor cleanups.
3702 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3703 (htab_find_slot): Likewise.
3704
37052000-04-16 Dave Pitts <dpitts@cozx.com>
3706
3707 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 3708
afe36a78
RH
37092000-04-05 Richard Henderson <rth@cygnus.com>
3710
3711 * splay-tree.c (splay_tree_remove): New.
3712
eb383413
L
37132000-03-30 Mark Mitchell <mark@codesourcery.com>
3714
3715 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3716 codes.
3717 (htab_find_with_hash): Likewise.
3718 (htab_find_slot_with_hash): Likewise.
ae7d06ad 3719
eb383413
L
37202000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3721
3722 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3723 unless it will be used. Rearrange loop for better
3724 optimization.
3725 (higher_prime_number): Add static prototype.
3726
b4fe2683
JM
3727Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3728
3729 * Makefile.in (partition.o): Depend on config.h
3730
37312000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3732
3733 * hashtab.c (find_empty_slot_for_expand): New function.
3734 (htab_expand): Use it instead of htab_find_slot.
3735 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3736 argument HASH.
3737 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3738 (htab_find): New wrapper function.
3739 (htab_find_slot): Likewise.
3740 (htab_traverse): Pass slot, not entry, to called function.
3741
37422000-03-09 Alex Samuel <samuel@codesourcery.com>
3743
3744 * Makefile.in (CFILES): Add partition.c.
3745 (REQUIRED_OFILES): Add partition.o.
3746 (partition.o): New rule.
3747 * partition.c: New file.
ae7d06ad 3748
b4fe2683
JM
37492000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3750
3751 * hashtab.c (htab_create): Set del_f.
3752 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3753 Use it.
3754
37552000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3756
3757 * hashtab.c: Remove debugging variables (all_searches,
3758 all_collisions, all_expansions). Delete
3759 all_hash_table_collisions.
3760 (create_hash_table, delete_hash_table, empty_hash_table,
3761 find_hash_table_entry, remove_element_from_hash_table_entry,
3762 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3763 hash_table_elements_number, hash_table_collisions): Rename to:
3764 htab_create, htab_delete, htab_empty, htab_find_slot,
3765 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3766 htab_elements, htab_collisions.
3767 (htab_find): New function, handles common case where you don't
3768 plan to add or delete an entry.
3769 (htab_expand): Don't create a whole new table, just a new
3770 entry vector.
3771 (htab_find_slot): Simplify logic.
3772
08372f14
ILT
37731999-08-03 Ian Lance Taylor <ian@zembu.com>
3774
3775 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3776 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3777
3778 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3779 $(TARGETLIB)n so it works on MSDOS.
3780 (install_to_tooldir): Likewise.
3781
9c8ac5a9
ILT
37821999-07-21 Ian Lance Taylor <ian@zembu.com>
3783
3784 From Mark Elbrecht:
3785 * makefile.dos: Remove; obsolete.
8f36e47c 3786 * configure.bat: Remove; obsolete.
9c8ac5a9 3787
0c0a36a4
ILT
37881999-07-11 Ian Lance Taylor <ian@zembu.com>
3789
3790 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3791 warning.
3792
37932000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3794
3795 * pexecute.c: Conditionally include string.h.
b4fe2683 3796 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
3797
37982000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3799
3800 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3801 we're using gcc.
3802
3803 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3804
38051999-12-27 Geoff Keating <geoffk@cygnus.com>
3806
3807 * vasprintf.c (int_vasprintf): Don't re-read the format character
3808 as this mishandles strings like '%%s'.
3809
38101999-12-05 Mark Mitchell <mark@codesourcery.com>
3811
3812 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3813 rather than struct splay_tree_node.
3814 (splay_tree_insert): Use struct splay_tree_s rather than struct
3815 splay_tree.
3816
3817Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3818
3819 * hashtab.c (sys/types.h): File included.
3820
38211999-11-22 Jason Merrill <jason@casey.cygnus.com>
3822
3823 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3824 BSD license, pursuant with
3825
3826 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3827
3828Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3829
3830 * hashtab.c: Include stdio.h.
3831
3832Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3833
3834 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3835
3836Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3837
3838 * xstrdup (sys/types.h): Include this file.
3839
38401999-10-28 Nathan Sidwell <nathan@acm.org>
3841
3842 * Makefile.in (SUBDIRS): New macro.
3843 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3844 avoid multiple subdirectory cleaning.
3845 (*-subdir): Use SUBDIRS.
3846
38471999-10-25 Jim Kingdon <http://developer.redhat.com/>
3848
3849 * cplus-dem.c: Move declarations of standard_symbol_characters and
3850 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3851 warnings.
3852
38531999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3854
3855 * hashtab.c (find_hash_table_entry): When returning a
3856 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3857 (clear_hash_table_slot): New function which deletes an entry
3858 by its position in the table, not its value.
3859 (traverse_hash_table): New function which calls a hook
3860 function for every live entry in the table.
3861
38621999-10-19 Mark Mitchell <mark@codesourcery.com>
3863
3864 * cplus-dem.c (INTBUF_SIZE): New macro.
3865 (string_append_template_idx): New function.
3866 (demangle_expression): Likewise.
3867 (demangle_integral_value): Use it.
3868 (demangle_real_value): New function, split out from ...
3869 (demangle_template_value_parm): ... here. Use
3870 string_append_template_idx. Use demangle_real_value.
3871 (demangle_template): Use string_append_template_idx.
3872 (demangle_qualified): Use consume_count_with_underscores.
3873 (get_count): Tweak formatting.
3874 (do_type): Use string_append_template_idx.
b4fe2683 3875
0c0a36a4
ILT
38761999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3877
3878 * calloc.c: Add a public domain notice.
3879
3880Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3881
3882 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3883
3884Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3885
3886 * Makefile.in (CFILES): Add hashtab.c
3887 (REQUIRED_OFILES): Add hashtab.o
3888 (hashtab.o): Add dependencies.
3889 * hashtab.c: New file
3890
3891Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3892
3893 * basename.c (DIR_SEPARATOR): New macro.
3894 (DIR_SEPARATOR_2): Likewise.
3895 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3896 (IS_DIR_SEPARATOR): Likewise.
3897 (main): Handle MSDOS style pathname.
3898
38991999-10-11 Mark Mitchell <mark@codesourcery.com>
3900
3901 * cplus-dem.c (do_type): Handle pointer to member types whose
3902 enclosing classes have namespace scope.
3903
3904Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3905
3906 * config.table: Provide a backup shell for executing move-if-change.
3907
39081999-10-02 Mark Mitchell <mark@codesourcery.com>
3909
3910 * xmalloc.c (xmalloc): Fix spelling error.
3911 (xcalloc, xrealloc): Likewise.
3912
39131999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3914
3915 * cplus-dem.c (fancy_abort, demangle_integral_value,
3916 demangle_arm_hp_template, recursively_demangle,
3917 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3918 (program_name, program_version, fatal): Constify a char*.
3919 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3920 (main): Call return, not exit.
3921
39221999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3923
3924 * choose-temp.c: Remove obsolete comment about gcc.
3925 (make_temp_file): Constify a char*.
3926
3927Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3928
3929 * xmemdup.c: Include sys/types.h.
3930
39311999-09-07 Jeff Garzik <jgarzik@pobox.com>
3932
3933 * xmemdup.c: New xmemdup function.
3934 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3935
3936Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3937
b4fe2683 3938 * config.table: Add openedition target.
0c0a36a4
ILT
3939 * config/mh-openedition: New file.
3940
3941Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3942
3943 * pexecute.c (pexecute): Fill in temp_base when needed.
3944
39451999-08-31 Richard Henderson <rth@cygnus.com>
3946
3947 * getpwd.c: Check HAVE_GETCWD before defining it away.
3948
39491999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3950
3951 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3952 (REQUIRED_OFILES): Add getpwd.o.
3953 (getpwd.o): Add target.
3954
3955 * configure.in (AC_PREREQ): Bump to 2.13.
3956 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3957
3958 * getpwd.c: New file, moved here from gcc.
3959
39601999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3961
3962 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3963 comparing against a signed quantity.
3964 (arm_special): Likewise.
3965 (demangle_fund_type): Likewise.
3966 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 3967 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
3968 (main): Constify variable `valid_symbols'.
3969
3970Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3971
3972 * strtoul.c (strtoul): Add parentheses around && within ||.
3973
3974Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3975
3976 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3977 libdir, libsubdir and tooldir.
3978
39791999-08-01 Mark Mitchell <mark@codesourcery.com>
3980
3981 * splay-tree.c (splay_tree_insert): Return the new node.
3982
35ca97ea
RH
39831999-07-14 Richard Henderson <rth@cygnus.com>
3984
b4fe2683 3985 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
3986 prototyping directly.
3987 * choose-temp.c: Conditionally include string.h.
3988
0c0a36a4
ILT
39891999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3990
3991 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3992
af32ff69
ILT
39931999-07-11 Ian Lance Taylor <ian@zembu.com>
3994
3995 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3996 warning.
3997
0c0a36a4
ILT
39981999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3999
4000 * Makefile.in (needed-list): Only include stuff we actually need
4001 for libstdc++.
4002
40031999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4004
4005 * configure.in (checkfuncs): Add gettimeofday.
4006 * config.in, configure: Regenerated.
4007
4008Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
4009
4010 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
4011 the test fails.
4012 * configure: Regenerate.
4013
40141999-06-10 Mike Stump <mrs@wrs.com>
4015
4016 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
4017 parallel builds.
4018
40191999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4020
4021 * putenv.c: Include ansidecl.h to define `const'.
4022 * setenv.c: Likewise.
4023
4024Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
4025
4026 * Makefile.in (CFILES): Add putenv.c and setenv.c.
4027 * configure.in (funcs): Add putenv and setenv.
4028 (AC_CHECK_FUNCS): Check for putenv and setenv.
4029 * configure: Rebuilt.
4030 * putenv.c setenv.c: New files.
4031
4032 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
4033 bytes of space using malloc.
4034
4035Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
4036
4037 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
4038 the *mangled pointer beyond the end of the string. Clean up code to
4039 match prevailing coding style.
4040
40411999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4042
4043 * tmpnam.c (L_tmpnam): Fix typo.
4044
4045Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
4046
4047 * cplus-dem.c (standard_symbol_characters): Renamed from
4048 standard_symbol_alphabet. No longer modify TABLE.
4049 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
4050 modify TABLE.
4051 (main): Corresponding changes. Use strchr to determine if a
4052 character is valid.
4053
e9868447
JB
40541999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
4055
4056 * cplus-dem.c (main): Use table lookup to distinguish identifier
4057 characters from non-identifier characters.
4058 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
4059
33fbbfbc
RH
4060Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
4061
4062 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
4063 * getruntime.c: Only attempt to include sys/resource.h and
4064 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
4065 are defined.
4066
0c0a36a4
ILT
4067Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
4068
4069 * configure.in (alloca detection): Handle alloca directly for interix.
4070 * configure: Rebuilt.
4071
4072Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
4073
4074 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
4075
252b5132
RH
40761999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
4077
4078 Fix from Dale Hawkins:
b4fe2683 4079 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
4080 reallocated properly if we use it again.
4081
4082 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
4083 stricter about syntax. Always null-terminate string.
4084
c1687039
ILT
4085Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
4086
4087 * configure.in (checkfuncs): Check for sbrk.
4088 * config.in: Rebuilt.
4089 * configure: Likewise.
4090 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
4091
0c0a36a4
ILT
40921999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
4093
4094 Fix from Marcus Daniels:
4095 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
4096 identifier looking for another underscore.
4097
4098Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
4099
4100 * pexecute.c: Change all references to __UWIN__ to _UWIN.
4101 * xmalloc.c: Likewise.
4102 (xcalloc): UWIN has sbrk.
4103 (xrealloc): Fix guard macro.
4104
252b5132
RH
41051999-04-11 Richard Henderson <rth@cygnus.com>
4106
4107 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
4108 or <alloca.h>.
4109 * clock.c (GNU_HZ): New definition.
4110 (clock): Use it.
4111 * getruntime.c: Likewise.
4112
4113 * config.table: Use mh-beos.
4114 * config/mh-beos: New file.
4115
0c0a36a4
ILT
41161999-04-11 Mark Mitchell <mark@codesourcery.com>
4117
4118 * cplus-dem.c (demangle_template_value_parm): Handle
4119 pointers-to-members.
4120 (do_type): Handle template parameters as qualifiers.
4121
252b5132
RH
41221999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
4123
4124 * cplus-dem.c: Attempt to handle overflows in counts with some
4125 semblance of grace.
4126 (consume_count): Detect overflows. Return -1 to indicate errors,
4127 instead of zero.
4128 (demangle_template_value_parm, demangle_template): Handle change
4129 to consume_count's return convention.
4130
0c0a36a4
ILT
41311999-04-05 Tom Tromey <tromey@cygnus.com>
4132
4133 * testsuite/regress-demangle: New file.
4134 * testsuite/demangle-expected: New file.
252b5132 4135
0c0a36a4
ILT
4136 * Makefile.in (all, check, installcheck, info, install-info,
4137 clean-info, dvi, install, etags, tags, mostlyclean, clean,
4138 distclean, maintainer-clean, realclean): Depend on corresponding
4139 `-subdir' target.
4140 (all-subdir check-subdir installcheck-subdir info-subdir
4141 install-info-subdir clean-info-subdir dvi-subdir
4142 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
4143 distclean-subdir maintainer-clean-subdir): New target.
4144 * testsuite/Makefile.in: New file.
4145 * configure: Rebuilt.
4146 * configure.in: Create testsuite/Makefile.
252b5132
RH
4147
41481999-04-02 Mark Mitchell <mark@codesourcery.com>
4149
4150 * splay-tree.h (splay_tree_compare_pointers): Define.
4151
41521999-03-30 Mark Mitchell <mark@codesourcery.com>
4153
4154 * splay-tree.c (splay_tree_compare_ints): Define.
4155
41561999-03-30 Tom Tromey <tromey@cygnus.com>
4157
4158 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
4159 don't advance input pointer.
4160 (demangle_class_name): If consume_count didn't find a count, do
4161 nothing. Don't bother with `strlen' sanity check; consume_count
4162 does it for us.
4163
41641999-03-16 Stan Shebs <shebs@andros.cygnus.com>
4165
4166 From Art Haas <ahaas@neosoft.com>:
4167 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
4168 when doing arm or hp style.
4169 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 4170
252b5132
RH
4171Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
4172
4173 * pexecute.c (__CYGWIN32__): Rename to
4174 (__CYGWIN__): this.
4175 * xmalloc.c: Likewise.
4176
4177 Changes to support i386-pc-uwin.
4178 * configure.in (*-*-uwin*): Workaround for vfork bug.
4179 * configure: Regenerate.
4180 * pexecute.c (pexecute): Be like standard Unix.
4181 (pwait): Likewise.
4182 * xmalloc.c (first_break): Define.
4183 (xmalloc_set_program_name): Use.
4184 (xmalloc): Use.
4185
4186Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4187
4188 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
4189
4190Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
4191
4192 * config.table: Check cygwin*, not cygwin32*.
4193
4194Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
4195
4196 * Makefile.in: Change mkstemp -> mkstemps.
4197
4198Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
4199
4200 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
4201 * configure.in (funcs): Check for and conditionally add mkstemps to
4202 the list of functions libiberty will provide.
4203 * configure: Rebuilt.
b4fe2683 4204
252b5132
RH
4205Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
4206
b4fe2683 4207 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
4208 platforms that don't have HZ.
4209 * getruntime.c (HZ): Likewise.
4210
4211Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
4212
4213 * Makefile.in (xstrdup.o): Depend on config.h.
4214
4215Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
4216
4217 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
4218 freeing it.
4219
4220Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4221
4222 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
4223
4224Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4225
4226 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
4227 splay-tree.o.
4228
42291999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4230
4231 * configure.in: Require autoconf 2.12.1 or higher.
4232
42331998-12-30 Michael Meissner <meissner@cygnus.com>
4234
4235 * random.c (NULL): Don't redefine NULL if it is already defined.
4236
4237Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4238
4239 * argv.c (buildargv): Cast the result of alloca in assignment.
4240
4241 * choose-temp.c: Include stdlib.h.
4242
4243 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
4244 (snarf_numeric_literal): Constify first parameter.
4245 (code_for_qualifier): Avoid a gcc extension, make the parameter an
4246 int, not a char.
252b5132
RH
4247 (demangle_qualifier): Likewise.
4248 (demangle_signature): Cast the argument of a ctype function to
4249 unsigned char.
4250 (arm_pt): Add parens around assignment used as truth value.
4251 (demangle_arm_hp_template): Constify variable `args'.
4252 (do_hpacc_template_const_value): Cast the argument of a ctype
4253 function to unsigned char.
4254 (do_hpacc_template_literal): Remove unused variable `i'.
4255 (snarf_numeric_literal): Constify parameter `args'.
4256 Cast the argument of a ctype function to unsigned char.
4257
4258 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 4259 avoid ambiguous `else'.
252b5132
RH
4260
4261 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
4262 `cstart' and `cend' to unsigned char. Cast the argument of macro
4263 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
4264
4265 * objalloc.c (free): Add prototype.
4266
4267Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
4268
4269 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
4270
4271Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
4272
4273 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 4274 doesn't exist.
252b5132 4275 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 4276
252b5132
RH
4277Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4278
4279 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
4280 bumping the pointer we read from. Also prepend these codes,
4281 as we do in other places.
4282
42831998-12-18 Nick Clifton <nickc@cygnus.com>
4284
4285 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
4286 'const char *' in order to match its usage when calling siblings.
4287 (snarf_numeric_literal): Make first arg 'const char **' in order
4288 to match usage.
4289
4290Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4291
4292 * choose-temp.c: Don't check IN_GCC anymore.
4293
4294 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
4295 * memchr.c (memchr): Likewise.
4296 * memcpy.c (memcpy): Likewise.
4297 * memmove.c (memmove): Likewise.
4298
4299 * mkstemp.c: Don't check IN_GCC anymore.
4300 * pexecute.c: Likewise.
4301 * splay-tree.c: Likewise.
4302
4303 * strchr.c (strchr): Use `const', not `CONST'.
4304 * strrchr.c (strrchr): Likewise.
4305 * strtol.c (strtol): Likewise.
4306 * strtoul.c (strtoul): Likewise.
4307
4308Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
4309 Elena Zannoni <ezannoni@cygnus.com>
4310 Stan Shebs <shebs@cygnus.com>
4311 Edith Epstein <eepstein@cygnus.com>
4312 Andres MacLeod <amacleod@cygnus.com>
4313 Satish Pai <pai@apollo.hp.com>
4314
4315 * HP aCC demangling support.
4316 * cplus-dem.c
4317 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
4318 demangling correctly when -edg specified; set the demangling style
4319 when user specifies 'edg'. Set strip_underscore to
4320 prepends_underscore, if not HPUXHPPA. Set
4321 current_demangling_style to hp_demangling if HPUXHPPA. Set
4322 current demangling style correctly if the switch is hp. Read
4323 label correctly also in the HP style case.
252b5132 4324 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 4325 function.
252b5132 4326 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 4327 style for this case is the same as ARM.
252b5132
RH
4328 (demangle_args): handle EDG_DEMANGLING style; support HP style.
4329 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
4330 demangle_arm_pt.); check and set value of temp_start field in
4331 multiple places. Also, when ceching for end of template args,
4332 check to see if at end of static member of template class.
252b5132 4333 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 4334 include template args in string defining class.
252b5132
RH
4335 (demangle_class_name): use demangel_arm_hp_template.
4336 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
4337 HP_DEMANGLING and currently point at an 'X' in the mangled name.
4338 Handle EDG_DEMANGLING style. Handle constructor and destructor
4339 ops for HP style.
252b5132 4340 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
4341 styles. global destructor and constructor for HP style are same
4342 as for ARM style. Same for local variables.
252b5132
RH
4343 (demangle_qualified): handle EDG_DEMANGLING style.
4344 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
4345 cases '1' - '9' : initialize the temp_start field to -1 and handle
4346 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
4347 and AUTO_DEMANGLING styles. If expecting a function and managed
4348 to demangle the funct args, then handle the LUCID_DEMANGLING,
4349 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
4350 class name after "Lnnn_ in HP style case. HP style too needs to
4351 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 4352 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 4353 value param for HP/aCC.
252b5132 4354 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 4355 literal parameter for HP aCC.
252b5132
RH
4356 (recursively_demangle): new function
4357 (snarf_numeric_literal): new function.
4358 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 4359 to message.
252b5132
RH
4360
4361Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
4362
4363 * pexecute.c: Remove obsolete ifdefed cygwin code.
4364
4365Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4366
4367 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
4368 * cplus-dem.c: Likewise. Conform to libiberty.h.
4369 * pexecute.c: Likewise.
4370 * splay-tree.c: Likewise.
4371
43721998-11-25 Mike Stump <mrs@wrs.com>
4373
4374 * Makefile.in (splay-tree.o): Add config.h dependency.
4375
4376Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4377
4378 * configure.in: Use AC_PREREQ(2.12.1).
4379
43801998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
4381
b4fe2683 4382 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
4383
4384Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
4385
4386 * mpw.c (mpw_access): Add missing parens.
4387
4388Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4389
4390 * configure.in: Call AC_HEADER_SYS_WAIT.
4391
4392 * pexecute.c: Include sys/wait.h when !IN_GCC.
4393
4394Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
4395
4396 * pexecute.c: revert back to checking old Cygwin
4397 preprocessor symbol until some time has passed.
4398
4399Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
4400
4401 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4402 since it will now support similar constructs.
4403
4404Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4405
4406 * configure.in: Check for calloc.
4407
4408 * calloc.c: New file.
4409
4410 * xmalloc.c (xcalloc): New function.
4411
4412Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4413
4414 *cplus-dem.c (demangle_prefix): Use the last "__"
4415 in the mangled name when looking for the signature. This allows
4416 template names to begin with "__".
4417
44181998-11-08 Mark Mitchell <mark@markmitchell.com>
4419
4420 * cplus-dem.c (type_kind_t): Add tk_reference.
4421 (demangle_template_value_parm): Handle it.
4422 (do_type): Use it for references, instead of tk_pointer.
4423
4424 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4425 not internal_cplus_demangle.
4426
4427Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4428
4429 * choose-temp.c: Don't include gansidecl.h.
4430 * mkstemp.c: Likewise.
4431 * pexecute.c: Likewise.
4432
4433Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4434
b4fe2683
JM
4435 * configure.in: detect cygwin* instead of cygwin32*
4436 * configure: regenerate
252b5132
RH
4437
4438Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4439
4440 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
4441 whether to include config.h. Possibly include unistd.h in the
4442 !IN_GCC case. Define VFORK_STRING as a printable function call
4443 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
4444 defined, include vfork.h. If VMS is defined, define vfork()
4445 appropriately. Remove vfork check on USG, we're using autoconf.
4446 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
4447 locally what string to use.
252b5132
RH
4448
44491998-10-26 Mark Mitchell <mark@markmitchell.com>
4450
4451 * splay-tree.c: Tweak include directives to make sure declarations of
4452 xmalloc and free are available.
4453
44541998-10-25 Mark Mitchell <mark@markmitchell.com>
4455
4456 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4457 anonymous namespaces.
4458
44591998-10-23 Mark Mitchell <mark@markmitchell.com>
4460
4461 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
4462 with type_quals.
4463 (TYPE_UNQUALIFIED): New macro.
4464 (TYPE_QUAL_CONST): Likewise.
4465 (TYPE_QUAL_VOLATILE): Likewise.
4466 (TYPE_QUAL_RESTRICT): Likewise.
4467 (code_for_qualifier): New function.
4468 (qualifier_string): Likewise.
4469 (demangle_qualifier): Likewise.
4470 (internal_cplus_demangle): Use them.
4471 (demangle_signature): Likewise.
4472 (demangle_template_value_parm): Likewise.
4473 (do_type): Likewise.
4474 (demangle_fund_type)): Likewise.
4475
4476Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4477
4478 * splay-tree.c (splay_tree_foreach_helper): Make definition static
4479 to match prototype.
4480
44811998-10-21 Mark Mitchell <mark@markmitchell.com>
4482
4483 * splay-tree.c: New file.
4484 * Makefile.in (CFILES): Add it.
4485 (REQUIRED_OFILES): Likewise.
4486 (splay-tree.o): Add dependencies.
4487
4488Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4489
4490 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
4491 range of 'K' index.
4492
4493Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4494
4495 * choose-temp.c: Prototype mkstemps() when IN_GCC.
4496
4497 * cplus-dem.c (consume_count): Cast argument of ctype macro to
4498 `unsigned char'.
4499 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
4500 comparing against one.
4501 (cplus_mangle_opname): Likewise.
4502 (demangle_integral_value): Cast argument of ctype macro to
4503 `unsigned char'.
4504 (demangle_template_value_parm): Likewise.
4505 (demangle_template): Initialize variable `bindex'. Cast the
4506 result of `strlen' to (int) when comparing against one. Remove
4507 unused variable `start_of_value_parm'.
4508 (demangle_class_name): Cast the result of `strlen' to (int) when
4509 comparing against one.
4510 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
4511 (gnu_special): Likewise. Cast the result of `strlen' to (int)
4512 when comparing against one.
4513 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
4514 (get_count): Likewise.
4515 (do_type): Likewise. Cast the result of `strlen' to (int) when
4516 comparing against one.
4517 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
4518 (demangle_function_name): Cast the result of `strlen' to (int)
4519 when comparing against one.
4520
4521 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
4522 comparing against one.
4523
4524Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
4525
b4fe2683
JM
4526 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
4527 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
4528 * config.in, configure: Rebuilt.
252b5132
RH
4529
4530 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
4531 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
4532 * config.in, configure: Rebuilt.
4533
4534Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4535
b4fe2683 4536 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
4537
4538Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
4539
4540 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4541
4542Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4543
4544 * Merge egcs & devo libiberty.
4545