diff mbox

[testsuite] Applying non_bionic effective target to particular tests

Message ID CACysShjX480ABEnsd46bXVeo0zsrXoFLT_fFhpOebzRpF0g=Lw@mail.gmail.com
State New
Headers show

Commit Message

Alexander Ivchenko Aug. 13, 2014, 8:14 p.m. UTC
Hi,

This patch disables a bunch of tests that fail when using Bionic libc.
But this is expected; three reasons:
- Bionic does not support complex functions.
- Bionic does not have tgmath.h and error.h headers.
- Bionic does not have mempcpy and stpcpy.







Is it OK?


thank you,
Alexander

Comments

Joseph Myers Aug. 13, 2014, 8:46 p.m. UTC | #1
On Thu, 14 Aug 2014, Alexander Ivchenko wrote:

> Hi,
> 
> This patch disables a bunch of tests that fail when using Bionic libc.
> But this is expected; three reasons:
> - Bionic does not support complex functions.
> - Bionic does not have tgmath.h and error.h headers.
> - Bionic does not have mempcpy and stpcpy.

Testing logical features for each of these would seem better than testing 
for Bionic.
diff mbox

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 536485a..893f2b3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,16 @@ 
+2014-08-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
+
+ * gcc.dg/builtins-59.c: Disable test for Bionic.
+ * gcc.dg/builtins-61.c: Likewise.
+ * gcc.dg/builtins-67.c: Likewise.
+ * gcc.dg/c99-tgmath-1.c: Likewise.
+ * gcc.dg/c99-tgmath-2.c: Likewise.
+ * gcc.dg/c99-tgmath-3.c: Likewise.
+ * gcc.dg/c99-tgmath-4.c: Likewise.
+ * gcc.dg/dfp/convert-dfp-round-thread.c: Likewise.
+ * gcc.dg/strlenopt-14g.c: Likewise.
+ * gcc.dg/strlenopt-14gf.c: Likewise.
+
 2014-08-12  Marek Polacek  <polacek@redhat.com>

  * gcc.dg/concat.c: Add dg-options.
diff --git a/gcc/testsuite/gcc.dg/builtins-59.c
b/gcc/testsuite/gcc.dg/builtins-59.c
index b940d39..23feb78 100644
--- a/gcc/testsuite/gcc.dg/builtins-59.c
+++ b/gcc/testsuite/gcc.dg/builtins-59.c
@@ -1,6 +1,8 @@ 
 /* { dg-do compile } */
 /* { dg-options "-fdump-tree-gimple" } */
 /* { dg-require-effective-target c99_runtime } */
+/* Complex builtins are not supported in Bionic. */
+/* { dg-require-effective-target non_bionic } */

 double test (double x)
 {
diff --git a/gcc/testsuite/gcc.dg/builtins-61.c
b/gcc/testsuite/gcc.dg/builtins-61.c
index dff163f..bd0b4ce 100644
--- a/gcc/testsuite/gcc.dg/builtins-61.c
+++ b/gcc/testsuite/gcc.dg/builtins-61.c
@@ -1,6 +1,8 @@ 
 /* { dg-do compile } */
 /* { dg-options "-O -ffast-math -fdump-tree-optimized" } */
 /* { dg-require-effective-target c99_runtime } */
+/* Complex builtins are not supported in Bionic. */
+/* { dg-require-effective-target non_bionic } */

 double test1 (double x)
 {
diff --git a/gcc/testsuite/gcc.dg/builtins-67.c
b/gcc/testsuite/gcc.dg/builtins-67.c
index 22267bd..0f02cbb 100644
--- a/gcc/testsuite/gcc.dg/builtins-67.c
+++ b/gcc/testsuite/gcc.dg/builtins-67.c
@@ -3,6 +3,8 @@ 
 /* { dg-do link } */
 /* { dg-options "-ffast-math -lm" }  */
 /* { dg-add-options c99_runtime } */
+/* Complex builtins are not supported in Bionic. */
+/* { dg-require-effective-target non_bionic } */

 #include "builtins-config.h"

diff --git a/gcc/testsuite/gcc.dg/c99-tgmath-1.c
b/gcc/testsuite/gcc.dg/c99-tgmath-1.c
index c7d848c..0923560 100644
--- a/gcc/testsuite/gcc.dg/c99-tgmath-1.c
+++ b/gcc/testsuite/gcc.dg/c99-tgmath-1.c
@@ -3,6 +3,8 @@ 
 /* { dg-do preprocess { target c99_runtime } } */
 /* { dg-options "-std=iso9899:1999" } */
 /* { dg-add-options c99_runtime } */
+/* Bionic doesn't have tgmath.h. */
+/* { dg-require-effective-target non_bionic } */

 /* Test that tgmath defines the macros it's supposed to. */
 #include <tgmath.h>
diff --git a/gcc/testsuite/gcc.dg/c99-tgmath-2.c
b/gcc/testsuite/gcc.dg/c99-tgmath-2.c
index d4f1f87..f82ab37 100644
--- a/gcc/testsuite/gcc.dg/c99-tgmath-2.c
+++ b/gcc/testsuite/gcc.dg/c99-tgmath-2.c
@@ -3,6 +3,9 @@ 
 /* { dg-do compile { target c99_runtime } } */
 /* { dg-options "-std=iso9899:1999" } */
 /* { dg-add-options c99_runtime } */
+/* Bionic doesn't have tgmath.h. */
+/* { dg-require-effective-target non_bionic } */
+

 /* Test that invoking type-generic sin on a float invokes sinf. */
 #include <tgmath.h>
diff --git a/gcc/testsuite/gcc.dg/c99-tgmath-3.c
b/gcc/testsuite/gcc.dg/c99-tgmath-3.c
index 3e98304..fba9dfb 100644
--- a/gcc/testsuite/gcc.dg/c99-tgmath-3.c
+++ b/gcc/testsuite/gcc.dg/c99-tgmath-3.c
@@ -3,6 +3,8 @@ 
 /* { dg-do compile { target c99_runtime } } */
 /* { dg-options "-std=iso9899:1999" } */
 /* { dg-add-options c99_runtime } */
+/* Bionic doesn't have tgmath.h. */
+/* { dg-require-effective-target non_bionic } */

 /* Test that invoking type-generic exp on a complex invokes cexp. */
 #include <tgmath.h>
diff --git a/gcc/testsuite/gcc.dg/c99-tgmath-4.c
b/gcc/testsuite/gcc.dg/c99-tgmath-4.c
index d8dc043..68bb59e 100644
--- a/gcc/testsuite/gcc.dg/c99-tgmath-4.c
+++ b/gcc/testsuite/gcc.dg/c99-tgmath-4.c
@@ -3,6 +3,8 @@ 
 /* { dg-do compile { target c99_runtime } } */
 /* { dg-options "-std=iso9899:1999" } */
 /* { dg-add-options c99_runtime } */
+/* Bionic doesn't have tgmath.h. */
+/* { dg-require-effective-target non_bionic } */

 /* Test that invoking type-generic pow on complex float invokes cpowf. */
 #include <tgmath.h>
diff --git a/gcc/testsuite/gcc.dg/dfp/convert-dfp-round-thread.c
b/gcc/testsuite/gcc.dg/dfp/convert-dfp-round-thread.c
index 6727e80..896c21d 100644
--- a/gcc/testsuite/gcc.dg/dfp/convert-dfp-round-thread.c
+++ b/gcc/testsuite/gcc.dg/dfp/convert-dfp-round-thread.c
@@ -1,5 +1,7 @@ 
 /* { dg-options "-std=gnu99 -D_GNU_SOURCE -pthread" } */
 /* { dg-do run { target i?86-*-linux* i?86-*-gnu* x86_64-*-linux* } } */
+/* Bionic doesn't have error.h. */
+/* { dg-require-effective-target non_bionic } */

 /* N1150 5.2: Conversions among decimal floating types and between
    decimal floating types and generic floating types.
diff --git a/gcc/testsuite/gcc.dg/strlenopt-14g.c
b/gcc/testsuite/gcc.dg/strlenopt-14g.c
index 86c57f1..c7268a7 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-14g.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-14g.c
@@ -1,6 +1,8 @@ 
 /* This test needs runtime that provides stpcpy and mempcpy functions.  */
 /* { dg-do run { target *-*-linux* *-*-gnu* } } */
 /* { dg-options "-O2 -fdump-tree-strlen" } */
+/* Bionic doesn't have mempcpy and stpcpy. */
+/* { dg-require-effective-target non_bionic } */

 #define USE_GNU
 #include "strlenopt.h"
diff --git a/gcc/testsuite/gcc.dg/strlenopt-14gf.c
b/gcc/testsuite/gcc.dg/strlenopt-14gf.c
index 8b78538..c9463e0 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-14gf.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-14gf.c
@@ -2,6 +2,8 @@ 
    functions.  */
 /* { dg-do run { target *-*-linux* *-*-gnu* } } */
 /* { dg-options "-O2 -fdump-tree-strlen" } */
+/* Bionic doesn't have mempcpy and stpcpy. */
+/* { dg-require-effective-target non_bionic } */

 #define FORTIFY_SOURCE 2
 #include "strlenopt-14g.c"