This is the mail archive of the
mailing list for the GCC project.
Re: [C++ PATCH] warning about empty extern "C" structures
- From: Christoph Hellwig <hch at infradead dot org>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Theodore dot Papadopoulo at sophia dot inria dot fr, Daniel Jacobowitz <drow at false dot org>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, Roman Kononov <kononov195-far at yahoo dot com>, DJ Delorie <dj at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 18 May 2006 18:44:27 +0100
- Subject: Re: [C++ PATCH] warning about empty extern "C" structures
- References: <1147888948.5977.38.camel@samoa> <200605171817.k4HIHa76013939@earth.phy.uc.edu>
On Wed, May 17, 2006 at 02:17:36PM -0400, Andrew Pinski wrote:
> No I am saying extern "C" does not change the layout of the struct from the C++ layout.
> Again this is not something I want warning about and I hope the kernel people remove
> invalid C (though valid GNU C) from their sources if they care anything about portablity.
In case you refer to the Linux kernel here we'll definitly not turn this
warning on. The Linux kernel is written in GNU C and there's no interest
in supporting people writing module in C++. The empty structures feature
is used intentionally and extensively all over the Linux kernel.