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 C++ strict-aliasing issues with memcpy folding


On 04/14/2010 05:38 PM, Jason Merrill wrote:
On 04/14/2010 05:23 PM, Richard Guenther wrote:

Earlier you were arguing that storing the float into the union
is ok because there's a character array member inside.

As in this testcase? Yes, I believe so. And the float-ness transfers to 'b' because union assignment is equivalent to memcpy.

...and so your point is that we need to give the union alias set zero in order to reflect that. I see.


Jason


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