Landing: 1b9edbeca4bb

Project / Subsystem

gcc / gcc/alpha

Date

2026-08-29

Author

Matt Turner

Commit

1b9edbeca4bb77a4116610094824de738b64c8f1

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc/alpha
patch_id
—
commit_hash
1b9edbeca4bb77a4116610094824de738b64c8f1
source_type
github
headline
Alpha: Add stack protector patterns
tldr
New instructions for stack protector set/test improve canary handling on Alpha.
author
Matt Turner
outcome
committed
performance_win
true
breaking_change
false
series_id
gcc:alpha: add stack_protect_set and stack_protect_test patterns
series_parts
[]
tags
  • • alpha
  • • security
  • • optimization
discussion_id_link
—
bugzilla_pr
—
date
2026-08-29T00:00:00.000Z

This commit introduces new target patterns, UNSPEC_SSP_SET and UNSPEC_SSP_TEST, for the Alpha architecture. These patterns define stack protector set and test operations as single, unsplittable instructions. This prevents the compiler from spilling the canary value across function calls, ensuring it remains available for the critical few instructions that require it, similar to optimizations on other architectures.