mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
Merge commit '8c858fb5fbb077eaa776302b9601cf084f12aa46' into HEAD
This commit is contained in:
@@ -32,6 +32,10 @@ jobs:
|
||||
- name: Setup rust toolchain
|
||||
run: rustup show
|
||||
|
||||
# The stdarch-gen-common tests run rustfmt.
|
||||
- name: Install rustfmt
|
||||
run: rustup component add rustfmt
|
||||
|
||||
- name: Setup rust cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
|
||||
@@ -56,9 +56,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "gccjit"
|
||||
version = "6.1.0"
|
||||
version = "7.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6d85b5754389edaad832ba320709a25086b3081a8c6c0fab2322965e5fb512b3"
|
||||
checksum = "dfdb84ba432f6679794790de652bfbed86201893a30c03dc669c2bfe7424f472"
|
||||
dependencies = [
|
||||
"gccjit_sys",
|
||||
]
|
||||
|
||||
@@ -20,7 +20,7 @@ default = ["master"]
|
||||
[dependencies]
|
||||
object = { version = "0.39.0", default-features = false, features = ["std", "read"] }
|
||||
tempfile = "3.20"
|
||||
gccjit = { version = "6.1.0", features = ["dlopen"] }
|
||||
gccjit = { version = "7.0.0", features = ["dlopen"] }
|
||||
#gccjit = { git = "https://github.com/rust-lang/gccjit.rs", branch = "error-dlopen", features = ["dlopen"] }
|
||||
|
||||
# Local copy.
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2026-09-24"
|
||||
channel = "nightly-2026-09-29"
|
||||
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
|
||||
|
||||
@@ -954,6 +954,10 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
|
||||
|
||||
debug_assert!(value_type.dyncast_array().is_some());
|
||||
let name_suffix = match self.type_kind(dest_typ) {
|
||||
TypeKind::Half if dest_typ.is_compatible_with(self.type_f16()) => {
|
||||
let value = self.int_to_float_cast(signed, value, self.float_type);
|
||||
return self.context.new_cast(None, value, dest_typ);
|
||||
}
|
||||
// cSpell:disable
|
||||
TypeKind::Float => "tisf",
|
||||
TypeKind::Double => "tidf",
|
||||
|
||||
@@ -237,7 +237,7 @@ impl CodegenBackend for GccCodegenBackend {
|
||||
lto_supported: gccjit::is_lto_supported(),
|
||||
});
|
||||
|
||||
gccjit::set_global_personality_function_name(b"rust_eh_personality\0");
|
||||
gccjit::set_global_personality_function_name(c"rust_eh_personality");
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "master"))]
|
||||
|
||||
Reference in New Issue
Block a user