From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 93CD43858D35; Tue, 24 Aug 2021 01:50:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 93CD43858D35 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102027] [11/12 Regression] ABI break when using vector type in function arg/return value Date: Tue, 24 Aug 2021 01:50:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2021 01:50:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102027 --- Comment #6 from Andrew Pinski --- (In reply to H.J. Lu from comment #5) > (In reply to Andrew Pinski from comment #3) > > There are calls to vector_mode_supported_p in stor-layout which changes= the >=20 > It sounds odd to me since vector_mode_supported_p can change overtime. >=20 > > TYPE_MODE of the RECORD_TYPE depending on if vector_mode_supported_p re= turns > > true or not and classify_argument depends on TYPE_MODE in some cases ..= .. >=20 > I am not sure if we can fix it in backend alone. Most back-ends moved away from looking at TYPE_MODE for argument passing lo= ng time ago. I can understand why you might want to stay with that I don't thi= nk anyone should depend on TYPE_MODE for argument passing any more.=