Hi,

this patch fixes an LLP64 issue in g++.dg's testsuite.

ChangeLog

2013-03-22  Kai Tietz  <kti...@redhat.com>

        * g++.dg/torture/20121105-1.C: Adjust for LLP64 targets.

Ok for apply?

Regards,
Kai

Index: gcc/testsuite/g++.dg/torture/20121105-1.C
===================================================================
--- gcc/testsuite/g++.dg/torture/20121105-1.C   (Revision 196898)
+++ gcc/testsuite/g++.dg/torture/20121105-1.C   (Arbeitskopie)
@@ -2,6 +2,8 @@
 // Reported by Remi Vanicat <vani...@debian.org>
 // Reduced testcase by Markus Trippelsdorf <mar...@trippelsdorf.de>

+__extension__ typedef __INTPTR_TYPE__ intptr_t;
+
 struct A;
 struct B
 {
@@ -25,7 +27,7 @@ struct D
 };

 D c(0);
-const long d = (long)&c;
+const intptr_t d = (intptr_t)&c;
 B *const   e = (B *)&d;

 static bool

Reply via email to