From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14159 invoked by alias); 11 Sep 2008 00:57:14 -0000 Received: (qmail 13318 invoked by uid 48); 11 Sep 2008 00:55:50 -0000 Date: Thu, 11 Sep 2008 00:57:00 -0000 Subject: [Bug fortran/37472] New: bad output on default-format write of double in common block with -m64 flag i X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sdirkse at gams dot com" 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: 2008-09/txt/msg01322.txt.bz2 If I do write (6,*) 'x=', x for a double, I get lots of stars for doubles in a common block when I do a 64-bit compile. The output is OK for 32-bit or for doubles not in common. Here's some output, I'll try attaching the test case too. sigvm:/export/home/distrib/lang/f90$make && ./bug gfortran -c -m64 bug.f gfortran -o bug -m64 ./bug.o -ldl x = 1001.0000000000000 r = ******************** sigvm:/export/home/distrib/lang/f90$gfortran -c -m32 bug.f sigvm:/export/home/distrib/lang/f90$gfortran -o bug32 -m32 bug.o -ldl sigvm:/export/home/distrib/lang/f90$./bug32 x = 1001.0000000000000 r = 1000.00000000000000 -- Summary: bad output on default-format write of double in common block with -m64 flag i Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sdirkse at gams dot com GCC host triplet: i386-pc-solaris2.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37472