Re: BUG #15844: MIPS: remove .set mips2 in s_lock.h to fix r6 build

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: wzssyqa@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2019-06-11T04:57:23Z
Lists: pgsql-bugs
On Tue, Jun 11, 2019 at 04:39:35AM +0000, PG Bug reporting form wrote:
> MIPS r6 changes the encoding of LL/SC instruction,
> while the .set mips2 will force assembler to generate
> old encoding.

This is quite architecture-specific.  May I suggest to add this patch
to the follow-up commit fest for awareness:
https://commitfest.postgresql.org/23/

Do you have any references, like documentation, which summarize that?
--
Michael

Commits

  1. Fix spinlock assembly code for MIPS so it works on MIPS r6.