From 8564ad21d5bbb3e41ddbb083a44e3b67bc4b1439 Mon Sep 17 00:00:00 2001 From: law Date: Sun, 10 May 1998 01:27:49 +0000 Subject: * acconfig.h (HAVE_VOLATILE): Insert stub for autoconf. * alocal.m4 (GCC_C_VOLATILE): New autoconf test. * configure.in: Use GCC_C_VOLATILE. * system.h (volatile): Define as empty if no volatile support is available. * genemit.c (output_add_clobbers): Removed unused variable 'i' from generated fucntion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19653 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/aclocal.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gcc/aclocal.m4') diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index 007fb5eb5f6..7149a2ab98a 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -143,6 +143,16 @@ fi AC_SUBST(LN)dnl ]) +dnl See whether the stage1 host compiler accepts the volatile keyword. +AC_DEFUN(GCC_C_VOLATILE, +[AC_CACHE_CHECK([for volatile], gcc_cv_c_volatile, +[AC_TRY_COMPILE(, [volatile int foo;], + gcc_cv_c_volatile=yes, gcc_cv_c_volatile=no)]) +if test $gcc_cv_c_volatile = yes ; then + AC_DEFINE(HAVE_VOLATILE) +fi +]) + AC_DEFUN(EGCS_PROG_INSTALL, [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Find a good install program. We prefer a C program (faster), -- cgit v1.2.1