https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84239

            Bug ID: 84239
           Summary: Reimplement rdssp[d|q] and incssp[d|q] CET intrinsics
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: igor.v.tsimbalist at intel dot com
  Target Milestone: ---

There was an online discussion related to syncing CET intrinsic names between 3
compilers, gcc, llvm and icc. The intrinsics in question were rdssp[d|q] and
incssp[d|q]. It was agreed that:

* new utility intrinsics should be introduced:
#ifdef _x86_64_
__int64 _get_ssp(void);
#else
__int32 _get_ssp(void);
#endif
void _inc_ssp(unsigned int);

* it's up to a compiler to provide the initial intrinsics, which maps 1:1 to
the instruction.

* GCC compiler is going to provide utility intrinsics only.

The current intrinsic implementation for rdssp[d|q] and incssp[d|q] has to
updated to reflect the decision.

Reply via email to