From patchwork Mon Apr 18 14:59:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 91770 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]) by ozlabs.org (Postfix) with SMTP id 5EF5FB6FCF for ; Tue, 19 Apr 2011 01:00:11 +1000 (EST) Received: (qmail 8944 invoked by alias); 18 Apr 2011 15:00:00 -0000 Received: (qmail 8914 invoked by uid 22791); 18 Apr 2011 14:59:59 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Apr 2011 14:59:45 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 8BB85862; Mon, 18 Apr 2011 16:59:44 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id I2QT8jTqCriA; Mon, 18 Apr 2011 16:59:43 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 36B37861; Mon, 18 Apr 2011 16:59:43 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p3IExgDt002395; Mon, 18 Apr 2011 16:59:42 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: fortran@gcc.gnu.org, Jerry DeLisle Subject: [testsuite, fortran] Compile gfortran.dg/fmt_g0_5.f08 with -mieee Date: Mon, 18 Apr 2011 16:59:42 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes 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 The new gfortran.dg/fmt_g0_5.f08 test fails on Tru64 UNIX at runtime with Floating point exception but passes if compiled with -mieee. The following patch implements this, tested with the appropriate runtest invocation. Ok for mainline? Rainer 2011-04-18 Rainer Orth * gfortran.dg/fmt_g0_5.f08: Use dg-add-options ieee. Index: gcc/testsuite/gfortran.dg/fmt_g0_5.f08 =================================================================== --- gcc/testsuite/gfortran.dg/fmt_g0_5.f08 (revision 172652) +++ gcc/testsuite/gfortran.dg/fmt_g0_5.f08 (working copy) @@ -1,4 +1,5 @@ ! { dg-do run } +! { dg-add-options ieee } ! PR48589 Invalid G0/G0.d editing for NaN/infinity ! Test case by Thomas Henlich program test_g0_special