From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8613 invoked by alias); 15 Oct 2008 17:54:49 -0000 Received: (qmail 8445 invoked by uid 48); 15 Oct 2008 17:53:29 -0000 Date: Wed, 15 Oct 2008 17:54:00 -0000 Subject: [Bug libfortran/37839] New: st_parameter_dt has unwanted padding, is out of sync with compiler X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sje at cup dot hp 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-10/txt/msg01011.txt.bz2 On systems where GFC_IO_INT is 8 bytes and requires 8 byte alignment the st_parameter_dt structure may be out of sync between the fortran library and compiler because the common field of st_parameter_dt is 28 bytes long (if pointers and ints are 4 bytes each) and the next field (rec) is of type GFC_IO_INT which is 8 bytes if 8 byte ints are supported. The padding between common and rec is not accounted for in the compiler when accessing the structure. On ia64-*-hpux* this cause gfortran.dg/f2003_io_[14567].f03 to fail in 32 bit mode. -- Summary: st_parameter_dt has unwanted padding, is out of sync with compiler Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sje at cup dot hp dot com GCC target triplet: ia64-*-hpux* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37839