math: array parameters can be NULL
[smatch.git] / target-nios2.c
blob05f0926e2df94dd852edd84a00275ccfd6bc4c07
1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
4 #include "builtin.h"
7 static void predefine_nios2(const struct target *self)
9 predefine("__NIOS2__", 1, "1");
10 predefine("__nios2__", 1, "1");
12 if (arch_big_endian)
13 predefine("__nios2_big_endian__", 1, "1");
14 else
15 predefine("__nios2_little_endian__", 1, "1");
18 static const struct builtin_fn builtins_nios2[] = {
19 { "__builtin_rdctl", &int_ctype, 0, { &int_ctype }},
20 { "__builtin_wrctl", &void_ctype, 0, { &int_ctype, &int_ctype }},
21 { "__builtin_custom_ini", &int_ctype, 0, { &int_ctype }},
22 { }
25 const struct target target_nios2 = {
26 .mach = MACH_NIOS2,
27 .bitness = ARCH_LP32,
29 .predefine = predefine_nios2,
30 .builtins = builtins_nios2,