This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: 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.


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