`volatile int` means the same as 'int volatile', but that's not the
case for 'volatile char *' and 'char * volatile'. We won't need a
'char volatile *' or other complicated semantics for now.
+2013-12-06 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * scripts/bench.pl: Append volatile keyword to type.
+
2013-12-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/sh/sotruss-lib.c: New file.
my $outvars = "";
if ($ret ne "void") {
- $outvars = "static volatile $ret ret;\n";
+ $outvars = "static $ret volatile ret;\n";
}
# Print the definitions and macros.
$bench_func = "$bench_func &out$num";
}
else {
- $arg_struct = "$arg_struct volatile $arg arg$num;";
+ $arg_struct = "$arg_struct $arg volatile arg$num;";
$bench_func = "$bench_func variants[v].in[i].arg$num";
}