Patchwork [testsuite,fortran] Compile gfortran.dg/fmt_g0_5.f08 with -mieee

login
register
mail settings
Submitter Rainer Orth
Date April 18, 2011, 2:59 p.m.
Message ID <yddk4erppup.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/91770/
State New
Headers show

Comments

Rainer Orth - April 18, 2011, 2:59 p.m.
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  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gfortran.dg/fmt_g0_5.f08: Use dg-add-options ieee.
Janne Blomqvist - April 18, 2011, 3:29 p.m.
On Mon, Apr 18, 2011 at 17:59, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
> 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?

Ok. Thanks for the patch.

Patch

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