Skip to content

Add No Randomize Layout attribute to regression test #37

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

Closed
tim-pugh opened this issue Feb 26, 2019 · 7 comments
Closed

Add No Randomize Layout attribute to regression test #37

tim-pugh opened this issue Feb 26, 2019 · 7 comments
Assignees

Comments

@tim-pugh
Copy link
Member

Since we've merged in the new attribute we will need to add it to the regression test.

@tim-pugh
Copy link
Member Author

Closing this issue. I just ran the regression test suite make clang-test and it passed without error.

This is rather odd considering we added the second attribute but we'll re-run it at a later date. It may be because it's not being used properly quite yet.

@connorkuehl
Copy link

connorkuehl commented Feb 26, 2019

This is rather odd considering we added the second attribute but we'll re-run it at a later date. It may be because it's not being used properly quite yet.

I was confused about this this morning too, but @Jafosterja mentioned this code was reverted.

See commits fadd247 and f94de06

Searching the codebase for "Randomize Layout" confirms this code is absent (since "No Randomize Layout" matches "Randomize Layout")

connor@mead-garden:~/src/git/llvm-project/clang$ ag -i randomizelayout
test/Misc/pragma-attribute-supported-attributes-list.test
120:// CHECK-NEXT: RandomizeLayout (SubjectMatchRule_record)

lib/AST/RecordLayoutBuilder.cpp
2991:  bool ShouldBeRandomized = D->getAttr<RandomizeLayoutAttr>() != nullptr;

lib/Sema/SemaDeclAttr.cpp
6856:  case ParsedAttr::AT_RandomizeLayout:
6857:    handleSimpleAttribute<RandomizeLayoutAttr>(S, D, AL);

include/clang/Basic/Attr.td
3205:def RandomizeLayout : InheritableAttr {

@connorkuehl connorkuehl reopened this Feb 26, 2019
@tim-pugh
Copy link
Member Author

f06d4cc

@tim-pugh
Copy link
Member Author

We can pull those in now, but from what I'm seeing, they were removed. Does this make sense?

@tim-pugh
Copy link
Member Author

d95e624

This was the revert commit

@connorkuehl
Copy link

This was the revert commit

Yeah, that's the source of my confusion. I saw that those commits I linked earlier were merged in to develop but I couldn't find where they were taken out.

@connorkuehl
Copy link

Closed by #39

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

3 participants