math: array parameters can be NULL
[smatch.git] / target-arm.c
blob0d7c6134795fb49d3e583c64d559e4375796263c
1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
6 static void predefine_arm(const struct target *self)
8 predefine("__arm__", 1, "1");
9 predefine("__VFP_FP__", 1, "1");
11 switch (arch_fp_abi) {
12 case FP_ABI_HARD:
13 predefine("__ARM_PCS_VFP", 1, "1");
14 break;
15 case FP_ABI_SOFT:
16 predefine("__SOFTFP__", 1, "1");
17 /* fall-through */
18 case FP_ABI_HYBRID:
19 predefine("__ARM_PCS", 1, "1");
20 break;
24 const struct target target_arm = {
25 .mach = MACH_ARM,
26 .bitness = ARCH_LP32,
27 .big_endian = 0,
28 .unsigned_char = 1,
30 .wchar = &uint_ctype,
32 .bits_in_longdouble = 64,
33 .max_fp_alignment = 8,
35 .predefine = predefine_arm,