Re: All mips BSPs cannot link psxfenv01

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <YgC/gkO7CX5WnbCi@vapier>
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.
> 
> 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 <[email protected]>
> Date: Sat, Jan 15, 2022, 1:01 PM
> Subject: Re: All mips BSPs cannot link psxfenv01
> To: <[email protected]>
> Cc: RTEMS <[email protected]>
> 
> 
> 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.
> 
> It is probably this change:
> 
> commit 8fa73a9f8414a4926365324c2fe32a237c2eb91d
> Author: Jeff Johnston <[email protected]>
> Date:   Mon Nov 29 17:33:52 2021 -0500
> 
>      Modifying patch from: [email protected]
> 
>      The code accessing the floating point control/status register, namely
> 
>              #define __cfc1(__fcsr)  __asm __volatile("cfc1 %0, $31" :
> "=r" (__fcsr)
> 
>      does not compile with mips16. This changed the makefile to pass
> -mno-mips16 to avoid the following
>      compiler error:
> 
>              mips-mti-elf fails with "Error: unrecognized opcode `cfc1
> $3,$31'"
> 
> I have no time to dig into the Newlib build system.
> 
> -- 
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: [email protected]
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
> 
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
signature.asc (application/pgp-signature, 833 B)
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.