param_key: fix container of when no struct member is referenced
[smatch.git] / target-openrisc.c
blobad25ff2791d311e6dc9d1a09d734e6404230e3d0
1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
6 static void init_openrisc(const struct target *self)
8 fast16_ctype = &int_ctype;
9 ufast16_ctype = &uint_ctype;
10 fast32_ctype = &int_ctype;
11 ufast32_ctype = &uint_ctype;
13 wchar_ctype = &uint_ctype;
16 static void predefine_openrisc(const struct target *self)
18 predefine_weak("__OR1K__");
19 predefine_weak("__or1k__");
22 const struct target target_openrisc = {
23 .mach = MACH_NDS32,
24 .bitness = ARCH_LP32,
25 .big_endian = true,
27 .bits_in_longdouble = 64,
29 .init = init_openrisc,
30 .predefine = predefine_openrisc,