From patchwork Wed Sep 3 05:26:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaz Kojima X-Patchwork-Id: 385393 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 AD346140217 for ; Wed, 3 Sep 2014 15:26:30 +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:date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=dz/kJLM9J4taChZbqV8wq4iL0L8G22ibmuQbHjw7ptgtNOQprR5Mz uPdeR7vs8sN+WeTivw5N1NtdH5rOawx3kZlW8/MuicoFHK4ns0p9Y8iZJ9dEp+JX wzrEIwiagNGGa61Ao26fYG68VKdozIU0mp6b7kSrbeaVfdkZ63uZek= 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:date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=default; bh=nupN9sDmZ9ux8duaPgZ26y2dr0o=; b=ZDpdSZA5USKT5ommNXR62Q0VZfto kcPptUaBgYbKWRIG9zenLLFipn6VHsqtTJ9oEEQOt2qn3OKZxXpTJOyKhHxk7I0q hyMRHrCDNUv4rY5GuPjhJQua3oareaGzmsXlEsC49Aixb4xqZcJavkU4jlWl4Jvs wLFo2DKoDdfBAJs= Received: (qmail 3292 invoked by alias); 3 Sep 2014 05:26:22 -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 3280 invoked by uid 89); 3 Sep 2014 05:26:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mo-sw.iij4u.or.jp Received: from mo-sw1500.iij4u.or.jp (HELO mo-sw.iij4u.or.jp) (210.130.239.240) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 Sep 2014 05:26:21 +0000 Received: by mo-sw.iij4u.or.jp (4u-mo-sw1500) id s835QIeP015630; Wed, 3 Sep 2014 14:26:18 +0900 Received: from localhost (238.152.138.210.bn.2iij.net [210.138.152.238]) by mbox.iij4u.or.jp (4u-mbox1500) id s835QAPu011186; Wed, 3 Sep 2014 14:26:17 +0900 Date: Wed, 03 Sep 2014 14:26:10 +0900 (JST) Message-Id: <20140903.142610.389979994.kkojima@rr.iij4u.or.jp> To: oleg.endo@t-online.de Cc: gcc-patches@gcc.gnu.org Subject: Re: [RFC] Tweak gcc.c-torture/execute/pr39228.c From: Kaz Kojima In-Reply-To: <8DB09902-5BFB-4781-9A54-BB2FD8C27ADC@t-online.de> References: <20140903.094249.32448804.kkojima@rr.iij4u.or.jp> <8DB09902-5BFB-4781-9A54-BB2FD8C27ADC@t-online.de> Mime-Version: 1.0 X-IsSubscribed: yes Oleg Endo wrote: > -mieee should be the default on sh* and thus can be removed from the dg-options line, or is it not? If -mieee is still needed (for alpha) maybe it's better to use dg-additional-options instead? Sure. The attached is a revised one. Regards, kaz --- * gcc.c-torture/execute/pr39228.c: Use dg-additional-options instead of dg-options and remove sh*-*-* from its target list. Add "inline" keyword to test functions. --- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr39228.c 2014-08-26 09:26:20.000000000 +0900 +++ trunk/gcc/testsuite/gcc.c-torture/execute/pr39228.c 2014-09-03 14:16:23.313631715 +0900 @@ -1,23 +1,23 @@ -/* { dg-options "-mieee" { target sh*-*-* alpha*-*-* } } */ +/* { dg-additional-options "-mieee" { target alpha*-*-* } } */ /* { dg-skip-if "No Inf/NaN support" { spu-*-* } "*" "" } */ extern void abort (void); -static int __attribute__((always_inline)) testf (float b) +static inline int __attribute__((always_inline)) testf (float b) { float c = 1.01f * b; return __builtin_isinff (c); } -static int __attribute__((always_inline)) test (double b) +static inline int __attribute__((always_inline)) test (double b) { double c = 1.01 * b; return __builtin_isinf (c); } -static int __attribute__((always_inline)) testl (long double b) +static inline int __attribute__((always_inline)) testl (long double b) { long double c = 1.01L * b;