This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Missing va_end in gcc.c-torture/execute/20000519-1.c
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Jun 2002 10:44:53 +0200
- Subject: Missing va_end in gcc.c-torture/execute/20000519-1.c
A call to va_start must always be followed by va_end in the same
function. There is currently no target that defines
EXPAND_BUILTIN_VA_END, but it's still undefined.
2002-06-14 Andreas Schwab <schwab@suse.de>
* gcc.c-torture/execute/20000519-1.c: Add missing va_end.
--- gcc/testsuite/gcc.c-torture/execute/20000519-1.c.~1.2.~ 2000-05-20 19:04:40.000000000 +0200
+++ gcc/testsuite/gcc.c-torture/execute/20000519-1.c 2002-06-14 10:33:54.000000000 +0200
@@ -16,9 +16,12 @@ int
foo (int a, ...)
{
va_list ap;
+ int i;
va_start (ap, a);
- return bar (a, ap);
+ i = bar (a, ap);
+ va_end (ap);
+ return i;
}
int
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."