From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9583 invoked by alias); 2 Aug 2007 16:23:02 -0000 Received: (qmail 9561 invoked by uid 48); 2 Aug 2007 16:22:53 -0000 Date: Thu, 02 Aug 2007 16:23:00 -0000 Subject: [Bug fortran/32969] New: (rr)?spacing give wrong answers with -fdefault-integer-8 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00097.txt.bz2 With -fdefault-integer-8 the following code: program test_rrspacing real x x = 3.0 x = rrspacing(x) print *, x, spacing(x), spacing(3.0) x = 3.0 x = spacing(x) print *, x end gives: 0.7500000 1.6777216E+07 2.3841858E-07 1.6777216E+07 instead of 1.2582912E+07 1.000000 2.3841858E-07 2.3841858E-07 Note that like PR32933 the code does not involve directly integers and as in the original test of PR32770 it seems to be linked to bigendian platforms (PPC here). -- Summary: (rr)?spacing give wrong answers with -fdefault-integer-8 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dominiq at lps dot ens dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32969