[PATCH v2 2/4] dhrystone/dhry_1.c: Move assignment to before start of timer
Joel Sherrill
joel at rtems.org
Wed Apr 26 20:42:40 UTC 2017
---
testsuites/benchmarks/dhrystone/dhry_1.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/testsuites/benchmarks/dhrystone/dhry_1.c b/testsuites/benchmarks/dhrystone/dhry_1.c
index 9b64d3a..3ad2e7f 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)
{
--
1.8.3.1
More information about the devel
mailing list