This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] Replaced abort and exit in 1 Cilk Plus Array Notation test
- From: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: "Aldy Hernandez (aldyh at redhat dot com)" <aldyh at redhat dot com>
- Date: Wed, 12 Jun 2013 20:01:42 +0000
- Subject: [PATCH, committed] Replaced abort and exit in 1 Cilk Plus Array Notation test
Hello Everyone,
I replaced abort and exit in one of the Cilk Plus Array Notation test with return 1 and return 0, respectively. This patch (cut and pasted below) is committed as obvious.
Thanks,
Balaji V. Iyer.
Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog (revision 200037)
+++ gcc/testsuite/ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-c++-common/cilk-plus/AN/sec_implicit_ex.c (main): Replaced abort
+ and exit function calls with return 1 and return 0, respectively.
+
2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
* gcc.target/mips/umips-branch-1.c, gcc.target/mips/umips-branch-2.c:
Index: gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c
===================================================================
--- gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c (revision 200037)
+++ gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c (working copy)
@@ -1,10 +1,6 @@
/* { dg-do run } */
/* { dg-options "-fcilkplus" } */
-void abort (void);
-void exit (int);
-
-
int main(void)
{
int jj, kk, array_3C[10][10][10];
@@ -24,10 +20,7 @@
for (jj = 0; jj < 10; jj++)
for (kk = 0; kk < 10; kk++)
if (array_3[ii][jj][kk] != array_3C[ii][jj][kk])
- abort ();
+ return 1;
-
- exit (0);
-
return 0;
}
Thanks,
Balaji V. Iyer.