aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorCraig Blackmore <craig.blackmore@embecosm.com>2025-02-06 12:56:26 -0700
committerJeff Law <jlaw@ventanamicro.com>2025-02-06 12:56:26 -0700
commitba585064781b58eef4667c0baa09b854f711aae4 (patch)
treeb73c97228eda07a9b5dab6359795edd26c684530 /gcc
parent33e610110c933b0d65aa82d67864bb881768609f (diff)
downloadgcc-ba585064781b58eef4667c0baa09b854f711aae4.zip
gcc-ba585064781b58eef4667c0baa09b854f711aae4.tar.gz
gcc-ba585064781b58eef4667c0baa09b854f711aae4.tar.bz2
[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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/riscv/riscv.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md
index 09053df..f707076 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