if { [istarget mips*-*-*] } {
return [check_no_compiler_messages hard_float assembly {
#if (defined __mips_soft_float || defined __mips16)
- #error FOO
+ #error __mips_soft_float || __mips16
#endif
}]
}
return 0
# return [check_no_compiler_messages hard_float assembly {
#if defined __RX_64_BIT_DOUBLES__
- #error FOO
+ #error __RX_64_BIT_DOUBLES__
#endif
# }]
}
proc check_effective_target_mips64 { } {
return [check_no_compiler_messages mips64 assembly {
#ifndef __mips64
- #error FOO
+ #error !__mips64
#endif
}]
}
proc check_effective_target_nomips16 { } {
return [check_no_compiler_messages nomips16 object {
#ifndef __mips
- #error FOO
+ #error !__mips
#else
/* A cheap way of testing for -mflip-mips16. */
void foo (void) { asm ("addiu $20,$20,1"); }
proc check_effective_target_mips16_attribute { } {
return [check_no_compiler_messages mips16_attribute assembly {
#ifdef PIC
- #error FOO
+ #error PIC
#endif
#if defined __mips_hard_float \
&& (!defined _ABIO32 || _MIPS_SIM != _ABIO32) \
&& (!defined _ABIO64 || _MIPS_SIM != _ABIO64)
- #error FOO
+ #error __mips_hard_float && (!_ABIO32 || !_ABIO64)
#endif
} [add_options_for_mips16_attribute ""]]
}
# Otherwise assume LL/SC support for everything but MIPS I.
return [check_no_compiler_messages mips_llsc assembly {
#if __mips == 1
- #error FOO
+ #error __mips == 1
#endif
}]
}
return [check_no_compiler_messages mips_rel object {
#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) \
|| (defined _ABI64 && _MIPS_SIM == _ABI64)
- #error FOO
+ #error _ABIN32 && (_ABIN32 || _ABI64)
#endif
}]
}
}
return [check_no_compiler_messages mips_eabi object {
#ifndef __mips_eabi
- #error FOO
+ #error !__mips_eabi
#endif
}]
}
proc check_effective_target_nonpic { } {
return [check_no_compiler_messages nonpic assembly {
#if __PIC__
- #error FOO
+ #error __PIC__
#endif
}]
}
proc check_effective_target_ti_c67x { } {
return [check_no_compiler_messages ti_c67x assembly {
#if !defined(_TMS320C6700)
- #error FOO
+ #error !_TMS320C6700
#endif
}]
}
proc check_effective_target_ti_c64xp { } {
return [check_no_compiler_messages ti_c64xp assembly {
#if !defined(_TMS320C6400_PLUS)
- #error FOO
+ #error !_TMS320C6400_PLUS
#endif
}]
}
#ifdef __OBJC2__
int dummy[1];
#else
- #error
- #endif
+ #error !__OBJC2__
+ #endif
}]
}
#ifdef __NEXT_RUNTIME__
int dummy[1];
#else
- #error
- #endif
+ #error !__NEXT_RUNTIME__
+ #endif
}]
}
proc check_effective_target_aarch64_big_endian { } {
return [check_no_compiler_messages aarch64_big_endian assembly {
#if !defined(__aarch64__) || !defined(__AARCH64EB__)
- #error FOO
+ #error !__aarch64__ || !__AARCH64EB__
#endif
}]
}
proc check_effective_target_arm32 { } {
return [check_no_compiler_messages arm32 assembly {
#if !defined(__arm__) || (defined(__thumb__) && !defined(__thumb2__))
- #error FOO
+ #error !__arm || __thumb__ && !__thumb2__
#endif
}]
}
proc check_effective_target_arm_nothumb { } {
return [check_no_compiler_messages arm_nothumb assembly {
#if !defined(__arm__) || (defined(__thumb__) || defined(__thumb2__))
- #error FOO
+ #error !__arm__ || __thumb || __thumb2__
#endif
}]
}
proc check_effective_target_arm_little_endian { } {
return [check_no_compiler_messages arm_little_endian assembly {
#if !defined(__arm__) || !defined(__ARMEL__)
- #error FOO
+ #error !__arm__ || !__ARMEL__
#endif
}]
}
#if !defined(__arm__) \
|| (defined(__ARM_FEATURE_UNALIGNED) \
&& defined(__ARMEL__))
- #error FOO
+ #error !__arm__ || (__ARMEL__ && __ARM_FEATURE_UNALIGNED)
#endif
}]
}
}
return [check_no_compiler_messages arm_arch_FUNC_ok assembly {
#if !defined (DEF)
- #error FOO
+ #error !DEF
#endif
} "FLAG" ]
}
proc check_effective_target_arm_arm_ok { } {
return [check_no_compiler_messages arm_arm_ok assembly {
#if !defined (__arm__) || defined (__thumb__) || defined (__thumb2__)
- #error FOO
+ #error !__arm__ || __thumb__ || __thumb2__
#endif
} "-marm"]
}
proc check_effective_target_arm_thumb1_ok { } {
return [check_no_compiler_messages arm_thumb1_ok assembly {
#if !defined(__arm__) || !defined(__thumb__) || defined(__thumb2__)
- #error FOO
+ #error !__arm__ || !__thumb__ || __thumb2__
#endif
int foo (int i) { return i; }
} "-mthumb"]
proc check_effective_target_arm_thumb2_ok { } {
return [check_no_compiler_messages arm_thumb2_ok assembly {
#if !defined(__thumb2__)
- #error FOO
+ #error !__thumb2__
#endif
int foo (int i) { return i; }
} "-mthumb"]
proc check_effective_target_arm_thumb1 { } {
return [check_no_compiler_messages arm_thumb1 assembly {
#if !defined(__arm__) || !defined(__thumb__) || defined(__thumb2__)
- #error not thumb1
+ #error !__arm__ || !__thumb__ || __thumb2__
#endif
int i;
} ""]
proc check_effective_target_arm_thumb2 { } {
return [check_no_compiler_messages arm_thumb2 assembly {
#if !defined(__thumb2__)
- #error FOO
+ #error !__thumb2__
#endif
int i;
} ""]
#if !defined(__ARM_ARCH_7M__) \
&& !defined (__ARM_ARCH_7EM__) \
&& !defined (__ARM_ARCH_6M__)
- #error FOO
+ #error !__ARM_ARCH_7M__ && !__ARM_ARCH_7EM__ && !__ARM_ARCH_6M__
#endif
int i;
} "-mthumb"]
proc check_effective_target_mips_loongson { } {
return [check_no_compiler_messages loongson assembly {
#if !defined(__mips_loongson_vector_rev)
- #error FOO
+ #error !__mips_loongson_vector_rev
#endif
}]
}
proc check_effective_target_coldfire_fpu { } {
return [check_no_compiler_messages coldfire_fpu assembly {
#ifndef __mcffpu__
- #error FOO
+ #error !__mcffpu__
#endif
}]
}
return [check_no_compiler_messages uclibc object {
#include <features.h>
#if !defined (__UCLIBC__)
- #error FOO
+ #error !__UCLIBC__
#endif
}]
}
if {[check_no_compiler_messages using_pic2 assembly {
#if __PIC__ != 2
- #error FOO
+ #error __PIC__ != 2
#endif
}]} {
set flags_to_postpone "-fPIE"
}
if {[check_no_compiler_messages using_pic1 assembly {
#if __PIC__ != 1
- #error FOO
+ #error __PIC__ != 1
#endif
}]} {
set flags_to_postpone "-fpie"
close $file
append contents {
#ifndef HAVE_C99_RUNTIME
- #error FOO
+ #error !HAVE_C99_RUNTIME
#endif
}
check_no_compiler_messages_nocache c99_runtime assembly \