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

yarpgen claims to be compliant with the standard, but is using the gcc extension __typeof__ #171

Open
winspool opened this issue Feb 1, 2023 · 1 comment

Comments

@winspool
Copy link
Contributor

winspool commented Feb 1, 2023

Section 3 in the included document (yarpgen-ooplsa-2020.pdf) claims,
that yarpgen can generate C source,
that is "compliant with the rules specified in the language standards".

But the code is using __typeof__ (in the macros max and min), which is a non standard gcc extension.

A similar feature typeof was accepted for the upcoming C23 standard,
but that feature is not implemented in all compiler for some time.

@Vsevolod-Livinskij
Copy link
Contributor

Thanks for the report!
This issue only exists in the current version of the YARPGen, and I'll work on fixing it!

The paper you mentioned describes the old version of YARPGen. It was designed to test scalar optimizations and does not contain any function calls or min and max macros. Therefore, the claim about being compliant with the standard is truthful to the best of my knowledge.

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

No branches or pull requests

2 participants