How to default to -fno-math-errno on all FreeBSD targets

Richard Guenther richard.guenther@gmail.com
Tue Feb 8 10:52:00 GMT 2011


On Mon, Feb 7, 2011 at 9:37 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Mon, Feb 7, 2011 at 2:55 AM, Richard Guenther
> <richard.guenther@gmail.com> wrote:
>> Does FreeBSD ever set errno for malloc() calls?  See PR47179 and
>> PR42944 - which means it might require splitting the flag into a
>> math piece and a general piece (or one covering just malloc & friends).
>
> The option's documentation (and the name itself) says it is a math
> piece anyways.  So I don't see why need to split it up?

Because we (ab-)use it for malloc as well as there is no way for the
Fortran frontend to specify it doesn't care for errno at all.  Thus,
we probably need a -fno-non-math-errno (ick).

Richard.

> -- Pinski
>



More information about the Gcc mailing list