mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-19 10:15:45 +08:00
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
This commit is contained in:
parent
6a238c58a6
commit
d7a9e5c0b9
@ -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
|
||||
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user