smatch: save less stuff, run faster
[smatch.git] / target-sh.c
blobd3a66180a0aa826b05e45d863d924fd83527fa45
1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
6 static void init_sh(const struct target *self)
8 int64_ctype = &llong_ctype;
9 uint64_ctype = &ullong_ctype;
10 intptr_ctype = &int_ctype;
11 uintptr_ctype = &uint_ctype;
13 fast16_ctype = &int_ctype;
14 ufast16_ctype = &uint_ctype;
15 fast32_ctype = &int_ctype;
16 ufast32_ctype = &uint_ctype;
18 wchar_ctype = &long_ctype;
21 static void predefine_sh(const struct target *self)
23 predefine_weak("__SH4__");
24 predefine_weak("__sh__");
27 const struct target target_sh = {
28 .mach = MACH_SH,
29 .bitness = ARCH_LP32,
30 .big_endian = false,
32 .bits_in_longdouble = 64,
34 .init = init_sh,
35 .predefine = predefine_sh,