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

Fixed TC 10 for clang | #32 | #22 | #17 #33

Closed

Conversation

ganesh-k13
Copy link
Contributor

No description provided.

@ganesh-k13
Copy link
Contributor Author

Hey @mkirchner, is there a provision like Travis where we can run the CI for all PRs, it's easy to see if we are breaking anything.

@mkirchner
Copy link
Owner

Hey @mkirchner, is there a provision like Travis where we can run the CI for all PRs, it's easy to see if we are breaking anything.

We're already running a build matrix, see e.g. here for the merge of your PR: https://github.com/mkirchner/gc/commit/83a2b2fae552facd5b93014f612a8321663846df/checks?check_suite_id=380433639

void *bos = __builtin_frame_address(0);
gc_start(&gc_, bos);
void *bos = NULL;
gc_start(&gc_, &bos);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not make a difference to the test. Does it?

Copy link
Contributor Author

@ganesh-k13 ganesh-k13 Jan 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The frame address is normally the address of the first word pushed on to the stack by the function. However, the exact definition depends upon the processor and the calling convention

oddly enough, gcc in most 64 bit Intels, it does not seem to be the case, so bos goes bellow whatever that function is returning, thus maintaining, bos, var, tos order.

Yeah, it just worked so I pushed it, I'll investigate more and update here, let's not merge this

test/Makefile Outdated
@@ -1,3 +1,4 @@
# CC=gcc
Copy link
Owner

@mkirchner mkirchner Jan 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove. To build w/ GCC just use make CC=gcc (the line below just makes clang the default).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned bellow, this should not be here, I'll remove it

@ganesh-k13
Copy link
Contributor Author

I did a git commit -am instead of -m, my bad sorry, I'll remove .gitignore as well

@ganesh-k13
Copy link
Contributor Author

Okay, I am not able to reproduce it 🤔. I'm closing this PR. One observation that I had, I cannot repor is that __builtin_frame_address was not returning an address before bos variable, thus the stack variable was not getting tagged.

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