Landing: 9c5e44d17b55

Project / Subsystem

gcc / RISC-V

Date

2026-08-17

Author

Kito Cheng

Commit

9c5e44d17b55c698d3e48b7b6ad3a15d6cae2f9b

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
RISC-V
patch_id
—
commit_hash
9c5e44d17b55c698d3e48b7b6ad3a15d6cae2f9b
source_type
github
headline
Fix ICE passing empty aggregate in VLS calling convention.
tldr
Resolves compiler crash when passing empty aggregates via RISC-V VLS calling convention.
author
Kito Cheng
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • RISC-V
  • • compiler bug
  • • calling convention
discussion_id_link
—
bugzilla_pr
—
date
2026-08-17T00:00:00.000Z

An internal compiler error (ICE) in the RISC-V backend when passing an empty aggregate struct using the riscv_vls_cc calling convention has been fixed. The function riscv_pass_aggregate_in_vr incorrectly attempted to access fields of an empty aggregate, leading to the crash. The fix ensures that NULL_RTX is returned for aggregates with no fields, allowing the generic compiler code to handle them appropriately.