diff options
author | Andy Hutchinson <hutchinsonandy@aim.com> | 2008-05-20 23:56:28 +0000 |
---|---|---|
committer | Andy Hutchinson <hutchinsonandy@gcc.gnu.org> | 2008-05-20 23:56:28 +0000 |
commit | 77b4cc3594a80157608a23062fe548bce7743673 (patch) | |
tree | 86c616e0adeb39c95e26a2e008b9712e142299df | |
parent | 5f7a85827021b68b5dfaa09ee56b7afe3c82b83a (diff) | |
download | gcc-77b4cc3594a80157608a23062fe548bce7743673.zip gcc-77b4cc3594a80157608a23062fe548bce7743673.tar.gz gcc-77b4cc3594a80157608a23062fe548bce7743673.tar.bz2 |
re PR testsuite/34889 (gcc.c-torture/execute/builtins/pr23484-chk.c fails on 16 bit integer platforms)
PR testsuite/34889
* gcc.c-torture/execute/builtins/pr23484-chk.c : Correct test for 16bit int target.
From-SVN: r135694
-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 (); |