Landing: 319c0f0249cb

Project / Subsystem

gcc / aarch64

Date

2026-04-29

Author

Christopher Bazley

Commit

319c0f0249cb30c2290426a3a9d4ce81a47a684d

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
aarch64
patch_id
commit_hash
319c0f0249cb30c2290426a3a9d4ce81a47a684d
source_type
github
headline
AArch64: Handle opts_set parameter properly in aarch64_option_restore
tldr
The AArch64 backend now correctly restores options, avoiding potential inconsistencies when target options are overridden.
author
Christopher Bazley
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • aarch64
  • options
  • backend
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-04-29T00:00:00.000Z

The AArch64 backend’s TARGET_OPTION_RESTORE implementation now correctly handles the opts_set parameter, ensuring consistent option restoration. Previously, it was assumed that cl_target_option_restore would only be called with &global_options_set, which could lead to incorrect option overriding or failure to override as expected if options were set differently in opts_set and global_options_set. This change improves maintainability and prevents potential bugs related to target option handling.