Skip to content

Commit 9ec90ed

Browse files
Fix build (invalid simd renaming)
1 parent 990285e commit 9ec90ed

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

compiler/rustc_codegen_gcc/src/builder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2103,7 +2103,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
21032103
self.vector_reduce(src, |a, b, context| context.new_binary_op(loc, op, a.get_type(), a, b))
21042104
}
21052105

2106-
pub fn vector_reduce_fadd_fast(
2106+
pub fn vector_reduce_fadd_reassoc(
21072107
&mut self,
21082108
_acc: RValue<'gcc>,
21092109
_src: RValue<'gcc>,
@@ -2134,7 +2134,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
21342134
unimplemented!();
21352135
}
21362136

2137-
pub fn vector_reduce_fmul_fast(
2137+
pub fn vector_reduce_fmul_reassoc(
21382138
&mut self,
21392139
_acc: RValue<'gcc>,
21402140
_src: RValue<'gcc>,

compiler/rustc_codegen_gcc/src/errors.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use rustc_errors::{
2-
DiagCtxt, DiagnosticArgValue, DiagnosticBuilder, EmissionGuarantee, IntoDiagnostic,
3-
IntoDiagnosticArg, Level,
2+
Diag, DiagCtxt, DiagArgValue, EmissionGuarantee, IntoDiagnostic, IntoDiagnosticArg, Level,
43
};
54
use rustc_macros::{Diagnostic, Subdiagnostic};
65
use rustc_span::Span;
@@ -35,7 +34,7 @@ pub(crate) enum PossibleFeature<'a> {
3534
struct ExitCode(Option<i32>);
3635

3736
impl IntoDiagnosticArg for ExitCode {
38-
fn into_diagnostic_arg(self) -> DiagnosticArgValue {
37+
fn into_diagnostic_arg(self) -> DiagArgValue {
3938
let ExitCode(exit_code) = self;
4039
match exit_code {
4140
Some(t) => t.into_diagnostic_arg(),
@@ -112,8 +111,8 @@ pub(crate) struct TargetFeatureDisableOrEnable<'a> {
112111
pub(crate) struct MissingFeatures;
113112

114113
impl<G: EmissionGuarantee> IntoDiagnostic<'_, G> for TargetFeatureDisableOrEnable<'_> {
115-
fn into_diagnostic(self, dcx: &'_ DiagCtxt, level: Level) -> DiagnosticBuilder<'_, G> {
116-
let mut diag = DiagnosticBuilder::new(
114+
fn into_diagnostic(self, dcx: &'_ DiagCtxt, level: Level) -> Diag<'_, G> {
115+
let mut diag = Diag::new(
117116
dcx,
118117
level,
119118
fluent::codegen_gcc_target_feature_disable_or_enable,

compiler/rustc_codegen_gcc/src/type_of.rs

+8-9
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ use rustc_middle::ty::print::with_no_trimmed_paths;
88
use rustc_middle::ty::{self, Ty, TypeVisitableExt};
99
use rustc_target::abi::call::{CastTarget, FnAbi, Reg};
1010
use rustc_target::abi::{
11-
self, Abi, Align, FieldsShape, Int, Integer, PointeeInfo, Pointer, Size, TyAbiInterface,
12-
Variants, F32, F64,
11+
self, Abi, Align, FieldsShape, Integer, Primitive, PointeeInfo, Size, TyAbiInterface, Variants,
1312
};
1413

1514
use crate::abi::{FnAbiGcc, FnAbiGccExt, GccType};
@@ -282,13 +281,13 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
282281
offset: Size,
283282
) -> Type<'gcc> {
284283
match scalar.primitive() {
285-
Int(i, true) => cx.type_from_integer(i),
286-
Int(i, false) => cx.type_from_unsigned_integer(i),
287-
F16 => cx.type_f16(),
288-
F32 => cx.type_f32(),
289-
F64 => cx.type_f64(),
290-
F128 => cx.type_f128(),
291-
Pointer(address_space) => {
284+
Primitive::Int(i, true) => cx.type_from_integer(i),
285+
Primitive::Int(i, false) => cx.type_from_unsigned_integer(i),
286+
Primitive::F16 => cx.type_f16(),
287+
Primitive::F32 => cx.type_f32(),
288+
Primitive::F64 => cx.type_f64(),
289+
Primitive::F128 => cx.type_f128(),
290+
Primitive::Pointer(address_space) => {
292291
// If we know the alignment, pick something better than i8.
293292
let pointee = if let Some(pointee) = self.pointee_info_at(cx, offset) {
294293
cx.type_pointee_for_align(pointee.align)

0 commit comments

Comments
 (0)