This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[c++ patch]: fix testsuite warning
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Steve Ellcey <sje at cup dot hp dot com>
- Date: Tue, 27 Aug 2002 21:55:55 +0100
- Subject: [c++ patch]: fix testsuite warning
- Organization: Codesourcery LLC
hi,
I've installed this to fix an erronous warning on LP64 machines.
Tested by Steve Ellcey sje@cup.hp.com on such hardware, thanks.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2002-08-27 Nathan Sidwell <nathan@codesourcery.com>
* g++.dg/other/offsetof1.C: Avoid cast warning.
Index: testsuite/g++.dg/other/offsetof1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/other/offsetof1.C,v
retrieving revision 1.1
diff -c -3 -p -r1.1 offsetof1.C
*** testsuite/g++.dg/other/offsetof1.C 15 Aug 2002 10:34:05 -0000 1.1
--- testsuite/g++.dg/other/offsetof1.C 27 Aug 2002 20:52:50 -0000
*************** struct F
*** 11,14 ****
char j;
};
! static int ary[((unsigned) &((struct F *)0)->j)];
--- 11,14 ----
char j;
};
! static int ary[((__SIZE_TYPE__)&((struct F *)0)->j)];