Landing: b41352c7aa26

Project / Subsystem

gcc / gcc/target/aarch64

Date

2026-08-07

Author

Alice Carlotti

Commit

b41352c7aa2645de6c5751d447589c2ef8c4fa4d

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/target/aarch64
patch_id
—
commit_hash
b41352c7aa2645de6c5751d447589c2ef8c4fa4d
source_type
github
headline
aarch64: Fix -march=native when -mtune is used
tldr
Fixes incorrect CPU feature detection on aarch64 when using -march=native with -mtune.
author
Alice Carlotti
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • aarch64
  • • compiler flags
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-08-07T00:00:00.000Z

A bug in the aarch64 target driver has been fixed that affected the handling of -march=native when the -mtune option was also specified. Previously, changes to ARCH_IDENT values caused lookups to fail, leading to incorrect CPU feature detection. This commit adjusts string offsets to ensure proper matching of identifiers, resolving the issue and restoring correct behavior.