From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DFB8C3AF1C18; Fri, 17 Jul 2020 13:47:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFB8C3AF1C18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594993644; bh=D5b+eG/XBiUEbp7rhxzmo4DWNjA+kzpYJPEVcrwz3kY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=E4uAl2G7qLyGmIRyLBXabrTQxUsHn0bGAptPGE8QE3DBAE7lAkYCTVWA77WdapRpf SKXhN2TQJM30UGxDUk/vewwMJpPwOYYPe4g6fr+7JWmLwKs9eVhD74SOS0tMlLJYQI JdZOaN1jDQg2/Z8ePZiv93AJNMDzrTGQKWrKZlNg= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/96203] [11 Regression] LTO bootstrap with --enable-cet is broken Date: Fri, 17 Jul 2020 13:47:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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: Fri, 17 Jul 2020 13:47:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96203 --- Comment #16 from H.J. Lu --- (In reply to rguenther@suse.de from comment #15) > On Fri, 17 Jul 2020, hjl.tools at gmail dot com wrote: >=20 > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96203 > >=20 > > --- Comment #14 from H.J. Lu --- > > (In reply to Richard Biener from comment #13) > > > (In reply to H.J. Lu from comment #12) > > > > Please this patch. > > >=20 > > > /* Merge and update the -fcf-protection option. */ > > >=20 > > > but here you take the setting from the last file rather than merging = it, > > > I'd have expected a |=3D operation and also handling of CF_FULL for t= he > > > string update. > >=20 > > The code has > >=20 > > /* Merge and update the -fcf-protection option. */ > > + (*decoded_options)[j].value &=3D (foption->value > > + & CF_FULL); > >=20 > > It must be "&=3D" not "|=3D" since CET features are enabled only if the= y are > > enabled in ALL LTO inputs. >=20 > OK, so it mimics what the dynamic loader would do (and also the > link editor?). Yes.=