* gcc.dg/pr52549.c: Fix test for long != void*
* gcc.c-torture/execute/pr52979-1.x: New file.
* gcc.c-torture/execute/pr52979-2.x: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187588
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-05-16 Georg-Johann Lay <avr@gjlay.de>
+
+ PR testsuite/52641
+ * gcc.dg/pr52549.c: Fix test for long != void*
+ * gcc.c-torture/execute/pr52979-1.x: New file.
+ * gcc.c-torture/execute/pr52979-2.x: New file.
+
2012-05-16 Dodji Seketeli <dodji@redhat.com>
PR preprocessor/7263
--- /dev/null
+load_lib target-supports.exp
+
+if { [check_effective_target_int32plus] } {
+ return 0
+}
+
+return 1;
--- /dev/null
+load_lib target-supports.exp
+
+if { [check_effective_target_int32plus] } {
+ return 0
+}
+
+return 1;
/* { dg-do compile } */
+#if __SIZEOF_POINTER__ == __SIZEOF_LONG__
_mark (long obj, int i, char *a)
{
(char *)&(((long *)(obj)) [i]) - a;
}
+#elif __SIZEOF_POINTER__ == __SIZEOF_INT__
+_mark (int obj, int i, char *a)
+{
+ (char *)&(((int *)(obj)) [i]) - a;
+}
+#endif