This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [patch, mips] Fix stubs files for hard float vs. soft float
On Mon, 2012-10-15 at 22:08 +0000, Joseph S. Myers wrote:
> On Mon, 15 Oct 2012, Steve Ellcey wrote:
>
> > While working on various flavors of glibc, I found that building on MIPS
> > with and without floating point enabled resulted in different stub files,
> > but the MIPS makefile did not handle this difference correctly (it would
> > always create a stubs-o32.h (or n32 or n64) header file and that file would
> > look different depending on whether or not you enabled floating point.
>
> What are the differences exactly? We should look at whether they are
> actually all correct....
All of the soft-float versions have these entries which are not in the
hard float versions:
< #define __stub_feclearexcept
< #define __stub_fedisableexcept
< #define __stub_feenableexcept
< #define __stub_fegetenv
< #define __stub_fegetexcept
< #define __stub_fegetexceptflag
< #define __stub_fegetround
< #define __stub_feholdexcept
< #define __stub_feraiseexcept
< #define __stub_fesetenv
< #define __stub_fesetexceptflag
< #define __stub_fesetround
< #define __stub_fetestexcept
< #define __stub_feupdateenv
> Note that Roland objected to the use of $(shell) in the ARM case (it's on
> my queue to revise the implementation accordingly, maybe during the 2.17
> freeze period). So I advise trying one of his suggestions from that
> thread <http://sourceware.org/ml/libc-ports/2012-05/msg00190.html>.
Makefiles building makefiles. That's probably going to take some trial
and error and a lot of questions on my part unless there is an existing
example to draw from. I am not even sure what the Makefile that is
being generated would be doing and what the targets in it would be.
Steve Ellcey
sellcey@mips.com