Changeset - r19746:44a22a1f2d26
[Not reviewed]
master
0 1 0
smatz - 12 years ago 2012-11-11 17:39:54
smatz@openttd.org
(svn r24701) -Fix [FS#5246]: Workaround an overoptimisation done by GCC 4.5
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1350,6 +1350,12 @@ make_compiler_cflags() {
 
			cxxflags="$cxxflags -std=gnu++0x"
 
		fi
 

	
 
		if [ $cc_version -eq 45 ]; then
 
			# Prevent optimisation supposing enums are in a range specified by the standard
 
			# For details, see http://gcc.gnu.org/PR43680
 
			flags="$flags -fno-tree-vrp"
 
		fi
 

	
 
		if [ $cc_version -ge 47 ]; then
 
			# Disable -Wnarrowing which gives many warnings, such as:
 
			# warning: narrowing conversion of '...' from 'unsigned int' to 'int' inside { } [-Wnarrowing]
0 comments (0 inline, 0 general)