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

Sync rustc_codegen_gcc #92457

Merged
merged 45 commits into from
Jan 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
27a819e
Rebase fallout.
cjgillot Sep 30, 2021
583170a
Move rustc_middle::middle::cstore to rustc_session.
cjgillot Nov 14, 2020
7033f75
Create more accurate debuginfo for vtables.
michaelwoerister Oct 6, 2021
775b6da
Auto merge of #89597 - michaelwoerister:improve-vtable-debuginfo, r=w…
bors Oct 11, 2021
6693595
Add missing cast and change some bitcasts to casts to avoid a gimple …
antoyo Oct 11, 2021
863cfb2
Fix FIXME in `Builder::and` and `Builder::or` impls (#101)
fisherdarling Oct 12, 2021
98f0580
Remove alloc::prelude
Amanieu Oct 14, 2021
ce9faca
Make hash_result an Option.
cjgillot Oct 16, 2021
1d064f1
Disable strict aliasing (#104)
antoyo Oct 25, 2021
14b83de
Add LLVM CFI support to the Rust compiler
rcvalle Oct 7, 2021
8094e2e
Properly check `target_features` not to trigger an assertion
JohnTitor Oct 20, 2021
d5a6aaf
Auto merge of #89652 - rcvalle:rust-cfi, r=nagisa
bors Oct 27, 2021
fc8e79f
Sync from rust (#107)
antoyo Oct 30, 2021
08183f9
Remove unused dependency on object (#102)
bjorn3 Oct 31, 2021
ebe6f67
Fix negation operation (#108)
antoyo Oct 31, 2021
a912fed
Remove workaround for the forward progress handling in LLVM
andjo403 Nov 14, 2021
0d61135
Feat: make cg_ssa get_param borrow the builder mutable
RDambrosio016 Nov 24, 2021
dcd4825
fix sparc64 ABI for aggregates with floating point members
psumbera Dec 1, 2021
48fc7d9
Auto merge of #91003 - psumbera:sparc64-abi, r=nagisa
bors Dec 2, 2021
b7cb08d
rustc_codegen_gcc: error on unwinding inline asm
cynecx Nov 12, 2021
4fa64fd
rustc_codegen_gcc: proper check for may_unwind
cynecx Nov 19, 2021
4e68093
Implement inline asm! for AVR platform
couchand Nov 25, 2021
98afc30
Use object crate for .rustc metadata generation
nikic Dec 2, 2021
0d936e1
Remove the reg_thumb register class for asm! on ARM
Amanieu Nov 11, 2021
2e7bc96
Auto merge of #91604 - nikic:section-flags, r=nagisa
bors Dec 8, 2021
b1d329b
Remove redundant [..]s
est31 Dec 3, 2021
10a9b12
Rollup merge of #90796 - Amanieu:remove_reg_thumb, r=joshtriplett
matthiaskrgr Dec 9, 2021
c6009ca
Rollup merge of #91625 - est31:remove_indexes, r=oli-obk
matthiaskrgr Dec 10, 2021
eec5f91
Stabilize asm! and global_asm!
Amanieu Dec 10, 2021
379fb40
Use `OutputFilenames` to generate output file for `-Zllvm-time-trace`
tmiasko Dec 13, 2021
f87a8f8
Rollup merge of #91868 - tmiasko:llvm-time-trace-out, r=oli-obk
matthiaskrgr Dec 15, 2021
bba8b97
Remove unnecessary sigils around `Symbol::as_str()` calls.
nnethercote Dec 15, 2021
ddb015a
Fix discarded in-out constraint in inline asm (#110)
antoyo Dec 16, 2021
2989a25
Feature/global rvalue initialization petter tomner (#111)
antoyo Dec 16, 2021
c5d0023
Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obk
bors Dec 19, 2021
ebc6ad4
Sync from rust 65d8785f0a85d233e00fc84445f1aab451ec9f4f
bjorn3 Dec 30, 2021
049b6ae
Rustup to rustc 1.59.0-nightly (78fd0f633 2021-12-29)
bjorn3 Dec 30, 2021
31482a9
Import std::arch::asm
bjorn3 Dec 30, 2021
a2c5d29
Add missing feature gate
bjorn3 Dec 30, 2021
d7fb7aa
Disable portable-simd test
bjorn3 Dec 30, 2021
0afd012
Disable long running libcore tests
bjorn3 Dec 30, 2021
92fbc8f
Ignore new failing test_is_sorted test
bjorn3 Dec 30, 2021
1411a98
Remove unnecessary report_symbol_names call (#113)
bjorn3 Dec 30, 2021
b799d6e
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_…
bjorn3 Dec 31, 2021
e7357e3
Remove unused extern crate rustc_symbol_mangling
bjorn3 Dec 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 13 additions & 56 deletions compiler/rustc_codegen_gcc/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "450575f58f7bee32816abbff470cbc47797397c2a81e0eaced4b98436daf52e1"

[[package]]
name = "autocfg"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"

[[package]]
name = "bitflags"
version = "1.3.2"
Expand All @@ -35,15 +29,6 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"

[[package]]
name = "crc32fast"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a"
dependencies = [
"cfg-if",
]

[[package]]
name = "fm"
version = "0.1.4"
Expand All @@ -56,15 +41,15 @@ dependencies = [
[[package]]
name = "gccjit"
version = "1.0.0"
source = "git+https://github.com/antoyo/gccjit.rs#2d4fea7319f80531b2e5d264fca9f1c498a3a62e"
source = "git+https://github.com/antoyo/gccjit.rs#0672b78d162d65b6f36ea4062947253affe9fdef"
dependencies = [
"gccjit_sys",
]

[[package]]
name = "gccjit_sys"
version = "0.0.1"
source = "git+https://github.com/antoyo/gccjit.rs#2d4fea7319f80531b2e5d264fca9f1c498a3a62e"
source = "git+https://github.com/antoyo/gccjit.rs#0672b78d162d65b6f36ea4062947253affe9fdef"
dependencies = [
"libc 0.1.12",
]
Expand All @@ -85,33 +70,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"
dependencies = [
"cfg-if",
"libc 0.2.102",
"libc 0.2.112",
"wasi",
]

[[package]]
name = "hashbrown"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"

[[package]]
name = "hermit-abi"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc 0.2.102",
]

[[package]]
name = "indexmap"
version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5"
dependencies = [
"autocfg",
"hashbrown",
"libc 0.2.112",
]

[[package]]
Expand All @@ -122,7 +91,7 @@ checksum = "96bd995a092cac79868250589869b5a5d656b02a02bd74c8ebdc566dc7203090"
dependencies = [
"fm",
"getopts",
"libc 0.2.102",
"libc 0.2.112",
"num_cpus",
"termcolor",
"threadpool",
Expand All @@ -138,9 +107,9 @@ checksum = "e32a70cf75e5846d53a673923498228bbec6a8624708a9ea5645f075d6276122"

[[package]]
name = "libc"
version = "0.2.102"
version = "0.2.112"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2a5ac8f984bfcf3a823267e5fde638acc3325f6496633a5da6bb6eb2171e103"
checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"

[[package]]
name = "memchr"
Expand All @@ -155,33 +124,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
dependencies = [
"hermit-abi",
"libc 0.2.102",
]

[[package]]
name = "object"
version = "0.25.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a38f2be3697a57b4060074ff41b44c16870d916ad7877c17696e063257482bc7"
dependencies = [
"crc32fast",
"indexmap",
"memchr",
"libc 0.2.112",
]

[[package]]
name = "ppv-lite86"
version = "0.2.10"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857"
checksum = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba"

[[package]]
name = "rand"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
dependencies = [
"libc 0.2.102",
"libc 0.2.112",
"rand_chacha",
"rand_core",
"rand_hc",
Expand Down Expand Up @@ -257,7 +215,6 @@ dependencies = [
"ar",
"gccjit",
"lang_tester",
"object",
"target-lexicon",
"tempfile",
]
Expand All @@ -284,7 +241,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22"
dependencies = [
"cfg-if",
"libc 0.2.102",
"libc 0.2.112",
"rand",
"redox_syscall",
"remove_dir_all",
Expand Down Expand Up @@ -321,7 +278,7 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6"
dependencies = [
"libc 0.2.102",
"libc 0.2.112",
]

[[package]]
Expand Down
5 changes: 0 additions & 5 deletions compiler/rustc_codegen_gcc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ target-lexicon = "0.10.0"

ar = "0.8.0"

[dependencies.object]
version = "0.25.0"
default-features = false
features = ["read", "std", "write"] # We don't need WASM support.

[dev-dependencies]
lang_tester = "0.3.9"
tempfile = "3.1.0"
Expand Down
2 changes: 2 additions & 0 deletions compiler/rustc_codegen_gcc/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ Or add a breakpoint to `add_error` in gdb and print the line number using:
p loc->m_line
```

To get the `rustc` command to run in `gdb`, add the `--verbose` flag to `cargo build`.

### How to use a custom-build rustc

* Build the stage2 compiler (`rustup toolchain link debug-current build/x86_64-unknown-linux-gnu/stage2`).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,24 @@ index 4bc44e9..8e3c7a4 100644

#[test]
fn cell_allows_array_cycle() {
diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs
index 3e00e0a..8e5663b 100644
--- a/library/core/tests/slice.rs
+++ b/library/core/tests/slice.rs
@@ -2108,6 +2108,7 @@ fn test_copy_within_panics_src_out_of_bounds() {
bytes.copy_within(usize::MAX..=usize::MAX, 0);
}

+/*
#[test]
fn test_is_sorted() {
let empty: [i32; 0] = [];
@@ -2122,6 +2123,7 @@ fn test_is_sorted() {
assert!(!["c", "bb", "aaa"].is_sorted());
assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
}
+*/

#[test]
fn test_slice_run_destructors() {
-- 2.21.0 (Apple Git-122)
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From b1ae000f6da1abd3b8e9b80c40bc11c89b8ae93c Mon Sep 17 00:00:00 2001
From: bjorn3 <bjorn3@users.noreply.github.com>
Date: Thu, 30 Dec 2021 16:54:40 +0100
Subject: [PATCH] [core] Disable portable-simd test

---
library/core/tests/lib.rs | 1 -
1 file changed, 1 deletion(-)

diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs
index ec70034..7cd9e21 100644
--- a/library/core/tests/lib.rs
+++ b/library/core/tests/lib.rs
@@ -121,7 +121,6 @@ mod pattern;
mod pin;
mod ptr;
mod result;
-mod simd;
mod slice;
mod str;
mod str_lossy;
--
2.26.2.7.g19db9cfb68

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From 0ffdd8eda8df364391c8ac6e1ce92c73ba9254d4 Mon Sep 17 00:00:00 2001
From: bjorn3 <bjorn3@users.noreply.github.com>
Date: Fri, 3 Dec 2021 12:16:30 +0100
Subject: [PATCH] Disable long running tests

---
library/core/tests/slice.rs | 3 +++
1 file changed, 3 insertions(+)

diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs
index 2c8f00a..44847ee 100644
--- a/library/core/tests/slice.rs
+++ b/library/core/tests/slice.rs
@@ -2332,7 +2332,8 @@ macro_rules! empty_max_mut {
};
}

+/*
#[cfg(not(miri))] // Comparing usize::MAX many elements takes forever in Miri (and in rustc without optimizations)
take_tests! {
slice: &[(); usize::MAX], method: take,
(take_in_bounds_max_range_to, (..usize::MAX), Some(EMPTY_MAX), &[(); 0]),
@@ -2345,3 +2347,4 @@ take_tests! {
(take_mut_oob_max_range_to_inclusive, (..=usize::MAX), None, empty_max_mut!()),
(take_mut_in_bounds_max_range_from, (usize::MAX..), Some(&mut [] as _), empty_max_mut!()),
}
+*/
--
2.26.2.7.g19db9cfb68

2 changes: 1 addition & 1 deletion compiler/rustc_codegen_gcc/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2021-09-28
nightly-2021-12-30
Loading