From patchwork Wed Aug 13 20:14:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Ivchenko X-Patchwork-Id: 379742 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 75C511400E4 for ; Thu, 14 Aug 2014 06:14:14 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=k/jG4BfjkWr8PPDcBAabCC6Of5lqGV7d96pG+j125mK OxTIvpPdp5qddTBIOB+XXD7ghVCyFq4pmWrlwwCdxzVM1JxoCcE8bvCk1WHKyp5T G+o3cf4PjOvD7wnYNYRzZ7DZJLN7XzxOymTkG+O/lUmzAUF8NZ3wzhKv5CQqS02g = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; s=default; bh=7l5KfkHMsuVL/sL1d1QUBzrUbWM=; b=UPVflYq/pOSmz6S/T AL55q2zVL3ViynZYzJxh+yj1IwwTfKnhJER4kpeKLw6bICzOxAeNoDzGdAxmElaE QOGIv42uYFuIXEFBqMtkk4PQgHbYcbXkvMOC/OQ461X+Yzc9imM0GMRHsms2fGiV 8oHQ5Zurobz0q1+sq0eLrHCBYk= Received: (qmail 20443 invoked by alias); 13 Aug 2014 20:14:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 20420 invoked by uid 89); 13 Aug 2014 20:14:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f170.google.com Received: from mail-qc0-f170.google.com (HELO mail-qc0-f170.google.com) (209.85.216.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 13 Aug 2014 20:14:02 +0000 Received: by mail-qc0-f170.google.com with SMTP id x3so263002qcv.15 for ; Wed, 13 Aug 2014 13:14:00 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.88.137 with SMTP id a9mr10640687qam.88.1407960840316; Wed, 13 Aug 2014 13:14:00 -0700 (PDT) Received: by 10.96.227.167 with HTTP; Wed, 13 Aug 2014 13:14:00 -0700 (PDT) Date: Thu, 14 Aug 2014 00:14:00 +0400 Message-ID: Subject: [patch, testsuite] Applying non_bionic effective target to particular tests From: Alexander Ivchenko To: GCC Patches Cc: enh X-IsSubscribed: yes 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 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 + + * 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 * 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 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 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 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 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"