This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch testsuite]: g++.dg


Hi,

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

ChangeLog

2013-03-22  Kai Tietz  <ktietz@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 <vanicat@debian.org>
 // Reduced testcase by Markus Trippelsdorf <markus@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]