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