]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
Makefile.in: Rebuilt.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
456cc5cf
SB
12007-01-29 Simon Baldwin <simonb@google.com>
2
3 * cp-demangle.h (cplus_demangle_operators): External definition
4 suppressed if not building for libstdc++.
5 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
6 to demangling, provides a malloc-less version of __cxa_demangle.
7 (cplus_demangle_print_callback): Public callback version of
8 cplus_demangle_print.
9 (struct d_growable_string): New growable string structure.
10 (d_growable_string_init): New function, provides support for
11 growable strings separate from print info.
12 (d_growable_string_resize): Likewise.
13 (d_growable_string_append_buffer): Likewise.
14 (d_growable_string_callback_adapter):): Likewise.
15 (d_print_init): New print info initialization function.
16 (d_print_error): Macro replace by inline function.
17 (d_print_saw_error): Likewise.
18 (d_append_char): Likewise.
19 (d_append_buffer): Likewise.
20 (d_append_string): New inline function, replaces the
21 d_append_string_constant macro.
22 (d_flush_buffer): New function, flushes buffer to callback.
23 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
24 for unsupported dynamic arrays replaced by alloca().
25 (d_demangle): Return string length estimating removed.
26 (d_dump): Moved error case handling from call site into function.
27 (d_print_resize): Function removed.
28 (d_print_append_char): Likewise.
29 (d_print_append_buffer): Likewise.
30 (d_print_error): Likewise.
31 (d_print_comp): Added special case handling for Java arrays.
32 (java_demangle_v3): Removed string post-processing for Java arrays,
33 now replaced by special case handling in d_print_comp.
34 (cplus_demangle_v3_callback): Augmented interface to demangling,
35 provides a malloc-less version of cplus_demangle_v3.
36 (java_demangle_v3_callback): Augmented interface to demangling,
37 provides a malloc-less version of java_demangle_v3.
38
7d37bf39
BE
392007-01-12 Ben Elliston <bje@au.ibm.com>
40
1a8e58a3
BE
41 * pex-unix.c (writeerr): Cast write result to void.
42
4d4f0164
BE
43 * choose-temp.c (choose_temp_base): Check the result of the call
44 to mktemp rather than testing the length of the modified string.
7d37bf39 45
5165f125
GK
462006-12-20 Geoffrey Keating <geoffk@apple.com>
47
48 * cp-demangle.h: Add comment explaining what to do to avoid
49 overrunning string.
50 (d_check_char): New.
51 (d_next_char): Don't advance past trailing '\0'.
52 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
53 (d_nested_name): Likewise.
54 (d_special_name): Likewise.
55 (d_call_offset): Likewise.
56 (d_function_type): Likewise.
57 (d_array_type): Likewise.
58 (d_pointer_to_member_type): Likewise.
59 (d_template_param): Likewise.
60 (d_template_args): Likewise.
61 (d_template_arg): Likewise.
62 (d_expr_primary): Likewise.
63 (d_local_name): Likewise.
64 (d_substitution): Likewise.
65 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
66 * testsuite/test-demangle.c: Include sys/mman.h.
67 (MAP_ANONYMOUS): Define.
68 (protect_end): New.
69 (main): Use protect_end.
70 * testsuite/demangle-expected: Add testcases for overrunning
71 the end of the string.
72
334737af
AS
732006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
74 J"orn Rennecke <joern.rennecke@st.com>
75
76 PR driver/29931
77 * make-relative-prefix.c (make_relative_prefix_1): New function,
78 broken out of make_relative_prefix. Make link resolution dependent
79 on new parameter.
80 (make_relative_prefix): Use make_relative_prefix_1.
81 (make_relative_prefix_ignore_links): New function.
82
e9903c67
VP
832006-11-08 Vladimir Prus <vladimir@codesourcery.com>
84
85 * pex-win32.c (no_suffixes): Remove.
86 (std_suffixes): Add "" as first element.
87 (find_executable): Remove detection of already-present
88 extension. Try all suffixes in std_suffixes.
89
36b82060
JB
902006-11-07 Julian Brown <julian@codesourcery.com>
91
92 * floatformat.c (get_field): Fix segfault with little-endian word
93 order on 64-bit hosts.
94 (put_field): Likewise.
95 (min): Move definition.
96
7445de0a
DS
972006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
98
99 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
100 (find_executable): Likewise.
101 (win32_spawn): Cast alloca return to (char**).
102 Replace malloc with XNEWVEC.
103 bcopy.c (bcopy): Add explict casts in assignments.
104
97977a91
BE
1052006-10-25 Ben Elliston <bje@au.ibm.com>
106
107 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
108
b5422ad7
BM
1092006-10-10 Brooks Moses <bmoses@stanford.edu>
110
111 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
112 * testsuite/Makefile.in: Added empty "pdf" target.
113
53e3e587
ILT
1142006-09-22 Ian Lance Taylor <ian@airs.com>
115
116 PR other/29176
117 * cp-demangle.c (d_substitution): Check for overflow when
118 computing substitution index.
119
70aec81b
CV
1202006-08-30 Corinna Vinschen <corinna@vinschen.de>
121
122 * configure.ac: Add case for Mingw as host.
123 * configure: Regenerate.
124
022d4166
ILT
1252006-08-27 Ian Lance Taylor <ian@airs.com>
126
5317e1c7
ILT
127 PR driver/27622
128 * pex-common.h (struct pex_funcs): Add toclose parameter to
129 exec_child field.
130 * pex-common.c (pex_run_in_environment): Pass toclose to
131 exec_child.
132 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
133 * pex-unix.c (pex_unix_exec_child): Likewise.
134 * pex-msdos.c (pex_msdos_exec_child): Likewise.
135 * pex-win32.c (pex_win32_exec_child): Likewise.
136
022d4166
ILT
137 PR other/28797
138 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
139 for a qualified member which is not a function.
140 * testsuite/demangle-expected: Add test case.
141
3050098b
JH
1422006-07-27 Jan Hubicka <jh@suse.cz>
143
144 PR rtl-optimization/28071
145 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
146 downsize the hashtable.
147
706601d9
PG
1482006-07-04 Peter O'Gorman <peter@pogma.com>
149
150 * Makefile.in: chmod 644 before ranlib during install.
151
239559e7
MS
1522006-06-02 Mark Shinwell <shinwell@codesourcery.com>
153
154 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
155 to environ.
156
ea60341e
MS
1572006-06-01 Mark Shinwell <shinwell@codesourcery.com>
158
159 * pex-common.c: New function pex_run_in_environment.
160 * pex-common.h: Add environment parameter to exec_child.
161 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
162 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
163 (pex_djgpp_exec_child): Pass environment to child process.
164 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
165 (pex_unix_exec_child): Pass environment to child process.
166 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
167 New function env_compare for comparing VAR=VALUE pairs.
168 (win32_spawn): Assemble environment block and pass to CreateProcess.
169 (spawn_script): Pass environment through to win32_spawn.
170 (pex_win32_exec_child): Pass environment through to spawn_script and
171 win32_spawn.
172 * functions.texi: Regenerate.
173 * pexecute.txh: Document pex_run_in_environment.
174
8967e029
MS
1752006-05-28 Mark Shinwell <shinwell@codesourcery.com>
176
177 * mkstemps.c: Open temporary files in binary mode.
178
824bceb0
AB
1792006-05-12 Anton Blanchard <anton@samba.org>
180
181 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
182 hold "int%u_t".
183
9fff6432
JB
1842006-04-24 Julian Brown <julian@codesourcery.com>
185
186 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
187
8eff378c
JB
1882006-03-29 Jim Blandy <jimb@codesourcery.com>
189
f33a23a0 190 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
8eff378c
JB
191 (pex_init_common): Initialize obj->input_file.
192 (pex_run): Close any file opened by pex_input_file.
f33a23a0
AP
193 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
194 * pex-common.h (struct pex_obj): New field input_file.
8eff378c 195 (struct pex_funcs): New function ptr fdopenw.
f33a23a0
AP
196 * pex-unix.c (pex_unix_fdopenw): New function.
197 (funcs): List it as our fdopenw function.
198 * pex-win32.c (pex_win32_fdopenw): New function.
199 (funcs): List it as our fdopenw function.
200 * pex-djgpp.c (funcs): Leave fdopenw null.
201 * pex-msdos (funcs): Same.
202 * functions.texi: Regenerated.
8eff378c 203
5ea49f9c
JB
2042006-04-10 Jim Blandy <jimb@codesourcery.com>
205
206 * pex-common.c (temp_file): New function, containing guts of
207 pex-style temporary file name generation.
208 (pex_run): Use it.
209
cf61af07
CD
2102006-04-06 Carlos O'Donell <carlos@codesourcery.com>
211
212 * Makefile.in: Add install-html, install-html-am, and
213 install-html-recursive targets. Define mkdir_p and
214 NORMAL_INSTALL.
215 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
216 * configure: Regenerate.
217 * testsuite/Makefile.in: Add install-html and html targets.
218
bd9e7c5c
MM
2192006-03-31 Mark Mitchell <mark@codesourcery.com>
220
221 * pex-win32.c (<errno.h>): Include.
222 (fix_argv): Remove.
223 (argv_to_cmdline): New function.
224 (std_suffixes): New variable.
225 (no_suffixes): Likewise.
226 (find_executable): New function.
227 (win32_spawn): Likewise.
228 (spawn_script): Use win32_spawn instead of _spawnv[p].
229 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
230 (pex_win32_wait): Likewise.
231
58df1c41
JB
2322006-03-24 Jim Blandy <jimb@codesourcery.com>
233
234 * pex-common.c (pex_run): Simplify output name handling.
235
7d898fa2
JB
2362006-03-12 Jim Blandy <jimb@red-bean.com>
237
238 * pex-common.h (struct pex_obj): Doc fixes.
239
ddbbee51
JB
2402006-03-11 Jim Blandy <jimb@red-bean.com>
241
242 * functions.texi: Regenerate.
243
f49712d8
BE
2442006-02-21 Ben Elliston <bje@au.ibm.com>
245
246 * pexecute.c (pwait): Syntax fix for previous change.
247
8f629dc5
UP
2482006-02-17 Uttam Pawar <uttamp@us.ibm.com>
249
250 * pexecute.c (pwait): Free vector pointer.
251 * partition.c (partition_print): Free class_elements pointer.
252
12c61ac3
RS
2532006-02-11 Roger Sayle <roger@eyesopen.com>
254 R. Scott Bailey <scott.bailey@eds.com>
255 Bill Northcott <w.northcott@unsw.edu.au>
256
257 PR bootstrap/16787
258 * floatformat.c: Include <float.h> where available.
259 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
260
e8f9ec35
GDR
2612006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
262
263 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
264 supported.
265 * configure: Regenerated.
266
974c2c56
CD
2672006-01-20 Carlos O'Donell <carlos@codesourcery.com>
268
269 * testsuite/Makefile.in: Add test-expandargv test.
270 * testsuite/test-expandargv.c: New test.
271 * argv.c (expandargv): Check for errors with ferror,
272 rather than just by looking at return value from fread.
273
573b07c7
GDR
2742005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
275
276 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
277 to convert from "from".
278 (floatformat_to_double): Likewise.
279 (floatformat_from_double): Use explicit cast to convert from "to".
280
92aed1cb
TL
2812005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
282
283 PR java/9861
284 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
285 and include return type when found.
286 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
287 conditional logic to change printing order of return type.when
288 the DMGL_RET_POSTFIX option is present.
289 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
290 call.
291 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
292 * testsuite/demangle-expected: Test cases to verify extended encoding.
293 Updated comment to document --ret-postfix option.
294
73a08f87
RG
2952005-11-06 Richard Guenther <rguenther@suse.de>
296
297 * splay-tree.c (rotate_left): New function.
298 (rotate_right): Likewise.
299 (splay_tree_splay_helper): Remove.
300 (splay_tree_splay): Re-implement.
301
0432a5de
MK
3022005-10-31 Mark Kettenis <kettenis@gnu.org>
303
304 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
305 New variables.
306
cb120852
MM
3072005-10-07 Mark Mitchell <mark@codesourcery.com>
308
309 * at-file.texi: Fix typo.
310
36dd6d31
MM
3112005-10-03 Mark Mitchell <mark@codesourcery.com>
312
313 * at-file.texi: New file.
314
affbb54a
MM
3152005-09-27 Mark Mitchell <mark@codesourcery.com>
316
317 * argv.c (expandargv): Do not use xmalloc_failed.
318
97393d0a
MM
3192005-09-26 Mark Mitchell <mark@codesourcery.com>
320
321 * argv.c (safe-ctype.h): Include it.
322 (ISBLANK): Remove.
323 (stdio.h): Include.
324 (buildargv): Use ISSPACE instead of ISBLANK.
325 (expandargv): New function.
240921b9 326 * Makefile.in: Regenerated.
97393d0a 327
0d676b85
CF
3282005-09-14 Christopher Faylor <cgf@timesys.com>
329
330 * pex-win32.c: Include "windows.h".
331 (backslashify): New function.
332 (fix_argv): Use backslashify to convert path to windows format.
333 Allocate one more place in new argv for potential executable from '#!'
334 parsing.
335 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
336 (openkey): Ditto.
337 (mingw_rootify): Ditto.
338 (msys_rootify): Ditto.
339 (spawn_script): New function.
340 (pex_win32_exec_child): Save translated argv in newargv. Pass to
341 spawn_script if spawnv* fails.
342 (main): New function. Conditional on MAIN. Useful for testing.
343
e89b6c1c
MK
3442005-08-17 Mark Kettenis <kettenis@gnu.org>
345
346 * floatformat.c (floatformat_always_valid): Change type of last
347 argument to `void *'.
348 (floatformat_i387_ext_is_valid): Likewise.
349 (floatformat_to_double): Change type of second argument to `const
350 void *'.
351 (floatformat_from_double): Change type of last argument to `void
352 *'.
353 (floatformat_is_valid): Change type of last argument to `const
354 void *'.
355 (ieee_test): Remove redundant casts.
356
0cbe2a68
KC
3572005-08-17 Kelley Cook <kcook@gcc.gnu.org>
358
359 * strverscmp.c: Update FSF address.
360 * testsuite/Makefile.in: Likewise.
361 * testsuite/test-demangle.c: Likewise.
362 * testsuite/test-pexecute.c: Likewise.
363
ca1cc111
KG
3642005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
365
366 * getopt.c: Include ansidecl.h before system headers.
367
f4f94d6b
BE
3682005-07-22 Ben Elliston <bje@gnu.org>
369
370 * getopt.c: Include "ansidecl.h".
371 (_getopt_initialize): Mark argc and argv parameters as unused.
372
8cfb7ab7
BE
3732005-07-22 Ben Elliston <bje@gnu.org>
374
375 * regex.c (regcomp): Change type of `i' from unsigned to int.
376
b4db223f
BE
3772005-07-22 Ben Elliston <bje@gnu.org>
378
379 Recover patch lost in the sourceware repository:
380 2005-07-09 Ben Elliston <bje@au.ibm.com>
381 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
382 * memmove.c: Likewise.
383 * objalloc.c: Likewise.
384
8b82b724
BE
3852005-07-22 Ben Elliston <bje@gnu.org>
386
387 * configure.ac: Check for a getopt(3) declaration.
388 * configure, config.in: Regenerate.
389
7c22afcb
BE
3902005-07-15 Ben Elliston <bje@au.ibm.com>
391
392 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
393
72f93778
BE
3942005-07-12 Ben Elliston <bje@au.ibm.com>
395
396 * floatformat.c (floatformat_to_double): Add a comment about a
397 potential source of warnings when compiling this file.
398
6c5844d2
BE
3992005-07-12 Ben Elliston <bje@au.ibm.com>
400
401 * pexecute.c (pexecute): Cast string litrals to char *.
402 * regex.c (re_comp): Cast a call to gettext() to char *.
403
769b009e
KC
4042005-07-07 Kelley Cook <kcook@gcc.gnu.org>
405
406 * config.table: Delete file. Move former contents into ...
407 * configure.ac: ... here and escape any brackets for m4.
408 * Makefile.in (config.status): Remove dependency on config.table.
409 * configure: Regenerate.
410
f379ddd1
KC
4112005-07-07 Kelley Cook <kcook@gcc.gnu.org>
412
413 * config.in: Regenerate for 6/20 change.
414
6cbfa10e
SE
4152005-07-03 Steve Ellcey <sje@cup.hp.com>
416
417 PR other/13906
418 * md5.c (md5_process_bytes): Check alignment.
419
8c7262af
ILT
4202005-07-01 Ian Lance Taylor <ian@airs.com>
421
422 PR other/22268
423 * cp-demangle.c (d_expr_primary): Don't run off the end of the
424 string while looking for the end of a literal value.
425 * testsuite/demangle-expected: Add test case.
426
a3648cfc
DB
4272005-06-30 Daniel Berlin <dberlin@dberlin.org>
428
429 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
430 (DELETED_ENTRY): Ditto.
431
83fbfe42
GK
4322005-06-20 Geoffrey Keating <geoffk@apple.com>
433
434 * strverscmp.c: New.
435 * Makefile.in (CFILES): Add strverscmp.c.
436 (CONFIGURED_OFILES): Add strverscmp.o.
437 (strverscmp.o): New rule.
438 (stamp-functions): Add $(srcdir) to files in source directory.
439 * configure.ac (funcs): Add strverscmp.
440 (AC_CHECK_FUNCS): Add strverscmp.
441 * configure: Regenerate.
442 * functions.texi: Regenerate.
443
ddcf783b
EZ
4442005-05-28 Eli Zaretskii <eliz@gnu.org>
445
446 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
447 * config.in, configure: Regenerate.
448
15da2806
RH
4492005-05-25 Richard Henderson <rth@redhat.com>
450
451 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
452 (d_make_comp, d_print_comp): Likewise.
453 (d_special_name): Generate one.
454 * testsuite/demangle-expected: Add a hidden alias test.
455
d7cf8390
GDR
4562005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
457
458 * configure.ac: Check declarations for calloc(), getenv(),
ddcf783b 459 malloc(), realloc() and sbrk().
d7cf8390
GDR
460 * config.in: Regenerate.
461 * configure: Likewise.
462
463 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
464 instead of xmalloc.
465 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
466 * concat.c (liiberty_concat_ptr): Surround definition with an
467 extern "C" block, if __cplusplus.
468 (concat): Use XNEWVEC instead of xmalloc.
469 (reconcat): Likewise.
470 * cp-demangle.c (struct d_print_template): Rename member
ddcf783b 471 "template" to "template_decl". Adjust use throughout the file.
d7cf8390
GDR
472 (d_print_resize): Properly cast return value of realloc().
473 (cplus_demangle_print): Same for malloc().
474 (d_demangle): Likewise.
475 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
476 "typename" to "type_name".
477 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
478 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
479 (demangle_template_value_parm): Likewise.
480 (demangle_template): Likewise.
481 (recursively_demangle): Likewise.
482 (do_hpacc_template_literal): Likewise.
483 (do_arg): Likewise.
484 (remember_type): Likewise.
485 (remember_Ktype): Likewise.
486 (register_Btype): Likewise.
487 (string_need): Use XRESIZEVEC instead of xrealloc().
488 * dyn-string.c (dyn_string_init): Use XNEWVEC.
489 (dyn_string_new): Use XNEW.
490 (dyn_string_resize): Use XRESIZEVEC.
491 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
492 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
493 Otherwise include <stdlib.h>.
494 (exchange): Cast return value of malloc().
495 * hashtab.c (htab_size): Define as both macro and non-inline
496 function.
497 (htab_elements): Likewise.
498 * getpwd.c (getpwd): Use XNEWVEC.
499 (htab_create_alloc_ex): Use C90 prototype-style.
500 * lrealpath.c (lrealpath): Appropriately cast return value of
ddcf783b 501 malloc().
d7cf8390
GDR
502 * make-relative-prefix.c (save_string): Likewise.
503 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
504 the file.
505 (choose_tmpdir): Use XNEWVEC.
506 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
507 * pex-common.c (pex_init_common): Use XNEW.
508 (pex_add_remove): Use XRESIZEVEC.
509 (pex_run): Likewise.
510 (pex_get_status_and_time): Likewise.
511 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
512 * pex-msdos.c (pex_init): Use XNEW.
513 (pex_msdos_exec_child): Likewise.
514 (pex_msdos_exec_child): Use XRESIZEVEC.
515 * pex-unix.c (pex_wait): Use XNEW.
516 * pex-win32.c (fix_argv): Use XNEWVEC.
517 * pexecute.c (pwait): Likewise.
518 * setenv.c (setenv): Properly cast return value of malloc().
519 * sigsetmask.c (sigsetmask): Rename local variables "old" and
520 "new" to "old_sig" and "new_sig".
521 * sort.c (main): Use XNEWVEC.
522 * spaces.c (spaces): Cast return value of malloc().
523 * strndup.c (strndup): Likewise.
524 * ternary.c (ternary_insert): Use XNEW.
525 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
526 with an extern "C" block if __cplusplus.
527 * xstrdup.c (xstrdup): Cast return value of memcpy().
528 * xstrerror.c (strerror): Enclose declaration in an extern "C"
529 block if __cplusplus.
530 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
531
99e4078f
AJ
5322005-05-16 Andreas Jaeger <aj@suse.de>
533
534 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
535 that it's only declared if needed.
536
537 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
538 defined.
539
766643be
AJ
5402005-05-15 Andreas Jaeger <aj@suse.de>
541
542 * functions.texi: Regenerated.
543
2b836651
EZ
5442005-05-15 Eli Zaretskii <eliz@gnu.org>
545
546 * pexecute.txh: Enclose multi-word data types in @deftypefn in
547 braces. Minor wording fixes. Use --- for em-dash. Use
548 @enumerate in enumerated lists.
549
d842a495
AJ
550 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
551 braces.
552
5db1c531
EZ
5532005-05-11 Eli Zaretskii <eliz@gnu.org>
554
555 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
556 sys/stat.h.
557 (pex_init): Fix last argument to pex_init_common.
558 (pex_djgpp_exec_child): Remove leading underscore from _open,
559 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
560 which is undeclared, with `executable', which was unused. Remove
561 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
562 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
563
bd7d50f8
PB
5642005-05-11 Paul Brook <paul@codesourcery.com>
565
566 * Makefile.in: Regenerate dependencies.
567
ee58dffd
NC
5682005-05-10 Nick Clifton <nickc@redhat.com>
569
570 * Update the address and phone number of the FSF organization in
571 the GPL notices in the following files:
572 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
573 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
574 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
575 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
576 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
577 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
578 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
579 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
580 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
581 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
582 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
583 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
584 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
585
c1300f45
KC
5862005-05-06 Kelley Cook <kcook@gcc.gnu.org>
587
588 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
589 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
590 * configure: Regenerate.
591
fbc1bc09
KC
5922005-05-06 Kelley Cook <kcook@gcc.gnu.org>
593
594 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
595 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
596 * aclocal.m4: Don't include accross.m4.
597 * configure, config.in: Regenerate.
598
32e82bd8
KG
5992005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
600
601 * fopen_unlocked.c (unlock_std_streams): New.
2b836651 602
32e82bd8
KG
603 * functions.texi: Regenerate.
604
6feaa084
KG
6052005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
606
607 * fopen_unlocked.c (unlock_stream): New.
608 Consolidate unlocking code into a helper function.
609
610 * functions.texi: Regenerate.
611
3c60ae5a
GDR
6122005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
613
614 * asprintf.c: Include config.h.
615 * basename.c: Likewise.
616 * fdmatch.c: Likewise.
617 * hex.c: Likewise.
618 * lbasename.c: Likewise.
619 * spaces.c: Likewise.
620 * xatexit.c:Likewise.
2b836651 621 * configure.ac: Do check declarations for basename, ffs, asprintf
3c60ae5a
GDR
622 and vasprintf for real.
623 * configure: Regenerate.
624
0e0af50b
GDR
6252005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
626
2b836651 627 * argv.c (dupargv): Allocate space of argv[argc], not
fec02a2d 628 sizeof(char *) of that amount. Cast result to char *.
0e0af50b 629
4cf88ac3
GDR
6302005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
631
632 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
2b836651 633 Replace not with negate.
4cf88ac3 634
1ff7682c
GDR
6352005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
636
637 * configure.ac: Check declarations for basename, ffs, asprintf,
638 vasprintf.
639 * configure: Regenerate.
640 * config.in: Likewise.
641
78a7dc90
KG
6422005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
643
644 * Makefile.in (CFILES): Add fopen_unlocked.c.
645 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
646 Regenerate dependencies.
647
648 * configure.ac: Check for stdio_ext.h and __fsetlocking.
649
650 * fopen_unlocked.c: New file.
651
652 * functions.texi, configure, config.in: Regenerate.
653
2f84c996
ILT
6542005-04-04 Ian Lance Taylor <ian@airs.com>
655
656 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
657 declaration before statement.
658
f9a9ac80
KG
6592005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
660
29138797
KG
661 * bcmp.c: Fix warnings and implement using memcmp.
662 * bcopy.c: Fix warnings.
663 * bzero.c: Fix warnings and implement using memset.
664
f9a9ac80
KG
665 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
666 -Wstrict-prototypes.
667 * configure, config.in: Regenerate.
668
669 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
670 warnings and reconcile interfaces with relevant standards.
671
23ea4f4a
ILT
6722005-04-02 Ian Lance Taylor <ian@airs.com>
673
674 * cp-demangle.c: Update copyright.
675
1e3a2100
JM
6762005-03-31 Joseph S. Myers <joseph@codesourcery.com>
677
678 * gettimeofday.c: Add "Supplemental" to @deftypefn.
679 * functions.texi: Regenerate.
680
a584cf65
ILT
6812005-03-28 Ian Lance Taylor <ian@airs.com>
682
683 * pex-common.c: New file.
684 * pex-one.c: New file.
685 * pexecute.c: New file.
686 * pex-common.h: Include <stdio.h>.
687 (struct pex_obj): Define.
688 (struct pex_funcs): Define.
689 (pex_init_common): Declare.
690 * pex-unix.c: Rewrite.
691 * pex-win32.c: Rewrite.
692 * pex-djgpp.c: Rewrite.
693 * pex-msdos.c: Rewrite.
694 * testsuite/text-pexecute.c: New file.
695 * pexecute.txh: Rewrite.
696 * configure.ac: Check for wait3 and wait4. Set CHECK to
697 really-check rather than check-cplus-dem.
698 * functions.texi: Rebuild.
699 * Makefile.in: Rebuild dependencies.
700 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
701 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
702 * testsuite/Makefile.in (really-check): New target.
703 (check-pexecute, test-pexecute): New targets.
704 * configure: Rebuild.
705
93764b5b 7062005-03-28 Mark Kettenis <kettenis@gnu.org>
2b836651 707
93764b5b
MK
708 * unlink-if-ordinary.c: Include <sys/types.h>.
709
93079c81
GDR
7102005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
711
712 Convert libiberty to use ISO C prototype style 7/n.
713 * regex.c (PARAMS): Remove definition.
714 (PREFIX): Unconditionaly define using ISO C ## operator.
2b836651 715 (init_syntax_once, extract_number, extract_number_and_incr,
93079c81 716 print_fastmap, print_partial_compiled_pattern,
2b836651 717 print_compiled_pattern, print_double_string, printchar,
93079c81
GDR
718 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
719 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
2b836651
EZ
720 at_begline_loc_p, at_endline_p, group_in_compile_stack,
721 insert_space, wcs_compile_range, byte_compile_range,
722 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
723 re_set_registers, re_search, re_search_2, re_search_3, re_match,
93079c81
GDR
724 re_match_2, count_mbs_length, wcs_re_match_2_internal,
725 byte_re_match_2_internal, group_match_null_string_p,
726 alt_match_null_string_p, common_op_match_null_string_p,
2b836651 727 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
93079c81
GDR
728 regexec, regerror, regfree): Use ISO C prototype style.
729 * partition.c: (elem_compare): Likewise.
730 * cp-demangle.c (print_usage): Likewise.
731
885f2199
GDR
7322005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
733
734 Convert libiberty to use ISO C prototype style 5/n.
735 * random.c (srandom, initstate, setstate, random): Use ISO C
2b836651 736 prototypes.
885f2199
GDR
737 * putenv.c (putenv): Likewise.
738 * physmem.c (physmem_available, physmem_total, main): Likewise.
739 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
740 * pex-unix.c (pexecute, pwait): Likewise.
741 * pex-msdos.c (pexecute, pwait): Likewise.
742 * pex-djgpp.c (pexecute, pwait): Likewise.
2b836651 743 * partition.c (partition_new, partition_delete, partition_union)
885f2199 744 (elem_compare, partition_print): Likewise.
2b836651
EZ
745 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
746 _obstack_allocated_p, _obstack_free, obstack_free,
885f2199
GDR
747 _obstack_memory_used, print_and_abort, obstack_next_free,
748 obstack_object_size, obstack_base): Likewise. Remove codes
749 predicated on !defined(__STDC__).
2b836651 750 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
885f2199
GDR
751 objalloc_free_block): Use ISO C prototypes.
752 * mkstemps.c (mkstemps): Likewise.
753 * memset.c (memset): Likewise.
754 * mempcpy.c (mempcpy): Likewise.
755 * rename.c (rename): Likewise.
756 * rindex.c (rindex): Likewise.
757 * setenv.c (setenv, unsetenv): Likewise.
758 * sigsetmask.c (sigsetmask): Likewise.
759 * snprintf.c (snprintf): Likewise.
2b836651 760 * sort.c (sort_pointers, xmalloc): Likewise.
885f2199 761 * spaces.c (spaces): Likewise.
2b836651
EZ
762 * splay-tree.c (splay_tree_delete_helper,
763 splay_tree_splay_helper, splay_tree_splay,
885f2199 764 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
2b836651 765 splay_tree_new, splay_tree_xmalloc_allocate,
885f2199 766 splay_tree_new_with_allocator, splay_tree_delete,
2b836651
EZ
767 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
768 splay_tree_max, splay_tree_min, splay_tree_predecessor,
769 splay_tree_successor, splay_tree_foreach,
885f2199
GDR
770 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
771 * stpcpy.c (stpcpy): Likewise.
772 * stpncpy.c (stpncpy): Likewise.
773 * strcasecmp.c (strcasecmp): Likewise.
774 * strchr.c (strchr): Likewise.
775 * strdup.c (strdup): Likewise.
776
7a17ef5e
GDR
7772005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
778
779 Convert libiberty to use ISO C prototype style 6/n.
2b836651 780 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
7a17ef5e
GDR
781 strtoerrno, main): Use ISO C prototype style.
782 * strncasecmp.c (strncasecmp): Likewise.
783 * strncmp.c (strncmp): Likewise.
784 * strndup.c (strndup): Likewise.
785 * strrchr.c (strrchr): Likewise.
2b836651 786 * strsignal.c (init_signal_tables, signo_max, strsignal,
7a17ef5e
GDR
787 strsigno, strtosigno, psignal, main): Likewise.
788 * strstr.c (strstr): Likewise.
789 * strtod.c (strtod, atof): Likewise.
790 * strtol.c (strtol): Likewise.
791 * strtoul.c (strtoul): Likewise.
2b836651 792 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
7a17ef5e
GDR
793 ternary_recursivesearch): Likewise.
794 * tmpnam.c (tmpnam): Likewise.
795 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
796 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
797 * vfork.c (vfork): Likewise.
798 * vfprintf.c (vfprintf): Likewise.
799 * vprintf.c (vprintf): Likewise.
800 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
801 * vsprintf.c (vsprintf): Likewise.
802 * waitpid.c (waitpid): Likewise.
803 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
804 * xexit.c (xexit): Likewise.
2b836651 805 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
7a17ef5e
GDR
806 xcalloc, xrealloc): Likewise.
807 * xmemdup.c (xmemdup): Likewise.
808 * xstrdup.c (xstrdup): Likewise.
809 * xstrerror.c (xstrerror): Likewise.
810 * xstrndup.c (xstrndup): Likewise.
811
1134b11d
AJ
8122005-03-27 Andreas Jaeger <aj@suse.de>
813
814 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
815 flags.
816 * configure: Regenerated.
817
e78410c1
GDR
8182005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
819
820 * getopt1.c (getopt_long_only): Fix thinko.
821
6da879de
GDR
8222005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
823
824 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
825 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
826 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
827 htab_create_alloc, htab_set_functions_ex, htab_create,
828 htab_try_create, htab_delete, htab_empty,
829 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
830 htab_find, htab_find_slot_with_hash, htab_find_slot,
831 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
832 htab_traverse_noresize, htab_traverse, htab_collisions,
6da879de
GDR
833 htab_hash_string, iterative_hash): Use ISO C prototype.
834 * hex.c (hex_init): Likewise.
835 * index.c (index): Likewise.
1134b11d 836 * insque.c (insque, remque): Likewise.
6da879de
GDR
837 * lbasename.c (lbasename): Likewise.
838 * lrealpath.c (lrealpath): Likewise.
1134b11d 839 * make-relative-prefix.c (save_string, split_directories,
6da879de 840 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
841 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
842 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
6da879de
GDR
843 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
844 * memchr.c (memchr): Likewise.
845 * memcpy.c (memcpy): Likewise.
846 * memmove.c (memmove): Likewise.
847 * gettimeofday.c (gettimeofday): Likewise.
848 * getruntime.c (get_run_time): Likewise.
849 * getpwd.c (getpwd, getpwd): Likewise.
850 * getpagesize.c (getpagesize): Likewise.
851 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1134b11d 852 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
853 _getopt_internal, getopt, main): Likewise.
854 * getcwd.c (getcwd): Likewise.
855 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
856 * floatformat.c (floatformat_always_valid,
857 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
858 put_field, floatformat_from_double, floatformat_is_valid,
6da879de 859 ieee_test, main): Likewise.
1134b11d
AJ
860 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
861 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
862 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
863 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
864 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
865 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
866 fibheap_link, fibheap_cut, fibheap_cascading_cut,
6da879de
GDR
867 fibnode_insert_after, fibnode_remove): Likewise.
868 * ffs.c (ffs): Likewise.
869 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
870 * dyn-string.c (dyn_string_init, dyn_string_new,
871 dyn_string_delete, dyn_string_release, dyn_string_resize,
872 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
873 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
874 dyn_string_insert_cstr, dyn_string_insert_char,
875 dyn_string_append, dyn_string_append_cstr,
6da879de 876 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 877 Likewise.
6da879de 878
500d7701
GDR
8792005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
880
881 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
882 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
883 consume_count_with_underscores, code_for_qualifier,
884 qualifier_string, demangle_qualifier, cplus_demangle_opname,
885 cplus_mangle_opname, cplus_demangle_set_style,
886 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
500d7701 887 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
888 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
889 delete_work_stuff, mop_up, demangle_signature,
890 demangle_method_args, demangle_template_template_parm,
891 demangle_expression, demangle_integral_value,
892 demangle_real_value, demangle_template_value_parm,
893 demangle_template, arm_pt, demangle_arm_hp_template,
894 demangle_class_name, demangle_class, iterate_demangle_function,
895 demangle_prefix, gnu_special, recursively_demangle, arm_special,
896 demangle_qualified, get_count, do_type, demangle_fund_type,
897 do_hpacc_template_const_value, do_hpacc_template_literal,
898 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
899 register_Btype, remember_Btype, forget_B_and_K_types,
900 forget_types, demangle_args, demangle_nested_args,
901 demangle_function_name, string_need, string_delete, string_init,
902 string_clear, string_empty, string_append, string_appends,
500d7701
GDR
903 string_appendn, string_prepend, string_prepends, string_prependn,
904 string_append_template_idx): Use ISO C prootype style.
905 * cp-demint.c (cplus_demangle_fill_component,
1134b11d 906 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
907 cplus_demangle_v3_components): Likewise.
908
9486db4f
GDR
9092005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
910
911 Convert libiberty to use ISO C prototype style 2/n.
912 * cp-demangle.h: Remove uses of PARAMS.
913 * cp-demangle.c: Likewise.
1134b11d
AJ
914 (d_dump, cplus_demangle_fill_name,
915 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
916 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
917 d_make_builtin_type, d_make_operator, d_make_extended_operator,
918 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
919 cplus_demangle_mangled_name, has_return_type,
920 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
921 d_prefix, d_unqualified_name, d_source_name, d_number,
922 d_identifier, d_operator_name, d_special_name, d_call_offset,
923 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
924 d_function_type, d_bare_function_type, d_class_enum_type,
925 d_array_type, d_pointer_to_member_type, d_template_param,
926 d_template_args, d_template_arg, d_expression, d_expr_primary,
927 d_local_name, d_discriminator, d_add_substitution,
928 d_substitution, d_print_resize, d_print_append_char,
929 d_print_append_buffer, d_print_error, cplus_demangle_print,
930 d_print_comp, d_print_java_identifier, d_print_mod_list,
931 d_print_mod, d_print_function_type, d_print_array_type,
932 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
933 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9486db4f 934 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 935 print_usage, main):
9486db4f
GDR
936
9372005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
938
939 Convert libiberty to ISO C prototype style 1/n.
940 * _doprnt.c: Remove conditional #include <varargs.h> on
941 ANSI_PROTOTYPES as the latter is always assumed.
942 (_doprnt, checkit, main): Use ISO C prototype.
943 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
944 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1134b11d 945 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
946 * atexit.c (atexit): Likewise
947 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 948 (asprintf): Use ISO C prototype.
9486db4f
GDR
949 * basename.c (basename): Likewise
950 * bcmp.c (bcmp): Likewise.
951 * bcopy.c (bcopy): Likewise.
952 * bzero.c (bzero): Likewise.
953 * bsearch.c (bsearch): Likewise. Improve const-correctness.
954 * choose-temp.c (choose_temp_base): Likewise.
955 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
956 (calloc): Use ISO C prototype.
957 * clock.c (clock): Likewise.
958 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1134b11d 959 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
960 concat_copy2, concat, reconcat, main): Use ISO C prototype.
961 * copysign.c (copysign): Likewise.
962
17998b22
KG
9632005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
964
965 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
966 (REQUIRED_OFILES): Add xstrndup.o.
967 (CONFIGURED_OFILES): Add strndup.o.
968 Regenerate dependencies.
969
970 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
971
972 * strndup.c, xstrndup.c: New.
973
974 * config.in, configure, functions.texi: Regenerate.
975
bb99744f
KG
9762005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
977
978 * xmemdup.c, xstrdup.c: Expose the tail call.
979
17049f0b
MM
9802005-03-09 Mark Mitchell <mark@codesourcery.com>
981
982 * configure.ac (funcs): Add gettimeofday.
983 * configure: Regenerated.
984 * gettimeofday.c: New file.
985 * Makefile.in (CFILES): Add gettimeofday.
986 (CONFIGURED_OFILES): Add gettimeofday.o.
987 (./gettimeofday.o): New rule.
988
6af8bd50
ILT
9892005-03-09 Ian Lance Taylor <ian@airs.com>
990
991 * pex-os2.c: Remove.
992 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
993 * Makefile.in (CFILES): Remove pex-os2.c.
994 (CONFIGURED_OFILES): Remove pex-os2.o.
995 (pex-os2.o): Remove target.
996 * configure: Rebuild.
997
c80d391c
ILT
9982005-03-07 Ian Lance Taylor <ian@airs.com>
999
1000 * mpw-config.in: Remove.
1001 * mpw-make.sed: Remove.
1002 * mpw.c: Remove.
1003 * Makefile.in (CFILES): Remove pex-mpw.c.
1004 (CONFIGURED_OFILES): Remove pex-mpw.o.
1005 (mpw.o, pex-mpw.o): Remove targets.
1006 * maint-tool (undoc): Remove reference to mpw.c.
1007
fe8ee922
DD
10082005-03-06 DJ Delorie <dj@redhat.com>
1009
1010 * configure.ac (target_header_dir): vfork is a stub under djgpp.
1011 * configure: Regenerated.
1012
c363985d
JB
10132005-03-01 Jan Beulich <jbeulich@novell.com>
1014
1015 * Makefile.in (CFILES): Add unlink-if-ordinary.c
1016 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
1017 Add dependencies and rule for unlink-if-ordinary.o.
1018 * unlink-if-ordinary.c: New.
1019
6a88516c
BE
10202005-03-01 Ben Elliston <bje@au.ibm.com>
1021
1022 * hashtab.c (htab_find_slot_with_hash): Make function
1023 documentation clearer.
1024
b8b3c655
JM
10252005-02-13 Jason Merrill <jason@redhat.com>
1026
1027 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
1028 arguments.
1029
e8805990
TS
10302005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
1031
1032 * hex.c (hex_value): Group 'unsigned int' together to get correct
1033 markup.
1034 * functions.texi: Regenerated.
1134b11d 1035
24f2cabb
L
10362004-12-27 H.J. Lu <hongjiu.lu@intel.com>
1037
1038 * Makefile.in: Undo to 2004-12-17.
1039 * aclocal.m4: Likewise.
1040 * config.table: Likewise.
1041 * configure.ac: Likewise.
1042 * maint-tool: Likewise.
1043 * configure: Likewise.
1044
3d815594
L
10452004-12-19 H.J. Lu <hongjiu.lu@intel.com>
1046
1047 PR bootstrap/19072
1048 * Makefile.in (enable_shared): New substitute.
1049 (LTTARGETLIB): New.
1050 (PREFIXTARGETLIB): New.
1051 (LTTESTLIB): New.
1052 (PREFIXTESTLIB): New.
1053 (CCLD): New.
1054 (LINK): New.
1055 ($(TARGETLIB)): Use $(LINK) to create libraries and create
1056 targets by hand.
1057 ($(TESTLIB)): Likewise.
1058 (mostlyclean): Don't remove .libs. Remove the libtool object
1059 directory.
1060
1061 * config.table (enable_shared): Removed.
1062
1063 * configure.ac (enable_static): Set to yes.
1064 (AC_PROG_LIBTOOL): Removed.
1065 (AM_DISABLE_SHARED): Uncommented.
1066 (AM_PROG_LIBTOOL): Likewise.
1067 (LIBOBJS): Add `./' to avoid VPATH.
1068 (LTLIBOBJS): Likewise.
1069 (enable_shared): Substitute.
1070 * configure: Regenerated.
1071
207db768
L
10722004-12-18 H.J. Lu <hongjiu.lu@intel.com>
1073
1074 * Makefile.in (top_builddir): Set to `.'.
1075 (OUTPUT_OPTION): Removed.
1076 (LIBTOOL): New.
1077 (LTLIBOBJS): New.
1078 (EXTRA_LTOFILES): New.
1079 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
1080 (all): Remove stamp-picdir.
1081 (LTCOMPILE): New.
1082 (.c.lo): New rule.
1083 (REQUIRED_LTOFILES): New.
1084 (CONFIGURED_LTOFILES): New.
1085 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
1086 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
1087 (stamp-picdir): Completely removed.
1088 (maint-missing): Pass $(REQUIRED_LTOFILES)
1089 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
1090 $(CONFIGURED_OFILES)
1091 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
1092 $(CONFIGURED_LTOFILES).
1093 (mostlyclean): Also remove *.lo .libs.
1094 Run "make maint-deps".
1095
1096 * aclocal.m4: Include ../libtool.m4.
1097
1098 * config.table: Don't check --enable-shared.
1099
1100 * configure.ac (AC_PROG_LIBTOOL): Add.
1101 (AC_PROG_CC_C_O): Removed.
1102 (OUTPUT_OPTION): Removed.
1103 (NO_MINUS_C_MINUS_O): Removed.
1104 (ltpexecute): New substitute.
1105 (LIBOBJS): Cleanup.
1106 * configure: Regenerated.
1107
1108 * maint-tool: Updated for .lo/libtool.
1109
d49d0907
BE
11102004-12-11 Ben Elliston <bje@au.ibm.com>
1111
1112 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
1113 * configure: Regenerate.
1114 * config.in: Likewise.
1115
b180d5fb
DD
11162004-12-07 DJ Delorie <dj@redhat.com>
1117
1118 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
1119 that recursion (and thus large stack space) is not needed.
1120
ecc30353
MK
11212004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
1122
1123 * pex-unix.c: Fix the spelling of longjmp.
1124
0b167d51
ILT
11252004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
1126
1127 PR other/18623
1128 * cp-demangle.c (d_call_offset): Remove useless local variables
1129 offset and virtual_offset.
1130 * cplus-dem.c (ada_demangle): Remove useless local variable
1131 at_start_name.
1132 (demangle_template): Remove useless local variable start.
1133
2d59754f
RS
11342004-11-19 Roger Sayle <roger@eyesopen.com>
1135
1136 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
1137 "ansidecl.h" to avoid redeclaration errors with native compilers.
1138 * regex.c: Protect config.h from multiple inclusion.
1139
ea27a394
MS
11402004-11-12 Mike Stump <mrs@apple.com>
1141
610784f0
MS
1142 * Makefile.in (libiberty.html): Fix html generation.
1143
626ff3de
AN
11442004-09-08 Adam Nemet <anemet@lnxw.com>
1145
1146 * vasprintf.c: Accept __va_copy in addition to va_copy.
1147
1134b11d 11482004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
1149
1150 * configure: Regenerate.
1151
1134b11d 11522004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
1153
1154 * configure.ac: Do not enable multilibs for build-side libiberty.
1155
1134b11d 11562004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
1157
1158 * lrealpath.c (lrealpath): Add _WIN32 support.
1159
0cf61401
ZW
11602004-06-28 Zack Weinberg <zack@codesourcery.com>
1161
1162 * cp-demangle.h: Declare cplus_demangle_operators,
1163 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
1164 cplus_demangle_type as static if IN_GLIBCPP_V3.
1165
00a5aa9c
ILT
11662004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
1167
1168 PR other/16240
1169 * cp-demangle.c (d_expr_primary): Check for a failure return from
1170 cplus_demangle_type.
5cd29062 1171 * testsuite/demangle-expected: Add test case.
00a5aa9c 1172
b47785f4
DS
11732004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
1174
1175 * pex-win32.c (fix_argv): Expand comment.
1176
54b2f310
DJ
11772004-05-25 Daniel Jacobowitz <drow@false.org>
1178
1179 * Makefile.in: Add .NOEXPORT.
1180
8fd58397
DR
11812004-04-29 Douglas B Rupp <rupp@gnat.com>
1182
1183 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
1184 copyright.
1185
6489430a
MR
11862004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1187
1188 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
1189 * configure: Regenerate.
1190
9bf3c9cc
RH
11912004-04-22 Richard Henderson <rth@redhat.com>
1192
1193 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
1194 (CHAR_BIT): Provide default.
1195 (struct prime_ent, prime_tab): New.
1196 (higher_prime_index): Rename from higher_prime_number, return index.
1197 (htab_mod_1): New.
1198 (htab_mod, htab_mod_m2): Use it.
1199 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
1200 (htab_expand): Likewise.
1201 * configure.ac: Check for stdint.h.
1202 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
1203 * config.in, configure: Rebuild.
1204
80790b05
ILT
12052004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
1206
1207 * strerror.c: Include config.h, and redefine sys_nerr and
1208 sys_errlist, before including ansidecl.h and libiberty.h.
1209
7f96816a
JL
12102004-04-13 Jeff Law <law@redhat.com>
1211
1212 * hashtab.c (htab_remove_elt_with_hash): New function.
1213 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
1214
d9175b87
RH
12152004-03-31 Richard Henderson <rth@redhat.com>
1216
1217 * hashtab.c (htab_size): Move to top of file; mark inline.
1218 (htab_elements): Likewise.
1219 (htab_mod, htab_mod_m2): New.
1220 (htab_delete): Refactor htab->size and htab->entries.
1221 (htab_empty): Likewise.
1222 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
1223 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
1224 (htab_clear_slot): Use htab_size, htab_elements.
1225 (htab_traverse_noresize, htab_traverse): Likewise.
1226
e8190aa2
ILT
12272004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
1228
fed8129b
ILT
1229 * pex-unix.c (pexecute): Use vfork instead of fork, with
1230 appropriate changes to make this safe.
1231 * pex-common.h (STDERR_FILE_NO): Define.
1232
e8190aa2
ILT
1233 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
1234 an 80 column screen. Run maint-deps.
1235
a4f74b58
KC
12362004-03-09 Kelley Cook <kcook@gcc.gnu.org>
1237
1238 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
1239 * acconfig.h: Delete redundant file.
1240 * config.in: Regenerate.
1241 * configure: Regenerate.
1242
3beb1315
HPN
12432004-03-09 Hans-Peter Nilsson <hp@axis.com>
1244
1245 * configure: Regenerate for config/accross.m4 correction.
1246
688556b9
AJ
12472004-03-07 Andreas Jaeger <aj@suse.de>
1248
1249 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
1250 prototypes.
1251 (main): Initialize style.
1252
80a19ac8
ILT
12532004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
1254
31058ee3
ILT
1255 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
1256 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
1257 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
1258 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
1259 short types to D_PRINT_DEFAULT. Change other integer types to use
1260 new D_PRINT_* values where appropriate. Change float types to
1261 D_PRINT_FLOAT.
1262 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
1263 values.
1264 * testsuite/demangle-expected: Adjust two test cases.
1265
1266 * cp-demangle.c (d_print_function_type): Print a space before the
1267 parenthesis around the function type in more cases.
1268 * testsuite/demangle-expected: Adjust one test case.
1269
93f20626
ILT
1270 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
1271 parentheses around a cast.
1272 * testsuite/demangle-expected: Adjust two test cases to match new
1273 output.
1274
dbd6ec2b
ILT
1275 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
1276
80a19ac8
ILT
1277 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
1278 push more than one of the same CV-qualifier on the top of the
1279 stack.
1280 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
1281 move the CV-qualifiers to apply to the element type instead.
1282 (d_print_array_type): When checking the modifiers, keep looking
1283 past ones which have been printed already.
1284 * testsuite/demangle-expected: Add three test cases.
1285
8ad1c80e
ILT
12862004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1287
e8ed4ac2
ILT
1288 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
1289 empty string correctly.
1290
4a368ffd
ILT
1291 * cp-demangle.c (__cxa_demangle): It is not an error if status is
1292 not NULL. It is an error if the mangled name is the same as a
1293 built-in type name.
1294 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
1295 than cplus_demangle_v3.
1296
8ad1c80e
ILT
1297 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
1298 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
1299
ef2a223f
MK
13002004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
1301
1302 * regex.c: Include <ansidecl.h>.
1303 (regcomp): Cast i to int.
1304 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
1305
5254fd7b
ILT
13062004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
1307
1308 * configure.ac: Add m4_pattern_allow(LIBOBJS).
1309 * configure: Regenerate.
1310
398b3deb
DD
13112004-01-22 DJ Delorie <dj@redhat.com>
1312
1313 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
1314 with explicit build rules.
1315 (VPATH): Remove.
1316 (.c.o): Poison.
1317 * configure.ac (pexecute, LIBOBJS): Add ./ .
1318 * maint-tool: Build dependencies with explicit rules.
1319
4e394293
KH
13202004-01-15 Kazu Hirata <kazu@cs.umass.edu>
1321
1322 * strdup.c (strdup): Constify the argument.
1323
0046e342
LR
13242004-01-14 Loren J. Rittle <ljrittle@acm.org>
1325
1326 * Makefile.in (distclean): Remove config.cache.
1327
d4f3ce5c
DJ
13282004-01-13 Daniel Jacobowitz <drow@mvista.com>
1329
1330 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
1331 takes two parameters.
1332 * cp-demint.c (cplus_demangle_fill_component): Likewise.
1333
5e777af5
ILT
13342004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1335
1336 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
1337 defined, rename some functions which are to become static via
1338 #define.
1339 (CP_STATIC_IF_GLIBCPP_V3): Define.
1340 (struct d_operator_info): Move definition to cp-demangle.h, and
1341 rename to demangle_operator_info. Change all uses.
1342 (enum d_builtin_type_print): Move definition to cp-demangle.h.
1343 (struct d_builtin_type_info): Move definition to cp-demangle.h,
1344 and rename to demangle_builtin_type_info. Change all uses.
1345 (enum d_comp_type): Move definition to include/demangle.h, and
1346 rename to demangle_component_type, and change all enums to start
1347 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
1348 (struct d_comp): Move definition to include/demangle.h, and rename
1349 to demangle_component. Change all uses.
1350 (struct d_info): Move definition to cp-demangle.h.
1351 (cplus_demangle_fill_name): New function.
1352 (cplus_demangle_fill_extended_operator): New function.
1353 (cplus_demangle_fill_ctor): New function.
1354 (cplus_demangle_fill_dtor): New function.
1355 (d_make_empty): Remove type parameter. Change all callers.
1356 (d_make_name): Use cplus_demangle_fill_name.
1357 (d_make_extended_operator): Use
1358 cplus_demangle_fill_extended_operator.
1359 (d_make_ctor): Use cplus_demangle_fill_ctor.
1360 (d_make_dtor): Use cplus_demangle_fill_dtor.
1361 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
1362 non-static by default. Change all callers.
1363 (cplus_demangle_operators): Rename from d_operators. Change all
1364 uses. Make non-static by default. Add sentinel at end of array.
1365 (d_operator_name): Adjust initialization of high for new sentinel
1366 in cplus_demangle_operators.
1367 (cplus_demangle_builtin_types): Rename from d_builtin_types.
1368 Change all uses. Make non-static by default. Change initializer
1369 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
1370 (cplus_demangle_type): Rename from d_type. Make non-static by
1371 default. Change all callers.
1372 (cplus_demangle_init_info): Rename from d_init_info. Make
1373 non-static by default. Change all callers.
1374 * cp-demangle.h: New file.
1375 * cp-demint.c: New file.
1376 * Makefile.in: Rebuild dependencies.
1377 (CFILES): Add cp-demint.c.
1378 (REQUIRED_OFILES): Add cp-demint.o.
1379
c31d56ed
KC
13802004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1381
1382 * configure.in: Rename file to ...
1383 * configure.ac: ... this.
1384 * Makefile.in: Update a comment for above change.
1385 * README: Likewise.
1386 * config.in: Regenerate.
1387
e4796f1c
ILT
13882004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1389
1390 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1391 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1392 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1393 demangling template parameters.
1394 * testsuite/test-demangle.c (fail): New static function.
1395 (main): Support new options in input file: --no-params,
1396 --is-v3-ctor, and --is-v3-dtor.
1397 * testsuite/demangle-expected: Add --no-params to most tests, and
1398 add the correct result when parameters are not demangled. Add
1399 some simple tests for V3 constructor/destructor recognition.
1400
4d425229
KG
14012003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1402
1403 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1404
6b309c6e
DJ
14052003-12-22 Daniel Jacobowitz <drow@mvista.com>
1406
1407 PR debug/13272
1408 * Makefile.in (lbasename.o): Depend on filenames.h.
1409 * lbasename.c: Include "filenames.h" instead of defining
1410 its macros locally.
1411
2d6c4025
ILT
14122003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1413
1414 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1415 dynamic arrays.
1416 (struct d_operator_info): Add len field.
1417 (struct d_builtin_type_info): Add len and java_len fields.
1418 (struct d_standard_sub_info): Add simple_len, full_len, and
1419 set_last_name_len fields.
1420 (struct d_comp): Add len field to s_string.
1421 (struct d_info): Add send, did_subs, and expansion fields.
1422 (d_append_string_constant): Define.
1423 (d_append_string): Remove. Change all users to use
1424 d_append_string_constant or d_append_buffer instead.
1425 (d_make_sub): Add len parameter. Change all callers.
1426 (d_name): Increase expansion when substituting std::.
1427 (d_unqualified_name): Increase expansion for an operator.
1428 (d_number): Don't use multiplication for negative numbers.
1429 (d_identifier): Make sure there are enough characters in the
1430 string for the specified length. Adjust expansion for an
1431 anonymous namespace.
1432 (d_operators): Initialize len field.
1433 (d_special_name, d_ctor_dtor_name): Increase expansion.
1434 (d_builtin_types): Initialize len and java_len fields.
1435 (d_type): Increase expansion for a builtin type.
1436 (d_cv_qualifiers): Increase expansion for each qualifier.
1437 (d_bare_function_type): Decrease expansion when removing single
1438 void parameter.
1439 (d_template_param): Increment did_subs.
1440 (d_expression): Increase expansion for an operator.
1441 (d_expr_primary): Decrease expansion for a type we will print
1442 specially.
1443 (standard_subs): Initialize new fields.
1444 (d_substitution): Increment did_subs when doing a normal
1445 substitution. Increase expansion for a special substitution.
1446 (d_print): Add estimate parameter. Change all callers.
1447 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1448 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1449 (d_print_java_identifier): Rename from d_print_identifier. Handle
1450 only Java case. Change caller.
1451 (d_init_info): Change return type to void. Change all callers.
1452 Initialize send, did_subs, and expansion fields. Do not
1453 initialize comps and subs fields.
1454 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1455 arrays on stack. Make an estimate of the length of the demangled
1456 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1457 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1458 subs arrays on stack.
1459
2307e075
ILT
14602003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1461
1462 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1463 after the identifier.
1464 * testsuite/demangle-expected: Add test case.
1465
a91d1af0
ILT
14662003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1467
1468 Fix for PR c++/13447:
1469 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1470 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1471 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1472 D_COMP_QUAL_NAME.
1473 (is_ctor_or_dtor): Likewise.
1474 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1475 D_COMP_QUAL_NAME.
1476 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1477 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1478 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1479 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1480 * testsuite/demangle-expected: Add two test cases.
1481
1482 * cp-demangle.c (d_print_function_type): Clear the global modifier
1483 list when printing the modifiers, not just when printing the
1484 function parameters.
1485 * testsuite/demangle-expected: Add two test cases.
1486
8d686df2
ILT
14872003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1488
cbc278f4
ILT
1489 * cp-demangle.c (d_print_function_type): Print the function
1490 parameters with no modifiers.
1491 * testsuite/demangle-expected: Add test case.
1492
8d686df2
ILT
1493 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1494 expect that we've read the entire string.
1495 (is_ctor_or_dtor): Don't expect that we've read the entire
1496 string--reverse patch of 2003-11-29.
1497
adf269c7
BK
14982003-12-15 Brendan Kehoe <brendan@zen.org>
1499
1500 * libiberty/Makefile.in (floatformat.o): Add dependency on
1501 config.h to accompany change of 2003-12-03.
1502
374caa50
ILT
15032003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1504
1505 Fix handling of constructor/destructor of standard substitution:
1506 * cp-demangle.c (struct d_standard_sub_info): Define.
1507 (d_substitution): Add prefix argument. Change all callers.
1508 Rework handling of standard substitutions to print full name when
1509 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1510 * testsuite/demangle-expected: Add test case.
1511
1512 Fix handling of negative literal constants:
1513 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1514 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1515 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1516 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1517 * testsuite/demangle-expected: Add test case.
1518
a51753e4
ILT
15192003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1520
1521 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1522 (d_last_char): Define new macro.
1523 (d_make_name): Reject an empty name.
1524 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1525 (d_substitution, d_print_identifier): Likewise.
1526 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1527 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1528 (d_print_mod) Use new d_last_char macro.
1529 (d_print_cast): Use new d_last_char macro.
1530 (is_ctor_or_dtor): Don't leak memory.
1531
1532 Fix handling of member function modifiers:
1533 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1534 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1535 (d_dump): Dump new d_comp_type values.
1536 (d_make_comp): Accept new d_comp_type values.
1537 (has_return_type): Only accept _THIS variants of qualifiers.
1538 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1539 qualifiers.
1540 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1541 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1542 qualifiers and printing them at the end, add _THIS qualifiers to
1543 the modifier list.
1544 (d_print_comp) [D_COMP_*_THIS]: New cases.
1545 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1546 qualifiers.
1547 (d_print_mod_list): Add suffix parameter. Change all callers.
1548 Keep walking the list even if the current modifier has been
1549 printed.
1550 (d_print_mod): Handle new _THIS qualifiers.
1551 (d_print_function_type): Handle new _THIS qualifiers when deciding
1552 whether to print a parenthesis. Put a space before the
1553 parenthesis in some cases. Call d_print_mod_list again at the
1554 end, passing suffix as 1.
1555 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1556 * testsuite/demangle-expected: Add test case.
1557
1558 Fix for PR gcc/13304:
1559 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1560 before the '<' is itself a '<', insert a space.
1561 (d_print_cast): Likewise.
1562 * testsuite/demangle-expected: Add test case.
1563
1564 Fix for PR gcc/13244:
1565 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1566 which uses the '>' operator in an extra layer of parens.
1567 * testsuite/demangle-expected: Add test case.
1568
bee6ab3e
ILT
15692003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1570
1571 * floatformat.c: Include "config.h" and <string.h> if available.
1572 (INFINITY, NAN): Define if not defined by <math.h>.
1573 (floatformat_to_double): Handle NaN, infinity, and denormalized
1574 numbers.
1575 (floatformat_from_double): Likewise.
1576 (ieee_test): In debugging code, use little endian rather than big
1577 endian. Correct tests to handle NaN and to check correct sign of
1578 zero. Omit m68k extended test.
1579 (main): Add more debugging cases.
1580
f26deb3d
ILT
15812003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1582
1583 * cp-demangle.c (d_demangle): Only return success if we consumed
1584 the entire demangled string.
1585 (is_ctor_or_dtor): Likewise.
1586
1587 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1588 to restore expected result of EDG test case to original expected
1589 result.
1590
81dc098b
ILT
15912003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1592
1593 * cp-demangle.c (struct d_print_mod): Add templates field.
1594 (d_make_builtin_type): Check for NULL type.
1595 (d_make_extended_operator): Check for NULL name.
1596 (d_make_ctor, d_make_dtor): Likewise.
1597 (d_mangled_name): Add top_level parameter. Change all callers.
1598 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1599 CV-qualifiers.
1600 (d_type): Check some return values we rely on.
1601 (d_bare_function_type, d_array_type): Likewise.
1602 (d_pointer_to_member_type, d_template_args): Likewise.
1603 (d_add_substitution): Fail if argument is NULL.
1604 (d_print_resize): Check whether buf is NULL.
1605 (d_print_comp): Save current templates list with each modifier.
1606 Don't pass the modifier list down when printing a template.
1607 (d_print_cast): Don't pass the modifier list down when printing a
1608 template.
1609 (d_print_mod_list): Temporarily set templates list while printing
1610 a modifier.
1611 (d_print_mod): Check that buf is not NULL before using it.
1612 (d_print_function_type): Print parens if there is no modifier.
1613 (d_init_info): Permit as many substitutions as there are
1614 characters in the mangled name.
1615 * testsuite/demangle-expected: Add two new test cases.
1616
eb459c81
ILT
16172003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1618
1619 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1620 d_demangle.
1621
ad07f5e5
ILT
16222003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1623
1624 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1625 callers.
1626 (print_usage): Display new -p option.
1627 (long_options): Add --no-params.
1628 (main): Accept and handle -p.
1629
0ba5c8a2
ILT
16302003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1631
1632 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1633 whether we have a template.
1634 * testsuite/demangle-expected: Add four new tests.
1635
bd6946d1
ILT
16362003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1637
9cca376f
ILT
1638 * testsuite/demangle-expected: Minor changes to match output of
1639 new demangler: adjust whitespace in four tests, and change order
1640 of qualifiers in one test.
1641
bd6946d1
ILT
1642 * cp-demangle.c: Complete rewrite.
1643
6df5a5c7
MM
16442003-11-19 Mark Mitchell <mark@codesourcery.com>
1645
1646 * cp-demangle.c (demangle_type): Correct thinko in substitution
1647 processing.
1648
a9b571f2
ILT
16492003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1650
820555e6
ILT
1651 * cp-demangle.c (demangle_operator_name): Remove space before
1652 "sizeof".
1653 (demangle_type_ptr): Put qualifiers in the right place. Handle
1654 qualifiers in pointer to member specially.
1655 (demangle_type): Handle qualifiers for pointer or reference
1656 specially. Handle function type.
1657 (demangle_local_name): Save and restore caret around demangling of
1658 initial encoding.
1659
c4328d32
ILT
1660 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1661 cplus_demangle.
1662
a9b571f2
ILT
1663 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1664
ad37274a
AJ
16652003-10-31 Andreas Jaeger <aj@suse.de>
1666
1667 * floatformat.c (floatformat_always_valid): Add unused attribute.
1668
27eb8ab1
JZ
16692003-10-30 Josef Zlomek <zlomekj@suse.cz>
1670
1671 Jan Hubicka <jh@suse.cz>
1672 * vasprintf.c (int_vasprintf): Pass va_list by value.
1673 Use va_copy for copying va_list.
1674 (vasprintf): Pass va_list by value.
1675
e0432c1c
JZ
16762003-10-30 Josef Zlomek <zlomekj@suse.cz>
1677
1678 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1679 instead of increasing n_elements when inserting to deleted slot.
1680
08c5b96d
B
16812003-10-20 J. Brobecker <brobecker@gnat.com>
1682
1683 * cplus-dem.c (demangle_template): Register a new Btype only
1684 when needed.
1685 * testsuite/demangle-expected: Add a new test.
1686
968e3f93
L
16872003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1688
1689 * testsuite/demangle-expected: Update the expected output of
1690 _GLOBAL__I__Z2fnv.
1691
bca48dc6
DJ
16922003-10-02 Daniel Jacobowitz <drow@mvista.com>
1693
1694 * strerror.c: Revert last change. Declare static sys_nerr
1695 and sys_errlist using different names.
1696
b9e8f4b3
DJ
16972003-10-01 Daniel Jacobowitz <drow@mvista.com>
1698
1699 * strerror.c: Don't provide or reference sys_errlist if
1700 strerror is available.
1701
c0590bfd
L
17022003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1703
1704 * configure.in: Check if $MAKEINFO is missing.
1705 * configure: Regenerated.
1706
b033df90
DJ
17072003-09-24 Daniel Jacobowitz <drow@mvista.com>
1708
1709 * configure.in: Use AC_PROG_CPP_WERROR.
1710 * configure: Regenerated.
1711
83c07342
AC
17122003-09-22 Andrew Cagney <cagney@redhat.com>
1713
1714 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1715 (floatformat_always_valid): New function.
1716 (floatformat_i387_ext): Initialize new "is_valid" field to
1717 "floatformat_i387_ext_is_valid".
1718 (floatformat_ieee_single_little): Initialize "is_valid" field to
1719 floatformat_always_valid.
1720 (floatformat_ieee_double_big): Ditto.
1721 (floatformat_ieee_double_little): Ditto.
1722 (floatformat_ieee_double_little): Ditto.
1723 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1724 (floatformat_i960_ext): Ditto.
1725 (floatformat_m88110_ext): Ditto.
1726 (floatformat_m88110_harris_ext): Ditto.
1727 (floatformat_arm_ext_big): Ditto.
1728 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1729 (floatformat_ia64_spill_big): Ditto.
1730 (floatformat_ia64_spill_little): Ditto.
1731 (floatformat_ia64_quad_big): Ditto.
1732 (floatformat_ia64_quad_little): Ditto.
1733 (floatformat_ia64_quad_little): Ditto.
1734 (floatformat_is_valid): Call "is_valid".
1735
c9fbef12
AC
17362003-09-15 Andrew Cagney <cagney@redhat.com>
1737
1738 * floatformat.c (get_field): Make "data" constant.
1739 (floatformat_is_valid, floatformat_to_double): Make "from"
1740 constant, fix casts.
1741 (floatformat_from_double): Make "from" constant.
1742
9c8860c3
DJ
17432003-09-15 Daniel Jacobowitz <drow@mvista.com>
1744
1745 * floatformat.c (floatformat_is_valid): New function.
1746 (get_field, put_field): Correct comments.
1747
13f7d3a1
JZ
17482003-09-06 Josef Zlomek <zlomekj@suse.cz>
1749
1750 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1751 FIBHEAPKEY_T.
1752
03eec143 17532003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
1754
1755 PR bootstrap/12100
1756 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1757 * configure: Rebuilt.
1758
238235ef
DJ
17592003-08-27 Daniel Jacobowitz <drow@mvista.com>
1760
1761 * aclocal.m4: Include acx.m4 and no-executables.m4.
1762 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1763 (LIB_AC_PROG_CC): Remove.
1764 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1765 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1766 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1767 performing link tests.
1768 * configure: Regenerated.
1769
2b81b2c9
NN
17702003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1771
0cf61401 1772 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 1773
7b96f3e4
DS
17742003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1775
1776 * pex-win32.c (pexecute): Mark parameters this_pname and
1777 temp_base as unused. Remove unused variables retries,
1778 sleep_interval. Initialize org_stdin, org_stdout.
1779 (pwait): Mark parameter flags as unused.
1780
17812003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
1782
1783 * pex-win32.c (fix_argv): Ensure that the executable pathname
1784 uses Win32 backslashes.
1785 (pexecute): Cast away constness when assigning *errmsg_arg.
1786
6f8507b1
L
17872003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1788
1789 * testsuite/demangle-expected: Add more GNU V3 testcases.
1790
21299dbd
ZW
17912003-06-22 Zack Weinberg <zack@codesourcery.com>
1792
1793 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1794 not HC_ASCII and HC_EBCDIC.
1795 Add documentation in form expected by gather-docs.
1796 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1797 * Makefile.in, functions.texi: Regenerate.
1798
7468e0b5
ZW
17992003-06-21 Zack Weinberg <zack@codesourcery.com>
1800
1801 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1802 for charset determination.
1803
cf8e4b78
DH
18042003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1805
1806 * configure.in: Add check for malloc.h needed by
1807 m68k for function free().
1808 * configure: Regenerated.
1809 * config.in: Add HAVE_MALLOC_H.
1810 * hashtab.c: include malloc.h were available for
1811 free().
1812
aa9dc53d 18132003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 1814
aa9dc53d
ACY
1815 PR bootstrap/10974
1816 * physmem.c: Update comment.
1817 * configure.in: Modify test for _system_configuration for older
1818 AIX systems.
1819
1820 * config.in, configure: Regenerated.
7468e0b5 1821
8191fe81
JDA
18222003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1823
1824 PR other/10810
1825 * test-demangle.c (getline): Fix fence-post error.
1826
8d398258
NC
18272003-06-03 Nick Clifton <nickc@redhat.com>
1828
1829 * asprintf.c: Change comment to note that -1 is returned upon
1830 error.
1831 * vasprintf.c: Likewise.
1832 (vasprintf): Return -1 upon error.
1833 * functions.texi: Document changes to asprintf and vasprintf.
1834
29ad6d3f
KC
18352003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1836
1837 * config.table: Accept i[345867]86 variant.
1838
49a19cfd
JB
18392003-05-15 Jim Blandy <jimb@redhat.com>
1840
1841 * hex.c (_hex_value): Make this unsigned.
1842 (hex_value): Update documentation for new return type. hex_value
1843 now expands to an unsigned int expression, to avoid unexpected
1844 sign extension when we store it in a bfd_vma, which is larger than
1845 int on some platforms.
1846 * functions.texi: Regenerated.
1847
d5d4eae2
JZ
18482003-05-07 Josef Zlomek <zlomekj@suse.cz>
1849
1850 * splay-tree.c (splay_tree_predecessor): Fix comment.
1851 (splay_tree_successor): Fix comment.
1852
5cc5a0d0
JM
18532003-05-07 Jason Merrill <jason@redhat.com>
1854
9d70d418 1855 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
1856 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1857 * aclocal.m4: Include accross.m4.
1858 * configure, config.in: Regenerate.
1859
05c30f22
KG
18602003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1861
1862 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1863 * configure: Regenerate.
1864
41fe9404
CW
18652003-05-03 Carlo Wood <carlo@alinoe.com>
1866
1867 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1868
52dd3224
KG
18692003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1870
1871 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1872 (main): Test that we don't write too much data.
1873
bd3fbc6b
KG
18742003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1875
1876 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1877 vsnprintf.
1878 * snprintf.c, vsnprintf.c: New files.
1879 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1880 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1881 Regenerate dependencies.
1882
1883 * functions.texi, configure, config.in: Regenerated.
1884
029bcc09
KG
18852003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1886
1887 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1888 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1889 and stpncpy.
1890 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1891 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1892 Regenerate dependencies.
1893
1894 * functions.texi, configure, config.in: Regenerated.
1895
c9ac9147
KG
18962003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1897
1898 * argv.c: Fix comments.
1899 * calloc.c: Don't unnecessarily include "libiberty.h".
1900 (bzero): Add prototype.
1901 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1902 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1903 with system headers.
1904 * hashtab.c (htab_traverse): Delete unused variables.
1905 * rename.c: Include "ansidecl.h".
1906 (rename): Use standard definition to avoid conflicts with system
1907 headers.
1908 * strsignal.c: Rely on ANSI_PROTOTYPES.
1909 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1910 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1911 * vprintf.c: Include "ansidecl.h" earlier, rely on
1912 ANSI_PROTOTYPES.
1913 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1914 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 1915
c9ac9147
KG
1916 * Makefile.in: Regenerate dependencies.
1917
98475c57
DD
19182003-04-15 DJ Delorie <dj@redhat.com>
1919
1920 * maint-tool (deps): Scan for headers in $srcdir also.
1921
55adc7bd
KG
19222003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1923
1924 PR target/10338
1925 PR bootstrap/10198
1926 PR bootstrap/10140
1927 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1928 __mempcpy.
1929 * regex.c (regerror): Likewise.
1930
0ae0f1b0
RS
19312003-04-14 Roger Sayle <roger@eyesopen.com>
1932
1933 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1934 * memchr.c: Likewise.
1935 * strcasecmp.c: Likewise.
1936 * strncasecmp.c: Likewise.
1937 * strncmp.c: Likewise.
1938 * xatexit.c: Likewise.
1939 * xmalloc.c: Likewise.
1940
1941 * copysign.c: Use traditional function declaration instead of DEFUN.
1942 * sigsetmask.c: Likewise.
1943
1944 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1945 * memset.c: Likewise.
1946
1947 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1948 * memmove.c: Likewise.
1949
88702c45
RS
19502003-04-14 Roger Sayle <roger@eyesopen.com>
1951
1952 * strdup.c (strdup): Tweak implementation to use memcpy.
1953
39e8d049
KG
19542003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1955
1956 * configure.in (HAVE_UINTPTR_T): Always define.
1957 * configure: Regenerated.
1958
9f2e0608
AO
19592003-03-23 Alexandre Oliva <aoliva@redhat.com>
1960
1961 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1962 instead of $$CC alone.
1963 (install_to_tooldir): Use it.
1964
dbccdc42
JH
19652003-17-03 Jan Hubicka <jh@suse.cz>
1966
1967 * hashtab.c (htab_traverse_noresize): Break out from ...
1968 * hashtab.c (htab_traverse): ... here.
1969
0a8e3de3
JH
19702003-12-03 Jan Hubicka <jh@suse.cz>
1971
cd22e4af
JH
1972 * hashtab.c (htab_expand): Fix warning.
1973
0a8e3de3
JH
1974 * hashtab.c (htab_expand): Compute the size of hashtable based
1975 on the number of elements actually used.
1976 (htab_traverse): Call htab_expand when table is too empty.
1977
8fe85775
CW
19782003-03-11 Carlo Wood <carlo@gnu.org>
1979
1980 * cplus-dem.c (demangle_integral_value): Correction to reflect
1981 patch of 2002-01-10 in order to also make negative multi-digits
1982 without leading underscore work.
1983
3bf27822
MM
19842003-03-03 Mark Mitchell <mark@codesourcery.com>
1985
1986 * cplus-dem.c: Add license exception to copyright notice.
1987
434fa0b8
KG
19882003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1989
1990 * physmem.c: Formatting changes from upstream.
1991
ed935c35
DS
19922003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1993
1994 * physmem.c (physmem_total): Add _WIN32 support.
1995 (physmem_available): Likewise.
1996
7f9fc006
RO
19972003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1998
1999 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
2000 GSI_PHYSMEM.
2001 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
2002
d47f75c4
KG
20032003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2004
2005 * configure.in: Check for sys/systemcfg.h and
2006 _system_configuration.
2007 * physmem.c: Add support for AIX. Tweek formatting as per
2008 upstream coreutils beta.
2009
170230b7
KG
20102003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2011 Richard Earnshaw <rearnsha@arm.com>
2012 Geoffrey Keating <geoffk@apple.com>
7468e0b5 2013
170230b7
KG
2014 * configure.in: Check for sys/sysctl.h and sysctl.
2015 * physmem.c: Add support for *bsd and darwin.
2016 * Makefile.in: Generate depedency for physmem.o.
2017
4a06f7f2
RO
20182003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2019
2020 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
2021 Tru64 UNIX.
2022 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
2023 Tru64 UNIX.
2024
2025 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
2026 machine/hal_sysinfo.h, sys/table.h.
2027 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
2028 * configure, config.in: Regenerate.
2029
64c7e556
KG
20302003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2031
2032 * configure.in: Check for sys/sysmp.h and sysmp.
2033 * physmem.c: Pull upstream copy, add support for irix6.
2034
2035 * config.in, configure: Regenerated.
2036
e9019af6
KG
20372003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2038
2039 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
2040 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
2041 pstat_getdynamic.
7468e0b5 2042
a354191e
KG
20432003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2044
2045 * Makefile.in (CFILES): Add physmem.c.
2046 (REQUIRED_OFILES): Add physmem.o.
2047 * configure.in: Check for sys/pstat.h.
2048 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
2049 * physmem.c: New file, copied from textutils.
2050
2051 * config.in, configure: Regenerated.
2052
4876b2b4
DJ
20532003-02-20 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * Makefile.in (CFILES): Add lrealpath.c.
2056 (REQUIRED_OFILES): Add lrealpath.o.
2057 (lrealpath.o): Add rule.
2058 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
2059 * configure.in: Add realpath and canonicalize_file_name to
2060 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
2061 for canonicalize_file_name.
2062 * lrealpath.c: New file.
2063 * make-relative-prefix.c: Update documentation.
2064 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
2065 * config.in: Regenerated.
2066 * configure: Regenerated.
2067 * functions.texi: Regenerated.
2068
e182f0a3 20692003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2070
2071 * cplus_dem.c: Fix typo: intializes -> initializes.
2072
3343fdd2
AO
20732003-02-20 Alexandre Oliva <aoliva@redhat.com>
2074
2075 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2076 config.status.
2077 * configure: Rebuilt.
2078
902cf50c
DJ
20792003-02-13 Daniel Jacobowitz <drow@mvista.com>
2080
2081 Fix PR c++/7612.
2082 * cplus-dem.c (demangle_signature): Call string_delete.
2083 Remove extra string_init.
2084 (demangle_arm_hp_template): Call string_delete instead of
2085 string_clear. Add missing string_delete call.
2086 (demangle_qualified): Add missing string_delete call.
2087 (do_type): Remove unused variable btype. Add missing string_delete
2088 call. Call string_delete instead of string_clear.
2089 (demangle_fund_type): Move variable btype inside of the switch
2090 statement. Add missing string_delete call.
2091 (do_arg): Call string_delete instead of string_clear. Remove extra
2092 string_init.
2093 (demangle_nested_args): Free work->previous_argument.
2094
7ac27e08
KG
20952003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2096
2097 * acconfig.h: New file. Add uintptr_t.
2098 * config.in: Regenerated.
2099
b3a8389d
JM
21002003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
2101
2102 * libiberty.texi: Update to GFDL 1.2.
2103
d8c22ce7
CC
21042003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2105
2106 * Makefile.in (libiberty_topdir): New subst.
2107 (mkinstalldirs): Redefine in terms of the above.
2108 * configure.in: AC_SUBST it.
2109 * configure: Regenerate.
2110
4ce1921a
CC
21112003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2112
2113 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
2114 (info-subdir, install-info-subdir, clean-info-subdir)
2115 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
2116 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
2117 Pass $(FLAGS_TO_PASS).
2118
93239fdb
AO
21192003-01-27 Alexandre Oliva <aoliva@redhat.com>
2120
2121 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
2122 /`$$CC -print-multi-os-directory`.
2123
74828682
DJ
21242003-01-26 Daniel Jacobowitz <drow@mvista.com>
2125
2126 * hashtab.c (htab_create_alloc_ex): New function.
2127 (hatab_set_functions_ex): New function.
2128 (htab_delete, htab_expand): Support alternate allocation functions.
2129
ece0e59f
CF
21302003-01-24 Christopher Faylor <cgf@redhat.com>
2131
2132 * configure.in: Remove special pex-cygwin consideration.
2133 * configure: Regenerate.
2134 * pex-cygwin.c: Remove.
2135 * Makefile.in: Remove pex-cygwin.[co] lines.
2136
55d0e5e0
ZW
21372003-01-24 Zack Weinberg <zack@codesourcery.com>
2138
2139 * Makefile.in (CFILES): Add pex-*.c.
2140 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
2141 (CONFIGURED_OFILES): Add pex-*.o.
2142 (TEXIFILES): Add pexecute.txh.
2143 (pexecute.o): Delete rule.
2144 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
2145 pex-unix.o, pex-win32.o): New rules.
2146 * configure.in: Change AC_INIT argument to xmalloc.c.
2147 Compute appropriate pexecute implementation and substitute it
2148 as @pexecute@.
2149
2150 * pexecute.c: Split up into...
2151 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
2152 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
2153 new files.
2154
2155 * functions.texi: Regenerate.
2156 * configure: Regenerate.
2157
120cdf68
JZ
21582003-01-20 Josef Zlomek <zlomekj@suse.cz>
2159
2160 * hashtab.c (htab_expand): Fix allocation of new entries.
2161
90e5b39f
CC
21622003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2163
2164 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2165
d7082cd7
CC
2166 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
2167 mkinstalldirs command.
2168
eaed9290
DS
21692002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
2170
2171 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
2172 Define for hosts with HOST_EXECUTABLE_SUFFIX.
2173
ef4e4181
NC
21742002-11-24 Nick Clifton <nickc@redhat.com>
2175
2176 * make-relative-prefix.c (make_relative_prefix): Ensure return
2177 string is empty before using strcat to construct it.
2178
42766f8d
DJ
21792002-11-22 Daniel Jacobowitz <drow@mvista.com>
2180
2181 * Makefile.in: Add make-relative-prefix.c.
2182 * make-relative-prefix.c: New file.
2183 * functions.texi: Rebuilt.
2184
783080ab
JJ
21852002-11-16 Jakub Jelinek <jakub@redhat.com>
2186
2187 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
2188 used with arguments in traditional C' warnings.
2189
7da64d7a
JJ
21902002-10-16 Jakub Jelinek <jakub@redhat.com>
2191
2192 * config.table: Use mh-s390pic for s390x too.
2193
de78f58b
AJ
21942002-10-06 Andreas Jaeger <aj@suse.de>
2195
2196 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
2197 variable and of strict-aliasing warning.
2198 (grow_vect): Use char as first parameter.
2199
6c5d742e
KG
22002002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2201
2202 * Makefile.in (all): Fix multilib parallel build.
2203
f08b7eee
JDA
22042002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
2205
2206 * cp-demangle.c (demangling_new): Cast 0 to enum.
2207 (demangle_char): Cast return of strdup to char *.
2208 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
2209 (is_gnu_v3_mangled_dtor): Likewise.
2210 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
2211 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
2212 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
2213 * md5.c (md5_process_bytes): Cast results back to const void *.
2214 (md5_process_block): Add cast to const md5_uint32 *.
2215 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
2216 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
2217 unsigned short.
2218 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
2219 to void *.
2220 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
2221
8d87f295
NC
22222002-09-19 Nick Clifton <nickc@redhat.com>
2223
2224 * README: Update email addresses for bugs and patches.
2225
6eedb9ca
MS
22262002-09-10 Mike Stump <mrs@apple.com>
2227
2228 * splay-tree.c (splay_tree_successor): Fix comments.
2229
3fd9d606
ZW
22302002-09-11 Zack Weinberg <zack@codesourcery.com>
2231
b2196e8f 2232 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
2233 * testsuite/Makefile.in: Adjust for test-demangle.
2234 * testsuite/regress-demangle: Deleted.
2235 * testsuite/test-demangle.c: New file.
2236 * testsuite/demangle-expected: Change \$ to $ throughout, now that
2237 this file is not being read by a shell script.
2238
70c4e67a
RS
22392002-09-05 Roger Sayle <roger@eyesopen.com>
2240
2241 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
2242
65b91091
DD
22432002-08-07 DJ Delorie <dj@redhat.com>
2244
2245 * regex.c (re_error_msgid): Just use a simple array of strings.
2246 (re_compile_pattern): Compensate.
2247 (re_comp): Likewise.
2248 (re_comp): Likewise.
2249 (regerror): Likewise.
2250
437974a9
NB
22512002-07-29 Neil Booth <neil@daikokuya.co.uk>
2252
2253 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 2254
28a34ec1
JM
22552002-07-10 Jason Merrill <jason@redhat.com>
2256
2257 * cp-demangle.c (demangle_identifier): Support extended Unicode
2258 characters.
2259
84326592
KG
22602002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2261
2262 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 2263 !defined IN_GLIBCPP_V3.
84326592 2264
5d69ba1f
MM
22652002-07-01 Mark Mitchell <mark@codesourcery.com>
2266
2267 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
2268 Set it for the "st" operator.
2269 (demangle_expression): Handle expressions with types as arguments.
2270
7fda878c
DR
22712002-06-30 Douglas Rupp <rupp@gnat.com>
2272
2273 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2274 * Makefile.in (OUTPUT_OPTION): Use.
2275
112bae77
PB
22762002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
2277
2278 * Makefile.in (install_to_libdir): Add $(DESTDIR).
2279 (install_to_tooldir): Likewise.
2280
53309d5c
DR
22812002-06-17 Douglas Rupp <rupp@gnat.com>
2282
2283 * lbasename.c: Add 2002 to copyright.
2284 (IS_DIR_SEPARATOR): Remove VMS junk.
2285
045b3a49
GK
22862002-06-05 Geoffrey Keating <geoffk@redhat.com>
2287
2288 * hashtab.c (htab_create): New stub function for backward
2289 compatibility.
2290 (htab_try_create): Likewise.
2291
e2500fed
GK
22922002-06-03 Geoffrey Keating <geoffk@redhat.com>
2293
2294 * hashtab.c (htab_create): Delete.
2295 (htab_try_create): Delete.
2296 (htab_create_alloc): New.
2297 (htab_delete): Support user-specified memory allocation.
2298 (htab_expand): Likewise.
2299
9f3dbd92
RL
23002002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2301
2302 * configure.in: Fix typo in the code checking for sys_errlist.
2303 * configure: Regenerated.
2304
e4723404
AS
23052002-05-13 Andreas Schwab <schwab@suse.de>
2306
2307 * config.table: Use mh-x86pic also for x86-64.
2308
6706f116
AO
23092002-05-08 Alexandre Oliva <aoliva@redhat.com>
2310
2311 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2312 script entry, and set LD to it when configuring multilibs.
2313 * configure: Rebuilt.
2314
deae2ed9
MM
23152002-05-07 Mark Mitchell <mark@codesourcery.com>
2316
2317 * configure.in (AC_TYPE_PID_T): Use it.
2318 * configure: Regenerated.
2319 * getruntime.c: Include <sys/types.h>.
2320 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2321
4fc4e478
RH
23222002-04-09 Richard Henderson <rth@redhat.com>
2323
2324 * hashtab.c (higher_prime_number): Use 7 as minimum.
2325 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
2326 (htab_find_slot_with_hash): Likewise.
2327
bd7e6f2d
PE
23282002-04-01 Phil Edwards <pme@gcc.gnu.org>
2329
2330 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2331 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
2332 not compile if IN_GLIBCPP_V3 defined.
2333 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2334
a8f55e51
BM
23352002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2336
de78f58b 2337 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
2338 if it is NULL.
2339
96adcacb
DD
23402002-03-27 DJ Delorie <dj@redhat.com>
2341
2342 * hex.c: Add documentation.
2343 (_hex_value): Provide non-ASCII empty table.
2344 (hex_init): Initialize the non-ASCII table.
2345 * functions.texi: Regenerate.
2346
2b613c6a
MM
23472002-03-27 Mark Mitchell <mark@codesourcery.com>
2348
2349 * dyn-string.c: Add libgcc exception to copyright notice.
2350
cd862df8
L
23512002-03-26 H.J. Lu (hjl@gnu.org)
2352
2353 * config.table: Support --with-build-subdir.
2354 * configure.in: Likewise.
2355 * configure: Rebuild.
2356
ed300793
SG
23572002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
2358
2359 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2360 seen.
2361
b3dd43df
MM
23622002-03-12 Mark Mitchell <mark@codesourcery.com>
2363
2364 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2365 notice.
2366
50c74579
DR
23672002-03-11 Douglas B Rupp <rupp@gnat.com>
2368
2369 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2370
957978a4
JB
23712002-03-06 Jim Blandy <jimb@redhat.com>
2372
2373 * splay-tree.c (splay_tree_xmalloc_allocate,
2374 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
2375 prototyped definitions. Mark `data' arguments as unused.
2376
ccc49bed
AC
23772002-03-06 Andrew Cagney <ac131313@redhat.com>
2378
2379 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2380
48d7db63
PE
23812002-03-04 Phil Edwards <pme@gcc.gnu.org>
2382
2383 * configure.in: Add --enable-install-libiberty option.
2384 * Makefile.in (INSTALLED_HEADERS): New variable.
2385 (install_to_libdir): Possibly also copy headers.
2386 * configure: Regenerated.
2387
af18e951
NB
23882002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2389
2390 * xmalloc.c (xmalloc_fail): Clarify error message further.
2391
d8d7c3c3
NB
23922002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2393
2394 * xmalloc.c (xmalloc_fail): Clarify error message.
2395
00c2f96f
JB
23962002-02-22 Jim Blandy <jimb@redhat.com>
2397
2398 * splay-tree.c (splay_tree_xmalloc_allocate,
2399 splay_tree_xmalloc_deallocate): New functions.
2400 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2401 above functions and a dummy data pointer.
2402 (splay_tree_new_with_allocator): New function.
2403 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2404 splay_tree_remove): Use the splay tree's allocation and
2405 deallocation functions.
2406
b1c1a22f
SS
24072002-02-19 Scott Snyder <snyder@fnal.gov>
2408
2409 * testsuite/demangle-expected: Add test case for infinite loop in
2410 demangler.
2411 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2412 if do_type() doesn't make any progress --- prevents an infinite
2413 loop.
2414
336669e7
CW
24152002-02-18 Carlo Wood <carlo@gnu.org>
2416
2417 PR c++/5390
2418 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2419 numbers that do not start with an underscore; This is needed
2420 for integer template parameters. This doesn't break anything
2421 because multi-digit numbers are never followed by a digit.
2422 * testsuite/demangle-expected: Corrected all mangled test
2423 cases with multi-digit template parameters: g++ 2.95.x does
2424 not generate underscores around these parameters.
2425
c13db5d1
JM
24262002-02-05 Jason Merrill <jason@redhat.com>
2427
2428 * cplus-dem.c (flags): Add DMGL_VERBOSE
2429 (cplus_demangle_v3_p): Remove.
2430 (demangle_it): Add DMGL_TYPES to passed flags.
2431 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2432 (cplus_demangle_v3_type): Remove.
2433 (cplus_demangle_v3): Add options parm.
2434
d74697b8
L
24352002-02-02 H.J. Lu (hjl@gnu.org)
2436
2437 * cp-demangle.c (cp_demangle_type): Do not protect with
2438 IN_LIBGCC2.
2439 (cplus_demangle_v3_all): New.
2440 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2441 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2442
2443 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2444 Initialized to cplus_demangle_v3.
2445 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2446 of cplus_demangle_v3.
2447 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2448 command line symbol.
2449
2450 * testsuite/regress-demangle: Pass the mangled name at the
2451 command line.
2452
3a441e38
L
24532002-02-01 H.J. Lu <hjl@gnu.org>
2454
2455 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2456 DMGL_GNU_V3.
2457
6d747e63
PE
24582002-01-31 Phil Edwards <pme@gcc.gnu.org>
2459
2460 * cp-demangle.c: Revert yesterday's change.
2461
46af757b
AM
24622002-01-31 Adam Megacz <adam@xwt.org>
2463
2464 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2465 wrt HAVE_SYS_ERRLIST.
2466
46ab74b1
PE
24672002-01-30 Phil Edwards <pme@gcc.gnu.org>
2468
2469 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2470 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2471 cp_demangle_type.
2472 * testsuite/demangle-expected: New gnu-v3 test.
2473
e64d0626
MV
24742002-01-22 Momchil Velikov <velco@fadata.bg>
2475
2476 * configure.in (variable detection): Use arrays of unspecified
2477 size instead of plain integers.
2478
9ce3f7e5
DD
24792002-01-18 DJ Delorie <dj@redhat.com>
2480
2481 * Makefile.in (TESTLIB): New. This library is for future
2482 testsuites.
2483 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2484 break down by letter.
2485 (REQUIRED_OFILES): List long-to-compile files first.
2486 (maint-deps): New, target for updating dependencies.
2487 (dependencies): Update.
2488 * maint-tool: Add dependency-generating option.
2489 * configure.in: Check for _doprnt even if we're not providing it.
2490 * configure: Regenerate.
2491
2492 * _doprnt.c: Modifications to allow compiling on any platform.
2493 * copysign.c: Likewise.
2494 * putenv.c: Likewise.
2495 * setenv.c: Likewise.
2496 * vsprintf.c: Likewise.
2497
0e83ceb1
DR
24982002-01-15 Douglas B Rupp <rupp@gnat.com>
2499
2500 * mkstemps.c (mkstemps): On VMS, open temp file with option
2501 that causes it to be deleted when closed.
2502
adddf5bf
KG
25032002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2504
5e65297b
KG
2505 * cp-demangle.c (long_options): Const-ify.
2506 * cplus-dem.c (long_options): Likewise.
2507
adddf5bf
KG
2508 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2509 strstr instead.
2510
a4219437
IR
25112001-12-31 Ira Ruben <ira@apple.com>
2512
2513 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2514 * configure: Regenerated.
af328d8d
DR
2515
25162001-12-24 Douglas B. Rupp <rupp@gnat.com>
2517
2518 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2519 * configure: Regenerated.
a4219437 2520
63de15a4
CR
25212001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2522
2523 PR other/2719
2524 * cplus-dem.c (consume_count): Treat negative count as an error.
2525 * testsuite/demangle-expected: Added testcase.
2526
ee262b6f
DR
2527Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2528
2529 * configure.in: Hardcode that vfork works on VMS host.
2530 * configure: Regenerated.
2531
d06ba3c7
RH
25322001-12-06 Richard Henderson <rth@redhat.com>
2533
2534 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2535 (cplus_demangle): Support no_demangling.
2536
e490616e
ZW
25372001-11-27 Zack Weinberg <zack@codesourcery.com>
2538
2539 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2540 in libiberty context. Fix typo in leading comment.
2541 * configure.in: Fix various AC_DEFINEs so autoheader works.
2542 If any of vprintf, vsprintf, vfprintf is missing from libc,
2543 then AC_REPLACE_FUNCS(_doprnt).
2544
97e620cf 25452001-11-26 DJ Delorie <dj@redhat.com>
e490616e 2546 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
2547
2548 * Makefile.in (stamp-h): Depend on Makefile for proper
2549 serialization.
2550 (*-subdir): Depend on config.h for proper serialization.
2551
c3bb7df0
DD
25522001-11-26 DJ Delorie <dj@redhat.com>
2553
2554 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2555 * configure: Regenerate.
2556 * config.h: Add HAVE_ALLOCA_H.
2557
23850d35
KG
25582001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2559
2c47b56b
KG
2560 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2561 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2562 is available.
23850d35 2563
7ddfb651
JL
2564Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2565
d3982b71
JL
2566 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2567 * configure.in (HAVE_UINTPTR_T): Test for system defining
2568 uintptr_t and define HAVE_UINTPTR_T appropriately.
2569 * regex.c (uintptr_t): Do not provide a definition if the
2570 system provided one.
2571
7ddfb651
JL
2572 * regex.c (PREFIX): Provide an alternate definition for
2573 non-ANSI/ISO compilers.
2574 (ARG_PREFIX): Likewise.
2575
2e683037
JM
25762001-11-12 Jim Meyering <meyering@lucent.com>
2577
2578 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2579 this code would end up calling gettext even in packages built
2580 with --disable-nls.
2581 * getopt.c (_): Likewise.
2582 * regex.c (_): Likewise.
2583
f749bd83
AM
25842001-11-03 Alan Modra <amodra@bigpond.net.au>
2585
2586 * configure.in: Cope with missing makeinfo.
55a10d7c 2587 * configure: Regenerate.
f749bd83 2588
26ad2982
KG
25892001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2590
e5969ba6
KG
2591 * hex.c (hex_init): Provide empty stub.
2592
26ad2982
KG
2593 * hex.c (hex_init): Delete.
2594 (_hex_value): Const-ify and initialize at compile-time.
2595
afb649d5
L
25962001-10-19 H.J. Lu <hjl@gnu.org>
2597
2598 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2599 necessary.
2600
5bed56d9
DD
26012001-10-17 DJ Delorie <dj@redhat.com>
2602
2603 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2604 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 2605 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
2606 Improve manual formatting.
2607 * functions.texi: Regenerate.
2608
aac04c15
DD
26092001-10-15 DJ Delorie <dj@redhat.com>
2610
2611 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2612 (maint-undoc): New.
2613 maint-tool: Add "undoc" tool.
2614 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2615 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2616 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2617 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2618 documentation.
2619 * fnmatch.txh: New.
2620 * functions.texi: Regenerate.
fae8182a 2621
0e4e9e8f
JM
26222001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2623
2624 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2625 * strtod.c: Use "ISO C" instead of "ANSI C".
2626 * functions.texi: Regenerate.
2627
7f8fa05d
JM
26282001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2629
2630 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2631 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2632 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2633 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2634 spelling. Give names to function arguments in documentation. Use
2635 (void) prototypes in documentation.
2636 * functions.texi: Regenerate.
2637
0be6abca
KG
26382001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2639
2640 * argv.c (buildargv, tests, main): Const-ify.
2641 * cp-demangle.c (operator_code): Likewise.
2642 * cplus-dem.c (optable, libiberty_demanglers,
2643 cplus_demangle_set_style, cplus_demangle_name_to_style,
2644 print_demangler_list): Likewise.
2645 * hashtab.c (higher_prime_number): Likewise.
2646 * strcasecmp.c (charmap): Likewise.
2647 * strerror.c (error_info, strerror, main): Likewise.
2648 * strncasecmp.c (charmap): Likewise.
2649 * strsignal.c (signal_info): Likewise.
2650
0e30ffc5
DD
26512001-09-29 DJ Delorie <dj@redhat.com>
2652
2653 * configure: Regenerate.
2654
576fb787
KG
26552001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2656
2657 * concat.c: Include stdlib.h.
2658
e922f978
EZ
26592001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2660
2661 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2662 @dircategory and @direntry directives. Add @finalout.
2663 (many nodes): Lose the next,prev,up pointers on the @nide line.
2664 (Using, Supplemental Functions, Replacement Functions): Fix
2665 markup.
2666 (Functions): Move around, to allow makeinfo to build the manual
2667 without next,prev,up pointers in thye node lines.
2668 (Licenses): Fix typos.
2669
2670 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2671 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2672 * functions.texi: Regenerate.
2673
2674 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2675 line.
2676
ae9092da
DD
26772001-09-27 DJ Delorie <dj@redhat.com>
2678
2679 * configure.in: Don't use in-tree texinfo, because libiberty must
2680 be built before it. Check for makeinfo version 4 or higher.
2681 * functions.texi: Regenerate.
fae8182a 2682
aaa5f039
DD
26832001-09-20 DJ Delorie <dj@redhat.com>
2684 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 2685
aaa5f039
DD
2686 * configure.in (MAKEINFO, PERL): Detect these.
2687 (--enable-maintainer-mode): Add.
2688 * configure: Regenerate.
2689 * Makefile.in (MAKEINFO, PERL): Define.
2690 (libiberty.info, libiberty.dvi, libiberty.html): New.
2691 (CFILES): Add bsearch.c.
2692 (CONFIGURED_OFILES): New, list of objects configure might add.
2693 (maint-missing, maint-buildall): New, for maintainers only.
2694 (clean, mostlyclean): Add info/dvi/html files.
2695 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2696 * gather-docs: New, for maintainers.
2697 * maint-tool: New, for maintainers.
2698 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2699 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2700 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2701 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2702 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2703 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2704 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2705 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2706 documentation.
fae8182a 2707
c1766881
KG
27082001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2709
2710 * concat.c (reconcat): Fix for traditional C.
2711
ad43d46f
KG
27122001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2713
2714 * concat.c (reconcat): New function.
2715
c1d49704
KG
27162001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2717
c793eea7
KG
2718 * concat.c (vconcat_length, vconcat_copy, concat_length,
2719 concat_copy, concat_copy2): New functions.
2720 (concat): Use vconcat_length/vconcat_copy.
2721
c1d49704
KG
2722 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2723 Define.
2724
7a98d9b2
KG
27252001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2726
2727 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2728 VA_FIXEDARG & VA_CLOSE.
fae8182a 2729
7a98d9b2
KG
2730 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2731 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2732 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2733
e2dff3f2
KG
27342001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2735
2736 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2737
d0708dc1
UD
27382001-08-23 Ulrich Drepper <drepper@redhat.com>
2739
2740 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2741
27422001-08-23 Ulrich Drepper <drepper@redhat.com>
2743
2744 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2745 instead of mbrtowc.
2746 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2747 wcslen, and __wcscoll instead of wcscoll.
2748
ffb9435b
MK
27492001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2750
de78f58b
AJ
2751 * fibheap.c (fibheap_init, fibnode_init): Remove.
2752 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2753 initialize memory.
2754 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 2755
f379eac3
RH
27562001-08-21 Richard Henderson <rth@redhat.com>
2757
2758 * Makefile.in (fibheap.o): Depend on config.h.
2759 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2760 functions for inlining.
2761
b1c45ae4
CF
2762Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2763
2764 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2765 hosting on cygwin.
2766 * configure: Regenerate.
2767
0310e5ac
AC
27682001-08-20 Andrew Cagney <ac131313@redhat.com>
2769
2770 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2771 HARRIS_FLOAT_FORMAT.
2772 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2773 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2774 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2775 (floatformat_m88110_harris_ext): New float formats.
2776
8c23e0a4
DB
27772001-08-20 Daniel Berlin <dan@cgsoftware.com>
2778
2779 * fibheap.c: New file. Fibonacci heap.
2780
2781 * Makefile.in (CFILES): Add fibheap.c.
2782 (REQUIRED_OFILES): Add fibheap.o.
2783 (fibheap.o): Add dependencies for fibheap.o.
2784
91625004
CF
27852001-08-17 Christopher Faylor <cgf@cygnus.com>
2786
2787 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2788 * configure: Regenerate.
2789
9e0ba685
RH
27902001-08-16 Richard Henderson <rth@redhat.com>
2791
2792 * hashtab.c (htab_hash_string): New.
2793
d80dedbe
AC
27942001-08-13 Andrew Cagney <ac131313@redhat.com>
2795
2796 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2797 name.
2798
ccea0d85
IH
27992001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2800
2801 * regex.c (wcs_regex_compile): Use appropriate string
2802 to compare with collating element.
2803 Fix the padding for the alignment.
2804
b0e9bc8c 28052001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
2806
2807 * lbasename.c (lbasename): Change function definition to return a
2808 const char pointer.
2809
056400f1
JM
28102001-08-07 Jason Merrill <jason_merrill@redhat.com>
2811
2812 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2813 for".
2814
4e627c41
RH
28152001-08-03 Richard Henderson <rth@redhat.com>
2816
2817 * Makefile.in (concat.o): Depend on config.h.
2818
b6a2f884
AJ
28192001-07-30 Andreas Jaeger <aj@suse.de>
2820
2821 * concat.c: Include "config.h".
2822
c4b9cfe0
AJ
28232001-07-30 Andreas Jaeger <aj@suse.de>
2824
2825 * regex.c: Declare wcs functions only if compiling with
2826 MBS_SUPPORT.
2827 Don't use #elif for traditional C.
2828
28292001-07-23 Ulrich Drepper <drepper@redhat.com>
2830
2831 * regex.c: Revamp memory allocation for WCHAR functions to
2832 not use too much stack.
2833
28342001-07-30 Andreas Jaeger <aj@suse.de>
2835
2836 * regex.c: Declare wcs functions only if compiling with
2837 MBS_SUPPORT.
2838 Don't use #elif for traditional C.
2839
2cf50fd3
DJ
28402001-07-25 Daniel Jacobowitz <drow@mvista.com>
2841
2842 * Makefile.in (regex.o): Add dependency on config.h.
2843
27ffc806
DD
28442001-07-18 Andreas Schwab <schwab@suse.de>
2845
2846 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2847 underscore character.
2848
28492001-07-18 Ulrich Drepper <drepper@redhat.com>
2850
2851 * regex.c: Limit string length printed in debug messages to 100
2852 chars.
2853
28542001-07-18 Andreas Jaeger <aj@suse.de>
2855
2856 * regex.c: Place under LGPL version 2.1.
2857
dd771632
JJ
28582001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2859
2860 * Makefile.in: Add support for regex code.
2861 * regex.c: New file.
2862
29650b2b
MK
28632001-07-05 Mark Klein <mklein@dis.com>
2864
2865 * Makefile.in: Add ffs.c dependency.
2866 * configure.in: Add ffs.c.
2867 * ffs.c: New file.
2868
c8b28221
RH
28692001-06-18 Richard Henderson <rth@redhat.com>
2870
2871 * concat.c: Include <sys/types.h>.
2872
473c2d0b
LR
28732001-06-11 Loren J. Rittle <ljrittle@acm.org>
2874
a4c03da2 2875 bootstrap/3106
473c2d0b
LR
2876 * strerror.c (sys_nerr): Hide the OS header version.
2877 * strsignal.c (sys_nsig): Likewise.
2878
0bdcca68
RH
28792001-06-10 Richard Henderson <rth@redhat.com>
2880
2881 * concat.c: Include string.h. Fix int vs size_t usage.
2882 Simplify the iteration loops. Use memcpy.
2883
6de133d3
MK
28842001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2885
2886 * partition.c: Fix misspelling of `implementation'.
2887
8a153288
TS
28882001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2889
2890 * md5.c (md5_init_ctx): Declare constants as unsigned.
2891 (md5_process_block): Likewise.
2892
641b2721
ZW
28932001-05-07 Zack Weinberg <zackw@stanford.edu>
2894
2895 * cp-demangle.c (demangle_v3_with_details,
2896 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2897 function definition.
2898 * ternary.c: Use K+R style function definitions. Use PTR, not
2899 void *. Make arguments constant where possible.
2900
5cdba4ff
MM
29012001-05-07 Mark Mitchell <mark@codesourcery.com>
2902
2903 * splay-tree.h (splay_tree_max): New function.
2904 (splay_tree_min): Likewise.
2905
9dab060e
DB
29062001-04-15 Daniel Berlin <dan@cgsoftware.com>
2907
2908 * ternary.c: New file - Ternary search tree implementation.
2909
2910 * Makefile.in: Add ternary.o, and ternary.c dependencies.
2911
d02af173
ZW
29122001-04-03 Zack Weinberg <zackw@stanford.edu>
2913
2914 * make-temp-file.c (try): Inline.
2915
94b68558
RH
29162001-02-28 Richard Henderson <rth@redhat.com>
2917
2918 * Makefile.in (make-temp-file.o): Depend on config.h.
2919
27f66c0b
KG
29202001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2921
2922 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2923
f1a0345c
JJ
29242001-03-23 Jakub Jelinek <jakub@redhat.com>
2925
2926 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2927 `_' not followed by a digit is invalid.
2928
a519fba6
JB
29292001-03-22 Jim Blandy <jimb@redhat.com>
2930
2931 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2932 instead of free, to free the contents as well as the string
2933 structure.
2934
49ee944b
ZW
29352001-03-21 Zack Weinberg <zackw@stanford.edu>
2936
2937 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2938 Don't default P_tmpdir to anything. Try /var/tmp before
2939 /usr/tmp.
2940
33437dc7
ZW
29412001-03-20 Zack Weinberg <zackw@stanford.edu>
2942
2943 * choose-temp.c: Split off make_temp_file, and the code
2944 duplicated between it and choose_temp_base, into...
2945 * make-temp-file.c: ... here; new file.
2946
2947 * Makefile.in (CFILES): Add make-temp-file.c.
2948 (REQUIRED_OFILES): Add make-temp-file.o.
2949
7dce2eff
JB
29502001-03-20 Jim Blandy <jimb@redhat.com>
2951
2952 * cp-demangle.c (struct demangling_def): New fields:
2953 is_constructor and is_destructor.
2954 (demangling_new): Initialize them.
2955 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2956 or destructor.
2957 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2958 is_gnu_v3_mangled_dtor): New functions.
2959
e03a61f1
JM
29602001-03-20 Jason Merrill <jason@redhat.com>
2961
2962 * cplus-dem.c (main): Skip initial $.
2963
8860ddab
MM
29642001-03-15 Michael Meissner <meissner@redhat.com>
2965
2966 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2967 might be a signed integer under pre-ISO C systems.
2968
2b757d51
NB
29692001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2970 John David Anglin <dave@hiauly1.hia.nrc.ca>
2971
2972 * libiberty/lbasename.c: New file.
2973 * libiberty/Makefile.in: Update for lbasename.
2974
1f50aafb
ZW
29752001-03-06 Zack Weinberg <zackw@stanford.edu>
2976
2977 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2978 * configure.in: Replace all alloca logic with a simple use of
2979 the above new macro.
2980 * config.table: Kill *-*-beos* entry.
2981 * config/mh-beos: Delete.
2982 * configure, config.in: Regenerate.
2983
2984 * Makefile.in (ALLOCA, HFILES): Kill.
2985 (REQUIRED_OFILES): Add alloca.o.
2986 (alloca.o): Depend on libiberty.h.
2987 (argv.o): Don't depend on alloca-conf.h.
2988 * alloca-conf.h: Delete.
2989 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2990 blocks. Provide the C alloca unconditionally. Use PTR where
2991 appropriate. Make i00afunc static.
2992 * argv.c: Don't include alloca-conf.h.
2993
d9fd5aae
JDA
29942001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2995
2996 * cplus-dem.c (main): Cast enum style to int.
2997
4031ed65
LR
29982001-02-16 Loren J. Rittle <ljrittle@acm.org>
2999
3000 * cplus-dem.c (main): Initialize style.
3001
2ca46e8a
PE
30022001-02-02 Phil Edwards <pme@sources.redhat.com>
3003
3004 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
3005
3b60dd8e
BM
30062001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
3007
3008 Add support for Java demangling under the v3 ABI:
3009 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
3010 (struct demangling_def): Add `style' field.
3011 (demangling_new): New parameter `style'. Set it in demangling_t.
3012 (demangle_prefix): Use NAMESPACE_SEPARATOR.
3013 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
3014 (cp_demangle): New parameter `style'. Pass it to demangling_new().
3015 (main): Call cp_demangle with extra parameter.
3016 (java_demangle_v3): New function.
3017 (java_builtin_type_names): New. Table of primitive type names used
3018 for Java demangling.
3019 (demangle_builtin_type): Look up in java_builtin_type_names if doing
3020 Java output.
1f50aafb 3021 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
3022 demangling.
3023 (long_options): Remove obsolete `java' option.
3024 (main): Remove explicit handling of `java' option. Instead, pass style
3025 parameter in cplus_demangle flags as gdb does.
3026 * testsuite/demangle.expected: Add some Java test cases.
3027
584932e9
DD
30282000-12-29 DJ Delorie <dj@redhat.com>
3029
3030 * fnmatch.c: Make the note about the origins of this file more
3031 accurate, at least until we can sync with glibc.
3032 * getopt.c: Ditto.
3033 * getopt1.c: Ditto.
3034 * md5.c: Ditto.
3035 * obstack.c: Ditto.
3036
dac45916
MS
30372000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3038
3039 * bsearch.c: New file.
3040 * configure.in (funcs): Add bsearch.
3041 (AC_CHECK_FUNCS): Likewise.
3042 * configure, config.in: Regenerate.
3043
a8e4a997
MS
30442000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3045
3046 * safe-ctype.c: #include "ansidecl.h".
3047 * strtod.c: Likewise.
3048
75444da7
MS
30492000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3050
3051 * strtoul.c: Include safe-ctype.h, not ctype.h.
3052
f6bbde28
ZW
30532000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
3054
3055 * safe-ctype.c: New file.
3056 * Makefile.in (CFILES): Add safe-ctype.c.
3057 (REQUIRED_OFILES): Add safe-ctype.o.
3058
3059 * argv.c: Define ISBLANK and use it, not isspace.
3060 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
3061 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
3062 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
3063 before calling TOLOWER(c)/TOUPPER(c).
3064
6c1ce62b 30652000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
3066
3067 * Makefile.in (distclean): When cleaning, remove testsuite.
3068
b5d1497d
JM
30692000-12-05 Jason Merrill <jason@redhat.com>
3070
3071 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
3072 name before allocating the dyn_string.
3073
c6e13630
JM
30742000-12-04 Jason Merrill <jason@redhat.com>
3075
3076 * cp-demangle.c: s/new_abi/v3/.
3077 * cplus-dem.c: Likewise.
3078 (current_demangling_style): Now auto_demangling.
3079 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 3080 (main): Use standard symbol chars for auto_demangling.
c6e13630 3081
a4c9b97e
MM
30822000-11-26 Mark Mitchell <mark@codesourcery.com>
3083
3084 * hashtab.c (higher_prime_number): Use a table, rather than a
3085 seive, to find the next prime.
3086
3b3bd9a7
L
30872000-11-22 H.J. Lu <hjl@gnu.org>
3088
3089 * cplus-dem.c (main): Handle gnat_demangling.
3090
d1209685
ZW
30912000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
3092
3093 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
3094 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
3095 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
3096 argument form of AC_DEFINE in dummy definitions block. Use
3097 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
3098 in dummy block. Preload cache variables instead of bypassing
3099 tests, where possible.
3100 * acconfig.h: Removed.
3101
3102 * xmalloc.c (xmalloc_failed): New function, does error
3103 reporting on failed allocation.
3104 (xmalloc, xcalloc, xrealloc): Use it.
3105
cf183ac2
HPN
31062000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
3107
3108 * cplus-dem.c (cplus_demangle): Fix formatting.
3109 (grow_vect): Ditto.
3110 (ada_demangle): Ditto.
3111 (internal_cplus_demangle): Ditto.
3112 (mop_up): Ditto.
3113
31142000-11-21 H.J. Lu <hjl@gnu.org>
3115
3116 * cplus-dem.c (main): Handle java_demangling.
3117
8bcc782c
KG
31182000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3119
3120 * cplus-dem.c (grow_vect): Prototype.
3121 (ada_demangle): Cast the arg of ctype macros to unsigned char.
3122
29120f44
HPN
31232000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
3124
3125 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
3126 parameter `option'.
3127
0437a5a8
KB
31282000-11-15 Kenneth Block <kenneth.block@compaq.com>
3129
9e038f71 3130 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
3131 be used in GCC.
3132
eab0c1ab 31332000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 3134
29120f44 3135 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
3136 list.
3137
d50d20ec
HPN
31382000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
3139
3140 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
3141 xcalloc depending on htab->return_allocation_failure. Return zero
3142 if calloc fails.
d50d20ec
HPN
3143 (htab_create): Update comment to cover memory allocation.
3144 (htab_try_create): New.
3145 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 3146 Update comment to cover this.
d50d20ec 3147
35e9340f
HPN
31482000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
3149
3150 * hashtab.c: Change void * to PTR where necessary.
3151 (htab_create, htab_expand): Correct formatting of comment before
3152 function.
3153
ea343d1a 31542000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
3155
3156 * cp-demangle.c (string_list_def): Add caret_position and comments.
3157 (result_caret_pos): New macro.
3158 (result_append_string): Rename to...
3159 (result_add_string): ... this, and insert at caret position.
d1209685 3160 Rename throughout.
0870bfd6
AS
3161 (result_append): Rename to...
3162 (result_add): ... this, and insert at caret position. Rename
d1209685 3163 throughout.
0870bfd6
AS
3164 (result_append_char): Rename to...
3165 (result_add_char): ... this, and insert at caret position. Rename
d1209685 3166 throughout.
0870bfd6
AS
3167 (result_append_space): Remove.
3168 (string_list_new): Initialize caret position.
3169 (result_add_separated_char): Use caret position.
3170 (result_get_caret): New funtion.
3171 (result_set_caret): Likewise.
3172 (result_shift_caret): Likewise.
3173 (result_previous_char_is_space): Likewise.
3174 (substitution_start): Use caret position.
3175 (substitution_add): Likewise.
3176 (demangling_new): Initialize caret position.
3177 (demangle_encoding): Use caret position.
d1209685 3178 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
3179 (demangle_type_ptr): Use switch statement. Handle pointers to
3180 arrays. Don't use result_append_space. Use caret position.
3181 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
3182 call to demangle_array_type.
3183 (demangle_array_type): Add parameter to handle pointers to arrays.
3184
f15b9af9
MM
31852000-10-01 Mark Mitchell <mark@codesourcery.com>
3186
3187 * splay-tree.c (splay_tree_insert): Fix formatting.
3188
8f17b5c5
MM
31892000-09-16 Mark Mitchell <mark@codesourcery.com>
3190
3191 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
3192
4eaa189a
MS
31932000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3194
3195 * splay-tree.c: #include <stdio.h>.
3196
29791078
HPN
31972000-09-14 Hans-Peter Nilsson <hp@axis.com>
3198
3199 * testsuite/demangle-expected: Add two tests for anonymous
3200 namespaces.
3201 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
3202
2c9f4db7
MM
32032000-09-10 Mark Mitchell <mark@codesourcery.com>
3204
3205 * splay-tree.c (splay_tree_predecessor): New function.
3206 (splay_tree_successor): Likewise.
3207
bb22da4b
HPN
32082000-09-10 Hans-Peter Nilsson <hp@axis.com>
3209
3210 * testsuite/demangle-expected: Add four tests for type_info
3211 mangling.
bb22da4b
HPN
3212 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
3213 for a non-template non-qualified type_info function or node.
3214
759e8187
AS
32152000-09-08 Alex Samuel <samuel@codesourcery.com>
3216
3217 * cp-demangle.c: Fix copyright banner.
3218
2ecd81ef
MS
32192000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3220
3221 * md5.c: #include "ansidecl.h".
3222
d93998ec
AS
32232000-09-06 Alex Samuel <samuel@codesourcery.com>
3224
3225 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
3226 (demangle_type): Handle substitution candidates correctly in the
3227 face of special substitutions.
3228
1056d228
AS
32292000-09-05 Alex Samuel <samuel@codesourcery.com>
3230
3231 * cp-demangle.c (demangle_encoding): Rename variable.
3232 (demangle_name): Rename parameter. Handle return type
3233 suppression.
3234 (demangle_nested_name): Rename parameter.
3235 (demangle_prefix): Likewise. Change return type suppression.
3236 (demangle_unqualified_name): Add parameter. Flag constructors and
3237 conversion operators.
3238 (demangle_special_name): Fix comment.
3239 (demangle_type): Rename variable.
3240 (demangle_bare_function_type): Check for missing return type and
d1209685 3241 parameter.
1056d228
AS
3242 (demangle_class_enum_type): Rename parameter.
3243 (demangle_discriminator): Fix misspelling in comment.
3244
2f31ed7e
DD
32452000-08-31 DJ Delorie <dj@redhat.com>
3246
3247 * configure.in (Cygwin): special case cygwin only when we're
3248 building cygwin, not when we're hosting cygwin.
3249
02bcb9c6
AS
32502000-09-04 Alex Samuel <samuel@codesourcery.com>
3251
3252 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
3253 <expression>.
3254
aee749cf
AS
32552000-09-04 Alex Samuel <samuel@codesourcery.com>
3256
3257 * cp-demangle.c (demangle_type_ptr): Increment position past
3258 pointer and reference characters.
3259
92a16bbe
AS
32602000-09-04 Alex Samuel <samuel@codesourcery.com>
3261
3262 * cp-demangle.c (demangle_nv_offset): New function.
3263 (demangle_v_offset): Likewise.
3264 (demangle_call_offset): Likewise.
3265 (demangle_special_name): Update thunk demangling to comply with
3266 ABI changes.
d1209685 3267
31e0ab1f
AS
32682000-09-03 Alex Samuel <samuel@codesourcery.com>
3269
3270 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
3271 (substitution_def): Remove template_parm_number.
3272 (NOT_TEMPLATE_PARM): Remove.
3273 (result_insert_string): New macro.
3274 (result_insert): Likewise.
3275 (result_insert_char): Likewise.
3276 (substitution_add): Remove last parameter. Don't store template
d1209685 3277 parm number.
31e0ab1f
AS
3278 (BFT_NO_RETURN_TYPE): Define as NULL.
3279 (demangle_encoding): Adjust call to demangle_bare_function_type.
3280 (demangle_name): Adjust substitution. Adjust call to
d1209685 3281 substitution_add.
31e0ab1f
AS
3282 (demangle_prefix): Adjust call to substitution_add.
3283 (demangle_identifier): Handle anonymous namespaces.
3284 (demangle_operator_name): Change demangling of vendor-extended
3285 operator to match ABI changes.
3286 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 3287 substitutions here.
31e0ab1f
AS
3288 (demangle_type): Adjust calls to demangle_template_param,
3289 substitution_add, and demangle_type_ptr. Fix substitution of
3290 templated types.
3291 (demangle_function_type): Change parameter to a pointer.
3292 (demangle_bare_function_type): Likewise. Adjust insertion point.
3293 (demangle_template_param): Remove last parameter.
3294 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 3295 demangle_template_param.
31e0ab1f
AS
3296 (is_mangled_char): Accept `$' and `.'.
3297 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
3298 * dyn-string.c (dyn_string_insert_char): New function.
3299
ccbc3eb7
HPN
33002000-08-31 Hans-Peter Nilsson <hp@axis.com>
3301
3302 * testsuite/demangle-expected: Add nine tests for
3303 underscore-after-number followed by five tests for name-signature
3304 delimiter.
3305
53dce582
RH
33062000-08-28 Richard Henderson <rth@cygnus.com>
3307
3308 * Makefile.in (md5.o): Depend on config.h.
3309
881c6935
JM
33102000-08-28 Jason Merrill <jason@redhat.com>
3311
3312 * Makefile.in (REQUIRED_OFILES): Add md5.o.
3313 (CFILES): Add md5.c.
3314 * md5.c: New file.
3315
a440fd19
AS
33162000-08-27 Alex Samuel <samuel@codesourcery.com>
3317
3318 * cp-demangle.c (demangle_name): Initialize template_p in local
3319 name case. Don't re-add substitutions as candidates.
3320 (demangle_nested_name): Use <unqualified-name>.
3321 (demangle_prefix): Likewise. Don't add template names as
3322 substitution candidates twice, or re-add a substitution or the
3323 last prefix component.
3324 (demangle_local_name): Adjust output format.
3325
d01ce591
AS
33262000-08-25 Alex Samuel <samuel@codesourcery.com>
3327
3328 * cp-demangle.c (result_add_separated_char): Change parameter to
3329 int.
3330 (substitution_add): Don't check for duplicates. Check if
3331 previously allocated size is zero.
3332 (demangle_name): Remove duplicate check for std substitution.
3333 Clear template flag appropriately.
3334 (demangle_prefix): Remove argument to demangle_substitution.
3335 Don't check that template flag is already set.
3336 (demangle_operator_name): Add pt operator.
3337 (demangle_type): Don't treat r as built-in type. Remove argument
3338 to demangle_substitution. Fix substitution candidate mechanics.
3339 Handle <template-template-parm>s. Improve comments.
d1209685 3340 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
3341 (demangle_substitution): Remove parameter.
3342 (print_usage): Remove extra fprintf option.
3343
2f59c8eb
GM
33442000-08-24 Greg McGary <greg@mcgary.org>
3345
3346 * libiberty/random.c (end_ptr): Revert previous change.
3347
2f26c11d
GM
33482000-08-24 Greg McGary <greg@mcgary.org>
3349
3350 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
3351 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
3352 * libiberty/random.c (end_ptr): Likewise.
3353
e282c9c9
AS
33542000-08-23 Alex Samuel <samuel@codesourcery.com>
3355
3356 * cp-demangle.c (result_close_template_list): Remove function.
3357 (result_add_separated_char): New function.
3358 (result_open_template_list): New macro.
3359 (result_close_template_list): Likewise.
3360 (demangle_prefix): Don't set template_p if the
3361 prefix ends with a ctor name.
3362 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
3363 (demangle_type): Check for template args after substitution.
3364 (demangle_template_args): Use result_open_template_list.
d1209685 3365
c9b6494a
ZW
33662000-08-02 Zack Weinberg <zack@wolery.cumb.org>
3367
3368 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
3369
d1209685 33702000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
3371
3372 * config/mh-openedition.h: Added -DLE370 definition.
3373
0aab2795
ME
33742000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
3375
3376 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
3377 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
3378 Cast program to 'char *' in errmsg_arg assignment.
3379 (PWAIT_ERROR): Define.
3380 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
3381 to DJGPP's WIF* macros.
3382
c2f275e4
RB
33832000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
3384 Jeff Law <law@cygnus.com>
3385
73aa9564
RB
3386 * getcwd.c: Include string.h, stdlib.h for prototypes
3387
c2f275e4 3388 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
3389 * rename.c: Include config.h, unistd.h
3390 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 3391
ccbc3eb7
HPN
33922000-07-24 Hans-Peter Nilsson <hp@axis.com>
3393
3394 * cplus-dem.c (work_stuff_copy_to_from): New.
3395 (delete_non_B_K_work_stuff): New.
3396 (delete_work_stuff): New.
3397 (mop_up): Break out work_stuff partly destruction to
3398 delete_non_B_K_work_stuff.
3399 (iterate_demangle_function): New.
3400 (demangle_prefix): Call iterate_demangle_function instead of
3401 demangle_function_name. Leave handling of name-signature
3402 __-delimiters to iterate_demangle_function.
3403 (demangle_integral_value): Strip an optional
3404 following underscore cautiously. Handle negative numbers.
3405
3388651c
DB
34062000-07-24 Daniel Berlin <dberlin@redhat.com>
3407
d1209685 3408 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
3409 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3410
0fac482e
AS
34112000-07-21 Alex Samuel <samuel@codesourcery.com>
3412
3413 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3414 allocating ctor mangling.
3415 (demangle_array_type): Handle empty and non-constant array length.
3416
8502a100 34172000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
3418 Jeff Law <law@cygnus.com>
3419
c6451ce1
MS
3420 * configure.in (AC_CHECK_HEADERS): Add time.h.
3421 (AC_HEADER_TIME): Add check.
3422 * configure, config.in: Regenerate.
3423 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3424
cd447360
MS
3425 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3426 * configure, config.in: Regenerate.
3427 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3428 * strtol.c, strtoul.c: #include "config.h". Portably #include
3429 <limits.h> and/or <sys/param.h>.
3430 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 3431
3b58c099
MS
3432 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3433 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3434 * configure, config.in: Regenerate.
3435 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3436
8502a100
MS
3437 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3438
da0c7743
MS
34392000-07-21 Mike Stump <mrs@wrs.com>
3440
3441 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 3442 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 3443
838f8562
KG
34442000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3445
3446 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3447
3448 * setenv.c (setenv): Initialize variable `ep'.
3449
3450 * sigsetmask.c (abort): Prototype.
3451
3452 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3453 __STDC__ for stdarg.h include.
3454 (int_vasprintf): Prototype.
3455 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3456 definition. Cast `global_total_width' in comparison.
3457 (main): Prototype. Return a value.
3458
3459 * vfork.c (fork): Prototype.
3460
3461 * xexit.c: Include config.h.
3462
e9958132
JM
34632000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3464
3465 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3466 and print it with %u.
3467
39a6492f
HPN
34682000-07-17 Hans-Peter Nilsson <hp@axis.com>
3469
3470 * testsuite/regress-demangle (failed test): Show result and
3471 expected output.
3472
6d0be369
AH
34732000-07-07 Andrew Haley <aph@cygnus.com>
3474
3475 * cplus-dem.c (main): fflush() after emitting last char before
3476 waiting for input.
3477
bece74bd
AS
34782000-06-28 Alex Samuel <samuel@codesourcery.com>
3479
3480 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3481 (demangle_name): Handle <substitution> followed by
3482 <unqualified-template-name>.
3483 (demangle_type): Follow special substitutions with
3484 <class-enum-type>
3485 (demangle_subtitution): Set template_p for special substitutions.
3486 (main): Fix typos.
d1209685 3487
229b8ec7
AS
34882000-06-27 Alex Samuel <samuel@codesourcery.com>
3489
3490 * cp-demangle.c (demangle_special_name): Swap base and derived
3491 class when demangling construction vtables.
3492
051664b0
AS
34932000-06-21 Alex Samuel <samuel@codesourcery.com>
3494
3495 * cp-demangle.c: Don't include ctype.h.
3496 (IS_DIGIT): New macro.
3497 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3498 instead of isdigit and isalpanum.
3499 (demangling_def): Make name and next const pointers.
3500 (STATUS_ALLOCATION_FAILED): New status code.
3501 (dyn_string_append_space): Handle failure in
3502 dyn_string_append_char.
3503 (int_to_dyn_string): Likewise. Change return value to status_t.
3504 (string_list_new): Handle failure of dyn_string_init.
3505 (result_close_template_list): Change return type to status_t.
3506 Handle failure in dyn_string_append.
3507 (result_push): Change return value to status_t. Handle failure in
3508 string_list_new. Handle failure of result_push throughout.
3509 (substitution_add): Change return value to status_t. Handle
3510 dyn_string failures. Handle failure of substitution_add
3511 throughout.
3512 (template_arg_list_new): Return NULL on allocation failure.
3513 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3514 Handle error result throughout.
3515 (result_append): Likewise.
3516 (result_append_char): Likewise.
3517 (result_append_space): Likewise.
3518 (demangling_new): Make argument a const pointer. Handle
3519 allocation failures.
3520 (demangle_template_args): Handle failure in template_arg_list_new
3521 and result_close_template_list.
3522 (demangle_discriminator): Return if int_to_dyn_string fails.
3523 (cp_demangle): Likewise.
3524 (cp_demangle_type): New function.
3525 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3526 memory allocation failure.
3527 (main): Likewise.
3528 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3529 IN_LIBGCC2.
3530 (dyn_string_init): Change return value to int. Handle
3531 RETURN_ON_ALLOCATION_FAILURE case.
3532 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3533 (dyn_string_release): Delete the dyn_string.
3534 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3535 (dyn_string_copy): Change return type to int.
3536 (dyn_string_copy_cstr): Likewise.
3537 (dyn_string_prepend): Likewise.
3538 (dyn_string_prepend_cstr): Likewise.
3539 (dyn_string_insert): Likewise.
3540 (dyn_string_insert_cstr): Likewise.
3541 (dyn_string_append): Likewise.
3542 (dyn_string_append_cstr): Likewise.
3543 (dyn_string_append_char): Likewise.
3544 (dyn_string_substring): Likewise.
d1209685 3545
fe06b696
ZW
35462000-06-09 Zack Weinberg <zack@wolery.cumb.org>
3547
3548 * cp-demangle.c (demangle_operator_name): Add spaces before
3549 names beginning with a letter: delete, delete[], new, new[],
3550 sizeof.
3551 (demangle_special_name): Handle TF <type> and TJ <type>.
3552
6223e158
PDM
3553Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3554
3555 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3556
48f3e29b
PDM
3557Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3558
3559 * cp-demangle.c (stdio.h): File included unconditionaly.
3560 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3561 * dyn-string.c (stdio.h): File included.
3562 * partition.c (partition_print): No `&' needed to take the address of
3563 a function.
3564
69197e7e
KG
35652000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3566
3567 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 3568
69197e7e
KG
3569 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3570
3571 * cp-demangle.c (demangle_char): Change parameter from char to int.
3572 (demangle_expression, demangle_expr_primary): Remove extra
3573 semi-colon in prototype.
3574
3575 * dyn-string.c (dyn_string_append_char): Change parameter from
3576 char to int.
3577
3578 * memcmp.c (memcmp): Constify.
3579
3580 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3581 __extension__.
3582
3583 * partition.c (elem_compare): Prototype. Don't cast away
3584 const-ness.
3585
3586 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 3587
7eb23b1f
KG
35882000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3589
3590 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3591
3592 * cp-demangle.c: Include demangle.h.
3593 (template_arg_list_new): DeANSIfy.
3594 (cp_demangle): Make static and add prototype.
3595 (operator_code, operators): Constify.
3596 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3597
3faa108c
AS
35982000-06-05 Alex Samuel <samuel@codesourcery.com>
3599
3600 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3601 unsigned char.
3602 (demangle_unqualified_name): Likewise.
3603 (demangle_number_literally): Likewise.
3604 (demangle_type): Likewise.
3605 (demangle_substitution): Likewise.
3606 (is_mangled_char): Likewise, for isalnum.
3607
69afa80d
AS
36082000-06-04 Alex Samuel <samuel@codesourcery.com>
3609
3610 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3611 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3612 (cp-demangle.o): New dependency.
3613 (dyn-string.o): Likewise.
3614
3615 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3616
3617 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3618 demangler.
3619 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3620 demangling mode.
3621 (gnu_new_abi_symbol_characters): New function.
3622 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3623 file.
3624 * cp-demangle.c: New file.
d1209685 3625
0b72c3df
AC
3626Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3627
3628 * floatformat.c: Add name to each floatformat field.
3629
270cea06
JL
3630Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3631
3632 * Makefile.in (objalloc.o): Depend on config.h
3633
d11ec6f0
ZW
36342000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3635
3636 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
3637 if HAVE_STRING_H.
3638 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3639 * objalloc.c: Include config.h. Include stdlib.h and don't
3640 declare malloc or free if HAVE_STDLIB_H.
3641 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3642 else declare malloc without prototype. Include string.h if
3643 HAVE_STRING_H, else declare memset without prototype. Don't
3644 include stddef.h.
3645
f8e2da56
MS
36462000-05-23 Mike Stump <mrs@wrs.com>
3647
3648 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 3649 -j3.
f8e2da56 3650
650f3068
DA
36512000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3652
3653 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3654
1d2da2e1
HB
36552000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3656
d1209685 3657 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
3658 probably zero, also eliminate a warning on alpha.
3659
47668d0a
DE
36602000-05-15 David Edelsohn <edelsohn@gnu.org>
3661
c7a79a32 3662 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
3663 on $(enable_shared).
3664
36348eab
JJ
36652000-05-10 Jakub Jelinek <jakub@redhat.com>
3666
3667 * config.table: Use mh-sparcpic for sparc*-*-*.
3668
209bbe34
NC
36692000-05-08 Nick Clifton <nickc@cygnus.com>
3670
3671 * Makefile.in (CFILES): Add strncmp.c.
3672 (NEEDED): Add strncmp.
3673
a85a47fb
KG
36742000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3675
3676 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3677 Cast the arguments to `islower' to `unsigned char'.
3678 (print_demangler_list): Prototype.
3679
4aef973c
PDM
3680Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3681
3682 * sort.c (UCHAR_MAX): Provide fallback definition.
3683
3b94497c
AO
36842000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3685
3686 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3687 SUBDIRS.
3688
24eaa47a
KB
36892000-04-28 Kenneth Block <block@zk3.dec.com>
3690 Jason Merrill <jason@casey.cygnus.com>
3691
d1209685
ZW
3692 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3693 (cplus_demangle_set_style): New function for setting style.
3694 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 3695
a9266bfa
KG
36962000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3697
3698 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3699
3700 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3701 (libiberty_AC_FUNC_STRNCMP): Invoke.
3702
3703 * strncmp.c: New file.
3704
8e02c4d0
JH
3705Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3706
3707 * hashtab.c (htab_expand): Add prototype.
3708 (find_empty_slot_for_expand): Likewise.
3709
4feeaae3
KG
37102000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3711
3712 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3713 match prototype.
3714 (htab_expand): Cast the return value of xcalloc.
3715
18a94a2f
MM
37162000-04-24 Mark Mitchell <mark@codesourcery.com>
3717
3718 * hashtab.c (hash_pointer): New function.
3719 (eq_pointer): Likewise.
3720 (htab_hash_pointer): New variable.
3721 (htab_eq_pointer): Likewise.
3722
eeb0656f
MM
37232000-04-23 Mark Mitchell <mark@codesourcery.com>
3724
b51024fc
MM
3725 * sort.c (sort_pointers): Fix endianness bugs.
3726
eeb0656f
MM
3727 * sort.c: New file.
3728 * Makefile.in (CFILES): Add sort.c
3729 (REQUIRED_OFILES): Add sort.o.
3730 (sort.o): New target.
3731
7277f72d
MS
37322000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3733
3734 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3735 4.3BSD systems.
3736
e38992e8
RK
3737Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3738
3739 * hashtab.c: Various minor cleanups.
3740 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3741 (htab_find_slot): Likewise.
3742
498e1ab1
DP
37432000-04-16 Dave Pitts <dpitts@cozx.com>
3744
3745 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 3746
dc17cc7b
RH
37472000-04-05 Richard Henderson <rth@cygnus.com>
3748
3749 * splay-tree.c (splay_tree_remove): New.
3750
b13eb66b
MM
37512000-03-30 Mark Mitchell <mark@codesourcery.com>
3752
3753 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3754 codes.
3755 (htab_find_with_hash): Likewise.
3756 (htab_find_slot_with_hash): Likewise.
d1209685 3757
0194e877
ZW
37582000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3759
3760 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3761 unless it will be used. Rearrange loop for better
3762 optimization.
3763 (higher_prime_number): Add static prototype.
3764
abc61fd4
JL
3765Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3766
3767 * Makefile.in (partition.o): Depend on config.h
3768
8c5d513f
BS
37692000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3770
3771 * hashtab.c (find_empty_slot_for_expand): New function.
3772 (htab_expand): Use it instead of htab_find_slot.
3773 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3774 argument HASH.
3775 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3776 (htab_find): New wrapper function.
3777 (htab_find_slot): Likewise.
3778 (htab_traverse): Pass slot, not entry, to called function.
3779
d9d4fb43
AS
37802000-03-09 Alex Samuel <samuel@codesourcery.com>
3781
3782 * Makefile.in (CFILES): Add partition.c.
3783 (REQUIRED_OFILES): Add partition.o.
3784 (partition.o): New rule.
3785 * partition.c: New file.
d1209685 3786
5dc9cffd
ZW
37872000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3788
3789 * hashtab.c (htab_create): Set del_f.
3790 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3791 Use it.
3792
5194cf08
ZW
37932000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3794
3795 * hashtab.c: Remove debugging variables (all_searches,
3796 all_collisions, all_expansions). Delete
3797 all_hash_table_collisions.
3798 (create_hash_table, delete_hash_table, empty_hash_table,
3799 find_hash_table_entry, remove_element_from_hash_table_entry,
3800 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3801 hash_table_elements_number, hash_table_collisions): Rename to:
3802 htab_create, htab_delete, htab_empty, htab_find_slot,
3803 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3804 htab_elements, htab_collisions.
3805 (htab_find): New function, handles common case where you don't
3806 plan to add or delete an entry.
3807 (htab_expand): Don't create a whole new table, just a new
3808 entry vector.
3809 (htab_find_slot): Simplify logic.
3810
5ad5a984
ILT
38111999-08-03 Ian Lance Taylor <ian@zembu.com>
3812
3813 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3814 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3815
3816 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3817 $(TARGETLIB)n so it works on MSDOS.
3818 (install_to_tooldir): Likewise.
3819
38201999-07-21 Ian Lance Taylor <ian@zembu.com>
3821
3822 From Mark Elbrecht:
3823 * makefile.dos: Remove; obsolete.
3824 * configure.bat: Remove; obsolete.
3825
38261999-07-11 Ian Lance Taylor <ian@zembu.com>
3827
3828 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3829 warning.
3830
aeecce42
MK
38312000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3832
3833 * pexecute.c: Conditionally include string.h.
5194cf08 3834 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 3835
1eaf7d9c
KG
38362000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3837
3838 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3839 we're using gcc.
3840
3841 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3842
0fadedb2
GK
38431999-12-27 Geoff Keating <geoffk@cygnus.com>
3844
3845 * vasprintf.c (int_vasprintf): Don't re-read the format character
3846 as this mishandles strings like '%%s'.
3847
08230f26
MM
38481999-12-05 Mark Mitchell <mark@codesourcery.com>
3849
3850 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3851 rather than struct splay_tree_node.
3852 (splay_tree_insert): Use struct splay_tree_s rather than struct
3853 splay_tree.
3854
6de9b8ff
PDM
3855Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3856
3857 * hashtab.c (sys/types.h): File included.
3858
f3636679
JM
38591999-11-22 Jason Merrill <jason@casey.cygnus.com>
3860
3861 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3862 BSD license, pursuant with
3863
3864 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3865
36dd3a44
JL
3866Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3867
3868 * hashtab.c: Include stdio.h.
3869
6e300472
JL
3870Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3871
3872 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3873
df548dfc
PDM
3874Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3875
3876 * xstrdup (sys/types.h): Include this file.
3877
2c375143
NS
38781999-10-28 Nathan Sidwell <nathan@acm.org>
3879
3880 * Makefile.in (SUBDIRS): New macro.
3881 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3882 avoid multiple subdirectory cleaning.
3883 (*-subdir): Use SUBDIRS.
3884
a82cecda
JK
38851999-10-25 Jim Kingdon <http://developer.redhat.com/>
3886
3887 * cplus-dem.c: Move declarations of standard_symbol_characters and
3888 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3889 warnings.
3890
ed38f5d5
ZW
38911999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3892
3893 * hashtab.c (find_hash_table_entry): When returning a
3894 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3895 (clear_hash_table_slot): New function which deletes an entry
3896 by its position in the table, not its value.
3897 (traverse_hash_table): New function which calls a hook
3898 function for every live entry in the table.
3899
b60fe4a7
MM
39001999-10-19 Mark Mitchell <mark@codesourcery.com>
3901
3902 * cplus-dem.c (INTBUF_SIZE): New macro.
3903 (string_append_template_idx): New function.
3904 (demangle_expression): Likewise.
3905 (demangle_integral_value): Use it.
3906 (demangle_real_value): New function, split out from ...
3907 (demangle_template_value_parm): ... here. Use
3908 string_append_template_idx. Use demangle_real_value.
3909 (demangle_template): Use string_append_template_idx.
3910 (demangle_qualified): Use consume_count_with_underscores.
3911 (get_count): Tweak formatting.
3912 (do_type): Use string_append_template_idx.
5194cf08 3913
3da5522a
KG
39141999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3915
3916 * calloc.c: Add a public domain notice.
3917
d7d36ea8
PDM
3918Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3919
3920 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3921
a2f945c6
VM
3922Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3923
3924 * Makefile.in (CFILES): Add hashtab.c
3925 (REQUIRED_OFILES): Add hashtab.o
3926 (hashtab.o): Add dependencies.
3927 * hashtab.c: New file
3928
7f22ec2e
MK
3929Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3930
3931 * basename.c (DIR_SEPARATOR): New macro.
3932 (DIR_SEPARATOR_2): Likewise.
3933 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3934 (IS_DIR_SEPARATOR): Likewise.
3935 (main): Handle MSDOS style pathname.
3936
7c56a6ce
MM
39371999-10-11 Mark Mitchell <mark@codesourcery.com>
3938
3939 * cplus-dem.c (do_type): Handle pointer to member types whose
3940 enclosing classes have namespace scope.
3941
cd32188b
ME
3942Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3943
3944 * config.table: Provide a backup shell for executing move-if-change.
3945
fc232f7a
MM
39461999-10-02 Mark Mitchell <mark@codesourcery.com>
3947
3948 * xmalloc.c (xmalloc): Fix spelling error.
3949 (xcalloc, xrealloc): Likewise.
3950
2a138827
KG
39511999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3952
3953 * cplus-dem.c (fancy_abort, demangle_integral_value,
3954 demangle_arm_hp_template, recursively_demangle,
3955 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3956 (program_name, program_version, fatal): Constify a char*.
3957 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3958 (main): Call return, not exit.
3959
5a657fc3
KG
39601999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3961
3962 * choose-temp.c: Remove obsolete comment about gcc.
3963 (make_temp_file): Constify a char*.
3964
33c5ddcd
KG
3965Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3966
3967 * xmemdup.c: Include sys/types.h.
3968
b10647f1
JG
39691999-09-07 Jeff Garzik <jgarzik@pobox.com>
3970
3971 * xmemdup.c: New xmemdup function.
3972 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3973
3dd6c3af
LV
3974Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3975
5194cf08 3976 * config.table: Add openedition target.
3dd6c3af
LV
3977 * config/mh-openedition: New file.
3978
19e28e2a
ME
3979Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3980
3981 * pexecute.c (pexecute): Fill in temp_base when needed.
3982
4dfeccf9
RH
39831999-08-31 Richard Henderson <rth@cygnus.com>
3984
3985 * getpwd.c: Check HAVE_GETCWD before defining it away.
3986
4ac3cb83
KG
39871999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3988
3989 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3990 (REQUIRED_OFILES): Add getpwd.o.
3991 (getpwd.o): Add target.
3992
3993 * configure.in (AC_PREREQ): Bump to 2.13.
3994 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3995
3996 * getpwd.c: New file, moved here from gcc.
3997
e797ff70
KG
39981999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3999
4000 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
4001 comparing against a signed quantity.
4002 (arm_special): Likewise.
4003 (demangle_fund_type): Likewise.
4004 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 4005 ATTRIBUTE_UNUSED.
e797ff70
KG
4006 (main): Constify variable `valid_symbols'.
4007
55247fce
PDM
4008Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
4009
4010 * strtoul.c (strtoul): Add parentheses around && within ||.
4011
76632dd0
DJ
4012Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
4013
4014 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
4015 libdir, libsubdir and tooldir.
4016
d080bbfa
MM
40171999-08-01 Mark Mitchell <mark@codesourcery.com>
4018
4019 * splay-tree.c (splay_tree_insert): Return the new node.
4020
a81c752a
RH
40211999-07-14 Richard Henderson <rth@cygnus.com>
4022
5194cf08 4023 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
4024 prototyping directly.
4025 * choose-temp.c: Conditionally include string.h.
4026
8f1824d9
JM
40271999-07-12 Jason Merrill <jason@yorick.cygnus.com>
4028
4029 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
4030
652374d3
ILT
40311999-07-11 Ian Lance Taylor <ian@zembu.com>
4032
4033 * splay-tree.c (splay_tree_insert): Add initialization to avoid
4034 warning.
4035
a4494286
JM
40361999-07-07 Jason Merrill <jason@yorick.cygnus.com>
4037
4038 * Makefile.in (needed-list): Only include stuff we actually need
4039 for libstdc++.
4040
90e72e20
AS
40411999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4042
4043 * configure.in (checkfuncs): Add gettimeofday.
4044 * config.in, configure: Regenerated.
4045
b569200e
MK
4046Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
4047
4048 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
4049 the test fails.
4050 * configure: Regenerate.
4051
73919448
MS
40521999-06-10 Mike Stump <mrs@wrs.com>
4053
4054 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
4055 parallel builds.
4056
fee9125c
KG
40571999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4058
4059 * putenv.c: Include ansidecl.h to define `const'.
4060 * setenv.c: Likewise.
4061
71cce721
MN
4062Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
4063
a7c9637f
JL
4064 * Makefile.in (CFILES): Add putenv.c and setenv.c.
4065 * configure.in (funcs): Add putenv and setenv.
4066 (AC_CHECK_FUNCS): Check for putenv and setenv.
4067 * configure: Rebuilt.
4068 * putenv.c setenv.c: New files.
4069
71cce721
MN
4070 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
4071 bytes of space using malloc.
4072
53504016
SG
4073Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
4074
4075 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
4076 the *mangled pointer beyond the end of the string. Clean up code to
4077 match prevailing coding style.
4078
34842539
MH
40791999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4080
4081 * tmpnam.c (L_tmpnam): Fix typo.
4082
3a08531d
ME
4083Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
4084
4085 * cplus-dem.c (standard_symbol_characters): Renamed from
4086 standard_symbol_alphabet. No longer modify TABLE.
4087 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
4088 modify TABLE.
4089 (main): Corresponding changes. Use strchr to determine if a
4090 character is valid.
4091
8db9d08b
JB
40921999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
4093
4094 * cplus-dem.c (main): Use table lookup to distinguish identifier
4095 characters from non-identifier characters.
4096 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
4097
6a071f4a
FF
4098Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
4099
4100 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
4101 * getruntime.c: Only attempt to include sys/resource.h and
4102 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
4103 are defined.
4104
7dd88617
DT
4105Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
4106
4107 * configure.in (alloca detection): Handle alloca directly for interix.
4108 * configure: Rebuilt.
4109
7a1528bc
MK
4110Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
4111
4112 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
4113
76409268
JB
41141999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
4115
4116 Fix from Dale Hawkins:
5194cf08 4117 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
4118 reallocated properly if we use it again.
4119
4120 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
4121 stricter about syntax. Always null-terminate string.
4122
acbbd80a
MK
4123Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
4124
4125 * configure.in (checkfuncs): Check for sbrk.
4126 * config.in: Rebuilt.
4127 * configure: Likewise.
4128 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
4129
92523551
JB
41301999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
4131
4132 Fix from Marcus Daniels:
4133 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
4134 identifier looking for another underscore.
4135
36eb4217
MK
4136Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
4137
4138 * pexecute.c: Change all references to __UWIN__ to _UWIN.
4139 * xmalloc.c: Likewise.
4140 (xcalloc): UWIN has sbrk.
4141 (xrealloc): Fix guard macro.
4142
2c45d1a0
RH
41431999-04-11 Richard Henderson <rth@cygnus.com>
4144
4145 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
4146 or <alloca.h>.
4147 * clock.c (GNU_HZ): New definition.
4148 (clock): Use it.
4149 * getruntime.c: Likewise.
4150
4151 * config.table: Use mh-beos.
4152 * config/mh-beos: New file.
4153
391cdef0
MM
41541999-04-11 Mark Mitchell <mark@codesourcery.com>
4155
4156 * cplus-dem.c (demangle_template_value_parm): Handle
4157 pointers-to-members.
4158 (do_type): Handle template parameters as qualifiers.
4159
9d229989
JB
41601999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
4161
4162 * cplus-dem.c: Attempt to handle overflows in counts with some
4163 semblance of grace.
4164 (consume_count): Detect overflows. Return -1 to indicate errors,
4165 instead of zero.
4166 (demangle_template_value_parm, demangle_template): Handle change
4167 to consume_count's return convention.
4168
7c72138a
TT
41691999-04-05 Tom Tromey <tromey@cygnus.com>
4170
4171 * testsuite/regress-demangle: New file.
4172 * testsuite/demangle-expected: New file.
4173
4174 * Makefile.in (all, check, installcheck, info, install-info,
4175 clean-info, dvi, install, etags, tags, mostlyclean, clean,
4176 distclean, maintainer-clean, realclean): Depend on corresponding
4177 `-subdir' target.
4178 (all-subdir check-subdir installcheck-subdir info-subdir
4179 install-info-subdir clean-info-subdir dvi-subdir
4180 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
4181 distclean-subdir maintainer-clean-subdir): New target.
4182 * testsuite/Makefile.in: New file.
4183 * configure: Rebuilt.
4184 * configure.in: Create testsuite/Makefile.
4185
ae7f7270
MM
41861999-04-02 Mark Mitchell <mark@codesourcery.com>
4187
4188 * splay-tree.h (splay_tree_compare_pointers): Define.
4189
30f72379
MM
41901999-03-30 Mark Mitchell <mark@codesourcery.com>
4191
4192 * splay-tree.c (splay_tree_compare_ints): Define.
4193
4cc48683
TT
41941999-03-30 Tom Tromey <tromey@cygnus.com>
4195
4196 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
4197 don't advance input pointer.
4198 (demangle_class_name): If consume_count didn't find a count, do
4199 nothing. Don't bother with `strlen' sanity check; consume_count
4200 does it for us.
4201
3510075c
JL
42021999-03-16 Stan Shebs <shebs@andros.cygnus.com>
4203
4204 From Art Haas <ahaas@neosoft.com>:
4205 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
4206 when doing arm or hp style.
4207 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 4208
89f602a7
MK
4209Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
4210
4211 * pexecute.c (__CYGWIN32__): Rename to
4212 (__CYGWIN__): this.
4213 * xmalloc.c: Likewise.
4214
4215 Changes to support i386-pc-uwin.
4216 * configure.in (*-*-uwin*): Workaround for vfork bug.
4217 * configure: Regenerate.
4218 * pexecute.c (pexecute): Be like standard Unix.
4219 (pwait): Likewise.
4220 * xmalloc.c (first_break): Define.
4221 (xmalloc_set_program_name): Use.
4222 (xmalloc): Use.
4223
9346c824
FS
4224Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4225
4226 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
4227
3510075c
JL
4228Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
4229
4230 * config.table: Check cygwin*, not cygwin32*.
4231
8ec65f13
DB
4232Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
4233
4234 * Makefile.in: Change mkstemp -> mkstemps.
4235
687361c8
ME
4236Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
4237
4238 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
4239 * configure.in (funcs): Check for and conditionally add mkstemps to
4240 the list of functions libiberty will provide.
4241 * configure: Rebuilt.
5194cf08 4242
b207e09c
MK
4243Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
4244
5194cf08 4245 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
4246 platforms that don't have HZ.
4247 * getruntime.c (HZ): Likewise.
4248
16b4c15e
RH
4249Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
4250
4251 * Makefile.in (xstrdup.o): Depend on config.h.
4252
38beb75c
UD
4253Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
4254
4255 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
4256 freeing it.
4257
7e4311a3
KG
4258Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4259
4260 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
4261
3510075c
JL
4262Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4263
4264 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
4265 splay-tree.o.
4266
42671999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4268
4269 * configure.in: Require autoconf 2.12.1 or higher.
4270
fb9939b8
MM
42711998-12-30 Michael Meissner <meissner@cygnus.com>
4272
4273 * random.c (NULL): Don't redefine NULL if it is already defined.
4274
087aa398
KG
4275Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4276
4277 * argv.c (buildargv): Cast the result of alloca in assignment.
4278
4279 * choose-temp.c: Include stdlib.h.
38beb75c 4280
087aa398 4281 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
4282 (snarf_numeric_literal): Constify first parameter.
4283 (code_for_qualifier): Avoid a gcc extension, make the parameter an
4284 int, not a char.
087aa398
KG
4285 (demangle_qualifier): Likewise.
4286 (demangle_signature): Cast the argument of a ctype function to
4287 unsigned char.
4288 (arm_pt): Add parens around assignment used as truth value.
4289 (demangle_arm_hp_template): Constify variable `args'.
4290 (do_hpacc_template_const_value): Cast the argument of a ctype
4291 function to unsigned char.
4292 (do_hpacc_template_literal): Remove unused variable `i'.
4293 (snarf_numeric_literal): Constify parameter `args'.
4294 Cast the argument of a ctype function to unsigned char.
4295
4296 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 4297 avoid ambiguous `else'.
38beb75c 4298
087aa398 4299 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
4300 `cstart' and `cend' to unsigned char. Cast the argument of macro
4301 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
4302
4303 * objalloc.c (free): Add prototype.
4304
21f2174d
HPN
4305Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
4306
4307 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
4308
3510075c
JL
4309Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
4310
4311 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 4312 doesn't exist.
3510075c 4313 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 4314
e8fc8222
AM
4315Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4316
4317 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
4318 bumping the pointer we read from. Also prepend these codes,
4319 as we do in other places.
4320
3510075c
JL
43211998-12-18 Nick Clifton <nickc@cygnus.com>
4322
4323 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
4324 'const char *' in order to match its usage when calling siblings.
4325 (snarf_numeric_literal): Make first arg 'const char **' in order
4326 to match usage.
11a0bb74 4327
f4f30aa1
JL
4328Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4329
11a0bb74
KG
4330 * choose-temp.c: Don't check IN_GCC anymore.
4331
4332 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
4333 * memchr.c (memchr): Likewise.
4334 * memcpy.c (memcpy): Likewise.
4335 * memmove.c (memmove): Likewise.
38beb75c 4336
11a0bb74
KG
4337 * mkstemp.c: Don't check IN_GCC anymore.
4338 * pexecute.c: Likewise.
4339 * splay-tree.c: Likewise.
38beb75c 4340
11a0bb74
KG
4341 * strchr.c (strchr): Use `const', not `CONST'.
4342 * strrchr.c (strrchr): Likewise.
4343 * strtol.c (strtol): Likewise.
4344 * strtoul.c (strtoul): Likewise.
4345
70d5ccef
DT
4346Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
4347 Elena Zannoni <ezannoni@cygnus.com>
4348 Stan Shebs <shebs@cygnus.com>
4349 Edith Epstein <eepstein@cygnus.com>
4350 Andres MacLeod <amacleod@cygnus.com>
4351 Satish Pai <pai@apollo.hp.com>
4352
4353 * HP aCC demangling support.
4354 * cplus-dem.c
4355 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
4356 demangling correctly when -edg specified; set the demangling style
4357 when user specifies 'edg'. Set strip_underscore to
4358 prepends_underscore, if not HPUXHPPA. Set
4359 current_demangling_style to hp_demangling if HPUXHPPA. Set
4360 current demangling style correctly if the switch is hp. Read
4361 label correctly also in the HP style case.
70d5ccef 4362 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 4363 function.
70d5ccef 4364 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 4365 style for this case is the same as ARM.
70d5ccef
DT
4366 (demangle_args): handle EDG_DEMANGLING style; support HP style.
4367 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
4368 demangle_arm_pt.); check and set value of temp_start field in
4369 multiple places. Also, when ceching for end of template args,
4370 check to see if at end of static member of template class.
70d5ccef 4371 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 4372 include template args in string defining class.
70d5ccef
DT
4373 (demangle_class_name): use demangel_arm_hp_template.
4374 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
4375 HP_DEMANGLING and currently point at an 'X' in the mangled name.
4376 Handle EDG_DEMANGLING style. Handle constructor and destructor
4377 ops for HP style.
70d5ccef 4378 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
4379 styles. global destructor and constructor for HP style are same
4380 as for ARM style. Same for local variables.
70d5ccef
DT
4381 (demangle_qualified): handle EDG_DEMANGLING style.
4382 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
4383 cases '1' - '9' : initialize the temp_start field to -1 and handle
4384 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
4385 and AUTO_DEMANGLING styles. If expecting a function and managed
4386 to demangle the funct args, then handle the LUCID_DEMANGLING,
4387 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
4388 class name after "Lnnn_ in HP style case. HP style too needs to
4389 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 4390 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 4391 value param for HP/aCC.
70d5ccef 4392 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 4393 literal parameter for HP aCC.
70d5ccef
DT
4394 (recursively_demangle): new function
4395 (snarf_numeric_literal): new function.
4396 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 4397 to message.
70d5ccef 4398
8d525fa8
CF
4399Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
4400
4401 * pexecute.c: Remove obsolete ifdefed cygwin code.
4402
9b1a92d8
KG
4403Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4404
4405 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
4406 * cplus-dem.c: Likewise. Conform to libiberty.h.
4407 * pexecute.c: Likewise.
4408 * splay-tree.c: Likewise.
4409
c85c3232
MS
44101998-11-25 Mike Stump <mrs@wrs.com>
4411
4412 * Makefile.in (splay-tree.o): Add config.h dependency.
4413
35a6cd99
KG
4414Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4415
4416 * configure.in: Use AC_PREREQ(2.12.1).
4417
6e6e34b7
BK
44181998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
4419
5194cf08 4420 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 4421
59b67c11
JL
4422Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
4423
4424 * mpw.c (mpw_access): Add missing parens.
4425
a6458d1d
KG
4426Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4427
4428 * configure.in: Call AC_HEADER_SYS_WAIT.
4429
4430 * pexecute.c: Include sys/wait.h when !IN_GCC.
4431
3510075c
JL
4432Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
4433
4434 * pexecute.c: revert back to checking old Cygwin
4435 preprocessor symbol until some time has passed.
4436
4437Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
4438
4439 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4440 since it will now support similar constructs.
4441
a9acf741
KG
4442Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4443
4444 * configure.in: Check for calloc.
4445
4446 * calloc.c: New file.
4447
4448 * xmalloc.c (xcalloc): New function.
4449
a49fb37a
AM
4450Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4451
4452 *cplus-dem.c (demangle_prefix): Use the last "__"
4453 in the mangled name when looking for the signature. This allows
4454 template names to begin with "__".
4455
0e714131
MM
44561998-11-08 Mark Mitchell <mark@markmitchell.com>
4457
ec2288ff
MM
4458 * cplus-dem.c (type_kind_t): Add tk_reference.
4459 (demangle_template_value_parm): Handle it.
4460 (do_type): Use it for references, instead of tk_pointer.
4461
0e714131
MM
4462 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4463 not internal_cplus_demangle.
4464
2931b6d4
KG
4465Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4466
4467 * choose-temp.c: Don't include gansidecl.h.
4468 * mkstemp.c: Likewise.
4469 * pexecute.c: Likewise.
4470
dd8f3ed5
GN
4471Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4472
5194cf08
ZW
4473 * configure.in: detect cygwin* instead of cygwin32*
4474 * configure: regenerate
dd8f3ed5 4475
c5f7c445
KG
4476Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4477
4478 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
4479 whether to include config.h. Possibly include unistd.h in the
4480 !IN_GCC case. Define VFORK_STRING as a printable function call
4481 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
4482 defined, include vfork.h. If VMS is defined, define vfork()
4483 appropriately. Remove vfork check on USG, we're using autoconf.
4484 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
4485 locally what string to use.
c5f7c445 4486
ad3ef78e
MM
44871998-10-26 Mark Mitchell <mark@markmitchell.com>
4488
4489 * splay-tree.c: Tweak include directives to make sure declarations of
4490 xmalloc and free are available.
4491
224301c1
MM
44921998-10-25 Mark Mitchell <mark@markmitchell.com>
4493
4494 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4495 anonymous namespaces.
38beb75c 4496
d9db46fd
MM
44971998-10-23 Mark Mitchell <mark@markmitchell.com>
4498
4499 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
4500 with type_quals.
4501 (TYPE_UNQUALIFIED): New macro.
4502 (TYPE_QUAL_CONST): Likewise.
4503 (TYPE_QUAL_VOLATILE): Likewise.
4504 (TYPE_QUAL_RESTRICT): Likewise.
4505 (code_for_qualifier): New function.
4506 (qualifier_string): Likewise.
4507 (demangle_qualifier): Likewise.
4508 (internal_cplus_demangle): Use them.
4509 (demangle_signature): Likewise.
4510 (demangle_template_value_parm): Likewise.
4511 (do_type): Likewise.
4512 (demangle_fund_type)): Likewise.
224301c1 4513
b056ad1c
KG
4514Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4515
4516 * splay-tree.c (splay_tree_foreach_helper): Make definition static
4517 to match prototype.
4518
ed87f9c8
MM
45191998-10-21 Mark Mitchell <mark@markmitchell.com>
4520
4521 * splay-tree.c: New file.
4522 * Makefile.in (CFILES): Add it.
4523 (REQUIRED_OFILES): Likewise.
4524 (splay-tree.o): Add dependencies.
4525
e0c13971
AS
4526Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4527
4528 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
4529 range of 'K' index.
4530
91e0f659
KG
4531Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4532
4533 * choose-temp.c: Prototype mkstemps() when IN_GCC.
4534
4535 * cplus-dem.c (consume_count): Cast argument of ctype macro to
4536 `unsigned char'.
4537 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
4538 comparing against one.
4539 (cplus_mangle_opname): Likewise.
4540 (demangle_integral_value): Cast argument of ctype macro to
4541 `unsigned char'.
4542 (demangle_template_value_parm): Likewise.
4543 (demangle_template): Initialize variable `bindex'. Cast the
4544 result of `strlen' to (int) when comparing against one. Remove
4545 unused variable `start_of_value_parm'.
4546 (demangle_class_name): Cast the result of `strlen' to (int) when
4547 comparing against one.
4548 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
4549 (gnu_special): Likewise. Cast the result of `strlen' to (int)
4550 when comparing against one.
4551 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
4552 (get_count): Likewise.
4553 (do_type): Likewise. Cast the result of `strlen' to (int) when
4554 comparing against one.
4555 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
4556 (demangle_function_name): Cast the result of `strlen' to (int)
4557 when comparing against one.
4558
4559 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
4560 comparing against one.
4561
73aeb2ff
JL
4562Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
4563
5194cf08
ZW
4564 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
4565 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
4566 * config.in, configure: Rebuilt.
ae76f1be 4567
73aeb2ff
JL
4568 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
4569 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
4570 * config.in, configure: Rebuilt.
4571
dd8f3ed5
GN
4572Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4573
5194cf08 4574 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 4575
f77d8413
MT
4576Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
4577
4578 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4579
ca6b370d
JL
4580Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4581
4582 * Merge egcs & devo libiberty.
4583
ab4856b1
ML
4584