@@ -5552,6 +5552,97 @@ if test x"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x"yes"; then
5552
5552
fi
5553
5553
5554
5554
5555
+
5556
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=4, for CFLAGS" >&5
5557
+ $as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=4, for CFLAGS... " >&6; }
5558
+ if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4+:} false; then :
5559
+ $as_echo_n "(cached) " >&6
5560
+ else
5561
+ pgac_save_CFLAGS=$CFLAGS
5562
+ pgac_save_CC=$CC
5563
+ CC=${CC}
5564
+ CFLAGS="${CFLAGS} -Wimplicit-fallthrough=4"
5565
+ ac_save_c_werror_flag=$ac_c_werror_flag
5566
+ ac_c_werror_flag=yes
5567
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568
+ /* end confdefs.h. */
5569
+
5570
+ int
5571
+ main ()
5572
+ {
5573
+
5574
+ ;
5575
+ return 0;
5576
+ }
5577
+ _ACEOF
5578
+ if ac_fn_c_try_compile "$LINENO"; then :
5579
+ pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4=yes
5580
+ else
5581
+ pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4=no
5582
+ fi
5583
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584
+ ac_c_werror_flag=$ac_save_c_werror_flag
5585
+ CFLAGS="$pgac_save_CFLAGS"
5586
+ CC="$pgac_save_CC"
5587
+ fi
5588
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4" >&5
5589
+ $as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4" >&6; }
5590
+ if test x"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4" = x"yes"; then
5591
+ CFLAGS="${CFLAGS} -Wimplicit-fallthrough=4"
5592
+ fi
5593
+
5594
+
5595
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=4, for CXXFLAGS" >&5
5596
+ $as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=4, for CXXFLAGS... " >&6; }
5597
+ if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4+:} false; then :
5598
+ $as_echo_n "(cached) " >&6
5599
+ else
5600
+ pgac_save_CXXFLAGS=$CXXFLAGS
5601
+ pgac_save_CXX=$CXX
5602
+ CXX=${CXX}
5603
+ CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=4"
5604
+ ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5605
+ ac_cxx_werror_flag=yes
5606
+ ac_ext=cpp
5607
+ ac_cpp='$CXXCPP $CPPFLAGS'
5608
+ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609
+ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5611
+
5612
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613
+ /* end confdefs.h. */
5614
+
5615
+ int
5616
+ main ()
5617
+ {
5618
+
5619
+ ;
5620
+ return 0;
5621
+ }
5622
+ _ACEOF
5623
+ if ac_fn_cxx_try_compile "$LINENO"; then :
5624
+ pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4=yes
5625
+ else
5626
+ pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4=no
5627
+ fi
5628
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629
+ ac_ext=c
5630
+ ac_cpp='$CPP $CPPFLAGS'
5631
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634
+
5635
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5636
+ CXXFLAGS="$pgac_save_CXXFLAGS"
5637
+ CXX="$pgac_save_CXX"
5638
+ fi
5639
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4" >&5
5640
+ $as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4" >&6; }
5641
+ if test x"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4" = x"yes"; then
5642
+ CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=4"
5643
+ fi
5644
+
5645
+
5555
5646
# This was included in -Wall/-Wformat in older GCC versions
5556
5647
5557
5648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
0 commit comments