This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- From: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: Michael Meissner <meissner at linux dot vnet dot ibm dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Segher Boessenkool <segher at kernel dot crashing dot org>, David Edelsohn <dje dot gcc at gmail dot com>, Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- Date: Mon, 30 Oct 2017 19:35:41 -0400
- Subject: Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Authentication-results: sourceware.org; auth=none
- References: <alpine.DEB.2.20.1710252028560.18935@digraph.polyomino.org.uk> <20171025224724.GA25269@ibm-tiger.the-meissners.org> <alpine.DEB.2.20.1710252340120.18935@digraph.polyomino.org.uk> <20171025235709.GA8932@ibm-tiger.the-meissners.org> <20171026001118.GA11364@ibm-tiger.the-meissners.org> <alpine.DEB.2.20.1710301601430.31519@digraph.polyomino.org.uk> <20171030180507.GA14054@ibm-tiger.the-meissners.org> <alpine.DEB.2.20.1710301826390.31519@digraph.polyomino.org.uk> <20171030225734.GA450@ibm-tiger.the-meissners.org> <alpine.DEB.2.20.1710302326510.30054@digraph.polyomino.org.uk>
On Mon, Oct 30, 2017 at 11:30:12PM +0000, Joseph Myers wrote:
> On Mon, 30 Oct 2017, Michael Meissner wrote:
>
> > This patch fixes exporting the non __builtin_ names to be done by default only
> > for the C language. I added a target hook in case a port needs to enable
> > built-ins for C++ (either wholesale, or for particular built-in functions).
>
> Testing lang_GNU_C () can't possibly be correct here; ObjC should always
> be handled like C unless there is a strong reason not to do so, explicitly
> commented.
Ok, tomorrow, I will look for a more appropriate way to check for C.
> Also, I'd expect the FALLBACK_P argument to DEF_BUILTIN to be true, not a
> call to the hook; __builtin_sqrtf128 should always end up generating a
> call to the out-of-line sqrtf128 function if not inlined, regardless of
> source language.
I was wondering whether fallback_t should always be true.
Thanks.
--
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meissner@linux.vnet.ibm.com, phone: +1 (978) 899-4797
- References:
- Re: [PATCH, version 4], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Re: [PATCH, version 5], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Re: [PATCH, version 5], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
- Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions