]> git.lizzy.rs Git - rust.git/log
rust.git
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 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 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

3 years agoRemove unnecessary parts from alloc_system
bjorn3 [Sun, 21 Feb 2021 09:49:55 +0000 (10:49 +0100)]
Remove unnecessary parts from alloc_system

3 years agoDon't write clif ir by default when debug assertions are enabled
bjorn3 [Sun, 21 Feb 2021 09:42:31 +0000 (10:42 +0100)]
Don't write clif ir by default when debug assertions are enabled

3 years agoDon't import the metadata symbol
bjorn3 [Sun, 21 Feb 2021 09:40:30 +0000 (10:40 +0100)]
Don't import the metadata symbol

Helps with #1134

3 years agoMerge pull request #1140 from bjorn3/no_more_oldbe
bjorn3 [Sun, 21 Feb 2021 09:13:37 +0000 (10:13 +0100)]
Merge pull request #1140 from bjorn3/no_more_oldbe

Remove support for the old x86 Cranelift backend

3 years agoDisable stack2reg optimization
bjorn3 [Sat, 20 Feb 2021 15:55:30 +0000 (16:55 +0100)]
Disable stack2reg optimization

It causes a miscompilation of lewton

Fixes #1142

3 years agoUse a QueryContext for try_mark_green.
Camille GILLOT [Mon, 18 Jan 2021 22:53:42 +0000 (23:53 +0100)]
Use a QueryContext for try_mark_green.

3 years agoDisable 128bit atomic operations on macOS
bjorn3 [Thu, 18 Feb 2021 17:32:40 +0000 (18:32 +0100)]
Disable 128bit atomic operations on macOS

3 years agoUse real atomic instructions instead of a global lock
bjorn3 [Tue, 9 Feb 2021 13:36:25 +0000 (14:36 +0100)]
Use real atomic instructions instead of a global lock

3 years agoRemove support for x86 oldBE
bjorn3 [Tue, 9 Feb 2021 12:47:29 +0000 (13:47 +0100)]
Remove support for x86 oldBE

3 years agoUpdate Cranelift
bjorn3 [Thu, 18 Feb 2021 16:59:13 +0000 (17:59 +0100)]
Update Cranelift

3 years agoUse an ItemId inside mir::GlobalAsm.
Camille GILLOT [Sat, 30 Jan 2021 18:18:48 +0000 (19:18 +0100)]
Use an ItemId inside mir::GlobalAsm.

3 years agoMerge pull request #1138 from bjorn3/cirrus_ci
bjorn3 [Sun, 14 Feb 2021 17:58:07 +0000 (18:58 +0100)]
Merge pull request #1138 from bjorn3/cirrus_ci

Test FreeBSD on CI

3 years agoTest FreeBSD on Cirrus CI
bjorn3 [Sun, 14 Feb 2021 11:54:00 +0000 (12:54 +0100)]
Test FreeBSD on Cirrus CI

3 years agoRecognize FreeBSD as OS
bjorn3 [Sun, 14 Feb 2021 14:09:01 +0000 (15:09 +0100)]
Recognize FreeBSD as OS

3 years agoUse #!/usr/bin/env bash
bjorn3 [Sun, 14 Feb 2021 13:43:23 +0000 (14:43 +0100)]
Use #!/usr/bin/env bash

FreeBSD doesn't have /bin/bash

3 years agoRustfmt
bjorn3 [Fri, 12 Feb 2021 15:40:08 +0000 (15:40 +0000)]
Rustfmt

3 years agoPass around BackendConfig
bjorn3 [Fri, 12 Feb 2021 15:39:58 +0000 (15:39 +0000)]
Pass around BackendConfig

3 years agoStabilize str_split_once
Jacob Pratt [Tue, 9 Feb 2021 22:30:37 +0000 (17:30 -0500)]
Stabilize str_split_once

3 years agoRevert "Update libc and libloading"
bjorn3 [Tue, 9 Feb 2021 12:19:19 +0000 (13:19 +0100)]
Revert "Update libc and libloading"

This reverts commit bfcf97bd8360931eb088d65f247fc9e1016f8199.

It causes a "can't resolve symbol" crash on macOS

3 years agoUpdate libc and libloading
bjorn3 [Tue, 9 Feb 2021 11:40:43 +0000 (12:40 +0100)]
Update libc and libloading

3 years agoUpdate Cranelift
bjorn3 [Tue, 9 Feb 2021 11:34:13 +0000 (12:34 +0100)]
Update Cranelift

3 years agoRustup to rustc 1.52.0-nightly (0fc6756b4 2021-02-08)
bjorn3 [Tue, 9 Feb 2021 11:30:06 +0000 (12:30 +0100)]
Rustup to rustc 1.52.0-nightly (0fc6756b4 2021-02-08)

3 years agoSync from rust f4008fe94935d05ffb3a48fc5b7149070bb45550
bjorn3 [Tue, 9 Feb 2021 11:21:17 +0000 (12:21 +0100)]
Sync from rust f4008fe94935d05ffb3a48fc5b7149070bb45550

3 years agoRustfmt
bjorn3 [Wed, 3 Feb 2021 11:21:22 +0000 (12:21 +0100)]
Rustfmt

3 years agoUpdate dependencies
bjorn3 [Wed, 3 Feb 2021 10:55:17 +0000 (11:55 +0100)]
Update dependencies

3 years agoUpdate Cranelift
bjorn3 [Wed, 3 Feb 2021 10:53:23 +0000 (11:53 +0100)]
Update Cranelift

3 years agoAdd a new ABI to support cmse_nonsecure_call
Hugues de Valon [Sun, 24 Jan 2021 17:15:05 +0000 (17:15 +0000)]
Add a new ABI to support cmse_nonsecure_call

This commit adds a new ABI to be selected via `extern
"C-cmse-nonsecure-call"` on function pointers in order for the compiler to
apply the corresponding cmse_nonsecure_call callsite attribute.
For Armv8-M targets supporting TrustZone-M, this will perform a
non-secure function call by saving, clearing and calling a non-secure
function pointer using the BLXNS instruction.

See the page on the unstable book for details.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
3 years agoFix rustc bootstrap test
bjorn3 [Fri, 22 Jan 2021 13:15:12 +0000 (14:15 +0100)]
Fix rustc bootstrap test

3 years agoRustup to rustc 1.51.0-nightly (d4e3570db 2021-02-01)
bjorn3 [Tue, 2 Feb 2021 09:24:19 +0000 (10:24 +0100)]
Rustup to rustc 1.51.0-nightly (d4e3570db 2021-02-01)

3 years agoSync from rust d60b29d1ae8147538b8d542f7ffcc03b48e2cbda
bjorn3 [Tue, 2 Feb 2021 09:18:16 +0000 (10:18 +0100)]
Sync from rust d60b29d1ae8147538b8d542f7ffcc03b48e2cbda

3 years agoRollup merge of #81618 - bjorn3:sync_cg_clif-2021-02-01, r=bjorn3
Jonas Schievink [Mon, 1 Feb 2021 13:29:47 +0000 (14:29 +0100)]
Rollup merge of #81618 - bjorn3:sync_cg_clif-2021-02-01, r=bjorn3

Sync rustc_codegen_cranelift

The highlight of this sync are abi compatibility with cg_llvm allowing mixing of cg_clif and cg_llvm compiled crates and switching to the x64 cranelift backend based on the new backend framework.

r? ``@ghost``

``@rustbot`` label +A-codegen +A-cranelift +T-compiler

3 years agoMerge branch 'sync_from_rust'
bjorn3 [Mon, 1 Feb 2021 09:12:52 +0000 (10:12 +0100)]
Merge branch 'sync_from_rust'

3 years agoMerge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
bjorn3 [Mon, 1 Feb 2021 09:11:46 +0000 (10:11 +0100)]
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01

3 years agoAdd option to build using the sysroot of rustc
bjorn3 [Sun, 31 Jan 2021 17:31:33 +0000 (18:31 +0100)]
Add option to build using the sysroot of rustc

3 years agoMove some env var definitions around to fix cross-compilation
bjorn3 [Sun, 31 Jan 2021 13:56:10 +0000 (14:56 +0100)]
Move some env var definitions around to fix cross-compilation

3 years agoFix a small error in the readme
bjorn3 [Sun, 31 Jan 2021 13:15:50 +0000 (14:15 +0100)]
Fix a small error in the readme

3 years agoRemove code comment
bjorn3 [Sun, 31 Jan 2021 13:04:19 +0000 (14:04 +0100)]
Remove code comment

3 years agoSplit config.sh and add support for copying the mingw runtime objects
bjorn3 [Sun, 31 Jan 2021 12:08:07 +0000 (13:08 +0100)]
Split config.sh and add support for copying the mingw runtime objects