diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-06-23 23:39:52 +0545 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-06-23 14:04:49 -0400 |
commit | b50a153264dae2267e3846772819515c648e3c97 (patch) | |
tree | 89bcdb65b58d51ce51cc1e8f1e1219265d091448 /sim/common/sim-trace.c | |
parent | 7564fe458c2fe1a77eecfaf5e2f99bec8961d457 (diff) | |
download | gdb-b50a153264dae2267e3846772819515c648e3c97.zip gdb-b50a153264dae2267e3846772819515c648e3c97.tar.gz gdb-b50a153264dae2267e3846772819515c648e3c97.tar.bz2 |
sim: assume recentish compiler/systems
Assume the build system supports stdint.h/stdarg.h as those have been
around long enough and we don't care about pre-stdc compilers anymore.
Diffstat (limited to 'sim/common/sim-trace.c')
-rw-r--r-- | sim/common/sim-trace.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sim/common/sim-trace.c b/sim/common/sim-trace.c index f00fe9b..f5ee678 100644 --- a/sim/common/sim-trace.c +++ b/sim/common/sim-trace.c @@ -1294,19 +1294,9 @@ trace_one_insn (SIM_DESC sd, sim_cpu *cpu, address_word pc, void trace_printf (SIM_DESC sd, sim_cpu *cpu, const char *fmt, ...) { -#if !defined __STDC__ && !defined ALMOST_STDC - SIM_DESC sd; - sim_cpu *cpu; - const char *fmt; -#endif va_list ap; va_start (ap, fmt); -#if !defined __STDC__ && !defined ALMOST_STDC - sd = va_arg (ap, SIM_DESC); - cpu = va_arg (ap, sim_cpu *); - fmt = va_arg (ap, const char *); -#endif trace_vprintf (sd, cpu, fmt, ap); @@ -1316,17 +1306,9 @@ trace_printf (SIM_DESC sd, sim_cpu *cpu, const char *fmt, ...) void debug_printf (sim_cpu *cpu, const char *fmt, ...) { -#if !defined __STDC__ && !defined ALMOST_STDC - sim_cpu *cpu; - const char *fmt; -#endif va_list ap; va_start (ap, fmt); -#if !defined __STDC__ && !defined ALMOST_STDC - cpu = va_arg (ap, sim_cpu *); - fmt = va_arg (ap, const char *); -#endif if (CPU_DEBUG_FILE (cpu) == NULL) (* STATE_CALLBACK (CPU_STATE (cpu))->evprintf_filtered) |