summaryrefslogtreecommitdiff
path: root/gcc/machmode.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-01-03 21:13:29 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2001-01-03 21:13:29 +0000
commit975d393ab8c7dc0527586d34881837924cbb0026 (patch)
tree4db5e76c3dc4ba9bc9acb3825530f9e397ea33bf /gcc/machmode.h
parent03dc032560d43abc8a9867472fdb22cbf0c6b9c7 (diff)
downloadgcc-975d393ab8c7dc0527586d34881837924cbb0026.tar.gz
gencodes.c (output_predicate_decls): New function.
* gencodes.c (output_predicate_decls): New function. (main): Call it. * machmode.h (GET_MODE_MASK): Arrange for it to be defined even if it is not the first time machmode.h is #included. * config/sh/sh.c (fpul_operand): Declare MODE argument. * tm.texi (PREDICATE_CODES): Document predicate declarations. * gcc.texi (Copyright): Added 2001. From-SVN: r38673
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r--gcc/machmode.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h
index e565cb70d21..230d8b0596a 100644
--- a/gcc/machmode.h
+++ b/gcc/machmode.h
@@ -1,5 +1,5 @@
/* Machine mode definitions for GNU C-Compiler; included by rtl.h and tree.h.
- Copyright (C) 1991, 1993, 1994, 1996, 1998, 1999, 2000
+ Copyright (C) 1991, 1993, 1994, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -96,7 +96,9 @@ extern const unsigned int mode_unit_size[];
extern const unsigned int mode_bitsize[];
#define GET_MODE_BITSIZE(MODE) (mode_bitsize[(int) (MODE)])
-#ifdef HOST_WIDE_INT
+#endif /* not HAVE_MACHINE_MODES */
+
+#if defined HOST_WIDE_INT && ! defined GET_MODE_MASK
/* Get a bitmask containing 1 for all bits in a word
that fit within mode MODE. */
@@ -105,7 +107,10 @@ extern const unsigned HOST_WIDE_INT mode_mask_array[];
#define GET_MODE_MASK(MODE) mode_mask_array[(int) (MODE)]
-#endif /* HOST_WIDE_INT */
+#endif /* defined (HOST_WIDE_INT) && ! defined GET_MODE_MASK */
+
+#if ! defined GET_MODE_WIDER_MODE || ! defined GET_MODE_ALIGNMENT \
+ || ! defined GET_CLASS_NARROWEST_MODE
/* Get the next wider natural mode (eg, QI -> HI -> SI -> DI -> TI). */
@@ -153,4 +158,5 @@ extern enum machine_mode byte_mode;
extern enum machine_mode word_mode;
extern enum machine_mode ptr_mode;
-#endif /* not HAVE_MACHINE_MODES */
+#endif /* ! defined GET_MODE_WIDER_MODE || ! defined GET_MODE_ALIGNMENT
+ || ! defined GET_CLASS_NARROWEST_MODE */