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

Remove old __capability workaround #709

Merged

Conversation

arichardson
Copy link
Member

This workaround is no longer needed now that various bugs with __capability
have been fixed. It does however change the legacy placement semantics for
some typedefs as the __capability qualifier is pushed to the outermost
scope instead of the typedef itself, so for:

typedef struct s *sptr;
__capability sptr *foo

the type of foo is now struct s **__capability instead of the previous
struct s *__capability *.

This reverts commit ce9e791

We are not diagnosing legacy placement for typedefs and there are some
cases that don't seem quite right.
@jrtc27
Copy link
Member

jrtc27 commented Jul 6, 2023

That's not a deprecated use, that's currently regarded as legitimate.

@arichardson arichardson force-pushed the remove-old-__capability-workaround branch from 355e51f to de4fffe Compare July 6, 2023 22:22
@arichardson
Copy link
Member Author

Turns this can instead just be a NFCI diff reduction.

@arichardson arichardson force-pushed the remove-old-__capability-workaround branch 2 times, most recently from 5048dd3 to af3be58 Compare July 6, 2023 23:42
@arichardson arichardson force-pushed the remove-old-__capability-workaround branch from af3be58 to 54f6448 Compare July 6, 2023 23:46
@arichardson arichardson merged commit 378cc2c into CTSRD-CHERI:dev Jul 7, 2023
4 checks passed
@arichardson arichardson deleted the remove-old-__capability-workaround branch July 7, 2023 22:32
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.

2 participants