This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] g++.dg/compat/struct-layout-1 tests
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Janis Johnson <janis187 at us dot ibm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Apr 2005 17:33:44 +0000 (UTC)
- Subject: Re: [PATCH] g++.dg/compat/struct-layout-1 tests
- References: <20050405171920.GX17420@devserv.devel.redhat.com>
On Tue, 5 Apr 2005, Jakub Jelinek wrote:
> This patch adds a variation on the gcc.dg/compat/struct-layout-1
> tests for C++. I have removed stuff that was specific to C
> and allowed bitfields larger than their type. Still, it only
> tests POD types (I was surprised struct S { _Complex int i; }
> is non-POD), for non-POD a different test type will be needed
> (e.g. avoiding vaarg testing etc.).
Does this test linking with C, for those cases which are valid as both C
and C++ and are meant to have the same layout in both (in particular,
excluding empty structs)? Ability to test linking using the new C and C++
compilers, the new C++ compiler and an old C compiler or the new C
compiler and an old C++ compiler would seem to make sense, although of
course it isn't needed for the initial patch; it can be added later.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)