From patchwork Fri Apr 11 17:03:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Metcalf X-Patchwork-Id: 338629 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 844E51400CF for ; Sat, 12 Apr 2014 05:16:50 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:from:date:subject:to:cc :mime-version:content-type; q=dns; s=default; b=X5ax89931s5d1P9j m7yBOgM6Ii7cAet4aYQFvmglKeZR7DoGSO+qF2dlFTIQVWTb313OwmWa6+r8ZXir rOsokraXXUHZTfFst/agokOaHbvKQh5MTyx0WOM0b29avLX7CvveCqJ4vpUlZ9Cd m+Vm3e3obLI8DGk5mTQqoyIX56s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:from:date:subject:to:cc :mime-version:content-type; s=default; bh=lxbwdP3szHt+bTNM3AotqY FiEug=; b=SXTWa9sg+nEqQJj5MA5WryOSH3QevRIIEwbgFnfvJzw4opC7+UU1O/ IPZmOwhDjKHv+bD9n/v7xbtpbWK+xeHcG96bvaSxiFqlnkF/Tmo9ZVsnzey8fU3d WPvNmqri9A741A1Vsyzek0aeUeVm8sUTpbk/RSQvoLKNtA74gyx3I= Received: (qmail 15440 invoked by alias); 11 Apr 2014 19:16:44 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 15428 invoked by uid 89); 11 Apr 2014 19:16:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: USMAMAIL.TILERA.COM Message-ID: <201404111916.s3BJGcrM024726@farm-0002.internal.tilera.com> From: Chris Metcalf Date: Fri, 11 Apr 2014 13:03:12 -0400 Subject: [COMMITTED PATCH] math: make test-fenv-preserve.c a no-op if FE_ALL_EXCEPT == 0. To: CC: David Holsgrove MIME-Version: 1.0 There were no objections raised to the previous version of this change and it only affects tile and (I believe) microblaze, so I tweaked it slightly to use "#if" rather than "#ifdef" and pushed it. 2014-04-11 Chris Metcalf * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test): Make the test a no-op if there are no exceptions defined. This fixes a testsuite failure for tile (and possibly microblaze). diff --git a/math/test-fenv-preserve.c b/math/test-fenv-preserve.c index 8288b2c97159..89f2e2bd81e3 100644 --- a/math/test-fenv-preserve.c +++ b/math/test-fenv-preserve.c @@ -22,6 +22,7 @@ static int do_test (void) { +#if FE_ALL_EXCEPT fenv_t env; if (feenableexcept (FE_INVALID) != 0) @@ -47,6 +48,10 @@ do_test (void) printf ("fegetexcept returned %d, expected %d\n", ret, FE_INVALID); return 1; } +#else + puts ("No exceptions defined, cannot test"); + return 0; +#endif } #define TEST_FUNCTION do_test ()