[PATCH] Fix strict-aliasing warning in resolv/res_hconf.c
Roland McGrath
roland@hack.frob.com
Fri May 29 05:23:00 GMT 2015
> I could, but I would rather not since I normally only build glibc for
> MIPS and it always takes me a while to figure out the options and
> settings for an x86 build. I did a build using GCC 4.9.2 for MIPS and
> did not see any significant code differences with this patch (i.e. I did
> not see an extra data copy on MIPS).
OK, that's good enough for me to assume that there won't be any extra data
copy on any machine with a reasonable compiler. (I actually asked about
x86_64 specifically because I wouldn't care about the MIPS code being
suboptimal as long as the x86 code was not.)
The only other thing I'd say about the patch is that the temporary
variable should be declared in the innermost possible scope.
Thanks,
Roland
More information about the Libc-alpha
mailing list