From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6813 invoked from network); 13 May 2020 18:50:55 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 13 May 2020 18:50:55 -0000 Received: (qmail 30695 invoked by uid 550); 13 May 2020 18:50:53 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 30677 invoked from network); 13 May 2020 18:50:53 -0000 Date: Wed, 13 May 2020 14:50:40 -0400 From: Rich Felker To: John Arnold Cc: Anders Magnusson , musl@lists.openwall.com, pcc@lists.ludd.ltu.se Message-ID: <20200513185040.GY21576@brightrain.aerifal.cx> References: <20200512212127.GQ21576@brightrain.aerifal.cx> <5ae8c7fa-aed9-d957-fe53-68eb2fa622a6@ludd.ltu.se> <20200513172718.GW21576@brightrain.aerifal.cx> <20200513180451.GX21576@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] Re: [Pcc] [musl] PCC unable to build musl 1.2.0 (and likely earlier) On Wed, May 13, 2020 at 01:49:22PM -0500, John Arnold wrote: > On Wed, May 13, 2020 at 1:04 PM Rich Felker wrote: > > That doesn't sound related. %%ax appearing in the input to the > > assembler would always indicate a bug in either the compiler or the > > inline asm text in the program being compiled. > > I did some poking around with pcc -S and it looked like %%ax was only > appearing in the context of the fnstsw instruction, which in pcc's > source only occurs once, in line 329 of arch/i386/local2.c: > > expand(p, 0, "\tfnstsw %%ax\n"); > > My assembly is *really* basic, so I don't know what that means, but > hopefully it's relevant? It just means someone inadvertently wrote %% thinking the expected form was inline-asm text that would be %-expanded rather than whatever form PCC uses at this point where all %'s are literal. Changing it to a single % should fix it. Rich