Patchwork [testsuite] : g++.dg

login
register
mail settings
Submitter Kai Tietz
Date March 22, 2013, 8:17 a.m.
Message ID <CAEwic4Zr3zim1Caa-SZQKNkY6KB4G4oAMV5VbmZ1OKJBsc1UJQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/229904/
State New
Headers show

Comments

Kai Tietz - March 22, 2013, 8:17 a.m.
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
Mike Stump - March 22, 2013, 7:50 p.m.
On Mar 22, 2013, at 1:17 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> 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?

Ok.

Patch

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