From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 70D713858C62; Mon, 24 Jul 2023 01:49:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70D713858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690163363; bh=xTTkHdMfHa0BQ8O98s1up+B7z2r067/1bm1aTcW3poo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=k/5F7CYtD5fRrZur7WdbcLQLe1AV+U70QNBtkIQZZTN6hXzdWv+PC53PKKyPKHgvT Mtw9UWe4iVtN6aEDA2AYnSuQ+iN2TlGPNGmSFKhJAnh/jeVgdzoHcy6rQLWL3QktD9 PfUgx+Ejdr1mbSjQvLRBLshfS+lskHbnWO4e+u0M= From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110776] [14 Regression] powerpc-darwin bootstrap broken after r14-2490 with ICE rs6000.cc:5069 building libgfortran Date: Mon, 24 Jul 2023 01:49:21 +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: 14.0 X-Bugzilla-Keywords: build, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to everconfirmed cf_reconfirmed_on 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=3D110776 Kewen Lin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gn= u.org Ever confirmed|0 |1 Last reconfirmed| |2023-07-24 --- Comment #2 from Kewen Lin --- Thanks for reporting and sorry for the breakage. I'll have a look first. (In reply to Iain Sandoe from comment #0) > The ICE seems to be because rs6000_builtin_vectorization_cost () is called > with a request for a misaligned load (which we do not support), It > reproduces on a cross from x86_64. >=20 > This is in compiling libgfortran generated code (so nothing Darwin-specif= ic, > other than being an Altivec platform). Thanks for the information. >=20 > A philosophical question; if a request is made for the cost of doing > something unsupported - should we not return "infinity" rather than ICEin= g?=20=20 >=20 > Presumably, the alternative is that the middle end needs to know that some > kinds of operation are not supported and therefore not to try and cost th= em > (speculation here; I have no knowledge of the relevant code). I think that's what's being adopted now, if the target doesn't support unaligned load, the middle-end should take it as dr_unaligned_unsupported (dr_alignment_support) and use VECT_MAX_COST, it's expected that there is no chance to query it with unaligned_load. Maybe some path was changed by the culprit commit.=