This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: PR4884
- From: Richard Henderson <rth at redhat dot com>
- To: Ulrich Weigand <Ulrich dot Weigand at de dot ibm dot com>
- Cc: mark at codesourcery dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 27 Mar 2002 10:39:49 -0800
- Subject: Re: C++ PATCH: PR4884
- References: <OF9918F31A.81F3679C-ONC1256B89.005C8A91@de.ibm.com>
On Wed, Mar 27, 2002 at 06:00:21PM +0100, Ulrich Weigand wrote:
> This new test case (g++.dg/init/new1.C) fails with
> 'operator new' takes type 'size_t' ('long unsigned int') as first parameter
> on s390, where size_t is in fact not unsigned int ...
Yeah, it fails lots of places. Fixed like so.
r~
* g++.dg/init/new1.C: Fix size_t.
Index: g++.dg/init/new1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/init/Attic/new1.C,v
retrieving revision 1.1.2.1
diff -c -p -d -u -r1.1.2.1 new1.C
--- new1.C 2002/03/26 18:29:09 1.1.2.1
+++ new1.C 2002/03/27 18:38:44
@@ -3,7 +3,7 @@
// { dg-do compile }
// { dg-options "-fvolatile" }
-typedef unsigned int size_t;
+typedef __SIZE_TYPE__ size_t;
class bar {
int i;