From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90470 invoked by alias); 10 Apr 2017 14:41:53 -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 89810 invoked by uid 89); 10 Apr 2017 14:41:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: mail-pf0-f177.google.com Received: from mail-pf0-f177.google.com (HELO mail-pf0-f177.google.com) (209.85.192.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Apr 2017 14:41:52 +0000 Received: by mail-pf0-f177.google.com with SMTP id o126so34360234pfb.3 for ; Mon, 10 Apr 2017 07:41:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1vpn/Cp/BrlxjoSeNLJY4DbOcKSxQGWHvMZpl016VNw=; b=kVStnMhW8Upjq+d3JzMKAOxvM7G6FGYCkPt3T/xJ76jvaJYqD7z5hwTPpJGtOo7Ui3 Jzn8i+wjun8b4Ixz99A6/OslpAJmOKqF2k+1KzfeZy17ZnipX/c3PUwHxlB256CIzVJ6 UF0s7PD3V7kUoTw10KyBm7DlNf4UIxH9l0vsHzR1KEBQJ1OVZqSX46JfD5kt0u6PXY10 qsfKH23RiqLIcJ/Ea6pvAS9yKtoLEfs1vW0TbU+r9FmK5XpYKaWkTqKdbmjSlg4kTdgC Ut1O8cZvn/F7fdcC8yj2xJVpOWGF3nMe0SI1T902bc9E3XfeYvDrFxyiPDpk26kqSFGd X0Aw== X-Gm-Message-State: AN3rC/7P60K9iEwHkrJ1xJ4wSHiWuZRSv76DPU4PF7/GN8VisjKxMTRe Ybk85zFFb7aN8eZDVqPxKGYbEXn0NA0+ X-Received: by 10.36.108.138 with SMTP id w132mr9985116itb.38.1491835312088; Mon, 10 Apr 2017 07:41:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.59.23 with HTTP; Mon, 10 Apr 2017 07:41:31 -0700 (PDT) In-Reply-To: References: <21E940B5-C8C4-4A86-8C15-49A86547DD87@suse.de> <20170405160333.GR4425@redhat.com> <20170405160849.GV17461@tucnak> From: Jason Merrill Date: Mon, 10 Apr 2017 14:41:00 -0000 Message-ID: Subject: Re: [PATCH] Add a new type attribute always_alias (PR79671) To: Richard Biener Cc: Bernd Edlinger , Jakub Jelinek , Jonathan Wakely , Florian Weimer , GCC Patches , Jeff Law Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00454.txt.bz2 On Mon, Apr 10, 2017 at 8:50 AM, Richard Biener wrote: > So here's my variant of a fix. I constrained the new flag > TYPE_TYPELESS_STORAGE to arrays and thus hope my localized fix in > build_cplus_array_type will suffice (if I have time I'll play with > template instantiation). Looks good. I would expect this to just work with templates, but it should of course be tested. In particular, std::aligned_storage needs to work. > * tree.c (build_cplus_array_type): Set TYPE_TYPELESS_STORAGE > for arrays of unsigned char or std::byte. I think it would be good to have a flag to select whether these semantics apply to any char variant and std::byte, only unsigned char and std::byte, or only std::byte. Jason