Skip to content

emit .att_syntax when global/naked asm use that option #143599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

folkertdev
Copy link
Contributor

fixes #143542

LLVM would error when using -Cllvm-args=-x86-asm-syntax=intel in combination with global/naked assembly with att_syntax. It turns out that for LLVM you do in this case need to emit .att_syntax.

r? @Amanieu

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 7, 2025
@folkertdev folkertdev force-pushed the x86-asm-syntax-global-naked-asm branch from 2d97a2b to 8294047 Compare July 8, 2025 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

options(att_syntax) doesn't do anything for global_asm! and naked_asm!
3 participants