Skip to content

Commit 117cf3e

Browse files
committed
Fix for libgccjit 12
1 parent 11f4f16 commit 117cf3e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/context.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ use rustc_target::spec::{HasTargetSpec, HasWasmCAbiOpt, Target, TlsModel, WasmCA
2525
usecrate::callee::get_fn;
2626
usecrate::common::SignType;
2727

28+
#[cfg_attr(not(feature = "master"), allow(dead_code))]
2829
pubstructCodegenCx<'gcc,'tcx>{
2930
pubcodegen_unit:&'tcxCodegenUnit<'tcx>,
3031
pubcontext:&'gccContext<'gcc>,

‎src/intrinsic/llvm.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use rustc_codegen_ssa::traits::BuilderMethods;
77
usecrate::builder::Builder;
88
usecrate::context::CodegenCx;
99

10+
#[cfg_attr(not(feature = "master"), allow(unused_variables))]
1011
pubfnadjust_function<'gcc>(
1112
context:&'gccContext<'gcc>,
1213
func_name:&str,
@@ -16,6 +17,7 @@ pub fn adjust_function<'gcc>(
1617
// FIXME: we should not need this hack: this is required because both _mm_fcmadd_sch
1718
// and _mm_mask3_fcmadd_round_sch calls llvm.x86.avx512fp16.mask.vfcmadd.csh and we
1819
// seem to need to map this one LLVM intrinsic to 2 different GCC builtins.
20+
#[cfg(feature = "master")]
1921
match func_name {
2022
"__builtin_ia32_vfcmaddcsh_mask3_round" => {
2123
ifformat!("{:?}", args[3]).ends_with("255"){

0 commit comments

Comments
 (0)