From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8DEA03858C5E; Mon, 17 Jul 2023 08:33:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DEA03858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689582790; bh=oThZQQELLh50ysG7D0+zpZwhO9ZoV+JKVtfOIbZlOwo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iB97HX2kHfOTE2RaS7GBLZ2/4OSk3ZlOXtBQdOC+t8FAee+m9TGpH/MMZ+etHF3zK 6YyWLz79ooSCD1QgW+YOhJLG/zbW4h+mBrrT6ZKu3zuMbSU3ovAAy//g4CMFaW6G9h GXJauZsu1/Kh0MrMkRVkQTDzFeNB9rSlxl3cYIRY= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109753] [13/14 Regression] pragma GCC target causes std::vector not to compile (always_inline on constructor) Date: Mon, 17 Jul 2023 08:33:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.1.1 X-Bugzilla-Keywords: needs-bisection, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109753 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #9 from Richard Biener --- (In reply to Xi Ruoyao from comment #8) > In local-fnsummary2: >=20 > __attribute__((always_inline, target ("avx2"))) > void aa::aa (struct aa * const this) > { > [local count: 1073741824]: > return; >=20 > } >=20 > this seems correct. But: >=20 > void __static_initialization_and_destruction_0 () > { > : > aa::aa (&_M_impl); > return; >=20 > } >=20 > Note that __static_initialization_and_destruction_0 is not attributed with > avx2. I think that's correct. Maybe we need multiple CTOR/DTOR functions in such case.=