From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id E3AD9384A022 for ; Thu, 13 Aug 2020 11:52:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E3AD9384A022 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-526-Gfo9ubtZNRe9i77UMX5FXg-1; Thu, 13 Aug 2020 07:52:18 -0400 X-MC-Unique: Gfo9ubtZNRe9i77UMX5FXg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A15251014DF6; Thu, 13 Aug 2020 11:52:17 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-113-174.ams2.redhat.com [10.36.113.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3B60762A82; Thu, 13 Aug 2020 11:52:17 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id 07DBqDrY013177; Thu, 13 Aug 2020 13:52:14 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id 07DBqC4C013176; Thu, 13 Aug 2020 13:52:12 +0200 Date: Thu, 13 Aug 2020 13:52:12 +0200 From: Jakub Jelinek To: Tobias Burnus Cc: Aldy Hernandez , Jonathan Wakely , Andrew MacLeod via Gcc-patches Subject: Re: r11-2663 causes static_assert failure (was: Re: std:vec for classes with constructor?) Message-ID: <20200813115212.GZ2363@tucnak> Reply-To: Jakub Jelinek References: <20200806192410.GI3400@redhat.com> <20200807075746.GK3400@redhat.com> <20200807083438.GL3400@redhat.com> <20200807085508.GA2363@tucnak> <20200807091729.GO3400@redhat.com> <9c7c2c1e-3a96-2ee7-26dd-f3b42cf27a42@codesourcery.com> MIME-Version: 1.0 In-Reply-To: <9c7c2c1e-3a96-2ee7-26dd-f3b42cf27a42@codesourcery.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Aug 2020 11:52:22 -0000 On Thu, Aug 13, 2020 at 01:38:07PM +0200, Tobias Burnus wrote: > Hi, > > I got a bit lost in this thread – but the > commit r11-2663-g82c4b78dbef6f03838e3040688c934360a09513f > "Replace std::vector<> usage in ipa-fnsummary.c with GCC's vec<>." > > Causes here: > > gcc-mainline/gcc/vec.h:1287:3: error: static assertion failed: > static_assert (alignof (vec_embedded) == alignof(vec), ""); > ^ > for a '--build=i686-pc-linux-gnu --host=powerpc64le-linux-gnu --target=nvptx-none' > build. On which instantiation it is and what is your system compiler? Do you get when building the i686 native compiler, or i686 to powerpc64le cross-compiler or powerpc64le to nvptx-none cross-compiler? Jakub