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

cparser aborts on packed bitfields #30

Open
GabrielRavier opened this issue Jun 4, 2020 · 0 comments
Open

cparser aborts on packed bitfields #30

GabrielRavier opened this issue Jun 4, 2020 · 0 comments

Comments

@GabrielRavier
Copy link

struct s
{
    unsigned front;
    unsigned a : 8;
    unsigned b : 1;
} __attribute__((packed));

void f(struct s x)
{
    x.a && x.b;
}

This code aborts with :

Edge Verifier: Block BB[60:2] reachable by 22 node(s), but the list contains 23 edge(s)
Edge Verifier: Proj T[65:3] reachable by 2 node(s), but the list contains 3 edge(s)
Verify warning: Proj Lu[185:26](f[62]): IR_GRAPH_PROPERTY_CONSISTENT_OUT_EDGES set, but node cannot be found with normal edges
Aborted (core dumped)
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

1 participant