summaryrefslogtreecommitdiff
path: root/gcc/config/convex
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-05-18 18:08:25 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-05-18 18:08:25 +0000
commita575e5cf53bd13cc30d89269765b1114efd3a86a (patch)
tree06630487a621e05d7edc14d870d380fb31d3e172 /gcc/config/convex
parent8d0ebe11bacb3bd379001cb0a44a95ad45939d9c (diff)
downloadgcc-a575e5cf53bd13cc30d89269765b1114efd3a86a.tar.gz
Provide a default for TARGET_DEFAULT.
Take "or" of TARGET_DEFAULT and TARGET_CPU_DEFAULT everywhere. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12025 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/convex')
-rw-r--r--gcc/config/convex/convex.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/config/convex/convex.h b/gcc/config/convex/convex.h
index 9e4f8d9b082..b687fbc045b 100644
--- a/gcc/config/convex/convex.h
+++ b/gcc/config/convex/convex.h
@@ -45,7 +45,7 @@ extern int target_flags;
An empty string NAME is used to identify the default VALUE. */
#ifndef TARGET_DEFAULT
-#error Use one of convex1.h, convex2.h, etc.
+#define TARGET_DEFAULT 0
#endif
#define TARGET_SWITCHES \
@@ -62,7 +62,7 @@ extern int target_flags;
{ "volatile-nocache", 0400 }, \
{ "long64", 01000 }, \
{ "long32", -01000 }, \
- { "", TARGET_DEFAULT }}
+ { "", TARGET_DEFAULT | TARGET_CPU_DEFAULT}}
/* Macros used in the machine description to test the flags. */
@@ -81,8 +81,8 @@ extern int target_flags;
init_convex (); \
/* To compile system header files, allow $ in identifiers even if -ansi */ \
dollars_in_ident = 1; \
- if ((target_flags & 077) != (TARGET_DEFAULT & 077)) \
- target_flags &= ~TARGET_DEFAULT; \
+ if ((target_flags & 077) != ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 077)) \
+ target_flags &= ~ (TARGET_DEFAULT | TARGET_CPU_DEFAULT); \
if (target_flags & 001) \
target_cpu = 0; \
else if (target_flags & 006) \
@@ -106,7 +106,7 @@ extern int target_flags;
Make a target-dependent __convex_cxx__ define to relay the target cpu
to the program being compiled. */
-#if TARGET_DEFAULT & 1
+#if (TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 1
/* C1 default */
@@ -158,7 +158,7 @@ extern int target_flags;
#endif
-#if TARGET_DEFAULT & 2
+#if (TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 2
/* C2 default */
@@ -210,7 +210,7 @@ extern int target_flags;
#endif
-#if TARGET_DEFAULT & 4
+#if (TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 4
/* C32 default */
@@ -262,7 +262,7 @@ extern int target_flags;
#endif
-#if TARGET_DEFAULT & 010
+#if (TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 010
/* C34 default */
@@ -314,7 +314,7 @@ extern int target_flags;
#endif
-#if TARGET_DEFAULT & 020
+#if (TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 020
/* C38 default */