diff options
Diffstat (limited to 'gcc/rtl-error.c')
-rw-r--r-- | gcc/rtl-error.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/gcc/rtl-error.c b/gcc/rtl-error.c index 7526125f9a5..d5efc762d87 100644 --- a/gcc/rtl-error.c +++ b/gcc/rtl-error.c @@ -92,25 +92,23 @@ diagnostic_for_asm (insn, msg, args_ptr, kind) } void -error_for_asm VPARAMS ((rtx insn, const char *msgid, ...)) +error_for_asm (rtx insn, const char *msgid, ...) { - VA_OPEN (ap, msgid); - VA_FIXEDARG (ap, rtx, insn); - VA_FIXEDARG (ap, const char *, msgid); - + va_list ap; + + va_start (ap, msgid); diagnostic_for_asm (insn, msgid, &ap, DK_ERROR); - VA_CLOSE (ap); + va_end (ap); } void -warning_for_asm VPARAMS ((rtx insn, const char *msgid, ...)) +warning_for_asm (rtx insn, const char *msgid, ...) { - VA_OPEN (ap, msgid); - VA_FIXEDARG (ap, rtx, insn); - VA_FIXEDARG (ap, const char *, msgid); - + va_list ap; + + va_start (ap, msgid); diagnostic_for_asm (insn, msgid, &ap, DK_WARNING); - VA_CLOSE (ap); + va_end (ap); } void |