diff options
Diffstat (limited to 'gcc/testsuite/lib/target-supports.exp')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 115f992ee03..884e743d405 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2620,7 +2620,8 @@ proc check_effective_target_string_merging { } { } # Return 1 if target has the basic signed and unsigned types in -# <stdint.h>, 0 otherwise. +# <stdint.h>, 0 otherwise. This will be obsolete when GCC ensures a +# working <stdint.h> for all targets. proc check_effective_target_stdint_types { } { return [check_no_compiler_messages stdint_types assembly { @@ -2630,6 +2631,19 @@ proc check_effective_target_stdint_types { } { }] } +# Return 1 if target has the basic signed and unsigned types in +# <inttypes.h>, 0 otherwise. This is for tests that GCC's notions of +# these types agree with those in the header, as some systems have +# only <inttypes.h>. + +proc check_effective_target_inttypes_types { } { + return [check_no_compiler_messages inttypes_types assembly { + #include <inttypes.h> + int8_t a; int16_t b; int32_t c; int64_t d; + uint8_t e; uint16_t f; uint32_t g; uint64_t h; + }] +} + # Return 1 if programs are intended to be run on a simulator # (i.e. slowly) rather than hardware (i.e. fast). |