From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 8E3763861893 for ; Thu, 13 Aug 2020 12:06:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8E3763861893 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Tobias_Burnus@mentor.com IronPort-SDR: r6iVR9bGTFXqduAbw3WmVCb2VcVvDmZ53eqTOCYwOakTMPOHsAXobrT8yC40qvYRgAXZwvPeDJ i8vC+glRZ/iRmh9/xemxUa4Li8k13zxUYi2KXWf5eGuVB87pTT7T4+iWrWAF05Wik4bO3jxSSO 3NlkiK6KQ5gA0fiLlda3RdpSb6PU5izmS7pf/Y68sfvfusRTWpgsxYDjG7XGK8nSAfKYuuMt/h pShOxrpJTmRfW5xJeMHh244wPK6C/e84PPcIs9k/5av7vis75arHrKvXQzGpkMrEQYwYaPhi32 934= X-IronPort-AV: E=Sophos;i="5.76,308,1592899200"; d="scan'208";a="51862601" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 13 Aug 2020 04:06:27 -0800 IronPort-SDR: ueI13v5LmW9RJblJQgiAsVycJRWJnEUK4Iw1PoJMcZkQo+HSS3i39E2AhTx6c/KjqyTBAmeR8L ape41g9ErqBKmMVhnh5tFVMcs3oDVryrc1LSemuun4rF0Tdo0YxV2auf6xXMrcKVG1LNQILSiw fd71Uai/b/7kmzaLjf0SovY5sxvpMi2mTL/3EIy/P0Xt6pnV108pJIVUYftTs6LhBvbN+oVbo2 tXO9ogAyrUhHSPqAfke1cHZ/k1W+hwWhABY7oxsSCj8niCs5+164Ymul8C4fbftj6e2vhOvvN9 src= Subject: Re: r11-2663 causes static_assert failure To: Jakub Jelinek CC: Aldy Hernandez , Jonathan Wakely , Andrew MacLeod via Gcc-patches 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> <20200813115212.GZ2363@tucnak> From: Tobias Burnus Message-ID: <22022e6e-324b-0e6b-241a-3266b347386d@codesourcery.com> Date: Thu, 13 Aug 2020 14:06:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200813115212.GZ2363@tucnak> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, 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 12:06:30 -0000 On 8/13/20 1:52 PM, Jakub Jelinek wrote: > On Thu, Aug 13, 2020 at 01:38:07PM +0200, Tobias Burnus wrote: >> I got a bit lost in this thread =E2=80=93 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) =3D=3D alignof(vec), ""); >> ^ > 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? Build server is x86_64-gnu-linux, "i686-pc-linux-gnu-g++" is a native binar= y of GCC 5.2.0 [Don't ask why i686 and not x86_64 is used.] Run command was: i686-pc-linux-gnu-g++ -std=3Dgnu++11 -c -DIN_GCC -DCROSS_DIRECTORY_STRUCT= URE -DGENERATOR_FILE -I. -Ibuild -I.../gcc-mainline/gcc -I.../gcc-mainl= ine/gcc/build -I.../gcc-mainline/gcc/../include -I.../gcc-mainline/gcc/../= libcpp/include \ -o build/genemit.o .../gcc-mainline/gcc/genemit.c In file included from .../gcc-mainline/gcc/rtl.h:30:0, from .../gcc-mainline/gcc/genautomata.c:111: .../gcc-mainline/gcc/vec.h: In instantiation of 'static size_t vec::embedded_size(unsigned int) [with T =3D long long int; A =3D va_he= ap; size_t =3D unsigned int]': .../gcc-mainline/gcc/vec.h:288:58: required from 'static void va_heap::re= serve(vec*&, unsigned int, bool) [with T =3D long lon= g int]' .../gcc-mainline/gcc/vec.h:1749:20: required from 'bool vec::reserve(u= nsigned int, bool) [with T =3D long long int]' .../gcc-mainline/gcc/vec.h:1858:11: required from 'T* vec::safe_push(c= onst T&) [with T =3D long long int]' .../gcc-mainline/gcc/genautomata.c:7454:40: required from here .../gcc-mainline/gcc/vec.h:1287:3: error: static assertion failed: static_assert (alignof (vec_embedded) =3D=3D alignof(vec), ""); ^ Makefile:2719: recipe for target 'build/genautomata.o' failed make[1]: *** [build/genautomata.o] Error 1 Tobias ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstra=C3=9Fe 201, 80634 M=C3=BCnch= en / Germany Registergericht M=C3=BCnchen HRB 106955, Gesch=C3=A4ftsf=C3=BChrer: Thomas = Heurung, Alexander Walter