diff options
Diffstat (limited to 'config/warnings.m4')
-rw-r--r-- | config/warnings.m4 | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/config/warnings.m4 b/config/warnings.m4 index 8b832382b..5501be920 100644 --- a/config/warnings.m4 +++ b/config/warnings.m4 @@ -1,6 +1,6 @@ # Autoconf include file defining macros related to compile-time warnings. -# Copyright 2004, 2005 Free Software Foundation, Inc. +# Copyright 2004 Free Software Foundation, Inc. #This file is part of GCC. @@ -16,8 +16,8 @@ #You should have received a copy of the GNU General Public License #along with GCC; see the file COPYING. If not, write to the Free -#Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA -#02110-1301, USA. +#Software Foundation, 59 Temple Place - Suite 330, Boston, MA +#02111-1307, USA. # ACX_PROG_CC_WARNING_OPTS([-Wfoo -Wbar -Wbaz]) # Sets @WARN_CFLAGS@ to the subset of the given options which the @@ -43,15 +43,14 @@ CFLAGS="$save_CFLAGS" ])# ACX_PROG_CC_WARNING_OPTS # ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long ...]) -# Sets WARN_PEDANTIC to "-pedantic" + the argument, if the compiler is GCC -# and accepts all of those options simultaneously, otherwise to nothing. +# Sets WARN_PEDANTIC to "-pedantic" + the argument, if the compiler +# accepts all of those options simultaneously, otherwise to nothing. AC_DEFUN([ACX_PROG_CC_WARNING_ALMOST_PEDANTIC], [AC_REQUIRE([AC_PROG_CC])dnl AC_SUBST([WARN_PEDANTIC])dnl AS_VAR_PUSHDEF([acx_Pedantic], [acx_cv_prog_cc_pedantic_$1])dnl WARN_PEDANTIC= -AS_IF([test "$GCC" = yes], -[AC_CACHE_CHECK([whether $CC supports -pedantic $1], acx_Pedantic, +AC_CACHE_CHECK([whether $CC supports -pedantic $1], acx_Pedantic, [save_CFLAGS="$CFLAGS" CFLAGS="-pedantic $1" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], @@ -60,7 +59,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], CFLAGS="$save_CFLAGS"]) AS_IF([test AS_VAR_GET(acx_Pedantic) = yes], [WARN_PEDANTIC="-pedantic $1"]) -]) AS_VAR_POPDEF([acx_Pedantic])dnl ])# ACX_PROG_CC_WARNING_ALMOST_PEDANTIC |