From patchwork Wed Mar 16 09:45:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Reutner-Fischer X-Patchwork-Id: 598199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qQ67b66n0z9sBM for ; Wed, 16 Mar 2016 20:46:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=wD3zMIxz; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :in-reply-to:references:mime-version:content-transfer-encoding :content-type:subject:from:date:to:cc:message-id; q=dns; s= default; b=m/7pOIk6NjJPCJ3pNiXPA4oHIk/5I//MZmHEKbCWvk6iU5UpfQoA0 76e51ieeh+M6UPHvPferow1rEGpRuZIuAUerzqREuozIB7agWjIt8+7pPXlAoHnU myJuiPG74/tm0STKDKT1cLWCUrUeySXlM/naOMVqHdaVeewk0XMluc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :in-reply-to:references:mime-version:content-transfer-encoding :content-type:subject:from:date:to:cc:message-id; s=default; bh= 5Kc2eLq2lqJRbPJn0L6ckxad9PQ=; b=wD3zMIxzDaNMK1GOkuPshC+XngVjAU2v l5YDxiafZckmJ99r0GDQGYXc0IqV17LRF5lrFYzngPMWlsuQNQ8Kfe7OjZPYSQQE vwAyfnlCD8WiuwfULz/8k4+Dc2oZv8rQLErVXxOsXzRfHkNL8QmckL1zLIBPH1Je eRrIurt1s7o= Received: (qmail 55337 invoked by alias); 16 Mar 2016 09:46:10 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 55313 invoked by uid 89); 16 Mar 2016 09:46:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:695, HContent-Transfer-Encoding:8bit X-HELO: mail-wm0-f53.google.com Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 16 Mar 2016 09:46:07 +0000 Received: by mail-wm0-f53.google.com with SMTP id l68so181452593wml.0 for ; Wed, 16 Mar 2016 02:46:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:from:date:to:cc:message-id; bh=Pj6o0xrrS37pAGUhvPMKmmoDPtke607eO9lwwZWWHz4=; b=fKfwc8olbj7bsi+JXOXwsyfzso0dmrpMn0sGT/frIxGYJUyZ7qfsdP+jSvemKlWR8w 9XJ6BFjVzM84UYGfN+tVrduJLYgByv9wUBIrAo1KRUaE5jR2tGbwhrGiUasKXx0W/tuR WW4MUEqFrLb9hE7lXSc1xrap74rl5ytL1a1CN5xZh7f2Y/FF4huqlQTuX727ZIS+Cg+/ CdeYg3O6Jiz1pMop6mnxLNousOVoTRjaKacYOlXvUBxwcCmVX2HnX9z1yYNKhV39h8SA aJ1xIyA/Tss/kNhCaN4xNpo1Dkj2n5BsiZd1VVsn0CYOv4V3l8hL/5GDnheEwH6zgtA8 E4SQ== X-Gm-Message-State: AD7BkJIOmJ8AFgFAhw47ktxOijlehSc0SvXONZ5jZxCy8XIAGWi18rAbqlCdzcIHcC08KA== X-Received: by 10.28.55.74 with SMTP id e71mr29486156wma.26.1458121564410; Wed, 16 Mar 2016 02:46:04 -0700 (PDT) Received: from [10.53.249.206] (089144227206.atnat0036.highway.a1.net. [89.144.227.206]) by smtp.gmail.com with ESMTPSA id 202sm2671917wmo.7.2016.03.16.02.46.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2016 02:46:03 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: References: <20160302162538.66068C88E@oc7340732750.ibm.com> <56E82BC4.7070401@redhat.com> MIME-Version: 1.0 Subject: Re: PING^1: [PATCH] Add TYPE_EMPTY_RECORD for C++ empty class From: Bernhard Reutner-Fischer Date: Wed, 16 Mar 2016 10:45:54 +0100 To: "H.J. Lu" ,Joseph Myers CC: Jason Merrill , Ulrich Weigand , GCC Patches , Jakub Jelinek , Richard Biener , Markus Trippelsdorf Message-ID: X-IsSubscribed: yes On March 16, 2016 3:17:20 AM GMT+01:00, "H.J. Lu" 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