Bug 1688425 - Provide -fcf-protection=branch,return
Summary: Provide -fcf-protection=branch,return
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: gcc
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Marek Polacek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On: 1682592
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-13 17:24 UTC by Paolo Bonzini
Modified: 2023-07-18 14:19 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-11 20:33:09 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 89701 0 P3 UNCONFIRMED Provide -fcf-protection=branch,return 2021-01-11 17:33:19 UTC

Description Paolo Bonzini 2019-03-13 17:24:22 UTC
Right now the only possibility to specify that combination -fcf-protection=full, but this is not future proof; if other suboptions are added later, they could be applied to code that does not support them.

Code that wants to be reliable against future extensions to -fcf-protection needs to specify each desired option manually, as in "-fcf-protection=branch,return".

Upstream bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89701


Note You need to log in before you can comment on or make changes to this bug.