]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoCentralize all configuration into config.rs
bjorn3 [Wed, 7 Apr 2021 09:52:11 +0000 (11:52 +0200)]
Centralize all configuration into config.rs

3 years agoMove BackendConfig to config.rs
bjorn3 [Wed, 7 Apr 2021 09:02:54 +0000 (11:02 +0200)]
Move BackendConfig to config.rs

3 years agoSimplify write_metadata
bjorn3 [Wed, 7 Apr 2021 08:54:43 +0000 (10:54 +0200)]
Simplify write_metadata

3 years agoRustup to rustc 1.53.0-nightly (c051c5ddd 2021-04-06)
bjorn3 [Wed, 7 Apr 2021 08:16:01 +0000 (10:16 +0200)]
Rustup to rustc 1.53.0-nightly (c051c5ddd 2021-04-06)

3 years agoFixup previous commit
bjorn3 [Tue, 6 Apr 2021 11:59:54 +0000 (13:59 +0200)]
Fixup previous commit

3 years agoFix rustc test suite by ignoring rustdoc test
bjorn3 [Tue, 6 Apr 2021 11:14:45 +0000 (13:14 +0200)]
Fix rustc test suite by ignoring rustdoc test

3 years agoRustup to rustc 1.53.0-nightly (d32238532 2021-04-05)
bjorn3 [Tue, 6 Apr 2021 10:27:45 +0000 (12:27 +0200)]
Rustup to rustc 1.53.0-nightly (d32238532 2021-04-05)

3 years agoSync from rust 354cc751b74e813f180755fa67bebcb669825755
bjorn3 [Tue, 6 Apr 2021 10:20:12 +0000 (12:20 +0200)]
Sync from rust 354cc751b74e813f180755fa67bebcb669825755

3 years agoRevert "Build with `-Cpanic=unwind` by default"
bjorn3 [Wed, 31 Mar 2021 11:47:10 +0000 (13:47 +0200)]
Revert "Build with `-Cpanic=unwind` by default"

This reverts commit afe74d71e4c2f08696ade0de321a45f7442440d8. It
shouldn't have been pushed to master as it isn't ready yet.

3 years agoRemove the cold block optimization
bjorn3 [Wed, 31 Mar 2021 10:42:30 +0000 (12:42 +0200)]
Remove the cold block optimization

It isn't effective with the new backend framework

3 years agoRemove the stack2reg optimization completely
bjorn3 [Wed, 31 Mar 2021 10:34:01 +0000 (12:34 +0200)]
Remove the stack2reg optimization completely

It is broken and needs to be rewritten from scratch

3 years agoBuild with `-Cpanic=unwind` by default
bjorn3 [Wed, 31 Mar 2021 09:39:03 +0000 (11:39 +0200)]
Build with `-Cpanic=unwind` by default

This doesn't enable unwinding as cg_clif doesn't support it yet. It does
allow for linking to a cg_llvm compiled libstd.so, which uses
`-Cpanic=unwind`.

3 years agoAdd an Mmap wrapper to rustc_data_structures
bjorn3 [Mon, 29 Mar 2021 09:18:52 +0000 (11:18 +0200)]
Add an Mmap wrapper to rustc_data_structures

This wrapper implements StableAddress and falls back to directly reading
the file on wasm32

3 years agoSync from rust 3aedcf06b73fc36feeebca3d579e1d2a6c40acc5
bjorn3 [Mon, 29 Mar 2021 14:33:09 +0000 (16:33 +0200)]
Sync from rust 3aedcf06b73fc36feeebca3d579e1d2a6c40acc5

3 years agoMerge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
bjorn3 [Mon, 29 Mar 2021 08:45:09 +0000 (10:45 +0200)]
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29

3 years agoRustup to rustc 1.53.0-nightly (4a20eb6a9 2021-03-28)
bjorn3 [Mon, 29 Mar 2021 08:26:20 +0000 (10:26 +0200)]
Rustup to rustc 1.53.0-nightly (4a20eb6a9 2021-03-28)

3 years agoMake all compiler-builtins symbols hidden
bjorn3 [Sat, 27 Mar 2021 16:32:41 +0000 (17:32 +0100)]
Make all compiler-builtins symbols hidden

This matches cg_llvm

Fixes #1152

3 years agoRustfmt
bjorn3 [Fri, 26 Mar 2021 13:35:51 +0000 (14:35 +0100)]
Rustfmt

3 years agoRustup to rustc 1.53.0-nightly (52e3dffa5 2021-03-25)
bjorn3 [Fri, 26 Mar 2021 12:33:03 +0000 (13:33 +0100)]
Rustup to rustc 1.53.0-nightly (52e3dffa5 2021-03-25)

3 years agoSync from rust 4137088d9da94f693b287f35e2b17782c0b1a283
bjorn3 [Fri, 26 Mar 2021 12:02:49 +0000 (13:02 +0100)]
Sync from rust 4137088d9da94f693b287f35e2b17782c0b1a283

3 years agoRustfmt
bjorn3 [Sun, 21 Mar 2021 09:05:48 +0000 (10:05 +0100)]
Rustfmt

3 years agoUpdate Cranelift
bjorn3 [Sun, 21 Mar 2021 09:05:22 +0000 (10:05 +0100)]
Update Cranelift

3 years agoupdate `const_eval_resolve`
lcnr [Sat, 13 Mar 2021 15:31:38 +0000 (16:31 +0100)]
update `const_eval_resolve`

3 years agoAdd simd_neg platform intrinsic
SparrowLii [Thu, 18 Mar 2021 18:16:21 +0000 (02:16 +0800)]
Add simd_neg platform intrinsic

3 years agoFix rustc test suite
bjorn3 [Thu, 18 Mar 2021 11:51:58 +0000 (12:51 +0100)]
Fix rustc test suite

3 years agoAvoid nightly feature usage where easily possible
bjorn3 [Thu, 18 Mar 2021 11:20:24 +0000 (12:20 +0100)]
Avoid nightly feature usage where easily possible

3 years agoRustup to rustc 1.52.0-nightly (36f1f04f1 2021-03-17)
bjorn3 [Thu, 18 Mar 2021 11:19:31 +0000 (12:19 +0100)]
Rustup to rustc 1.52.0-nightly (36f1f04f1 2021-03-17)

3 years agoSync from rust 04ae50179a802d1d18bb780baa85f55864f56616
bjorn3 [Wed, 17 Mar 2021 17:36:30 +0000 (18:36 +0100)]
Sync from rust 04ae50179a802d1d18bb780baa85f55864f56616

3 years agoDirectly invoke the main function in JIT mode
bjorn3 [Wed, 17 Mar 2021 12:56:54 +0000 (13:56 +0100)]
Directly invoke the main function in JIT mode

Fixes #1151

3 years agoRustfmt
bjorn3 [Wed, 17 Mar 2021 12:54:40 +0000 (13:54 +0100)]
Rustfmt

3 years agoEnable thread test in std_example
bjorn3 [Mon, 15 Mar 2021 17:01:48 +0000 (18:01 +0100)]
Enable thread test in std_example

Turns out libstd doesn't use #[thread_local] on Windows at all

3 years agoMerge pull request #1149 from bjorn3/test_rustc_testsuite
bjorn3 [Mon, 15 Mar 2021 15:30:52 +0000 (16:30 +0100)]
Merge pull request #1149 from bjorn3/test_rustc_testsuite

Run the rustc test suite on CI

3 years agoRun the rustc test suite on CI
bjorn3 [Mon, 15 Mar 2021 13:49:57 +0000 (14:49 +0100)]
Run the rustc test suite on CI

3 years agoSuppress an unnecessary warning and fix an incorrect warning
bjorn3 [Mon, 15 Mar 2021 13:48:58 +0000 (14:48 +0100)]
Suppress an unnecessary warning and fix an incorrect warning

3 years agoFix assert_assignable adt checking
bjorn3 [Mon, 15 Mar 2021 13:22:11 +0000 (14:22 +0100)]
Fix assert_assignable adt checking

3 years agoSplit rust fork setup out of test_bootstrap.sh
bjorn3 [Mon, 15 Mar 2021 13:21:15 +0000 (14:21 +0100)]
Split rust fork setup out of test_bootstrap.sh

3 years agoUpdate Cranelift
bjorn3 [Mon, 15 Mar 2021 13:04:22 +0000 (14:04 +0100)]
Update Cranelift

3 years agoRemove no longer necessary intcasts
bjorn3 [Mon, 15 Mar 2021 12:55:54 +0000 (13:55 +0100)]
Remove no longer necessary intcasts

3 years agos/ConstantSource/ConstantKind/
Oli Scherer [Mon, 15 Mar 2021 11:23:44 +0000 (11:23 +0000)]
s/ConstantSource/ConstantKind/

3 years agoUse mmap for metadata loading
bjorn3 [Mon, 15 Mar 2021 10:59:06 +0000 (11:59 +0100)]
Use mmap for metadata loading

This can have a significant improvement on compilation times. In
addition it reduces the memory consumption.

Fixes #927

3 years agoSpecial case ZST's in Rvalue::Repeat
bjorn3 [Mon, 15 Mar 2021 09:22:21 +0000 (10:22 +0100)]
Special case ZST's in Rvalue::Repeat

Fixes #1146 by preventing a hang for [(); usize::MAX], which is used in
a test of libcore.

3 years agoPrepare mir::Constant for ty::Const only supporting valtrees
Oli Scherer [Mon, 8 Mar 2021 16:18:03 +0000 (16:18 +0000)]
Prepare mir::Constant for ty::Const only supporting valtrees

3 years agoAuto merge of #76570 - cratelyn:implement-rfc-2945-c-unwind-abi, r=Amanieu
bors [Wed, 10 Mar 2021 16:44:04 +0000 (16:44 +0000)]
Auto merge of #76570 - cratelyn:implement-rfc-2945-c-unwind-abi, r=Amanieu

Implement RFC 2945: "C-unwind" ABI

## Implement RFC 2945: "C-unwind" ABI

This branch implements [RFC 2945]. The tracking issue for this RFC is #74990.

The feature gate for the issue is `#![feature(c_unwind)]`.

This RFC was created as part of the ffi-unwind project group tracked at rust-lang/lang-team#19.

### Changes

Further details will be provided in commit messages, but a high-level overview
of the changes follows:

* A boolean `unwind` payload is added to the `C`, `System`, `Stdcall`,
and `Thiscall` variants, marking whether unwinding across FFI boundaries is
acceptable. The cases where each of these variants' `unwind` member is true
correspond with the `C-unwind`, `system-unwind`, `stdcall-unwind`, and
`thiscall-unwind` ABI strings introduced in RFC 2945 [3].

* This commit adds a `c_unwind` feature gate for the new ABI strings.
Tests for this feature gate are included in `src/test/ui/c-unwind/`, which
ensure that this feature gate works correctly for each of the new ABIs.
A new language features entry in the unstable book is added as well.

* We adjust the `rustc_middle::ty::layout::fn_can_unwind` function,
used to compute whether or not a `FnAbi` object represents a function that
should be able to unwind when `panic=unwind` is in use.

* Changes are also made to
`rustc_mir_build::build::should_abort_on_panic` so that the function ABI is
used to determind whether it should abort, assuming that the `panic=unwind`
strategy is being used, and no explicit unwind attribute was provided.

[RFC 2945]: https://github.com/rust-lang/rfcs/blob/master/text/2945-c-unwind-abi.md

3 years agorustc_target: add "unwind" payloads to `Abi`
katelyn a. martin [Thu, 27 Aug 2020 15:49:18 +0000 (11:49 -0400)]
rustc_target: add "unwind" payloads to `Abi`

 ### Overview

    This commit begins the implementation work for RFC 2945. For more
    information, see the rendered RFC [1] and tracking issue [2].

    A boolean `unwind` payload is added to the `C`, `System`, `Stdcall`,
    and `Thiscall` variants, marking whether unwinding across FFI
    boundaries is acceptable. The cases where each of these variants'
    `unwind` member is true correspond with the `C-unwind`,
    `system-unwind`, `stdcall-unwind`, and `thiscall-unwind` ABI strings
    introduced in RFC 2945 [3].

 ### Feature Gate and Unstable Book

    This commit adds a `c_unwind` feature gate for the new ABI strings.
    Tests for this feature gate are included in `src/test/ui/c-unwind/`,
    which ensure that this feature gate works correctly for each of the
    new ABIs.

    A new language features entry in the unstable book is added as well.

 ### Further Work To Be Done

    This commit does not proceed to implement the new unwinding ABIs,
    and is intentionally scoped specifically to *defining* the ABIs and
    their feature flag.

 ### One Note on Test Churn

    This will lead to some test churn, in re-blessing hash tests, as the
    deleted comment in `src/librustc_target/spec/abi.rs` mentioned,
    because we can no longer guarantee the ordering of the `Abi`
    variants.

    While this is a downside, this decision was made bearing in mind
    that RFC 2945 states the following, in the "Other `unwind` Strings"
    section [3]:

    >  More unwind variants of existing ABI strings may be introduced,
    >  with the same semantics, without an additional RFC.

    Adding a new variant for each of these cases, rather than specifying
    a payload for a given ABI, would quickly become untenable, and make
    working with the `Abi` enum prone to mistakes.

    This approach encodes the unwinding information *into* a given ABI,
    to account for the future possibility of other `-unwind` ABI
    strings.

 ### Ignore Directives

    `ignore-*` directives are used in two of our `*-unwind` ABI test
    cases.

    Specifically, the `stdcall-unwind` and `thiscall-unwind` test cases
    ignore architectures that do not support `stdcall` and
    `thiscall`, respectively.

    These directives are cribbed from
    `src/test/ui/c-variadic/variadic-ffi-1.rs` for `stdcall`, and
    `src/test/ui/extern/extern-thiscall.rs` for `thiscall`.

    This would otherwise fail on some targets, see:
    https://github.com/rust-lang-ci/rust/commit/fcf697f90206e9c87b39d494f94ab35d976bfc60

 ### Footnotes

[1]: https://github.com/rust-lang/rfcs/blob/master/text/2945-c-unwind-abi.md
[2]: https://github.com/rust-lang/rust/issues/74990
[3]: https://github.com/rust-lang/rfcs/blob/master/text/2945-c-unwind-abi.md#other-unwind-abi-strings

3 years agoClean up todos
kadmin [Fri, 26 Feb 2021 16:42:51 +0000 (16:42 +0000)]
Clean up todos

Also add some span_bugs where it is unreachable

3 years agoBuild StKind::CopyOverlapping
kadmin [Sat, 23 Jan 2021 03:55:41 +0000 (03:55 +0000)]
Build StKind::CopyOverlapping

This replaces where it was previously being constructed in intrinsics, with direct construction
of the Statement.

3 years agoUpdate cranelift
kadmin [Tue, 29 Dec 2020 02:00:04 +0000 (02:00 +0000)]
Update cranelift

3 years agoAdjust for changed -Zmir-opt-level numbering
bjorn3 [Tue, 9 Mar 2021 15:45:55 +0000 (16:45 +0100)]
Adjust for changed -Zmir-opt-level numbering

3 years agoLower GHA timeout to 60 min
bjorn3 [Tue, 9 Mar 2021 15:30:31 +0000 (16:30 +0100)]
Lower GHA timeout to 60 min

3 years agoUpdate config name for latest rust-analyzer
bjorn3 [Tue, 9 Mar 2021 11:52:43 +0000 (12:52 +0100)]
Update config name for latest rust-analyzer

3 years agoAdd rustc_private=true to the package metadata for rust-analyzer
bjorn3 [Tue, 9 Mar 2021 11:46:04 +0000 (12:46 +0100)]
Add rustc_private=true to the package metadata for rust-analyzer

3 years agoSome clippy fixes
bjorn3 [Tue, 9 Mar 2021 11:37:39 +0000 (12:37 +0100)]
Some clippy fixes

3 years agoRustup to rustc 1.52.0-nightly (8f349be27 2021-03-08)
bjorn3 [Tue, 9 Mar 2021 09:16:43 +0000 (10:16 +0100)]
Rustup to rustc 1.52.0-nightly (8f349be27 2021-03-08)

3 years agoSync from rust 4b9f5cc4c10a161047475cb9bbe02c4fda57fb07
bjorn3 [Tue, 9 Mar 2021 09:10:40 +0000 (10:10 +0100)]
Sync from rust 4b9f5cc4c10a161047475cb9bbe02c4fda57fb07

3 years agoAuto merge of #82727 - oli-obk:shrinkmem, r=pnkfelix
bors [Mon, 8 Mar 2021 08:39:24 +0000 (08:39 +0000)]
Auto merge of #82727 - oli-obk:shrinkmem, r=pnkfelix

Test the effect of shrinking the size of Rvalue by 16 bytes

r? `@ghost`

3 years agoUse the new component dependency option of the rust-toolchain file (take 2)
bjorn3 [Fri, 27 Nov 2020 15:52:17 +0000 (16:52 +0100)]
Use the new component dependency option of the rust-toolchain file (take 2)

3 years agoAdd license section to the readme
bjorn3 [Sat, 6 Mar 2021 18:26:11 +0000 (19:26 +0100)]
Add license section to the readme

Just in case

3 years agoMore doc fixes
bjorn3 [Sat, 6 Mar 2021 18:22:36 +0000 (19:22 +0100)]
More doc fixes

3 years agoRevert "Use jemalloc"
bjorn3 [Sat, 6 Mar 2021 18:21:30 +0000 (19:21 +0100)]
Revert "Use jemalloc"

This reverts commit d194c707c82198864cd1493a9e104f904d354e16.

It fails the bootstrap test as jemalloc_sys is not built

3 years agoMove the more advanced ways to use cg_clif to usage.md
bjorn3 [Sat, 6 Mar 2021 18:19:29 +0000 (19:19 +0100)]
Move the more advanced ways to use cg_clif to usage.md

3 years agoUse jemalloc
bjorn3 [Sat, 6 Mar 2021 17:59:01 +0000 (18:59 +0100)]
Use jemalloc

3 years agoAdd clif comments when in release mode
bjorn3 [Sat, 6 Mar 2021 17:45:04 +0000 (18:45 +0100)]
Add clif comments when in release mode

Fixes #1130

3 years agoMake it possible to enable the verifier in release mode
bjorn3 [Sat, 6 Mar 2021 14:33:47 +0000 (15:33 +0100)]
Make it possible to enable the verifier in release mode

3 years agoHandle #![windows_subsystem]
bjorn3 [Sat, 6 Mar 2021 13:58:29 +0000 (14:58 +0100)]
Handle #![windows_subsystem]

3 years agoFix warning
bjorn3 [Sat, 6 Mar 2021 13:49:55 +0000 (14:49 +0100)]
Fix warning

3 years agoUse --print file-names instead of a match on uname
bjorn3 [Sat, 6 Mar 2021 13:46:38 +0000 (14:46 +0100)]
Use --print file-names instead of a match on uname

3 years agoMerge pull request #1145 from bjorn3/mingw_support
bjorn3 [Fri, 5 Mar 2021 22:03:06 +0000 (23:03 +0100)]
Merge pull request #1145 from bjorn3/mingw_support

Support cross-compiling to Windows using MinGW

3 years agoTest Windows cross-compilation on CI
bjorn3 [Thu, 25 Feb 2021 13:54:52 +0000 (14:54 +0100)]
Test Windows cross-compilation on CI

3 years agoBuild all tests when cross-compiling
bjorn3 [Thu, 25 Feb 2021 13:35:27 +0000 (14:35 +0100)]
Build all tests when cross-compiling

3 years agoSupport cross-compiling to Windows using MinGW
bjorn3 [Mon, 25 May 2020 19:43:22 +0000 (21:43 +0200)]
Support cross-compiling to Windows using MinGW

3 years agoUpdate Cranelift
bjorn3 [Fri, 5 Mar 2021 20:32:37 +0000 (21:32 +0100)]
Update Cranelift

This adds support for the WindowsFastcall calling convention

3 years agoMerge branch 'sync_from_rust'
bjorn3 [Fri, 5 Mar 2021 18:13:22 +0000 (19:13 +0100)]
Merge branch 'sync_from_rust'

3 years agoMerge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
bjorn3 [Fri, 5 Mar 2021 18:12:59 +0000 (19:12 +0100)]
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05

3 years agoDisable value debuginfo
bjorn3 [Fri, 5 Mar 2021 09:45:56 +0000 (10:45 +0100)]
Disable value debuginfo

This prevents an expensive Cranelift pass from running to reconstruct the debuginfo

3 years agoRustfmt
bjorn3 [Fri, 5 Mar 2021 10:21:44 +0000 (11:21 +0100)]
Rustfmt

3 years agoRustup to rustc 1.52.0-nightly (45b3c2851 2021-03-04)
bjorn3 [Fri, 5 Mar 2021 09:58:30 +0000 (10:58 +0100)]
Rustup to rustc 1.52.0-nightly (45b3c2851 2021-03-04)

3 years agoSync from rust a0d66b54fb3acc2125972b88ff543a2c04d14af5
bjorn3 [Fri, 5 Mar 2021 09:46:59 +0000 (10:46 +0100)]
Sync from rust a0d66b54fb3acc2125972b88ff543a2c04d14af5

3 years agoShrink the size of Rvalue by 16 bytes
Oli Scherer [Fri, 5 Mar 2021 09:32:47 +0000 (09:32 +0000)]
Shrink the size of Rvalue by 16 bytes

3 years agoFix bootstrap test script
bjorn3 [Mon, 1 Mar 2021 11:34:49 +0000 (12:34 +0100)]
Fix bootstrap test script

3 years agoUpdate Cranelift
bjorn3 [Mon, 1 Mar 2021 11:19:22 +0000 (12:19 +0100)]
Update Cranelift

Fixes #1143

3 years agoRollup merge of #81940 - jhpratt:stabilize-str_split_once, r=m-ou-se
Guillaume Gomez [Fri, 26 Feb 2021 14:52:29 +0000 (15:52 +0100)]
Rollup merge of #81940 - jhpratt:stabilize-str_split_once, r=m-ou-se

Stabilize str_split_once

Closes #74773

3 years agoMerge pull request #1144 from bjorn3/dynamic_module
bjorn3 [Tue, 23 Feb 2021 20:00:33 +0000 (21:00 +0100)]
Merge pull request #1144 from bjorn3/dynamic_module

Use dynamic dispatch for the inner Module

3 years agoUse dynamic dispatch for the inner Module
bjorn3 [Mon, 22 Feb 2021 15:00:20 +0000 (16:00 +0100)]
Use dynamic dispatch for the inner Module

This improves compilation time and shrinks the linked backend from
13MB to 9.7MB on Linux.

3 years agoUpdate Cranelift
bjorn3 [Tue, 23 Feb 2021 17:48:45 +0000 (18:48 +0100)]
Update Cranelift

3 years agoDisable macro-error rust-analyzer diagnostic
bjorn3 [Tue, 23 Feb 2021 08:56:16 +0000 (09:56 +0100)]
Disable macro-error rust-analyzer diagnostic

3 years agoUpdate dependencies
bjorn3 [Mon, 22 Feb 2021 13:56:06 +0000 (14:56 +0100)]
Update dependencies

3 years agoUpdate Cranelift
bjorn3 [Mon, 22 Feb 2021 13:46:24 +0000 (14:46 +0100)]
Update Cranelift

3 years agoRustup to rustc 1.52.0-nightly (83b30a639 2021-02-20)
bjorn3 [Sun, 21 Feb 2021 16:27:53 +0000 (17:27 +0100)]
Rustup to rustc 1.52.0-nightly (83b30a639 2021-02-20)

3 years agoRustfmt
bjorn3 [Sun, 21 Feb 2021 16:03:21 +0000 (17:03 +0100)]
Rustfmt

3 years agoSync from rust 3e826bb11228508fbe749e594038d6727208aa94
bjorn3 [Sun, 21 Feb 2021 16:02:04 +0000 (17:02 +0100)]
Sync from rust 3e826bb11228508fbe749e594038d6727208aa94

3 years agoVarious enum to int cast fixes
bjorn3 [Sun, 21 Feb 2021 15:42:39 +0000 (16:42 +0100)]
Various enum to int cast fixes

3 years agoRevert "Remove shift amount masking"
bjorn3 [Sun, 21 Feb 2021 13:39:31 +0000 (14:39 +0100)]
Revert "Remove shift amount masking"

This reverts commit c5f98b586f9c835e8e3ebecf3db260d2f0ad402a.

It turns out to be necessary anyway

3 years agoAssume constants can't fail to evaluate
bjorn3 [Sun, 21 Feb 2021 12:58:56 +0000 (13:58 +0100)]
Assume constants can't fail to evaluate

See rust-lang/rust#81327 for the same change to cg_llvm

3 years agoAvoid a temporary stackslot in codegen_checked_int_binop
bjorn3 [Sun, 21 Feb 2021 11:48:43 +0000 (12:48 +0100)]
Avoid a temporary stackslot in codegen_checked_int_binop

3 years agoFix CI
bjorn3 [Sun, 21 Feb 2021 11:34:21 +0000 (12:34 +0100)]
Fix CI

3 years agoRemove workaround for stack_{load,store}.i128 not being implemented
bjorn3 [Sun, 21 Feb 2021 11:18:43 +0000 (12:18 +0100)]
Remove workaround for stack_{load,store}.i128 not being implemented

3 years agoDirectly use Cranelift instructions for 128bit int shifts
bjorn3 [Sun, 21 Feb 2021 11:09:13 +0000 (12:09 +0100)]
Directly use Cranelift instructions for 128bit int shifts

3 years agoRemove shift amount masking
bjorn3 [Sun, 21 Feb 2021 11:03:02 +0000 (12:03 +0100)]
Remove shift amount masking

Unlike the old x75 backend, the new x64 backend masks the shift amount
itself, matching the specified semantics.

3 years agoRe-enable some now compiling libcore tests
bjorn3 [Sun, 21 Feb 2021 10:18:01 +0000 (11:18 +0100)]
Re-enable some now compiling libcore tests

cc #806

3 years agoDon't build alloc_system as part of the sysroot
bjorn3 [Sun, 21 Feb 2021 09:56:25 +0000 (10:56 +0100)]
Don't build alloc_system as part of the sysroot