diff options
author | Joel Sherrill <joel@rtems.org> | 2017-04-26 10:53:40 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2017-04-26 10:54:03 -0500 |
commit | 78eb6132dd042ed36e59ab57b04fa6f8a228f90a (patch) | |
tree | 7d7c8be1a8aaba6cd4f421e3a8aa89fb86ba801d /testsuites/benchmarks | |
parent | c0ea8295ed011c91155b38b38f688fcd78b10b9e (diff) |
dhrystone/dhry_1.c: Move assignment to before start of timer
Diffstat (limited to 'testsuites/benchmarks')
-rw-r--r-- | testsuites/benchmarks/dhrystone/dhry_1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/benchmarks/dhrystone/dhry_1.c b/testsuites/benchmarks/dhrystone/dhry_1.c index 9b64d3a532..3ad2e7f204 100644 --- a/testsuites/benchmarks/dhrystone/dhry_1.c +++ b/testsuites/benchmarks/dhrystone/dhry_1.c @@ -131,6 +131,11 @@ int main (int argc, char **argv) execution_start: printf ("Execution starts, %d runs through Dhrystone\n", Number_Of_Runs); +#ifdef __rtems__ + /* avoid used uninitialized warning */ + Int_2_Loc = 0; +#endif + /***************/ /* Start timer */ /***************/ @@ -143,11 +148,6 @@ execution_start: Begin_Time = time ( (long *) 0); #endif -#ifdef __rtems__ - /* avoid used uninitialized warning */ - Int_2_Loc = 0; -#endif - for (Run_Index = 1; Run_Index <= Number_Of_Runs; ++Run_Index) { |