This is the mail archive of the gcc-help@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: is portable aliasing possible in C++?


On 09/15/2014 12:29 PM, Hei Chan wrote:
> 
> 
> 
> 
> 
> On Monday, September 15, 2014 7:22 PM, Andrew Haley <aph@redhat.com> wrote:
> 
>> Using memcpy(), the compiler will have to make a copy
>> because it sees that few lines, for example, down, the program tries
>> to manipulate the copy.
> 
> So, don't manipulate the copy, then.  Use it once, then throw it away.
> 
> Sometimes, due to the endianness, I am forced to manipulate the copy...

I don't know what you mean.  A small example would help.

Andrew.


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