Re: GJournal (hopefully) final patches.

From: Chuck Swiger <cswiger_at_mac.com>
Date: Thu, 10 Aug 2006 10:05:14 -0400
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".

-- 
-Chuck
Received on Thu Aug 10 2006 - 12:05:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC