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

2011-02-08 Thread David Schultz
On Tue, Feb 08, 2011, Richard Guenther wrote: > On Mon, Feb 7, 2011 at 9:37 PM, Andrew Pinski wrote: > > On Mon, Feb 7, 2011 at 2:55 AM, Richard Guenther > > wrote: > >> Does FreeBSD ever set errno for malloc() calls?  See PR47179 and > >> PR42944 - which means it might require splitting the flag

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

2011-02-08 Thread Richard Guenther
On Mon, Feb 7, 2011 at 9:37 PM, Andrew Pinski wrote: > On Mon, Feb 7, 2011 at 2:55 AM, Richard Guenther > 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 coveri

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

2011-02-07 Thread Andrew Pinski
On Mon, Feb 7, 2011 at 2:55 AM, Richard Guenther 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 t

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

2011-02-07 Thread Richard Guenther
On Mon, Feb 7, 2011 at 2:48 AM, Gerald Pfeifer wrote: > David Schultz noticed that the FreeBSD libm does not set errno, never > has done, and never will, and thus has made -fno-math-errno the default > in the (old, GCC 4.2-based) system compiler: > >  http://svn.freebsd.org/viewvc/base?view=revisi

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

2011-02-06 Thread Gerald Pfeifer
David Schultz noticed that the FreeBSD libm does not set errno, never has done, and never will, and thus has made -fno-math-errno the default in the (old, GCC 4.2-based) system compiler: http://svn.freebsd.org/viewvc/base?view=revision&revision=181538 We should also make this change for GCC 4.