This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Use __SIZE_TYPE__ to define size_t
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Jun 2010 14:18:57 -0700
- Subject: PATCH: Use __SIZE_TYPE__ to define size_t
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
On Linux/ia32, I got
/export/gnu/import/git/gcc/gcc/testsuite/g++.dg/torture/pr44295.C:27:69:
error: 'operator new' takes type 'size_t' ('unsigned int') as first
parameter [-fpermissive]^M
I checked in this patch as an obvious fix.
H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog (revision 160192)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2010-06-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ * g++.dg/torture/pr44295.C (size_t): Use __SIZE_TYPE__.
+
2010-06-02 Jason Merrill <jason@redhat.com>
* g++.dg/ext/vector9.C: Expect typedef in error message.
Index: g++.dg/torture/pr44295.C
===================================================================
--- g++.dg/torture/pr44295.C (revision 160192)
+++ g++.dg/torture/pr44295.C (working copy)
@@ -1,6 +1,6 @@
/* { dg-do compile } */
extern "C" {
- typedef long unsigned int size_t;
+ typedef __SIZE_TYPE__ size_t;
typedef struct {
} __sigset_t;
typedef union {