stack_protect_{set,test}_<mode> were showing up in RTL dumps as UNSPEC_COPYSIGN and UNSPEC_FMV_X_W due to UNSPEC_SSP_SET and UNSPEC_SSP_TEST being put in the unspecv enum instead of unspec.
gcc/ChangeLog: * config/riscv/riscv.md: Move UNSPEC_SSP_SET and UNSPEC_SSP_TEST to unspec enum. --- gcc/config/riscv/riscv.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md index 09053df1eb9..f7070766783 100644 --- a/gcc/config/riscv/riscv.md +++ b/gcc/config/riscv/riscv.md @@ -99,6 +99,10 @@ ;; CRC unspecs UNSPEC_CRC UNSPEC_CRC_REV + + ;; Stack Smash Protector + UNSPEC_SSP_SET + UNSPEC_SSP_TEST ]) (define_c_enum "unspecv" [ @@ -123,10 +127,6 @@ UNSPECV_FENCE UNSPECV_FENCE_I - ;; Stack Smash Protector - UNSPEC_SSP_SET - UNSPEC_SSP_TEST - ;; CMO instructions. UNSPECV_CLEAN UNSPECV_FLUSH -- 2.43.0