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

Unable to handle assignment to a bitfield when optimizations are enabled and the struct has not been initialized #11

Open
dibyendumajumdar opened this issue Mar 29, 2017 · 0 comments

Comments

@dibyendumajumdar
Copy link
Owner

Example code that fails when -O1 option is enabled:

https://github.com/dibyendumajumdar/dmr_c/blob/master/tests/set1/onebit.c

For a discussion of this issue see:

http://marc.info/?l=linux-sparse&m=149074012006676&w=3

Workaround is to disable optimizations by not supplying -O1.

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

No branches or pull requests

1 participant