Date: Sun, 6 Feb 2011 12:11:45 -0800 (PST) From: "Pedro F. Giffuni" <giffunip@tutopia.com> To: freebsd-toolchain@freebsd.org, David Schultz <das@freebsd.org>, Gerald Pfeifer <gerald@pfeifer.com> Subject: Re: -fno-math-errno by default Message-ID: <537963.24371.qm@web113512.mail.gq1.yahoo.com> In-Reply-To: <alpine.LNX.2.00.1102062007490.8943@gerinyyl>
index | next in thread | previous in thread | raw e-mail
--- On Sun, 2/6/11, Gerald Pfeifer <gerald@pfeifer.com> wrote: ... > > http://svn.freebsd.org/viewvc/base?view=revision&revision=181538 > > where David made -fno-math-errno the default for GCC with ... > > Do I understand correctly that libm on all versions of > FreeBSD and on all platforms does not set errno, so this > should become the default for FreeBSD also upstream? > That is my understanding of the commit too, so I guess "configure" should do a better job detecting this. That said, I don't know if setting errno is good or bad: Apple's gcc has this: ---- ; APPLE LOCAL begin optimization pragmas 3124235/3420242 fmath-errno Common Report Var(flag_errno_math) Init(1) PerFunc Set errno after built-in math functions ; APPLE LOCAL end optimization pragmas 3124235/3420242 ---- I have no idea what the origin of their math stuff is but apparently they saw a value of using the sysv approach. > It would have been nice to report this upstream (and > apologies if you did and it got missed) and I'll try > to raise it there, but wanted to get confirmation > first. > No, I didn't ... thanks for bringing this up in freebsd-toolchain though, there may be a similar issue with clang. cheers, Pedro.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?537963.24371.qm>
