* warnings.m4 (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Don't do
anything for non-GCC compilers.
libcpp:
* configure: Regenerate.
gcc:
PR bootstrap/18058
* recog.c (recog_memoized): Don't define if GENERATOR_FILE.
* ggc-none.c (ggc_free): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94123
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
+
+ * warnings.m4 (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Don't do
+ anything for non-GCC compilers.
+
2004-12-03 Richard Sandiford <rsandifo@redhat.com>
* gxx-include-dir.m4: New file.
2004-12-03 Richard Sandiford <rsandifo@redhat.com>
* gxx-include-dir.m4: New file.
# Autoconf include file defining macros related to compile-time warnings.
# Autoconf include file defining macros related to compile-time warnings.
-# Copyright 2004 Free Software Foundation, Inc.
+# Copyright 2004, 2005 Free Software Foundation, Inc.
#This file is part of GCC.
#This file is part of GCC.
])# ACX_PROG_CC_WARNING_OPTS
# ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long ...])
])# ACX_PROG_CC_WARNING_OPTS
# ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long ...])
-# Sets WARN_PEDANTIC to "-pedantic" + the argument, if the compiler
-# accepts all of those options simultaneously, otherwise to nothing.
+# Sets WARN_PEDANTIC to "-pedantic" + the argument, if the compiler is GCC
+# and 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=
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=
-AC_CACHE_CHECK([whether $CC supports -pedantic $1], acx_Pedantic,
+AS_IF([test $GCC = yes],
+[AC_CACHE_CHECK([whether $CC supports -pedantic $1], acx_Pedantic,
[save_CFLAGS="$CFLAGS"
CFLAGS="-pedantic $1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
[save_CFLAGS="$CFLAGS"
CFLAGS="-pedantic $1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
CFLAGS="$save_CFLAGS"])
AS_IF([test AS_VAR_GET(acx_Pedantic) = yes],
[WARN_PEDANTIC="-pedantic $1"])
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
AS_VAR_POPDEF([acx_Pedantic])dnl
])# ACX_PROG_CC_WARNING_ALMOST_PEDANTIC
+2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
+
+ PR bootstrap/18058
+ * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
+ * ggc-none.c (ggc_free): Define.
+
2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
* cse.c (max_reg, max_insn_uid): Remove.
2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
* cse.c (max_reg, max_insn_uid): Remove.
/* Null garbage collection for the GNU compiler.
/* Null garbage collection for the GNU compiler.
- Copyright (C) 1998, 1999, 2000, 2003, 2004
+ Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GCC.
Free Software Foundation, Inc.
This file is part of GCC.
{
return xrealloc (x, size);
}
{
return xrealloc (x, size);
}
+
+void
+ggc_free (void *p)
+{
+ free (p);
+}
/* Declarations for interface to insn recognizer and insn-output.c.
/* Declarations for interface to insn recognizer and insn-output.c.
- Copyright (C) 1987, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
+ Copyright (C) 1987, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GCC.
Free Software Foundation, Inc.
This file is part of GCC.
extern int mode_dependent_address_p (rtx);
extern int recog (rtx, rtx, int *);
extern int mode_dependent_address_p (rtx);
extern int recog (rtx, rtx, int *);
static inline int recog_memoized (rtx insn);
static inline int recog_memoized (rtx insn);
extern void add_clobbers (rtx, int);
extern int added_clobbers_hard_reg_p (int);
extern void insn_extract (rtx);
extern void add_clobbers (rtx, int);
extern int added_clobbers_hard_reg_p (int);
extern void insn_extract (rtx);
extern int store_data_bypass_p (rtx, rtx);
extern int if_test_bypass_p (rtx, rtx);
extern int store_data_bypass_p (rtx, rtx);
extern int if_test_bypass_p (rtx, rtx);
/* Try recognizing the instruction INSN,
and return the code number that results.
Remember the code so that repeated calls do not
/* Try recognizing the instruction INSN,
and return the code number that results.
Remember the code so that repeated calls do not
INSN_CODE (insn) = recog (PATTERN (insn), insn, 0);
return INSN_CODE (insn);
}
INSN_CODE (insn) = recog (PATTERN (insn), insn, 0);
return INSN_CODE (insn);
}
/* Nonzero means volatile operands are recognized. */
extern int volatile_ok;
/* Nonzero means volatile operands are recognized. */
extern int volatile_ok;
+2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
+
+ * configure: Regenerate.
+
2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
CFLAGS="$save_CFLAGS"
WARN_PEDANTIC=
CFLAGS="$save_CFLAGS"
WARN_PEDANTIC=
-echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
+if test $GCC = yes; then
+ echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
# Only enable with --enable-werror-always until existing warnings are
# corrected.
# Only enable with --enable-werror-always until existing warnings are
# corrected.