[test-suite] r178867 - Add return statement to linpack main routine.

Ulrich Weigand ulrich.weigand at de.ibm.com
Fri Apr 5 05:46:31 PDT 2013


Author: uweigand
Date: Fri Apr  5 07:46:31 2013
New Revision: 178867

URL: http://llvm.org/viewvc/llvm-project?rev=178867&view=rev
Log:

Add return statement to linpack main routine.

The "main" routine in linpack-pc.c is missing a return statement.
This doesn't matter when it is compiled with a C99 compiler, but
when built with a C89 compiler, it may cause the benchmark to
return with a random exit code even after successful execution.

Fixed by adding a "return 0;" statment.



Modified:
    test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c

Modified: test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c?rev=178867&r1=178866&r2=178867&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c Fri Apr  5 07:46:31 2013
@@ -550,7 +550,7 @@ int main ()
  ************************************************************************/
                       
      
-    
+        return 0;
 }
      
 /*----------------------*/ 





More information about the llvm-commits mailing list