1 #include "symbol.h" 2 #include "target.h" 3 #include "machine.h" 4 5 init_openrisc(const struct target * self)6static void init_openrisc(const struct target *self) 7 { 8 fast16_ctype = &int_ctype; 9 ufast16_ctype = &uint_ctype; 10 fast32_ctype = &int_ctype; 11 ufast32_ctype = &uint_ctype; 12 13 wchar_ctype = &uint_ctype; 14 } 15 predefine_openrisc(const struct target * self)16static void predefine_openrisc(const struct target *self) 17 { 18 predefine_weak("__OR1K__"); 19 predefine_weak("__or1k__"); 20 } 21 22 const struct target target_openrisc = { 23 .mach = MACH_NDS32, 24 .bitness = ARCH_LP32, 25 .big_endian = true, 26 27 .bits_in_longdouble = 64, 28 29 .init = init_openrisc, 30 .predefine = predefine_openrisc, 31 }; 32