[PATCH] Fix libstdc++/C++ fallout from RTL alias export
Paolo Carlini
paolo.carlini@oracle.com
Wed Jan 20 15:59:00 GMT 2010
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.
More information about the Gcc-patches
mailing list