diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-12-06 09:02:19 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-12-06 09:02:19 +0530 |
commit | f4479220946ab71e6d73e8a7bd7e96b148e848f7 (patch) | |
tree | 5732999eb01ad0e0ceba129ed14781c0f8bc6791 /scripts/bench.pl | |
parent | 8517800fabfba81e4b1c0e1c11521ee05b3cafaf (diff) | |
download | glibc-f4479220946ab71e6d73e8a7bd7e96b148e848f7.zip glibc-f4479220946ab71e6d73e8a7bd7e96b148e848f7.tar.gz glibc-f4479220946ab71e6d73e8a7bd7e96b148e848f7.tar.bz2 |
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.
Diffstat (limited to 'scripts/bench.pl')
-rwxr-xr-x | scripts/bench.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bench.pl b/scripts/bench.pl index 90441e1..10f0ba4 100755 --- a/scripts/bench.pl +++ b/scripts/bench.pl @@ -98,7 +98,7 @@ my $bench_func = "#define CALL_BENCH_FUNC(v, i) $func ("; my $outvars = ""; if ($ret ne "void") { - $outvars = "static volatile $ret ret;\n"; + $outvars = "static $ret volatile ret;\n"; } # Print the definitions and macros. @@ -139,7 +139,7 @@ if (@args > 0) { $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"; } |