* configure: Add -W -Wall to the default CFLAGS when compiling with
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
e9868447
JB
11999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2
3 * cplus-dem.c (main): Use table lookup to distinguish identifier
4 characters from non-identifier characters.
5 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
6
33fbbfbc
RH
7Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
8
9 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
10 * getruntime.c: Only attempt to include sys/resource.h and
11 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
12 are defined.
13
252b5132
RH
141999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
15
16 Fix from Dale Hawkins:
17 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
18 reallocated properly if we use it again.
19
20 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
21 stricter about syntax. Always null-terminate string.
22
23 Fix from Marcus Daniels:
24 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
25 identifier looking for another underscore.
26
271999-04-11 Richard Henderson <rth@cygnus.com>
28
29 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
30 or <alloca.h>.
31 * clock.c (GNU_HZ): New definition.
32 (clock): Use it.
33 * getruntime.c: Likewise.
34
35 * config.table: Use mh-beos.
36 * config/mh-beos: New file.
37
381999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
39
40 * cplus-dem.c: Attempt to handle overflows in counts with some
41 semblance of grace.
42 (consume_count): Detect overflows. Return -1 to indicate errors,
43 instead of zero.
44 (demangle_template_value_parm, demangle_template): Handle change
45 to consume_count's return convention.
46
47Thu Apr 8 14:43:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
48
49 * xmalloc.c, pexecute.c: Define __CYGWIN__ when being compiled
50 with old __CYGWIN32__ compiler.
51
521999-04-02 Mark Mitchell <mark@codesourcery.com>
53
54 * splay-tree.h (splay_tree_compare_pointers): Define.
55
561999-03-30 Mark Mitchell <mark@codesourcery.com>
57
58 * splay-tree.c (splay_tree_compare_ints): Define.
59
601999-03-30 Tom Tromey <tromey@cygnus.com>
61
62 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
63 don't advance input pointer.
64 (demangle_class_name): If consume_count didn't find a count, do
65 nothing. Don't bother with `strlen' sanity check; consume_count
66 does it for us.
67
681999-03-16 Stan Shebs <shebs@andros.cygnus.com>
69
70 From Art Haas <ahaas@neosoft.com>:
71 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
72 when doing arm or hp style.
73 (demangle_nested_args): Decr forgetting_types field when done.
74
75Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
76
77 * pexecute.c (__CYGWIN32__): Rename to
78 (__CYGWIN__): this.
79 * xmalloc.c: Likewise.
80
81 Changes to support i386-pc-uwin.
82 * configure.in (*-*-uwin*): Workaround for vfork bug.
83 * configure: Regenerate.
84 * pexecute.c (pexecute): Be like standard Unix.
85 (pwait): Likewise.
86 * xmalloc.c (first_break): Define.
87 (xmalloc_set_program_name): Use.
88 (xmalloc): Use.
89
90Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
91
92 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
93
94Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
95
96 * config.table: Check cygwin*, not cygwin32*.
97
98Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
99
100 * Makefile.in: Change mkstemp -> mkstemps.
101
102Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
103
104 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
105 * configure.in (funcs): Check for and conditionally add mkstemps to
106 the list of functions libiberty will provide.
107 * configure: Rebuilt.
108
109Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
110
111 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
112 platforms that don't have HZ.
113 * getruntime.c (HZ): Likewise.
114
115Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
116
117 * Makefile.in (xstrdup.o): Depend on config.h.
118
119Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
120
121 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
122 freeing it.
123
124Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
125
126 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
127
128Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
129
130 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
131 splay-tree.o.
132
1331999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
134
135 * configure.in: Require autoconf 2.12.1 or higher.
136
1371998-12-30 Michael Meissner <meissner@cygnus.com>
138
139 * random.c (NULL): Don't redefine NULL if it is already defined.
140
141Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
142
143 * argv.c (buildargv): Cast the result of alloca in assignment.
144
145 * choose-temp.c: Include stdlib.h.
146
147 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
148 (snarf_numeric_literal): Constify first parameter.
149 (code_for_qualifier): Avoid a gcc extension, make the parameter an
150 int, not a char.
151 (demangle_qualifier): Likewise.
152 (demangle_signature): Cast the argument of a ctype function to
153 unsigned char.
154 (arm_pt): Add parens around assignment used as truth value.
155 (demangle_arm_hp_template): Constify variable `args'.
156 (do_hpacc_template_const_value): Cast the argument of a ctype
157 function to unsigned char.
158 (do_hpacc_template_literal): Remove unused variable `i'.
159 (snarf_numeric_literal): Constify parameter `args'.
160 Cast the argument of a ctype function to unsigned char.
161
162 * floatformat.c (floatformat_to_double): Add explicit braces to
163 avoid ambiguous `else'.
164
165 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
166 `cstart' and `cend' to unsigned char. Cast the argument of macro
167 `FOLD', which uses ctype functions, to unsigned char.
168
169 * objalloc.c (free): Add prototype.
170
171Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
172
173 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
174
175Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
176
177 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
178 doesn't exist.
179 (do_hpacc_template_literal): remove unused variable `i'.
180
181Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
182
183 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
184 bumping the pointer we read from. Also prepend these codes,
185 as we do in other places.
186
1871998-12-18 Nick Clifton <nickc@cygnus.com>
188
189 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
190 'const char *' in order to match its usage when calling siblings.
191 (snarf_numeric_literal): Make first arg 'const char **' in order
192 to match usage.
193
194Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
195
196 * choose-temp.c: Don't check IN_GCC anymore.
197
198 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
199 * memchr.c (memchr): Likewise.
200 * memcpy.c (memcpy): Likewise.
201 * memmove.c (memmove): Likewise.
202
203 * mkstemp.c: Don't check IN_GCC anymore.
204 * pexecute.c: Likewise.
205 * splay-tree.c: Likewise.
206
207 * strchr.c (strchr): Use `const', not `CONST'.
208 * strrchr.c (strrchr): Likewise.
209 * strtol.c (strtol): Likewise.
210 * strtoul.c (strtoul): Likewise.
211
212Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
213 Elena Zannoni <ezannoni@cygnus.com>
214 Stan Shebs <shebs@cygnus.com>
215 Edith Epstein <eepstein@cygnus.com>
216 Andres MacLeod <amacleod@cygnus.com>
217 Satish Pai <pai@apollo.hp.com>
218
219 * HP aCC demangling support.
220 * cplus-dem.c
221 (main): Remove default to HP style demangling, set to EDG
222 demangling correctly when -edg specified; set the demangling style
223 when user specifies 'edg'. Set strip_underscore to
224 prepends_underscore, if not HPUXHPPA. Set
225 current_demangling_style to hp_demangling if HPUXHPPA. Set
226 current demangling style correctly if the switch is hp. Read
227 label correctly also in the HP style case.
228 (work_stuff): add temp_start field; add field for volatile member
229 function.
230 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
231 style for this case is the same as ARM.
232 (demangle_args): handle EDG_DEMANGLING style; support HP style.
233 (demangle_arm_hp_template): new function. (It was
234 demangle_arm_pt.); check and set value of temp_start field in
235 multiple places. Also, when ceching for end of template args,
236 check to see if at end of static member of template class.
237 (demangle_class): new local variable : save_class_name_end Don't
238 include template args in string defining class.
239 (demangle_class_name): use demangel_arm_hp_template.
240 (demangle_function_name): handle case where demangling style is
241 HP_DEMANGLING and currently point at an 'X' in the mangled name.
242 Handle EDG_DEMANGLING style. Handle constructor and destructor
243 ops for HP style.
244 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
245 styles. global destructor and constructor for HP style are same
246 as for ARM style. Same for local variables.
247 (demangle_qualified): handle EDG_DEMANGLING style.
248 (demangle_signature): add case for volatile member function. For
249 cases '1' - '9' : initialize the temp_start field to -1 and handle
250 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
251 and AUTO_DEMANGLING styles. If expecting a function and managed
252 to demangle the funct args, then handle the LUCID_DEMANGLING,
253 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
254 class name after "Lnnn_ in HP style case. HP style too needs to
255 forget types. _nnn is OK for HP style, so don't report failure.
256 (do_hpacc_template_const_value): new function. Handle template's
257 value param for HP/aCC.
258 (do_hpacc_template_literal): new function. Handle a template's
259 literal parameter for HP aCC.
260 (recursively_demangle): new function
261 (snarf_numeric_literal): new function.
262 (usage): add 'edg' to the list of demangling styles; add hp switch
263 to message.
264
265Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
266
267 * pexecute.c: Remove obsolete ifdefed cygwin code.
268
269Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
270
271 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
272 * cplus-dem.c: Likewise. Conform to libiberty.h.
273 * pexecute.c: Likewise.
274 * splay-tree.c: Likewise.
275
2761998-11-25 Mike Stump <mrs@wrs.com>
277
278 * Makefile.in (splay-tree.o): Add config.h dependency.
279
280Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
281
282 * configure.in: Use AC_PREREQ(2.12.1).
283
2841998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
285
286 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
287
288Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
289
290 * mpw.c (mpw_access): Add missing parens.
291
292Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
293
294 * configure.in: Call AC_HEADER_SYS_WAIT.
295
296 * pexecute.c: Include sys/wait.h when !IN_GCC.
297
298Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
299
300 * pexecute.c: revert back to checking old Cygwin
301 preprocessor symbol until some time has passed.
302
303Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
304
305 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
306 since it will now support similar constructs.
307
308Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
309
310 * configure.in: Check for calloc.
311
312 * calloc.c: New file.
313
314 * xmalloc.c (xcalloc): New function.
315
316Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
317
318 *cplus-dem.c (demangle_prefix): Use the last "__"
319 in the mangled name when looking for the signature. This allows
320 template names to begin with "__".
321
3221998-11-08 Mark Mitchell <mark@markmitchell.com>
323
324 * cplus-dem.c (type_kind_t): Add tk_reference.
325 (demangle_template_value_parm): Handle it.
326 (do_type): Use it for references, instead of tk_pointer.
327
328 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
329 not internal_cplus_demangle.
330
331Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
332
333 * choose-temp.c: Don't include gansidecl.h.
334 * mkstemp.c: Likewise.
335 * pexecute.c: Likewise.
336
337Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
338
339 * configure.in: detect cygwin* instead of cygwin32*
340 * configure: regenerate
341
342Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
343
344 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
345 whether to include config.h. Possibly include unistd.h in the
346 !IN_GCC case. Define VFORK_STRING as a printable function call
347 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
348 defined, include vfork.h. If VMS is defined, define vfork()
349 appropriately. Remove vfork check on USG, we're using autoconf.
350 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
351 locally what string to use.
352
3531998-10-26 Mark Mitchell <mark@markmitchell.com>
354
355 * splay-tree.c: Tweak include directives to make sure declarations of
356 xmalloc and free are available.
357
3581998-10-25 Mark Mitchell <mark@markmitchell.com>
359
360 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
361 anonymous namespaces.
362
3631998-10-23 Mark Mitchell <mark@markmitchell.com>
364
365 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
366 with type_quals.
367 (TYPE_UNQUALIFIED): New macro.
368 (TYPE_QUAL_CONST): Likewise.
369 (TYPE_QUAL_VOLATILE): Likewise.
370 (TYPE_QUAL_RESTRICT): Likewise.
371 (code_for_qualifier): New function.
372 (qualifier_string): Likewise.
373 (demangle_qualifier): Likewise.
374 (internal_cplus_demangle): Use them.
375 (demangle_signature): Likewise.
376 (demangle_template_value_parm): Likewise.
377 (do_type): Likewise.
378 (demangle_fund_type)): Likewise.
379
380Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
381
382 * splay-tree.c (splay_tree_foreach_helper): Make definition static
383 to match prototype.
384
3851998-10-21 Mark Mitchell <mark@markmitchell.com>
386
387 * splay-tree.c: New file.
388 * Makefile.in (CFILES): Add it.
389 (REQUIRED_OFILES): Likewise.
390 (splay-tree.o): Add dependencies.
391
392Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
393
394 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
395 range of 'K' index.
396
397Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
398
399 * choose-temp.c: Prototype mkstemps() when IN_GCC.
400
401 * cplus-dem.c (consume_count): Cast argument of ctype macro to
402 `unsigned char'.
403 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
404 comparing against one.
405 (cplus_mangle_opname): Likewise.
406 (demangle_integral_value): Cast argument of ctype macro to
407 `unsigned char'.
408 (demangle_template_value_parm): Likewise.
409 (demangle_template): Initialize variable `bindex'. Cast the
410 result of `strlen' to (int) when comparing against one. Remove
411 unused variable `start_of_value_parm'.
412 (demangle_class_name): Cast the result of `strlen' to (int) when
413 comparing against one.
414 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
415 (gnu_special): Likewise. Cast the result of `strlen' to (int)
416 when comparing against one.
417 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
418 (get_count): Likewise.
419 (do_type): Likewise. Cast the result of `strlen' to (int) when
420 comparing against one.
421 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
422 (demangle_function_name): Cast the result of `strlen' to (int)
423 when comparing against one.
424
425 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
426 comparing against one.
427
428Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
429
430 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
431 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
432 * config.in, configure: Rebuilt.
433
434 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
435 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
436 * config.in, configure: Rebuilt.
437
438Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
439
440 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
441
442Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
443
444 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
445
446Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
447
448 * Merge egcs & devo libiberty.
449