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

64-bit signed/unsigned overflow checked multiplication unavailable on 32-bit #8449

Closed
thestinger opened this issue Aug 11, 2013 · 1 comment · Fixed by #12276
Closed

64-bit signed/unsigned overflow checked multiplication unavailable on 32-bit #8449

thestinger opened this issue Aug 11, 2013 · 1 comment · Fixed by #12276
Labels
A-codegen Area: Code generation

Comments

@thestinger
Copy link
Contributor

LLVM relies on the existence of support in compiler-rt for this on some platforms, but we're using libgcc so it's broken.

http://llvm.org/bugs/show_bug.cgi?id=14469

I suspect we are going to run into this again as we gain support for more of LLVM's capabilities, for now I'm just going to disable CheckedMul for i64 and u64 on 32-bit.

@alexcrichton
Copy link
Member

This is fixable now that we are linking against compiler-rt

bors added a commit that referenced this issue Feb 15, 2014
This was just waiting for compiler-rt support, which was added in #12027

Closes #8449
flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 7, 2022
Rework `undocumented_unsafe_blocks`

fixes: rust-lang#8264
fixes: rust-lang#8449

One thing came up while working on this. Currently comments on the same line are supported like so:

```rust
/* SAFETY: reason */ unsafe {}
```

Is this worth supporting at all? Anything other than a couple of words doesn't really fit well.

edit: [zulip topic](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/.60undocumented_unsafe_blocks.60.20same.20line.20comment)

changelog: Don't lint `undocumented_unsafe_blocks` when the unsafe block comes from a proc-macro.
changelog: Don't lint `undocumented_unsafe_blocks` when the preceding line has a safety comment and the unsafe block is a sub-expression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants