From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 79F1A3858C83 for ; Mon, 7 Feb 2022 06:43:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 79F1A3858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 357DE342E9E; Mon, 7 Feb 2022 06:43:13 +0000 (UTC) Date: Mon, 7 Feb 2022 01:43:14 -0500 From: Mike Frysinger To: Joel Sherrill Cc: Newlib Subject: Re: All mips BSPs cannot link psxfenv01 Message-ID: Mail-Followup-To: Joel Sherrill , Newlib References: <3c8f49af-2e7c-73e4-6d14-c8dff5a78e04@embedded-brains.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vUokAamRNrGm5bN5" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2022 06:43:19 -0000 --vUokAamRNrGm5bN5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 15 Jan 2022 15:50, Joel Sherrill wrote: > I'm forwarding a discussion between Sebastian Huber and myself. Looks like > the mips fenv.h support was broken recently. >=20 > Any ideas? i happened to notice the same weirdness when rewriting the autotools logic. looks like it's due to this patch: https://sourceware.org/pipermail/newlib/2021/018726.html i cc-ed you on the thread with a possible fix if you want to give it a try. -mike > ---------- Forwarded message --------- > From: Sebastian Huber > Date: Sat, Jan 15, 2022, 1:01 PM > Subject: Re: All mips BSPs cannot link psxfenv01 > To: > Cc: RTEMS >=20 >=20 > On 14/01/2022 17:51, Joel Sherrill wrote: > >> Is this due to the recent Newlib build system changes? > > I guess so although I don't see anything obvious when I > > looked at the machine/configure.ac in both versions. > > > > I confirmed jmr3904 could build all tests with this gcc/newlib: > > > > $ ~/rtems-work/tools/6/bin/mips-rtems6-gcc --version > > mips-rtems6-gcc (GCC) 10.3.1 20211214 (RTEMS 6, RSB > > bb9e049b103f3a47019a6cfad18e2b59c9e9ea97, Newlib eb03ac1) > > > > That should have been the immediately previous version. >=20 > It is probably this change: >=20 > commit 8fa73a9f8414a4926365324c2fe32a237c2eb91d > Author: Jeff Johnston > Date: Mon Nov 29 17:33:52 2021 -0500 >=20 > Modifying patch from: marian.buschsieweke@ovgu.de >=20 > The code accessing the floating point control/status register, namely >=20 > #define __cfc1(__fcsr) __asm __volatile("cfc1 %0, $31" : > "=3Dr" (__fcsr) >=20 > does not compile with mips16. This changed the makefile to pass > -mno-mips16 to avoid the following > compiler error: >=20 > mips-mti-elf fails with "Error: unrecognized opcode `cfc1 > $3,$31'" >=20 > I have no time to dig into the Newlib build system. >=20 > --=20 > embedded brains GmbH > Herr Sebastian HUBER > Dornierstr. 4 > 82178 Puchheim > Germany > email: sebastian.huber@embedded-brains.de > phone: +49-89-18 94 741 - 16 > fax: +49-89-18 94 741 - 08 >=20 > Registergericht: Amtsgericht M=C3=BCnchen > Registernummer: HRB 157899 > Vertretungsberechtigte Gesch=C3=A4ftsf=C3=BChrer: Peter Rasmussen, Thomas= D=C3=B6rfler > Unsere Datenschutzerkl=C3=A4rung finden Sie hier: > https://embedded-brains.de/datenschutzerklaerung/ --vUokAamRNrGm5bN5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIAv4IACgkQQWM7n+g3 9YFnSBAAltOBO37rQ60ZjoohkRSLPxuL0vZzp2zy8f79ZdQugXIw1ng4lm/QD6sL mMyzokLxaNEgS1PA1hwik9ZXa1JS964CeXa+I+Fw86wHq/4btPBM6YN/hBI6iqfR +1b6O0HeAE+mtnhttbjieMWgetSalVqrQTa+IECxQV0o0QPKVZs3TdWH0FWsGp7a 7fF8cTrUtA7VbLWuLE8i2Cx4I/+MTc7hwVcuaKznykuBWBj3tuck8yontbNhC2zC 6+SZzC/cQVOqvnqdtUSKpUERdudgNoP/HHc3xOa9yvMmzzkcHbvVStaX7oyVoX8V AG/JledzldQDWuJO+GU6Fjjn0STS9bQm+e5OcL+Lpza5wxaur6wxfEaSaK7MQugS WidQeo6rysIyrc68Pruwf66PISZSZpfIdy/xDGMT6p//GvlVAjrgHwM6oQ80mHFe N/Vu/egeaBHYEbCnTuRDo7tJCQAzoiQbd+rcwRuUO9D6aXPXbNl3DdLrHMVpsB5K nA9jqfbsb+WGt6HOemd+p0sMKyKxHT6ubRnTJHbBRp9vEuinIOS02gAPFrplDZY3 50hN1A2+uJh16GtmrGdHgJJ7o6qRR82jnRYrDqw8tet4e/DKUbSeox443KpHLYWp 63ZXYVubX4B+kB5UC5MBOyw7in3uy82dNRVtn6bscD49FWMuTN0= =RGYJ -----END PGP SIGNATURE----- --vUokAamRNrGm5bN5--