This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13240] New: wrong alignment of automatic adjustable DOUBLE PRECISION array
- From: "gcc-bug at vogtner dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2003 16:48:36 -0000
- Subject: [Bug fortran/13240] New: wrong alignment of automatic adjustable DOUBLE PRECISION array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The base address of a local (automatic) adjustable DOUBLE PRECISION
array ist not properly aligned. Please take a look into the files
enclosed. The program reports:
ADDRESS OF DBLE : BFDFF54C
indicating that the local array is only a multiple of 4 instead
of 8 bytes.
As a workaround a tried -mpreferred-stack-boundary=n for some n.
Only for n = 2 and 3 (in case of GCC 3.2.2 and 3.3.2) and only for n = 2
in case of GCC 2.95.3 the array is correctly aligned.
--
Summary: wrong alignment of automatic adjustable DOUBLE PRECISION
array
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc-bug at vogtner dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13240