mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 12:57:49 +08:00
* gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
From-SVN: r55119
This commit is contained in:
parent
76147cce13
commit
1ef7d32b91
@ -1,3 +1,7 @@
|
||||
2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
|
||||
|
||||
2002-06-30 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* unroll.c (loop_iterations): Handle EQ loops.
|
||||
|
@ -586,7 +586,6 @@ oprintf VPARAMS ((outf_p o, const char *format, ...))
|
||||
VA_FIXEDARG (ap, outf_p, o);
|
||||
VA_FIXEDARG (ap, const char *, format);
|
||||
slength = xvasprintf (&s, format, ap);
|
||||
VA_CLOSE (ap);
|
||||
|
||||
if (o->bufused + slength > o->buflength)
|
||||
{
|
||||
@ -602,6 +601,7 @@ oprintf VPARAMS ((outf_p o, const char *format, ...))
|
||||
memcpy (o->buf + o->bufused, s, slength);
|
||||
o->bufused += slength;
|
||||
free (s);
|
||||
VA_CLOSE (ap);
|
||||
}
|
||||
|
||||
/* Open the global header file and the language-specific header files. */
|
||||
|
Loading…
Reference in New Issue
Block a user