]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
add a note to the makefile that -ffast-math and -funsafe-math-optimizations must...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 1 Nov 2008 17:07:24 +0000 (17:07 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 1 Nov 2008 17:07:24 +0000 (17:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8543 d7cf8633-e32d-0410-b094-e92efae38249

makefile.inc

index 38a162587a46992cad3614348a5776f17adc0619..5abd9fc855c007068db88409e0e5fb88da1dff6a 100644 (file)
@@ -21,6 +21,7 @@ CC=gcc
 CPUOPTIMIZATIONS?=
 # Experimental
 #CPUOPTIMIZATIONS?=-fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fassociative-math -freciprocal-math -fno-signed-zeros -fno-trapping-math
+# NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
 
 SDL_CONFIG?=sdl-config
 SDLCONFIG_UNIXCFLAGS?=`$(SDL_CONFIG) --cflags`
@@ -171,6 +172,7 @@ OPTIM_DEBUG=$(CPUOPTIMIZATIONS)
 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signaling-nans -fcx-limited-range -funroll-loops $(CPUOPTIMIZATIONS)
 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -funroll-loops $(CPUOPTIMIZATIONS)
 OPTIM_RELEASE=-O2 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
+# NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
 
 DO_CC=$(CC) $(CFLAGS) -c $< -o $@