GNU bug report logs - #12381
Assume C89 or later for math functions.

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Fri, 7 Sep 2012 20:24:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Ken Brown <kbrown <at> cornell.edu>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 12381 <at> debbugs.gnu.org
Subject: bug#12381: Assume C89 or later for math functions.
Date: Sat, 08 Sep 2012 12:05:32 -0700
On 09/08/2012 10:20 AM, Ken Brown wrote:
> Is there a C program I could run that would answer your question?

Sure, run this:

#include <math.h>
int main (void)
{
  return pow (0, 0) != 1;
}

If the matherr problem is present, the program will
print something on stderr, coming from the library.
If not, the program will exit silently.  On Ubuntu
it exits with status 0, which is what POSIX requires,
though pow's exact return value doesn't really matter
here -- the point is that pow should not write to stderr.




This bug report was last modified 12 years and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.