Fix strict aliasing problems or add -fno-strict-aliasing
authorRuss Allbery <rra@stanford.edu>
Mon, 22 Mar 2010 22:00:39 +0000 (15:00 -0700)
committerDerrick Brashear <shadow@dementia.org>
Tue, 23 Mar 2010 03:48:14 +0000 (20:48 -0700)
commitf2db78a346112f5320efc6f0b6b9fe4ae0d893d3
tree19480f3ae0862b4b4ddb310494ffbaf09117f122
parent129b6954a6f491c6f3c3e417055bdc68d4726408
Fix strict aliasing problems or add -fno-strict-aliasing

Create a new CFLAGS_NOSTRICT Autoconf substitution variable which
is set to -fno-strict-aliasing if we're using gcc to compile.  Add
@CFLAGS_NOSTRICT@ to the C compiler flags for source files that have
significant strict-aliasing issues.

Fix minor strict-aliasing issues elsewhere in the tree by using memcpy
to copy the data into a properly typed variable.

Change-Id: I43afdb5e33e06cb249b7db385a65daf8d2133a19
Reviewed-on: http://gerrit.openafs.org/1617
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/budb/ol_verify.c
src/budb/procs.c
src/cf/osconf.m4
src/kauth/krb_udp.c
src/ptserver/Makefile.in
src/ptserver/ptclient.c
src/tsalvaged/Makefile.in
src/vol/Makefile.in