View Single Post
Old 10th October 2008
mdh's Avatar
mdh mdh is offline
Real Name: Matt D. Harris
FreeBSD 2.2.6 User
 
Join Date: Oct 2008
Location: West Virginia
Posts: 139
Default

Quote:
Originally Posted by phoenix View Post
Those who muck with CFLAGS and COPTFLAGS be playing with dragons. Best to tread lightly, and carry a big stick.

[Seriously, does anyone actually read the stuff I post, or does everyone just gloss over it?]
The documentation says explicitly that it may break some ports...

Code:
# Compiling with -fstrict-aliasing optimization breaks some [notable] ports.
# GCC turns on -fstrict-aliasing optimization at all levels above -O[1], so
# explicitly turn it off when using compiling with the -O2 optimization level.
Therefore, that one caveat should be obvious to anyone who reads the documentation, so I didn't think it worth worrying about. I just don't think it's worthwhile to ignore a potential means of having a more efficient system just because of one well-documented issue that is easily dealt with by using -fno-strict-aliasing.
Reply With Quote