This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gomp4, committed] Remove superfluous main in kernels-loop-n.c


Hi,

this patch removes a superfluous main function from a test-case.

Committed.

Thanks,
- Tom
Remove superfluous main in kernels-loop-n.c

2015-05-27  Tom de Vries  <tom@codesourcery.com>

	* c-c++-common/goacc/kernels-loop-n.c (main): Remove.

diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-n.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-n.c
index 7bf744e..5f7c1df6 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-n.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-n.c
@@ -7,7 +7,7 @@
 #define N ((1024 * 512) + 1)
 #define COUNTERTYPE unsigned int
 
-static int __attribute__((noinline,noclone))
+int
 foo (COUNTERTYPE n)
 {
   unsigned int *__restrict a;
@@ -41,8 +41,3 @@ foo (COUNTERTYPE n)
   return 0;
 }
 
-int
-main (void)
-{
-  return foo (N);
-}
-- 
1.9.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]