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/38736] [4.4 Regression] -mavx can change the ABI via BIGGEST_ALIGNMENT



------- Comment #6 from hjl dot tools at gmail dot com  2009-01-07 02:48 -------
(In reply to comment #4)
> There is another place:
> 
> libstdc++-v3/include/std/type_traits:   struct __attribute__((__aligned__)) { }
> __align; 
> 

It may not be a problem since it is used to get the default alignment,
which is encoded in the class template:

  template<std::size_t _Len>
    struct __aligned_storage_msa
    {
      union __type
      {
        unsigned char __data[_Len];
        struct __attribute__((__aligned__)) { } __align;
      };
    };
...
  template<std::size_t _Len, std::size_t _Align =
           __alignof__(typename __aligned_storage_msa<_Len>::__type)>
    struct aligned_storage
    {
      union type
      {
        unsigned char __data[_Len];
        struct __attribute__((__aligned__((_Align)))) { } __align;
      };
    };


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2009-01-05 23:30:01         |2009-01-07 02:48:15
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38736


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