[all-commits] [llvm/llvm-project] 261c02: [MC][ARM] Use label state for Thumb function symbo...
emomaxd via All-commits
all-commits at lists.llvm.org
Wed Aug 5 02:17:25 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 261c025a03732ac6d3a26ad80e962481237de052
https://github.com/llvm/llvm-project/commit/261c025a03732ac6d3a26ad80e962481237de052
Author: emomaxd <63119008+emomaxd at users.noreply.github.com>
Date: 2026-08-05 (Wed, 05 Aug 2026)
Changed paths:
M llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
M llvm/test/MC/ARM/thumb-function-address.s
A llvm/test/MC/ARM/thumb-state-on-late-type.s
Log Message:
-----------
[MC][ARM] Use label state for Thumb function symbols (#211641)
When a function type directive appears after a symbol definition, use
the ARM
or Thumb state in which the label was emitted instead of the active
state at
the type directive.
This can happen when an end-of-function macro emits .type alongside
.size to
avoid repeating both directives. If the ARM/Thumb state at the macro
differs
from the state in which the function label was defined, the late .type
directive would otherwise use the wrong state.
Record labels emitted in Thumb state and add coverage for late type
directives
in both directions. This matches GNU assembler behavior.
Developed with AI assistance; reviewed and tested manually.
Fixes #211376
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list