-
Notifications
You must be signed in to change notification settings - Fork 28
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 complex __attribute__ involving __alignof__ #73
Comments
Sorry, I won't be able to help in the near term. But I would be happy to consider PRs along these lines. |
Thanks for the quick response, @inducer. I'll try to find a workaround. |
I believe I solved it the way you're describing in our fork a year ago, yes. My memory isn't that sharp though :) |
@jordr it would be great if you could create a PR, or just add diff here as a comment(and i will do a PR). |
I don't have time for looking much into it right now, sorry. Maybe this commit will be useful to you: statinf-software/pycparser@deacf7d |
Pycparser breaks on this example:
The error vanishes if I simplify the
__attribute__
or replace__alignof__
by (for example)sizeof
.__alignof__
is supported by GNU : https://gcc.gnu.org/onlinedocs/gcc-6.2.0/gcc/Alignment.htmlI was not able to engineer a good solution so far. Can we have a generic
__attribute__((whatever(foo(long long))))
solution or do we have to manually add__alignof__
keywords and the like?The text was updated successfully, but these errors were encountered: