summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-02-27 16:28:26 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-02-27 16:28:26 +0000
commit04ba08ddaafabd27c10d9f1c3a1abc3998c604b2 (patch)
treebe6701769be8a88ce283ac0dd1ec3d6bb3d609e1 /gnu/egcs/gcc
parente371f34162c9f3950de6eda633385923605d8994 (diff)
Teach gcc the proper "set" syntax for __attribute__ ((alias)) to work
on mvme88k. ok deraadt@ espie@
Diffstat (limited to 'gnu/egcs/gcc')
-rw-r--r--gnu/egcs/gcc/config/m88k/openbsd.h5
-rw-r--r--gnu/egcs/gcc/config/openbsd.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/config/m88k/openbsd.h b/gnu/egcs/gcc/config/m88k/openbsd.h
index 87e6e9ca6ce..2e93318b28d 100644
--- a/gnu/egcs/gcc/config/m88k/openbsd.h
+++ b/gnu/egcs/gcc/config/m88k/openbsd.h
@@ -25,6 +25,11 @@ Boston, MA 02111-1307, USA. */
#include <aoutos.h>
#include <m88k/m88k.h>
+/* <m88k/m88k.h> provided a wrong SET_ASM_OP */
+#undef SET_ASM_OP
+#define SET_ASM_OP "equ"
+
+#define OBSD_HAS_CORRECT_ASM_OPS
#define OBSD_OLD_GAS
#define OBSD_NO_DYNAMIC_LIBRARIES
diff --git a/gnu/egcs/gcc/config/openbsd.h b/gnu/egcs/gcc/config/openbsd.h
index 3b9b3169ad2..453903be98a 100644
--- a/gnu/egcs/gcc/config/openbsd.h
+++ b/gnu/egcs/gcc/config/openbsd.h
@@ -36,6 +36,8 @@ Boston, MA 02111-1307, USA. */
OBSD_HAS_DECLARE_OBJECT:
PIC support, FUNCTION_NAME/FUNCTION_SIZE are independent, whereas
the corresponding logic for OBJECTS is necessarily coupled.
+ OBSD_HAS_CORRECT_ASM_OPS:
+ another mechanism provides correct ASM_OP values already.
There are also a few `default' defines such as ASM_WEAKEN_LABEL,
intended as common ground for arch that don't provide
@@ -167,6 +169,8 @@ Boston, MA 02111-1307, USA. */
yet (look for GRACE_PERIOD_EXPIRED in gas/config/obj-aout.c).
SET_ASM_OP is needed for attribute alias to work. */
+#ifndef OBSD_HAS_CORRECT_ASM_OPS
+
#undef TYPE_ASM_OP
#undef SIZE_ASM_OP
#undef SET_ASM_OP
@@ -175,6 +179,8 @@ Boston, MA 02111-1307, USA. */
#define SIZE_ASM_OP ".size"
#define SET_ASM_OP ".set"
+#endif
+
/* The following macro defines the format used to output the second
operand of the .type assembler directive. */
#undef TYPE_OPERAND_FMT