llvm.org GIT mirror llvm / c6aa834
Turn anonymous type in anonymous union warning back on after cleaning up issues. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177136 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 6 years ago
5 changed file(s) with 7 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
374374 NO_UNINITIALIZED = @NO_UNINITIALIZED@
375375 # -Wno-maybe-uninitialized
376376 NO_MAYBE_UNINITIALIZED = @NO_MAYBE_UNINITIALIZED@
377 # -Wno-nested-anon-types
378 NO_NESTED_ANON_TYPES = @NO_NESTED_ANON_TYPES@
379377
380378 # Was polly found in tools/polly?
381379 LLVM_HAS_POLLY = @LLVM_HAS_POLLY@
666666 endif
667667
668668 ifndef NO_PEDANTIC
669 CompileCommonOpts += -pedantic -Wno-long-long $(NO_NESTED_ANON_TYPES)
669 CompileCommonOpts += -pedantic -Wno-long-long
670670 endif
671671 CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
672672 $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT) \
12691269 AC_MSG_CHECKING([optional compiler flags])
12701270 CXX_FLAG_CHECK(NO_VARIADIC_MACROS, [-Wno-variadic-macros])
12711271 CXX_FLAG_CHECK(NO_MISSING_FIELD_INITIALIZERS, [-Wno-missing-field-initializers])
1272 CXX_FLAG_CHECK(NO_NESTED_ANON_TYPES, [-Wno-nested-anon-types])
12731272 CXX_FLAG_CHECK(COVERED_SWITCH_DEFAULT, [-Wcovered-switch-default])
12741273
12751274 dnl GCC's potential uninitialized use analysis is weak and presents lots of
12871286 CXX_FLAG_CHECK(NO_UNINITIALIZED, [-Wno-uninitialized])
12881287 fi
12891288 fi
1290 AC_MSG_RESULT([$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED])
1289 AC_MSG_RESULT([$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED])
12911290
12921291 AC_ARG_WITH([python],
12931292 [AS_HELP_STRING([--with-python], [path to python])],
201201
202202 if (LLVM_ENABLE_PEDANTIC)
203203 add_llvm_definitions( -pedantic -Wno-long-long )
204 check_cxx_compiler_flag("-Werror -Wnested-anon-types" CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG)
205 append_if(CMAKE_CXX_FLAGS "-Wno-nested-anon-types" CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG)
206204 endif (LLVM_ENABLE_PEDANTIC)
207205 check_cxx_compiler_flag("-Werror -Wcovered-switch-default" CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG)
208206 append_if(CMAKE_CXX_FLAGS "-Wcovered-switch-default" CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG)
765765 LIBADD_DL
766766 NO_VARIADIC_MACROS
767767 NO_MISSING_FIELD_INITIALIZERS
768 NO_NESTED_ANON_TYPES
769768 COVERED_SWITCH_DEFAULT
770769 NO_MAYBE_UNINITIALIZED
771770 NO_UNINITIALIZED
1049710496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1049810497 lt_status=$lt_dlunknown
1049910498 cat > conftest.$ac_ext <
10500 #line 10501 "configure"
10499 #line 10500 "configure"
1050110500 #include "confdefs.h"
1050210501
1050310502 #if HAVE_DLFCN_H
1226412263
1226512264 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
1226612265
12267 NO_NESTED_ANON_TYPES=`$CXX -Werror -Wnested-anon-types -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-nested-anon-types`
12268
1226912266 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
1227012267
1227112268
1228112278
1228212279 fi
1228312280 fi
12284 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12285 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12281 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12282 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
1228612283
1228712284
1228812285 # Check whether --with-python was given.
2258422581 LIBADD_DL!$LIBADD_DL$ac_delim
2258522582 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
2258622583 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22587 NO_NESTED_ANON_TYPES!$NO_NESTED_ANON_TYPES$ac_delim
2258822584 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
2258922585 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
2259022586 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
2261422610 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
2261522611 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
2261622612 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22613 RPATH!$RPATH$ac_delim
2261722614 _ACEOF
2261822615
2261922616 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2265522652 ac_delim='%!_!# '
2265622653 for ac_last_try in false false false false false :; do
2265722654 cat >conf$$subs.sed <<_ACEOF
22658 RPATH!$RPATH$ac_delim
2265922655 RDYNAMIC!$RDYNAMIC$ac_delim
2266022656 program_prefix!$program_prefix$ac_delim
2266122657 LIBOBJS!$LIBOBJS$ac_delim
2266222658 LTLIBOBJS!$LTLIBOBJS$ac_delim
2266322659 _ACEOF
2266422660
22665 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
22661 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
2266622662 break
2266722663 elif $ac_last_try; then
2266822664 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5