summaryrefslogtreecommitdiff
path: root/gcc/config/i386/xm-sco.h
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-12-13 01:43:14 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-12-13 01:43:14 +0000
commit2565759f1fde066314553a347cabf7a49e6bf00e (patch)
tree6fc74edeaf1af5abe1ad8f4a4042876273a7abea /gcc/config/i386/xm-sco.h
parentcbbedc328fe604239adb7268f5250682f9904a5d (diff)
downloadgcc-2565759f1fde066314553a347cabf7a49e6bf00e.tar.gz
(ONLY_INT_FIELDS): Define if not __GNUC__.
(ONLY_INT_FIELDS): Define if not __GNUC__. (CODE_FIELD_BUG): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2871 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/xm-sco.h')
-rw-r--r--gcc/config/i386/xm-sco.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/i386/xm-sco.h b/gcc/config/i386/xm-sco.h
index 4177ae15768..b8bf5bd5ccb 100644
--- a/gcc/config/i386/xm-sco.h
+++ b/gcc/config/i386/xm-sco.h
@@ -9,3 +9,11 @@
/* Big buffers improve performance. */
#define IO_BUFFER_SIZE (0x8000 - 1024)
+
+#ifndef __GNUC__
+/* The SCO compiler gets it wrong, and treats enumerated bitfields
+ as signed quantities, making it impossible to use an 8-bit enum
+ for compiling GNU C++. */
+#define ONLY_INT_FIELDS 1
+#define CODE_FIELD_BUG 1
+#endif