diff options
| -rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/builtins/pr23484-chk.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 54c2693..2ade286 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2008-05-20 Andy Hutchinson <hutchinsonandy@aim.com> + PR testsuite/34889 + * gcc.c-torture/execute/builtins/pr23484-chk.c : Correct test for + 16bit int target. + +2008-05-20 Andy Hutchinson <hutchinsonandy@aim.com> + * gcc.dg/tree-ssa/ifc-20040816-1.c : signal.h not required. * gcc.c-torture/execute/ieee/fp-cmp-1.c : Do not include signal.h if SIGNAL_SUPPRESS. diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/pr23484-chk.c b/gcc/testsuite/gcc.c-torture/execute/builtins/pr23484-chk.c index 58d4db4..446fb6c 100644 --- a/gcc/testsuite/gcc.c-torture/execute/builtins/pr23484-chk.c +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/pr23484-chk.c @@ -41,9 +41,15 @@ test1 (void) abort (); memset (buf, 'L', sizeof (buf)); +#if(__SIZEOF_INT__ >= 4) if (snprintf (buf, l1 ? sizeof (buf) : 4, "%d", l1 + 65536) != 5 || memcmp (buf, "655\0LLLL", 8)) abort (); +#else + if (snprintf (buf, l1 ? sizeof (buf) : 4, "%d", l1 + 32700) != 5 + || memcmp (buf, "327\0LLLL", 8)) + abort (); +#endif if (chk_calls) abort (); |
