Skip to content
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

[csolution] cdefault: GCC inline assembly shall accept unified syntax by default #1057

Closed
JonatanAntoni opened this issue Jul 11, 2023 · 1 comment · Fixed by #1045
Closed
Assignees
Labels
enhancement New feature or request

Comments

@JonatanAntoni
Copy link
Member

JonatanAntoni commented Jul 11, 2023

Describe The Problem To Be Solved

For inline assembly we typically use unified syntax to be as compiler-agnostic as possible. GCC still uses disjoint (i.e., pre-unified) syntax by default for history reasons. This could make compilation units using unified syntax fail to compile.

Suggest A Solution

GCC has the command line flag -masm-syntax-unified to switch to unified syntax. This flag shall be used by default, e.g., by adding it into cdefault.yml.

@JonatanAntoni JonatanAntoni added the enhancement New feature or request label Jul 11, 2023
@JonatanAntoni
Copy link
Member Author

Fixed in #1045.

@jkrech jkrech changed the title GCC inline assembly shall accept unified syntax by default [csolution] cdefault: GCC inline assembly shall accept unified syntax by default Jul 11, 2023
@jkrech jkrech linked a pull request Jul 18, 2023 that will close this issue
@jkrech jkrech closed this as completed Jul 18, 2023
grasci-arm pushed a commit to ARM-software/devtools that referenced this issue Oct 31, 2024
jkrech pushed a commit that referenced this issue Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants