aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/target-s390.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-06-28 14:59:37 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-07-14 00:05:28 +0200
commit99bcbcaf803f894fafc90d22ab4fc5db73a3016e (patch)
tree999f138632271532e8be6ea38f823e55ca01b08d /target-s390.c
parentfa09d838d4b241c98f85657669e11f207d26d4fd (diff)
downloadsparse-dev-99bcbcaf803f894fafc90d22ab4fc5db73a3016e.tar.gz
arch: add predefines __INT_FAST${N}_TYPE__
We just added __INT_LEAST${N}_TYPE__, so add these ones too as they looks slightly more useful. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'target-s390.c')
-rw-r--r--target-s390.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/target-s390.c b/target-s390.c
index 9dbc810e..cdbd685a 100644
--- a/target-s390.c
+++ b/target-s390.c
@@ -4,6 +4,14 @@
#include "expression.h"
+static void init_s390(const struct target *self)
+{
+ fast16_ctype = &int_ctype;
+ ufast16_ctype = &uint_ctype;
+ fast32_ctype = &int_ctype;
+ ufast32_ctype = &uint_ctype;
+}
+
static void predefine_s390(const struct target *self)
{
predefine("__s390__", 1, "1");
@@ -31,6 +39,7 @@ const struct target target_s390 = {
.target_64bit = &target_s390x,
+ .init = init_s390,
.predefine = predefine_s390,
.asm_constraint = asm_constraint_s390,
};