[PATCH] MIPS: Do not force the n32.S file to be assembled as MIPS4
Andrew Bennett
Andrew.Bennett@imgtec.com
Fri Aug 28 13:01:00 GMT 2015
Hi,
The n32.S file in the MIPS backend currently is forced to be compiled as MIPS4.
This could lead to the wrong instruction encodings being used when assembling
for newer MIPS architectures. This patch only forces the .set mips4 constraint
if the MIPS architecture provided by the compiler is older than MIPS4.
The patch and ChangeLog are below.
Regards,
Andrew
* src/mips/n32.S: Only force the file to be assembled as MIPS4 if
the architecture provided by the compiler is older than MIPS4.
diff --git a/src/mips/n32.S b/src/mips/n32.S
index c6985d3..512063a 100644
--- a/src/mips/n32.S
+++ b/src/mips/n32.S
@@ -43,7 +43,9 @@
#ifdef __GNUC__
.abicalls
#endif
+#if __mips < 4
.set mips4
+#endif
.text
.align 2
.globl ffi_call_N32
More information about the Libffi-discuss
mailing list