From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23216 invoked by alias); 7 Jan 2014 18:26:58 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 23096 invoked by uid 89); 7 Jan 2014 18:26:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 07 Jan 2014 18:26:56 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s07IQtM6027915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 7 Jan 2014 13:26:55 -0500 Received: from barimba.redhat.com (ovpn-113-85.phx2.redhat.com [10.3.113.85]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s07IQqLv023534; Tue, 7 Jan 2014 13:26:54 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 3/3] remove VA_* macros from sim Date: Tue, 07 Jan 2014 18:26:00 -0000 Message-Id: <1389119202-13386-4-git-send-email-tromey@redhat.com> In-Reply-To: <1389119202-13386-1-git-send-email-tromey@redhat.com> References: <1389119202-13386-1-git-send-email-tromey@redhat.com> X-SW-Source: 2014-01/txt/msg00151.txt.bz2 Remove the obsolete VA_* macros from sim. 2014-01-06 Tom Tromey * common/cgen-trace.c: Don't use old VA_* macros. * common/sim-load.c (xprintf): Likewise. * common/sim-trace.c (trace_printf, debug_printf): Likewise. --- sim/ChangeLog | 6 ++++++ sim/common/cgen-trace.c | 2 +- sim/common/sim-load.c | 4 ++-- sim/common/sim-trace.c | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c index 6e2f856..ed9aee1 100644 --- a/sim/common/cgen-trace.c +++ b/sim/common/cgen-trace.c @@ -308,7 +308,7 @@ sim_disasm_sprintf (SFILE *f, const char *format, ...) int n; va_list args; - VA_START (args, format); + va_start (args, format); #ifndef __STDC__ f = va_arg (args, SFILE *); format = va_arg (args, char *); diff --git a/sim/common/sim-load.c b/sim/common/sim-load.c index 2e2b804..48c0a93 100644 --- a/sim/common/sim-load.c +++ b/sim/common/sim-load.c @@ -173,7 +173,7 @@ xprintf (host_callback *callback, const char *fmt, ...) { va_list ap; - VA_START (ap, fmt); + va_start (ap, fmt); (*callback->vprintf_filtered) (callback, fmt, ap); @@ -185,7 +185,7 @@ eprintf (host_callback *callback, const char *fmt, ...) { va_list ap; - VA_START (ap, fmt); + va_start (ap, fmt); (*callback->evprintf_filtered) (callback, fmt, ap); diff --git a/sim/common/sim-trace.c b/sim/common/sim-trace.c index bb56db7..b8cfff3 100644 --- a/sim/common/sim-trace.c +++ b/sim/common/sim-trace.c @@ -1309,7 +1309,7 @@ trace_printf (SIM_DESC sd, sim_cpu *cpu, const char *fmt, ...) #endif va_list ap; - VA_START (ap, fmt); + va_start (ap, fmt); #if !defined __STDC__ && !defined ALMOST_STDC sd = va_arg (ap, SIM_DESC); cpu = va_arg (ap, sim_cpu *); @@ -1330,7 +1330,7 @@ debug_printf (sim_cpu *cpu, const char *fmt, ...) #endif va_list ap; - VA_START (ap, fmt); + va_start (ap, fmt); #if !defined __STDC__ && !defined ALMOST_STDC cpu = va_arg (ap, sim_cpu *); fmt = va_arg (ap, const char *); -- 1.8.1.4