[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Linux getdents.c is not aliasing safe



Hi,

> But that intermediate buffer is in registers (on sane arches), while using
> memcpy would mean at least with current compilers memory.

True, I just consider that not so bad in this particular case.

> glibc requires gcc (even 3.2+) to compile anyway, so IMHO just using the
> union as drow posted seems best to me.

I was just surprised that there is such a gcc extension, I can't even find
it in
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/C-Extensions.html#C%20Extensions
at quick glance.

Regards,
Wolfram.



Reply to: