aboutsummaryrefslogtreecommitdiff
path: root/benchtests/scripts/bench.py
diff options
context:
space:
mode:
Diffstat (limited to 'benchtests/scripts/bench.py')
-rwxr-xr-xbenchtests/scripts/bench.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchtests/scripts/bench.py b/benchtests/scripts/bench.py
index ee856db..7752c8a 100755
--- a/benchtests/scripts/bench.py
+++ b/benchtests/scripts/bench.py
@@ -164,7 +164,7 @@ def _print_arg_data(func, directives, all_vals):
if pos == -1:
die('Output argument must be a pointer type')
- outargs.append('static %s out%d;' % (arg[1:pos], i))
+ outargs.append('static %s out%d __attribute__((used));' % (arg[1:pos], i))
func_args.append(' &out%d' % i)
else:
arg_struct.append(' %s volatile arg%d;' % (arg, i))