PING^1: [PATCH] Add TYPE_EMPTY_RECORD for C++ empty class

H.J. Lu hjl.tools@gmail.com
Wed Mar 16 11:53:00 GMT 2016


On Wed, Mar 16, 2016 at 2:45 AM, Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com> wrote:
> On March 16, 2016 3:17:20 AM GMT+01:00, "H.J. Lu" <hjl.tools@gmail.com> wrote:
>
>>> Where is the current definition of empty types you're proposing for
>>use in
>>> GCC?  Is the behavior of this case clear from that definition?
>>
>>https://gcc.gnu.org/ml/gcc/2016-03/msg00071.html
>>
>>Jason's patch follows it.  Here is a test for struct with zero-size
>>array of empty type, which is treated as empty type.
>
> index 0000000..489eb3a
> --- /dev/null
> +++ b/gcc/testsuite/g++.dg/abi/empty19.C
> @@ -0,0 +1,17 @@
> +// PR c++/60336
> +// { dg-do run }
> +// { dg-options "-Wabi=9 -x c" }
> +// { dg-additional-sources "empty14a.c" }
>
> 14a ? Not 19a ?
> Thanks
>
>

Here is the updated patch.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-test-for-struct-with-zero-size-array-of-empty-.patch
Type: text/x-patch
Size: 1816 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160316/74c5c32d/attachment.bin>


More information about the Gcc-patches mailing list