2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * calls.c (emit_library_call_value): Don't use a fixed
+ argument after VA_CLOSE, i.e. out of scope in traditional C.
+
+ * emit-rtl.c (gen_rtvec): Likewise.
+
+2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
* Makefile.in (c-pragma.o): Depend on output.h.
(reorg.o): Depend on except.h.
enum libcall_type fn_type,
enum machine_mode outmode, int nargs, ...))
{
+ rtx result;
+
VA_OPEN (p, nargs);
VA_FIXEDARG (p, rtx, orgfun);
VA_FIXEDARG (p, rtx, value);
VA_FIXEDARG (p, enum machine_mode, outmode);
VA_FIXEDARG (p, int, nargs);
- value = emit_library_call_value_1 (1, orgfun, value, fn_type, outmode, nargs, p);
+ result = emit_library_call_value_1 (1, orgfun, value, fn_type, outmode,
+ nargs, p);
VA_CLOSE (p);
- return value;
+ return result;
}
\f
#if 0
rtvec
gen_rtvec VPARAMS ((int n, ...))
{
- int i;
+ int i, save_n;
rtx *vector;
VA_OPEN (p, n);
for (i = 0; i < n; i++)
vector[i] = va_arg (p, rtx);
+
+ /* The definition of VA_* in K&R C causes `n' to go out of scope. */
+ save_n = n;
VA_CLOSE (p);
- return gen_rtvec_v (n, vector);
+ return gen_rtvec_v (save_n, vector);
}
rtvec