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