DragonFly BSD
DragonFly bugs List (threaded) for 2010-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1682] math.h constants, aren't constant


From: "Stathis Kamperis \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Feb 2010 16:26:52 +0000

New submission from Stathis Kamperis <ekamperi@gmail.com>:

According to C99, HUGE_VAL, HUGE_VALF, HUGE_VALL, INFINITY, and NAN need to be
constant expressions. We use some gcc __builtin() call when defining them, which
violates the standard.

Test case to reproduce it:
http://gitweb.dragonflybsd.org/~beket/pcca-tests.git/blob_plain/master:/math.h/t_const.c

NetBSD is affected as well. FreeBSD + Opensolaris not.

Cheers,
Stathis

----------
keyword: standards
messages: 8164
nosy: Beket
priority: bug
status: unread
title: math.h constants, aren't constant

_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1682>
_____________________________________________________




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]