Landing: ed1cb8abdbf6

Project / Subsystem

gcc / risc-v

Date

2026-07-18

Author

Luke Zhuang

Commit

ed1cb8abdbf61d86c4b85b3b69d375fdefae2e21

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
risc-v
patch_id
commit_hash
ed1cb8abdbf61d86c4b85b3b69d375fdefae2e21
source_type
github
headline
Fix LRA crash related to TLSDESC clobber updates.
tldr
Resolved a crash in the RISC-V LRA caused by incorrect clobber updates for TLSDESC.
author
Luke Zhuang
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • lra
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-07-18T00:00:00.000Z

A fuzz-testing initiative uncovered a crash in the RISC-V Late Register Allocation (LRA) phase, triggered by specific clobber updates associated with TLSDESC. This commit addresses the issue by replacing RVVM8QI with RVVM1QI in the relevant instruction definitions in the RISC-V machine description. A new test case is included to demonstrate the fix and prevent regressions.