This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: soft-fp: Adjust call to abort for kernel use [committed]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: David Miller <davem at davemloft dot net>
- Cc: <dalias at libc dot org>, <libc-alpha at sourceware dot org>
- Date: Fri, 20 Feb 2015 21:31:05 +0000
- Subject: Re: soft-fp: Adjust call to abort for kernel use [committed]
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1502201807380 dot 30214 at digraph dot polyomino dot org dot uk> <20150220184614 dot GW23507 at brightrain dot aerifal dot cx> <20150220 dot 135817 dot 1419997200474454247 dot davem at davemloft dot net>
On Fri, 20 Feb 2015, David Miller wrote:
> From: Rich Felker <dalias@libc.org>
> Date: Fri, 20 Feb 2015 13:46:14 -0500
>
> > Could these be replaced by __builtin_trap() or similar? I'm not clear
> > on whether this code is purely glibc+kernel or also used by gcc, but
> > if it's used by gcc too it would be very much preferable not to have
> > libgcc pulling in a reference to abort (this affects -ffreestanding,
> > etc.).
>
> Another thing that occurs to me is that perhaps this can be coded
> in such a way as to cause compile time errors.
Static assertions (again, allowing for older GCC being used to compile the
kernel) may well work for at least some of the cases where it's a matter
of "soft-fp doesn't handle this possibility". (Subject to making sure the
relevant quantities are always constants; sometimes the kernel may use
non-constant arguments even when glibc and libgcc always use constants.)
--
Joseph S. Myers
joseph@codesourcery.com