From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9973 invoked by alias); 12 Oct 2015 22:27:19 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 9964 invoked by uid 89); 12 Oct 2015 22:27:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 12 Oct 2015 22:27:18 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 1310D3DD42; Mon, 12 Oct 2015 22:27:17 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-105.phx2.redhat.com [10.3.113.105]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9CMRGFV031572; Mon, 12 Oct 2015 18:27:16 -0400 Subject: Re: [patch 3/6] scalar-storage-order merge: C++ front-end To: Eric Botcazou , gcc-patches@gcc.gnu.org References: <1475877.YmvvkeqT8x@polaris> <84951064.57Pv8Ag7Kj@polaris> From: Jeff Law Message-ID: <561C33C4.8030304@redhat.com> Date: Mon, 12 Oct 2015 22:27:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <84951064.57Pv8Ag7Kj@polaris> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg01178.txt.bz2 On 10/06/2015 05:03 AM, Eric Botcazou wrote: > This is the C++ front-end part, probably incomplete but passes the testsuite. > > cp/ > * class.c: Add c-family/c-pragma.h. > (finish_struct_1): If structure has reverse scalar storage order, > rewrite the type of array fields with scalar component. Call > maybe_apply_pragma_scalar_storage_order on entry. > * constexpr.c (reduced_constant_expression_p): Unfold recursion and > deal with TYPE_REVERSE_STORAGE_ORDER. > * typeck.c (structural_comptypes): Return false if two aggregate > types have different scalar storage order. > (cp_build_addr_expr_1) : New case. Issue the > error for bit-fields here and not later. > : Issue error and warning for reverse scalar storage > order. > * typeck2.c (split_nonconstant_init_1) : Adjust call to > initializer_constant_valid_p. Explicitly leaving for Jason. jeff