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: Fix g++.dg/graphite/pr42681.C for 32bit targets


Hi,

On Linux/ia32, I got

/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/g++.dg/graphite/pr42681.C:4:52:
error: 'operator new' takes type 'size_t' ('unsigned int') as first
parameter^M

I checked in this patch to fix it.


H.J.
---
Index ChangeLog
===================================================================
--- ChangeLog	(revision 155909)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+2010-01-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* g++.dg/graphite/pr42681.C (size_t): Use __SIZE_TYPE__.
+
 2010-01-14  Martin Jambor  <mjambor@suse.cz>
 
 	PR tree-optimization/42714
Index: g++.dg/graphite/pr42681.C
===================================================================
--- g++.dg/graphite/pr42681.C	(revision 155909)
+++ g++.dg/graphite/pr42681.C	(working copy)
@@ -1,6 +1,6 @@
 /* { dg-options "-O1 -fgraphite-identity -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine" } */
 
-typedef long unsigned int size_t;
+typedef __SIZE_TYPE__ size_t;
 inline void* operator new(size_t, void* __p) throw() { return __p; }
 
 struct A {


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