Landing: 22fe3a35d341

Project / Subsystem

gcc / gcc/riscv

Date

2026-06-24

Author

Jiawei

Commit

22fe3a35d341d2044c5ced341eec11484b36a18f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/riscv
patch_id
commit_hash
22fe3a35d341d2044c5ced341eec11484b36a18f
source_type
github
headline
RISC-V: Add minimal Smctr extension support
tldr
GCC compiler gains support for the RISC-V Smctr extension.
author
Jiawei
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • compiler
  • extension
  • privilege modes
discussion_id_link
bugzilla_pr
date
2026-06-24T00:00:00.000Z

This commit adds minimal support for the RISC-V Machine-mode control transfer records (Smctr) extension, which depends on Zicsr. The changes include updates to the extension definition, options, and documentation, along with a new test case.