void arc_cpu_cpp_builtins (cpp_reader * pfile) { builtin_assert ("cpu=arc"); builtin_assert ("machine=arc"); builtin_define ("__arc__"); #undef ARC_C_DEF #define ARC_C_DEF(NAME, CONDITION) \ def_or_undef_macro (pfile, NAME, CONDITION); #include "arc-c.def" #undef ARC_C_DEF builtin_define_with_int_value ("__ARC_TLS_REGNO__", arc_tp_regno); builtin_define_with_int_value ("__ARC_LPC_WIDTH__", arc_lpcwidth); builtin_define (TARGET_BIG_ENDIAN ? "__BIG_ENDIAN__" : "__LITTLE_ENDIAN__"); if (TARGET_BIG_ENDIAN) builtin_define ("__big_endian__"); }
void arm_cpu_cpp_builtins (struct cpp_reader * pfile) { builtin_assert ("cpu=arm"); builtin_assert ("machine=arm"); arm_cpu_builtins (pfile); }
/* Implement TARGET_CPU_CPP_BUILTINS. */ void tilepro_cpu_cpp_builtins (struct cpp_reader *pfile) { builtin_define ("__tile__"); builtin_define ("__tilepro__"); builtin_assert ("cpu=tile"); builtin_assert ("machine=tile"); builtin_define ("__tile_chip__=1"); builtin_define ("__tile_chip_rev__=0"); builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); TILEPRO_CPU_CPP_ENDIAN_BUILTINS (); GNU_USER_TARGET_OS_CPP_BUILTINS (); }
/* Implement TARGET_CPU_CPP_BUILTINS. */ void tilegx_cpu_cpp_builtins (struct cpp_reader *pfile) { builtin_define ("__tile__"); builtin_define ("__tilegx__"); builtin_define ("__tile_chip__=10"); builtin_define ("__tile_chip_rev__=0"); builtin_assert ("cpu=tilegx"); builtin_assert ("machine=tilegx"); if (TARGET_32BIT) builtin_define ("__tilegx32__"); builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); TILEGX_CPU_CPP_ENDIAN_BUILTINS (); GNU_USER_TARGET_OS_CPP_BUILTINS (); }
void microblaze_cpp_define (cpp_reader *pfile) { builtin_assert ("cpu=microblaze"); builtin_assert ("machine=microblaze"); builtin_define ("__MICROBLAZE__"); builtin_define ("__microblaze__"); if (TARGET_LITTLE_ENDIAN) { builtin_define ("_LITTLE_ENDIAN"); builtin_define ("__LITTLE_ENDIAN__"); builtin_define ("__MICROBLAZEEL__"); } else { builtin_define ("_BIG_ENDIAN"); builtin_define ("__BIG_ENDIAN__"); builtin_define ("__MICROBLAZEEB__"); } if (!TARGET_SOFT_MUL) { if (!flag_iso) builtin_define ("HAVE_HW_MUL"); builtin_define ("__HAVE_HW_MUL__"); } if (TARGET_MULTIPLY_HIGH) { if (!flag_iso) builtin_define ("HAVE_HW_MUL_HIGH"); builtin_define ("__HAVE_HW_MUL_HIGH__"); } if (!TARGET_SOFT_DIV) { if (!flag_iso) builtin_define ("HAVE_HW_DIV"); builtin_define ("__HAVE_HW_DIV__"); } if (TARGET_BARREL_SHIFT) { if (!flag_iso) builtin_define ("HAVE_HW_BSHIFT"); builtin_define ("__HAVE_HW_BSHIFT__"); } if (TARGET_PATTERN_COMPARE) { if (!flag_iso) builtin_define ("HAVE_HW_PCMP"); builtin_define ("__HAVE_HW_PCMP__"); } if (TARGET_HARD_FLOAT) { if (!flag_iso) builtin_define ("HAVE_HW_FPU"); builtin_define ("__HAVE_HW_FPU__"); } if (TARGET_FLOAT_CONVERT) { if (!flag_iso) builtin_define ("HAVE_HW_FPU_CONVERT"); builtin_define ("__HAVE_HW_FPU_CONVERT__"); } if (TARGET_FLOAT_SQRT) { if (!flag_iso) builtin_define ("HAVE_HW_FPU_SQRT"); builtin_define ("__HAVE_HW_FPU_SQRT__"); } }