Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbVmo-00071Y-Eh for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Jun 2019 19:53:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbVmn-00017y-7h for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Jun 2019 19:53:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbVmm-00017r-TL for pgsql-bugs@lists.postgresql.org; Thu, 13 Jun 2019 19:53:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbVmg-0007QL-Dp for pgsql-bugs@lists.postgresql.org; Thu, 13 Jun 2019 19:53:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x5DJrFo4015053; Thu, 13 Jun 2019 15:53:16 -0400 From: Tom Lane To: wzssyqa@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15844: MIPS: remove .set mips2 in s_lock.h to fix r6 build In-reply-to: <15844-8f62fe7e163939b3@postgresql.org> References: <15844-8f62fe7e163939b3@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 11 Jun 2019 04:39:35 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15051.1560455595.1@sss.pgh.pa.us> Date: Thu, 13 Jun 2019 15:53:15 -0400 Message-ID: <15052.1560455595@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > MIPS r6 changes the encoding of LL/SC instruction, > while the .set mips2 will force assembler to generate > old encoding. > ... > In fact if we not willing to support MIPS I or any CPU without ll/sc > at all, we can just remove .set mips2 here. After further digging around, I'm liking the alternative of just removing the ".set mips2" lines. MIPS-I has been obsolete since 1989, and the MIPS-II instruction set has a lot of other substantial advantages over MIPS-I besides having LL/SC, so it's pretty hard to believe that anyone is still using toolchains that default to assuming MIPS-I instruction set. Digging around in our archives, it looks like ".set mips2" was required when it was added, but that was on the strength of testing with a machine running Linux 2.4.27-r5k-cobalt. We need to research when/if Linux changed their default configuration. regards, tom lane