This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/15767] gcc/sles9 type attribute aligned, packed on vector types behaves inconsistently with gcc/mac


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]