From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A6C7D3858D20; Thu, 18 Apr 2024 02:15:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6C7D3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713406513; bh=Xc8nhsugWGrKw+38sT42dDK0CkmQbK7OaY2SqUDH/g0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pJlM3fNQAKJECsHeJc/Wpb3vZVRJLCLGHHLqF0Z+vOLJshqI573L8/zQP2Wf8FyZ/ 8TrKBQpBFtnP+PM6O5vJ8NcSndEgl8mxp4tSmAa9uYv7o/dhURvTPdFoXrtthD25+X MptpfOlOrATy2YcTsUTLNrj0cHdaNI2O7mMF0gd8= From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114759] Power: multiple issues with -mrop-protect Date: Thu, 18 Apr 2024 02:15:13 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D114759 --- Comment #4 from Peter Bergner --- Created attachment 57977 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57977&action=3Dedit Patch that emits an error for invalid ROP option combinations. Here's a patch that treats invalid ROP option combinations (currently assum= ing P7 and earlier are invalid) as an error. If instead we want to just silently ignore (or with a warning), we'd just n= eed to modify the rs6000.cc hunk to disable rs6000_rop_protect instead of calli= ng error().=