This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix libstdc++/C++ fallout from RTL alias export


On 01/20/2010 04:49 PM, Richard Guenther wrote:
> Probably yes.  I don't know if its implementation is very much
> better though ;)
>   
I get your irony, but note that the implementation is basically fully
constrained by the specifications, thus if doesn't work vs aliasing, we
have a DR, not a PR. The storage is reserved like this:

  template<std::size_t _Len>
    struct __aligned_storage_msa
    {
      union __type
      {
    unsigned char __data[_Len];
    struct __attribute__((__aligned__)) { } __align;
      };
    };

What do you think? As far as I know, it has been invented exactly to
deal in a clean way with such applications...

Paolo.


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