From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9125239FE038; Fri, 17 Jul 2020 13:23:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9125239FE038 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594992223; bh=me7MrK24SYoemjLjxU+dy+3SaW7BsH6fquis8QDTBpI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a53aYqhGMi9kGV4S7Opue2dQmiVZWpkJQIdqs0MZRK7Kk9Jw/9dhAVQZkOLWMZ0fx KVgEFC+SBwolGBlMVogrbspyk37/Ac1lO7EWnSj/wkkV9elKaM01to7+WSc3jmgjM1 rngW8dlJDi5fbGHVIcuhQnbxLhlCcNofy6BQcNSE= From: "rguenther at suse dot de" 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:23:43 +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: rguenther at suse dot de 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:23:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96203 --- Comment #15 from rguenther at suse dot de --- On Fri, 17 Jul 2020, hjl.tools at gmail dot com wrote: > 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 the > > 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 they = are > enabled in ALL LTO inputs. OK, so it mimics what the dynamic loader would do (and also the link editor?).=