GJournal (hopefully) final patches.

Chuck Swiger cswiger at mac.com
Thu Aug 10 14:05:27 UTC 2006

Dag-Erling Smørgrav wrote:
> Markus Trippelsdorf <markus at trippelsdorf.de> writes:
>> Adding -fno-strict-aliasing to the CFLAGS of sbin/fsck_ffs/Makefile
>> solved the problem for now.
> -fno-strict-aliasing does not solve anything, it just prevents the
> compiler from telling you about bugs in your code.

It also prevents the compiler's optimizer from assuming that a pointer 
dereference may impact datatypes of other sizes.

Since there exists C code that changes, say, int16_t's or int32_t's one byte 
at a time, using that flag prevents the compiler from generating buggy 
executables from C sources which do not adhere to the assumptions made by 
"strict aliasing".


More information about the freebsd-fs mailing list