aboutsummaryrefslogtreecommitdiff
path: root/sim/common/cgen-trace.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-06-23 23:39:52 +0545
committerMike Frysinger <vapier@gentoo.org>2015-06-23 14:04:49 -0400
commitb50a153264dae2267e3846772819515c648e3c97 (patch)
tree89bcdb65b58d51ce51cc1e8f1e1219265d091448 /sim/common/cgen-trace.c
parent7564fe458c2fe1a77eecfaf5e2f99bec8961d457 (diff)
downloadgdb-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/cgen-trace.c')
-rw-r--r--sim/common/cgen-trace.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 566f2e6..f163a6e 100644
--- a/sim/common/cgen-trace.c
+++ b/sim/common/cgen-trace.c
@@ -302,18 +302,10 @@ cgen_trace_printf (SIM_CPU *cpu, char *fmt, ...)
int
sim_disasm_sprintf (SFILE *f, const char *format, ...)
{
-#ifndef __STDC__
- SFILE *f;
- const char *format;
-#endif
int n;
va_list args;
va_start (args, format);
-#ifndef __STDC__
- f = va_arg (args, SFILE *);
- format = va_arg (args, char *);
-#endif
vsprintf (f->current, format, args);
f->current += n = strlen (f->current);
va_end (args);