diff options
author | Andreas Krebbel <krebbel1@de.ibm.com> | 2008-11-20 22:11:42 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2008-11-20 22:11:42 +0000 |
commit | d7a9e5c0b91e9e5174a107f0a1d25426208222d0 (patch) | |
tree | 1b332ff6f16fa329f15f2e2d3c7f26e2e434c100 /gcc | |
parent | 6a238c58a641c2c74f3e1e0ea1d645c310517f2b (diff) | |
download | gcc-d7a9e5c0b91e9e5174a107f0a1d25426208222d0.zip gcc-d7a9e5c0b91e9e5174a107f0a1d25426208222d0.tar.gz gcc-d7a9e5c0b91e9e5174a107f0a1d25426208222d0.tar.bz2 |
sync-2.c: Add type cast to avoid folding.
2008-11-20 Andreas Krebbel <krebbel1@de.ibm.com>
* gcc.dg/sync-2.c: Add type cast to avoid folding.
* gcc.dg/sync-3.c: Likewise.
From-SVN: r142064
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/sync-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/sync-3.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3a767f1..49f4a87 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-11-20 Andreas Krebbel <krebbel1@de.ibm.com> + + * gcc.dg/sync-2.c: Add type cast to avoid folding. + * gcc.dg/sync-3.c: Likewise. + 2008-11-20 Jakub Jelinek <jakub@redhat.com> PR middle-end/29215 diff --git a/gcc/testsuite/gcc.dg/sync-2.c b/gcc/testsuite/gcc.dg/sync-2.c index 7fea8f8..7794ffd 100644 --- a/gcc/testsuite/gcc.dg/sync-2.c +++ b/gcc/testsuite/gcc.dg/sync-2.c @@ -46,7 +46,7 @@ do_qi (void) abort (); if (__sync_xor_and_fetch(AI+16, 9) != 9) abort (); - if (__sync_nand_and_fetch(AI+17, 7) != ~7) + if (__sync_nand_and_fetch(AI+17, 7) != (char)~7) abort (); } diff --git a/gcc/testsuite/gcc.dg/sync-3.c b/gcc/testsuite/gcc.dg/sync-3.c index a359d16..f912405 100644 --- a/gcc/testsuite/gcc.dg/sync-3.c +++ b/gcc/testsuite/gcc.dg/sync-3.c @@ -43,7 +43,7 @@ do_qi (void) abort (); if (__sync_xor_and_fetch(AI+16, 9) != 9) abort (); - if (__sync_nand_and_fetch(AI+17, 7) != ~7) /* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" } */ + if (__sync_nand_and_fetch(AI+17, 7) != (char)~7) /* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" } */ abort (); } |