File tree 1 file changed +6
-4
lines changed
compiler/rustc_codegen_ssa/src/mir
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -194,21 +194,23 @@ fn enable_disable_target_features<'tcx>(
194
194
Architecture :: Riscv32 | Architecture :: Riscv64 => {
195
195
// https://github.com/riscv-non-isa/riscv-asm-manual/blob/ad0de8c004e29c9a7ac33cfd054f4d4f9392f2fb/src/asm-manual.adoc#arch
196
196
197
+ writeln ! ( begin, ".option push" ) . unwrap ( ) ;
197
198
for feature in features {
198
199
writeln ! ( begin, ".option arch, +{}" , feature. name) . unwrap ( ) ;
199
-
200
- writeln ! ( end, ".option arch, -{}" , feature. name) . unwrap ( ) ;
201
200
}
201
+
202
+ writeln ! ( end, ".option pop" ) . unwrap ( ) ;
202
203
}
203
204
Architecture :: Mips | Architecture :: Mips64 | Architecture :: Mips64_N32 => {
204
205
// https://sourceware.org/binutils/docs/as/MIPS-ISA.html
205
206
// https://sourceware.org/binutils/docs/as/MIPS-ASE-Instruction-Generation-Overrides.html
206
207
208
+ writeln ! ( begin, ".set push" ) . unwrap ( ) ;
207
209
for feature in features {
208
210
writeln ! ( begin, ".set {}" , feature. name) . unwrap ( ) ;
209
-
210
- writeln ! ( end, ".set no{}" , feature. name) . unwrap ( ) ;
211
211
}
212
+
213
+ writeln ! ( end, ".set pop" ) . unwrap ( ) ;
212
214
}
213
215
214
216
Architecture :: S390x => {
You can’t perform that action at this time.
0 commit comments