Project

General

Profile

Actions

Bug #1682

closed

math.h constants, aren't constant

Added by Anonymous over 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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

Actions #1

Updated by tuxillo over 11 years ago

  • Status changed from New to Feedback
  • Assignee deleted (0)

Hi Stathis,

[dfly_i386] ~/temp> ./t_const
passed

antonioh@devel01:/home/antonioh/temp> ./t_const
passed

Seems it passes it now on both i386/x86_64. Can we close this one?

Cheers,
Antonio Huete

Actions #2

Updated by swildner over 10 years ago

  • Description updated (diff)
  • Status changed from Feedback to Closed

This no longer fails. Closing.

Actions

Also available in: Atom PDF