Skip to content

Add inline and goto qualifier support to __asm__ declarations#1458

Open
strimo378 wants to merge 4 commits into
eclipse-cdt:mainfrom
emmtrix:copilot/support-inline-and-goto-keywords
Open

Add inline and goto qualifier support to __asm__ declarations#1458
strimo378 wants to merge 4 commits into
eclipse-cdt:mainfrom
emmtrix:copilot/support-inline-and-goto-keywords

Conversation

@strimo378
Copy link
Copy Markdown

GCC's asm inline and asm goto qualifiers were silently rejected by CDT's parser. Additionally, the existing volatile qualifier was consumed but never stored, making it inaccessible via the AST API.

__asm__ inline ("nop");   // previously: parse error
__asm__ goto ("nop");     // previously: parse error
__asm__ volatile ("nop"); // previously: parsed but qualifier not queryable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants