Skip to content

trans: Use an isize to count the number of registers so we don't underflow for fn's with > 7 args in debug builds. #29091

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

Merged
merged 1 commit into from
Oct 18, 2015

Conversation

luqmana
Copy link
Member

@luqmana luqmana commented Oct 16, 2015

Fixes #29073.

@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 16, 2015

📌 Commit 8719e94 has been approved by pnkfelix

@pnkfelix
Copy link
Member

@luqmana btw, were you testing/developing this in a debug build? (Probably not since bootstrapping debug-builds is currently hosed.)

I ask because this seems like a case we could add to the list of "bugs that would be caught by overflow/underflow checking arithmetic"...

@bors
Copy link
Collaborator

bors commented Oct 16, 2015

⌛ Testing commit 8719e94 with merge 02ffb5f...

@bors
Copy link
Collaborator

bors commented Oct 16, 2015

💔 Test failed - auto-mac-64-opt

// a, b, c, d should be in registers
// e, f should be on the stack
// s should be byval pointer on the stack
void byval_many_rect(int32_t a, int32_t b, int32_t c, int32_t d, int32_t e, int32_t f, struct Rect s) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This line failed tidy (> 100 chars).

…rflow for fn's with > 7 args in debug builds.
@luqmana luqmana force-pushed the 29073-overflow-cabi branch from 8719e94 to 82f08ea Compare October 17, 2015 01:11
@luqmana
Copy link
Member Author

luqmana commented Oct 17, 2015

@bors r=pnkfelix

@bors
Copy link
Collaborator

bors commented Oct 17, 2015

📌 Commit 82f08ea has been approved by pnkfelix

@luqmana
Copy link
Member Author

luqmana commented Oct 17, 2015

@pnkfelix Yea, it was with just --enable-optimize i believe since op+debug was broken and just debug too long.

@bors
Copy link
Collaborator

bors commented Oct 17, 2015

⌛ Testing commit 82f08ea with merge 92af6a1...

@bors
Copy link
Collaborator

bors commented Oct 17, 2015

💔 Test failed - auto-mac-64-opt

@apasel422
Copy link
Contributor

Looks like this timed out.

@dotdash
Copy link
Contributor

dotdash commented Oct 17, 2015

@bors retry
Am 17.10.2015 14:35 schrieb "Andrew Paseltiner" notifications@github.com:

Looks like this timed out.


Reply to this email directly or view it on GitHub
#29091 (comment).

@bors
Copy link
Collaborator

bors commented Oct 17, 2015

⌛ Testing commit 82f08ea with merge cbdd5ac...

@bors
Copy link
Collaborator

bors commented Oct 17, 2015

💔 Test failed - auto-linux-64-opt

@apasel422
Copy link
Contributor

It doesn't seem like the test failure is related to this PR. I was able to compile and run all tests successfully on my local 64-bit Linux machine with optimizations enabled.

@luqmana
Copy link
Member Author

luqmana commented Oct 18, 2015

@bors retry

@bors
Copy link
Collaborator

bors commented Oct 18, 2015

⌛ Testing commit 82f08ea with merge 4af89fe...

bors added a commit that referenced this pull request Oct 18, 2015
@bors bors merged commit 82f08ea into rust-lang:master Oct 18, 2015
@luqmana luqmana deleted the 29073-overflow-cabi branch October 29, 2015 00:51
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.

6 participants