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
+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
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 ();
}
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 ();
}