mirror of git://gcc.gnu.org/git/gcc.git
cplus-dem.c (gnu_special): Don't get confused by .<digits> strings that are not actually lengths.
* cplus-dem.c (gnu_special): Don't get confused by .<digits> strings that are not actually lengths. * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES since it gets built automatically * vasprintf.c (int_vasprintf): Increase buffer size for float/double values. From-SVN: r18171
This commit is contained in:
parent
8b715b2abc
commit
5890bc92d4
|
@ -3,6 +3,16 @@ Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com>
|
||||||
* getopt.c: Update to latest FSF version.
|
* getopt.c: Update to latest FSF version.
|
||||||
* getopt1.c: Likewise.
|
* getopt1.c: Likewise.
|
||||||
|
|
||||||
|
Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
||||||
|
* cplus-dem.c (gnu_special): Don't get confused by .<digits>
|
||||||
|
strings that are not actually lengths.
|
||||||
|
|
||||||
|
Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
|
||||||
|
|
||||||
|
* config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
|
||||||
|
since it gets built automatically
|
||||||
|
|
||||||
Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
|
Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
|
||||||
|
|
||||||
* Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
|
* Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
|
||||||
|
@ -14,6 +24,11 @@ Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com>
|
||||||
* config.table (vxworks configs): Default to VxWorks 5.x, as that is
|
* config.table (vxworks configs): Default to VxWorks 5.x, as that is
|
||||||
the currently shipping OS.
|
the currently shipping OS.
|
||||||
|
|
||||||
|
Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
|
||||||
|
|
||||||
|
* vasprintf.c (int_vasprintf): Increase buffer size for float/double
|
||||||
|
values.
|
||||||
|
|
||||||
Sat Jan 17 22:32:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
|
Sat Jan 17 22:32:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
|
||||||
J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
|
J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
|
||||||
|
|
||||||
|
@ -39,7 +54,7 @@ Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
|
||||||
Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
|
Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
|
||||||
|
|
||||||
* alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
|
* alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
|
||||||
was alr eady defined previously.
|
was already defined previously.
|
||||||
|
|
||||||
Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
|
Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
|
||||||
|
|
||||||
|
@ -87,13 +102,6 @@ Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
|
||||||
(consume_count_with_underscores): New function.
|
(consume_count_with_underscores): New function.
|
||||||
(demangle_signature): Handle new name-mangling scheme.
|
(demangle_signature): Handle new name-mangling scheme.
|
||||||
|
|
||||||
Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
|
|
||||||
|
|
||||||
* cplus-dem.c (demangle_template): Add new parameter. Handle new
|
|
||||||
template-function mangling.
|
|
||||||
(consume_count_with_underscores): New function.
|
|
||||||
(demangle_signature): Handle new name-mangling scheme.
|
|
||||||
|
|
||||||
Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
|
Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
|
||||||
|
|
||||||
* asprintf.c: stdarg.h when ALMOST_STDC
|
* asprintf.c: stdarg.h when ALMOST_STDC
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# This file is only needed by AIX 3.1.
|
||||||
HDEFINES = -D__IEEE_BIG_ENDIAN
|
HDEFINES = -D__IEEE_BIG_ENDIAN
|
||||||
RANLIB=true
|
RANLIB=true
|
||||||
INSTALL=cp
|
INSTALL=cp
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
HDEFINES=-DNEED_sys_siglist -DNEED_basename -DNEED_strsignal
|
HDEFINES=-DNEED_sys_siglist -DNEED_basename -DNEED_strsignal
|
||||||
EXTRA_OFILES=vasprintf.o random.o
|
EXTRA_OFILES=random.o
|
||||||
|
|
|
@ -1692,6 +1692,15 @@ gnu_special (work, mangled, declp)
|
||||||
if (isdigit(*mangled[0]))
|
if (isdigit(*mangled[0]))
|
||||||
{
|
{
|
||||||
n = consume_count(mangled);
|
n = consume_count(mangled);
|
||||||
|
/* We may be seeing a too-large size, or else a
|
||||||
|
".<digits>" indicating a static local symbol. In
|
||||||
|
any case, declare victory and move on; *don't* try
|
||||||
|
to use n to allocate. */
|
||||||
|
if (n >= strlen (*mangled))
|
||||||
|
{
|
||||||
|
success = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -74,7 +74,7 @@ int_vasprintf (result, format, args)
|
||||||
}
|
}
|
||||||
while (strchr ("hlL", *p))
|
while (strchr ("hlL", *p))
|
||||||
++p;
|
++p;
|
||||||
/* Should be big enough for any format specifier except %s. */
|
/* Should be big enough for any format specifier except %s and floats. */
|
||||||
total_width += 30;
|
total_width += 30;
|
||||||
switch (*p)
|
switch (*p)
|
||||||
{
|
{
|
||||||
|
@ -93,6 +93,9 @@ int_vasprintf (result, format, args)
|
||||||
case 'g':
|
case 'g':
|
||||||
case 'G':
|
case 'G':
|
||||||
(void) va_arg (ap, double);
|
(void) va_arg (ap, double);
|
||||||
|
/* Since an ieee double can have an exponent of 307, we'll
|
||||||
|
make the buffer wide enough to cover the gross case. */
|
||||||
|
total_width += 307;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
total_width += strlen (va_arg (ap, char *));
|
total_width += strlen (va_arg (ap, char *));
|
||||||
|
|
Loading…
Reference in New Issue