From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0301B386F430; Thu, 30 Jul 2020 15:58:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0301B386F430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596124690; bh=qbpiC79qyN9rpcIxEqB15MytQGcwhg2ejRGsU/b9Ws8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LSGxfxD9tfYKAT2IqStniZon3hx22j+O/gNVdYFr1VcbwZiJrApXhE0O9HqQ/KrkP SDwJtmHnHLBTU6uHtYK7T8N4BhskEg4D+KfL78dfjPBz8NPaAf7/iaHz1m3a9o80hy R51OJAv4OtGqYy6stfGJuKQtPBDjNpG1AcIBlWXU= From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96377] [10/11 Regression] GCC 10.2/11 doesn't build Linux kernel anymore Date: Thu, 30 Jul 2020 15:58:09 +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: 10.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.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: Thu, 30 Jul 2020 15:58:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96377 --- Comment #8 from rsandifo at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #7) > I guess that is reasonable thing to do, if the two vector types aren't > really compatible one will get an error. > But then, for trunk, won't the stripping of the attributes from vector ty= pes > still mean that comp_type_attributes will return false when comparing the > destination vector type (the uint8x16_t one) with the one from the binary > expression (the same with stripped attribute, i.e. essentially a generic > vector) and thus the initialization will be considered erroneous? The initialization itself seems to work, since for vectors compatibility depends on vector_types_compatible_p. But the stripping of the attributes does still affect: #include uint8x16_t foo (int c, uint8x16_t x, uint8x16_t y) { return c ? x + 1 : y; } which is wrongly rejected for C, but not C++. So I guess for trunk we need both fixes.=