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

Support GCC-specific __extension__ keyword #20

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

Conversation

alexdowad
Copy link

@alexdowad alexdowad commented Apr 30, 2020

Some projects which are specifically written to be compiled by GCC use GCC-specific
extensions to the C language, such as the __extension__ keyword. This is an interesting extension; it has no effect on the meaning of the code, but merely suppresses compiler warnings. Therefore, the AST does not need to change in any way.

The modifications to the grammar were made after carefully examining the source for the GCC parser to see where __extension__ can be used in GNU C.

Some projects which are specifically written to be compiled by GCC use GCC-specific
extensions to the C language, such as the "__extension__" keyword.
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.

1 participant