https://gcc.gnu.org/g:ba585064781b58eef4667c0baa09b854f711aae4

commit r15-7398-gba585064781b58eef4667c0baa09b854f711aae4
Author: Craig Blackmore <craig.blackm...@embecosm.com>
Date:   Thu Feb 6 12:56:26 2025 -0700

    [PATCH] RISC-V: Move UNSPEC_SSP_SET and UNSPEC_SSP_TEST to correct enum
    
    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.

Diff:
---
 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 09053df1eb9b..f7070766783e 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

Reply via email to