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]

Re: C++ PATCH: PR4884


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;


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