aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-05-09 19:27:49 -0600
committerJeff Law <law@gcc.gnu.org>1998-05-09 19:27:49 -0600
commite9b4fabf5c41bdec0be36e37df4ff8abb4e8c346 (patch)
treef64f178c3253cacbedc18b0625c5db1b79191ab7 /gcc/system.h
parent846522cbe7c4793e63082c2070055f7d10cfe1ea (diff)
downloadgcc-e9b4fabf5c41bdec0be36e37df4ff8abb4e8c346.zip
gcc-e9b4fabf5c41bdec0be36e37df4ff8abb4e8c346.tar.gz
gcc-e9b4fabf5c41bdec0be36e37df4ff8abb4e8c346.tar.bz2
acconfig.h (HAVE_VOLATILE): Insert stub for autoconf.
* 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. From-SVN: r19653
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index a3ff5bd..e1c75ab 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -210,6 +210,12 @@ extern char *getenv ();
extern char *sbrk ();
#endif
+/* HAVE_VOLATILE only refers to the stage1 compiler. We also check
+ __STDC__ and assume gcc sets it and has volatile in stage >=2. */
+#if !defined(HAVE_VOLATILE) && !defined(__STDC__) && !defined(volatile)
+#define volatile
+#endif
+
/* Redefine abort to report an internal error w/o coredump, and reporting the
location of the error in the source file. */
#ifndef abort