* gcc-dg/c99-stdint-1.c: Condition test for target without signal.h. XFAIL ptrdiff range test for avr.
* gcc-dg/c99-stdint-2.c: XFAIL for avr target.
* gcc-dg/c99-stdint-5.c: Condition test for target without signal.h.
* gcc-dg/c99-stdint-6.c: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154392
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-11-19 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
+
+ PR Testsuite/42114
+ * gcc-dg/c99-stdint-1.c: Condition test for target without signal.h.
+ XFAIL ptrdiff range test for avr.
+ * gcc-dg/c99-stdint-2.c: XFAIL for avr target.
+ * gcc-dg/c99-stdint-5.c: Condition test for target without signal.h.
+ * gcc-dg/c99-stdint-6.c: Ditto.
+
2009-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
* gcc/testsuite/gcc.target/powerpc/vsx-vrsave.c: Delete,
#include <stdint.h>
/* This and the later SIG_ATOMIC_* tests should be appropriately
conditioned for any freestanding targets with no <signal.h>. */
+#ifndef SIGNAL_SUPPRESS
#include <signal.h>
+#endif
/* Note that some of these conditions assume two's complement and no
padding bits; GCC only supports two's complement, and no supported
void
test_misc_limits (void)
{
+/* { dg-bogus "size" "ptrdiff is 16bits" { xfail avr-*-* } 218 } */
CHECK_SIGNED_LIMITS_2(__PTRDIFF_TYPE__, PTRDIFF_MIN, PTRDIFF_MAX, -65535L, 65535L);
+#ifndef SIGNAL_SUPPRESS
CHECK_LIMITS_2(sig_atomic_t, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, -127, 127, 255);
+#endif
CHECK_UNSIGNED_LIMITS_2(__SIZE_TYPE__, SIZE_MAX, 65535U);
CHECK_LIMITS_2(__WCHAR_TYPE__, WCHAR_MIN, WCHAR_MAX, -127, 127, 255);
CHECK_LIMITS_2(__WINT_TYPE__, WINT_MIN, WINT_MAX, -32767, 32767, 65535);
Freestanding version. */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors -ffreestanding" } */
-
+/* { dg-xfail-if "ptrdiff size is 16bits" { avr-*-* } } */
/* The test is that there are no diagnostics, so just include the
hosted version. */
#include "c99-stdint-1.c"
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
#include <stdint.h>
+#ifndef SIGNAL_SUPPRESS
#include <signal.h>
+#endif
#define CHECK_TYPES(TYPE1, TYPE2) \
do { TYPE1 a; TYPE2 *b = &a; TYPE2 c; TYPE1 *d = &c; } while (0)
#endif
CHECK_TYPES(__INTMAX_TYPE__, intmax_t);
CHECK_TYPES(__UINTMAX_TYPE__, uintmax_t);
+#ifndef SIGNAL_SUPPRESS
CHECK_TYPES(__SIG_ATOMIC_TYPE__, sig_atomic_t);
+#endif
}
/* { dg-options "-std=gnu99 -pedantic-errors -DNO_LEAST_TYPES -DNO_FAST_TYPES -DNO_MAX_TYPES" { target alpha*-dec-osf5* } } */
#include <inttypes.h>
+#ifndef SIGNAL_SUPPRESS
#include <signal.h>
+#endif
#define CHECK_TYPES(TYPE1, TYPE2) \
do { TYPE1 a; TYPE2 *b = &a; TYPE2 c; TYPE1 *d = &c; } while (0)
CHECK_TYPES(__INTMAX_TYPE__, intmax_t);
CHECK_TYPES(__UINTMAX_TYPE__, uintmax_t);
#endif
+#ifndef SIGNAL_SUPPRESS
CHECK_TYPES(__SIG_ATOMIC_TYPE__, sig_atomic_t);
+#endif
}