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: 514 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 7AB1636007C for ; Fri, 11 Apr 2014 12:16:48 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14307373) id 30AC7485412A; Fri, 11 Apr 2014 12:16:47 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx22.g.dreamhost.com 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 homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id 685D349613A7 for ; Fri, 11 Apr 2014 12:16:47 -0700 (PDT) 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=FM6L0AG/dbcC/hv8 BABYnA759gNKELkjFle84P0LpQMxyyrb5//l3aKLqORX7FK6ue1/hbBNi3nAclLZ EuMYNV5PW1zU/g8LHNSAw9NFvZv7Zex8ZtwLTAi+PwwzSjKbsiuRQf4ayeuqFUEZ jWnJCIdvDxwKWIvlC5mUgg+CRHg= 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=qF4j9m/7c3TulbefcD3Xvx2P7McOA+jdGF/tRIYFATjKwF8HjTC8e0 qJpQrqWFZ+dqB9x3Ew7XSqjYZmBkfjakJ0A+KR4W47+UOjH0z1JaWI8a7hJAjWyc XClnxIi9gCgJFAo9dv9U30aUnytdLKmI7bgl+cHZkAob6+G4bCU2k= 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 X-DH-Original-To: glibc@patchwork.siddhesh.in 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 ()