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