aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-05-18 14:08:25 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-05-18 14:08:25 -0400
commitfd973b936ec99a25133edd7aa7356a2b65ca62e8 (patch)
tree06630487a621e05d7edc14d870d380fb31d3e172 /gcc
parent3ea57002e82a31930987cec3b43d3b42a426c671 (diff)
downloadgcc-fd973b936ec99a25133edd7aa7356a2b65ca62e8.zip
gcc-fd973b936ec99a25133edd7aa7356a2b65ca62e8.tar.gz
gcc-fd973b936ec99a25133edd7aa7356a2b65ca62e8.tar.bz2
Provide a default for TARGET_DEFAULT.
Take "or" of TARGET_DEFAULT and TARGET_CPU_DEFAULT everywhere. From-SVN: r12025
Diffstat (limited to 'gcc')
-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 9e4f8d9..b687fbc 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 */