From: Kaveh R. Ghazi Date: Sun, 30 Jun 2002 12:14:15 +0000 (+0000) Subject: * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses. X-Git-Tag: releases/gcc-3.3.0~4038 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ef7d32b911e02cdce7d600b609596978b7b2da3;p=thirdparty%2Fgcc.git * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses. From-SVN: r55119 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ec03d0327be..add9b416b6ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-06-30 Kaveh R. Ghazi + + * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses. + 2002-06-30 Alan Modra * unroll.c (loop_iterations): Handle EQ loops. diff --git a/gcc/gengtype.c b/gcc/gengtype.c index e58fc35dd860..f96fc53c4636 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -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. */