public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/37839]  New: st_parameter_dt has unwanted padding, is out of sync with compiler
@ 2008-10-15 17:54 sje at cup dot hp dot com
  2008-10-15 23:10 ` [Bug libfortran/37839] " janis at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: sje at cup dot hp dot com @ 2008-10-15 17:54 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-11-22  8:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-15 17:54 [Bug libfortran/37839] New: st_parameter_dt has unwanted padding, is out of sync with compiler sje at cup dot hp dot com
2008-10-15 23:10 ` [Bug libfortran/37839] " janis at gcc dot gnu dot org
2008-10-16 10:02 ` burnus at gcc dot gnu dot org
2008-10-16 15:24 ` sje at cup dot hp dot com
2008-10-16 15:33 ` dominiq at lps dot ens dot fr
2008-10-17  3:42 ` jvdelisle at gcc dot gnu dot org
2008-10-19  4:01 ` jvdelisle at gcc dot gnu dot org
2008-10-19 12:02 ` burnus at gcc dot gnu dot org
2008-10-20 15:04 ` sje at cup dot hp dot com
2008-10-28 18:28 ` sje at cup dot hp dot com
2008-11-01 12:18 ` jvdelisle at gcc dot gnu dot org
2008-11-06 14:04 ` dominiq at lps dot ens dot fr
2008-11-20 15:09 ` jakub at gcc dot gnu dot org
2008-11-21 12:44 ` howarth at nitro dot med dot uc dot edu
2008-11-21 12:45 ` jakub at gcc dot gnu dot org
2008-11-22  5:23 ` jvdelisle at gcc dot gnu dot org
2008-11-22  8:13 ` jakub at gcc dot gnu dot org
2008-11-22  8:32 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).