Skip to content

mul.rs: use wrapping_mul to avoid infinite recursion #132

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
Jan 2, 2017

Conversation

parched
Copy link
Contributor

@parched parched commented Jan 2, 2017

rustc in debug mode with a plain multiplication will call @llvm.umul.with.overflow.* which may call the builtin resulting in infinite recursion.

Fixes #127.

Cc @nezza this should be the fix you can try. Note I made this patch in github's web Ui so it's completely untested.

rustc in debug mode with a plain multiplication will call @llvm.umul.with.overflow.* which may call the builtin resulting in infinite recursion.
@japaric
Copy link
Member

japaric commented Jan 2, 2017

Thanks, @parched!

@bors r+

@bors
Copy link
Contributor

bors commented Jan 2, 2017

📌 Commit ee0aacf has been approved by japaric

@bors
Copy link
Contributor

bors commented Jan 2, 2017

⌛ Testing commit ee0aacf with merge 764557f...

bors added a commit that referenced this pull request Jan 2, 2017
mul.rs: use wrapping_mul to avoid infinite recursion

rustc in debug mode with a plain multiplication will call @llvm.umul.with.overflow.* which may call the builtin resulting in infinite recursion.

Fixes #127.

Cc @nezza this should be the fix you can try. Note I made this patch in github's web Ui so it's completely untested.
@bors
Copy link
Contributor

bors commented Jan 2, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: japaric
Pushing 764557f to master...

@bors bors merged commit ee0aacf into rust-lang:master Jan 2, 2017
tgross35 pushed a commit to tgross35/compiler-builtins that referenced this pull request Feb 23, 2025
132: add newlib support to the test generator r=japaric a=japaric



Co-authored-by: Jorge Aparicio <[email protected]>
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.

__aeabi_lmul on thumbv6m-none-eabi
3 participants