llvm.org GIT mirror llvm / 3c2e5f2
Temporarily revert r151609, which enabled a new warning for LLVM and Clang builds. The detection logic for compilers that support the warning isn't working. Rafael is going to investigate it, but didn't want people to have to wade through build spam until then. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151649 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 7 years ago
9 changed file(s) with 12 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
336336 NO_MISSING_FIELD_INITIALIZERS = @NO_MISSING_FIELD_INITIALIZERS@
337337 # -Wno-variadic-macros
338338 NO_VARIADIC_MACROS = @NO_VARIADIC_MACROS@
339 # -Wcovered-switch-default
340 COVERED_SWITCH_DEFAULT = @COVERED_SWITCH_DEFAULT@
341339
342340 # Was polly found in tools/polly?
343341 LLVM_HAS_POLLY = @LLVM_HAS_POLLY@
649649 CompileCommonOpts += -pedantic -Wno-long-long
650650 endif
651651 CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
652 $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT)
652 $(EXTRA_OPTIONS)
653653 # Enable cast-qual for C++; the workaround is to use const_cast.
654654 CXX.Flags += -Wcast-qual
655655
11141114 AC_MSG_CHECKING([optional compiler flags])
11151115 CXX_FLAG_CHECK(NO_VARIADIC_MACROS, [-Wno-variadic-macros])
11161116 CXX_FLAG_CHECK(NO_MISSING_FIELD_INITIALIZERS, [-Wno-missing-field-initializers])
1117 CXX_FLAG_CHECK(COVERED_SWITCH_DEFAULT, [-Wcovered-switch-default])
1118 AC_MSG_RESULT([$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT])
1117 AC_MSG_RESULT([$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS])
11191118
11201119 dnl===-----------------------------------------------------------------------===
11211120 dnl===
181181 if (LLVM_ENABLE_PEDANTIC)
182182 add_llvm_definitions( -pedantic -Wno-long-long )
183183 endif (LLVM_ENABLE_PEDANTIC)
184 check_cxx_compiler_flag("-Wcovered-switch-default" SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG)
185 if( SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG )
186 add_llvm_definitions( -Wcovered-switch-default )
187 endif()
188184 endif (LLVM_ENABLE_WARNINGS)
189185 if (LLVM_ENABLE_WERROR)
190186 add_llvm_definitions( -Werror )
764764 LIBADD_DL
765765 NO_VARIADIC_MACROS
766766 NO_MISSING_FIELD_INITIALIZERS
767 COVERED_SWITCH_DEFAULT
768767 USE_UDIS86
769768 USE_OPROFILE
770769 HAVE_PTHREAD
1046310462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1046410463 lt_status=$lt_dlunknown
1046510464 cat > conftest.$ac_ext <
10466 #line 10467 "configure"
10465 #line 10466 "configure"
1046710466 #include "confdefs.h"
1046810467
1046910468 #if HAVE_DLFCN_H
1222212221
1222312222 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
1222412223
12225 COVERED_SWITCH_DEFAULT=`$CXX -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12226
12227 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12228 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12224 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12225 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
1222912226
1223012227
1223112228
2197621973 LIBADD_DL!$LIBADD_DL$ac_delim
2197721974 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
2197821975 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21979 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
2198021976 USE_UDIS86!$USE_UDIS86$ac_delim
2198121977 USE_OPROFILE!$USE_OPROFILE$ac_delim
2198221978 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
2200422000 LTLIBOBJS!$LTLIBOBJS$ac_delim
2200522001 _ACEOF
2200622002
22007 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22003 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
2200822004 break
2200922005 elif $ac_last_try; then
2201022006 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
300300 NO_MISSING_FIELD_INITIALIZERS = @NO_MISSING_FIELD_INITIALIZERS@
301301 # -Wno-variadic-macros
302302 NO_VARIADIC_MACROS = @NO_VARIADIC_MACROS@
303 # -Wcovered-switch-default
304 COVERED_SWITCH_DEFAULT = @COVERED_SWITCH_DEFAULT@
305303
306304 # Was polly found in tools/polly?
307305 LLVM_HAS_POLLY = @LLVM_HAS_POLLY@
570570 CompileCommonOpts += -pedantic -Wno-long-long
571571 endif
572572 CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
573 $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT)
573 $(EXTRA_OPTIONS)
574574 # Enable cast-qual for C++; the workaround is to use const_cast.
575575 CXX.Flags += -Wcast-qual
576576
10181018 AC_MSG_CHECKING([optional compiler flags])
10191019 CXX_FLAG_CHECK(NO_VARIADIC_MACROS, [-Wno-variadic-macros])
10201020 CXX_FLAG_CHECK(NO_MISSING_FIELD_INITIALIZERS, [-Wno-missing-field-initializers])
1021 CXX_FLAG_CHECK(COVERED_SWITCH_DEFAULT, [-Wcovered-switch-default])
1022 AC_MSG_RESULT([$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT])
1021 AC_MSG_RESULT([$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS])
10231022
10241023 dnl===-----------------------------------------------------------------------===
10251024 dnl===
761761 LIBADD_DL
762762 NO_VARIADIC_MACROS
763763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
765764 USE_UDIS86
766765 USE_OPROFILE
767766 HAVE_PTHREAD
1036510364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1036610365 lt_status=$lt_dlunknown
1036710366 cat > conftest.$ac_ext <
10368 #line 10369 "configure"
10367 #line 10368 "configure"
1036910368 #include "confdefs.h"
1037010369
1037110370 #if HAVE_DLFCN_H
1212412123
1212512124 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
1212612125
12127 COVERED_SWITCH_DEFAULT=`$CXX -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12128
12129 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12130 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12126 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12127 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
1213112128
1213212129
1213312130
2181821815 LIBADD_DL!$LIBADD_DL$ac_delim
2181921816 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
2182021817 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21821 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
2182221818 USE_UDIS86!$USE_UDIS86$ac_delim
2182321819 USE_OPROFILE!$USE_OPROFILE$ac_delim
2182421820 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
2184621842 LTLIBOBJS!$LTLIBOBJS$ac_delim
2184721843 _ACEOF
2184821844
21849 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21845 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
2185021846 break
2185121847 elif $ac_last_try; then
2185221848 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5