This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15767] gcc/sles9 type attribute aligned, packed on vector types behaves inconsistently with gcc/mac
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2004 22:33:45 -0000
- Subject: [Bug target/15767] gcc/sles9 type attribute aligned, packed on vector types behaves inconsistently with gcc/mac
- References: <20040601222414.15767.jingye@ca.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-01 22:33 -------
Unless this is right for sysv4 PowerPC abi, then the problem is in the bug is in the sysv4 header:
/* An expression for the alignment of a structure field FIELD if the
alignment computed in the usual way is COMPUTED. */
#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \
((TARGET_ALTIVEC && TREE_CODE (TREE_TYPE (FIELD)) == VECTOR_TYPE) \
? 128 : COMPUTED)
The darwin result is correct in my mind in that it is packed, note really you should not be using packed
with vectors anyways.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c++ |target
Ever Confirmed| |1
GCC target triplet| |powerpc-*-linux-*, powerpc-
| |*-elf-*
Keywords| |ABI
Last reconfirmed|0000-00-00 00:00:00 |2004-06-01 22:33:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15767