From patchwork Fri Apr 4 20:53:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Metcalf X-Patchwork-Id: 337119 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 1C8821400F2 for ; Sat, 5 Apr 2014 09:47:23 +1100 (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; q=dns; s= default; b=IgtELulmJP6WbcRaTC26ZBjr/1ykkRdOVFVwJWvciFJJwR2igDVsD ENhX6uuW2FzpXyQ4FMAz5/Yf7A3rr6ALOHP1FrwuPoDu5S0Dj4QdIojG4TxyuNIv rI9icr/wWHf0w+yiAckSFb028HBPj3OeAPFzUdQeVES/HUrOXIaGKg= 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; s=default; bh=YZM3wJNgkCZporf3aaSePunLr54=; b=c2+WzyDQVmWJPPUGz7aldbMKWXBj uPoMFMiI+f1amuzsQ7yN3TAVJa+qOVQRXnLu2TIZTuutlY50249NGlauFBtfWp5p 5aO5bwu3LjJv7YkD8czAFVvszcJZ2NreMDGB1Vbc5a45hJNYmlQFWkO0QNLqoT1c VgDXTrojnq+Nkv0= Received: (qmail 31212 invoked by alias); 4 Apr 2014 21:00:42 -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 31139 invoked by uid 89); 4 Apr 2014 21:00:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: gx-1.internal.tilera.com Message-Id: <201404042100.s34L0Z0f017956@gx-1.internal.tilera.com> From: Chris Metcalf Date: Fri, 4 Apr 2014 16:53:06 -0400 Subject: [PATCH] math: skip test-fenv-preserve.c if no FE_INVALID. To: libc-alpha@sourceware.org 2014-04-04 Chris Metcalf * math/test-fenv-preserve.c [!defined FE_INVALID] (do_test): Don't try to compile if the platform doesn't have FE_INVALID. This is required for the tile architecture. diff --git a/math/test-fenv-preserve.c b/math/test-fenv-preserve.c index 8288b2c..bb34bc2 100644 --- a/math/test-fenv-preserve.c +++ b/math/test-fenv-preserve.c @@ -22,6 +22,7 @@ static int do_test (void) { +#ifdef FE_INVALID 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 ("FE_INVALID not defined, cannot test"); + return 0; +#endif } #define TEST_FUNCTION do_test ()