mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
benchtests: Append volatile keyword to type instead of prepending
`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.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2013-12-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
|
|
||||||
* sysdeps/sh/sotruss-lib.c: New file.
|
* sysdeps/sh/sotruss-lib.c: New file.
|
||||||
|
@ -98,7 +98,7 @@ my $bench_func = "#define CALL_BENCH_FUNC(v, i) $func (";
|
|||||||
my $outvars = "";
|
my $outvars = "";
|
||||||
|
|
||||||
if ($ret ne "void") {
|
if ($ret ne "void") {
|
||||||
$outvars = "static volatile $ret ret;\n";
|
$outvars = "static $ret volatile ret;\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Print the definitions and macros.
|
# Print the definitions and macros.
|
||||||
@ -139,7 +139,7 @@ if (@args > 0) {
|
|||||||
$bench_func = "$bench_func &out$num";
|
$bench_func = "$bench_func &out$num";
|
||||||
}
|
}
|
||||||
else {
|
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";
|
$bench_func = "$bench_func variants[v].in[i].arg$num";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user