Landing: dee08b5feed3

Project / Subsystem

gcc / risc-v

Date

2026-01-21

Author

Monk Chiang

Commit

dee08b5feed336fe31e520115f6dcd18f84d24c8

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
risc-v
patch_id
commit_hash
dee08b5feed336fe31e520115f6dcd18f84d24c8
source_type
github
headline
Zicfilp landing pads are now consistently 4-byte aligned
tldr
The Zicfilp extension for RISC-V now correctly aligns non-local goto target labels and exception landing pads to 4 bytes, preventing runtime errors.
author
Monk Chiang
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • zicfilp
  • alignment
  • cfi
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-01-21T00:00:00.000Z

This commit fixes an alignment issue for Zicfilp, a RISC-V extension. The compiler now ensures that non-local goto target labels and exception landing pads are 4-byte aligned by introducing a LABEL_ALIGN macro and modifying how gpr_save emits CFI guards. This change prevents potential runtime failures due to misaligned jump targets in generated code.