summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-10 01:27:49 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-10 01:27:49 +0000
commit8564ad21d5bbb3e41ddbb083a44e3b67bc4b1439 (patch)
treef64f178c3253cacbedc18b0625c5db1b79191ab7 /gcc/system.h
parentf1a4450e505a14defffc88087875a65eefff0c78 (diff)
downloadgcc-8564ad21d5bbb3e41ddbb083a44e3b67bc4b1439.tar.gz
* 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
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 a3ff5bd3058..e1c75abff95 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