@@ -779,24 +779,10 @@ AS_IF([test "x${has_optimizer_flags}" = "xno"],
779779case $host_os_def in
780780 linux)
781781 AS_IF ( [ test "x$ax_cv_c_compiler_vendor" = "xintel"] , [
782- # -Wall goes crazy , so turned these specific checks off for now:
782+ # -Wall is overzealous for us , so need to turn this off for now:
783783 #
784- # 111 is "statement is unreachable"
785- # 279 is "controlling expression is constant", triggered by our asserts
786- # 383 is "value copied to temporary, reference to temporary used"
787- # 444 is "destructor for base class is not virtual"
788- # 522 is "function "xyz" redeclared "inline" after being called
789- # 873 is "has no corresponding operator delete". ToDo: we should fix.
790- # 981 is "operands are evaluated in unspecified order"
791- # 1418 is "external function definition with no prior declaration"
792- # 1419 is "external declaration in primary source file"
793- # 1572 is "floating-point equality and inequality comparisons are unreliable"
794- # 1720 is "operator new" has no corresponding member operator delete"
795- # 2256 is "non-pointer conversion from "int" to "unsigned char" "
796- # 2259 is "non-pointer conversion from "int" to "unsigned char" "
797- #
798- # TODO: We should try to eliminate more of these -wd exclusions.
799- common_opt="-pipe -Wall -wd111 -wd279 -wd383 -wd522 -wd444 -wd873 -wd981 -wd1418 -wd1419 -wd1572 -wd1720 -wd2256 -wd2259"
784+ # #873 is "has no corresponding operator delete"
785+ common_opt="-pipe -Wall -wd873"
800786 debug_opt="-ggdb3 $common_opt"
801787 release_opt="-g $common_opt $optimization_flags -axsse4.2 -fno-strict-aliasing"
802788 cxx_opt="-Wno-invalid-offsetof"
@@ -1333,7 +1319,7 @@ TS_TRY_COMPILE_NO_WARNING([],[
13331319 has_128bit_cas=1
13341320 ] , [
13351321 dnl If 128bit CAS fails, try again with the -mcx16 option. GCC needs this;
1336- dnl clang doesn't; icc is unknown but presumed sane .
1322+ dnl clang doesn't; icc does not support -mcx16 ( but gives a non-fatal warning) .
13371323 TS_ADDTO(CXXFLAGS, [ -mcx16] )
13381324 TS_ADDTO(CFLAGS, [ -mcx16] )
13391325 TS_TRY_COMPILE_NO_WARNING([ ] ,[
@@ -1353,8 +1339,10 @@ AC_LANG_POP
13531339AC_SUBST ( has_128bit_cas )
13541340
13551341AS_IF ( [ test "x$has_128bit_cas" = "x1"] , [
1356- TS_ADDTO(CFLAGS, [ -mcx16] )
1357- TS_ADDTO(CXXFLAGS, [ -mcx16] )
1342+ AS_IF ( [ test "x$ax_cv_c_compiler_vendor" != "xintel"] , [
1343+ TS_ADDTO(CFLAGS, [ -mcx16] )
1344+ TS_ADDTO(CXXFLAGS, [ -mcx16] )
1345+ ] )
13581346] )
13591347
13601348# Check for POSIX capabilities library.
0 commit comments