This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20317] New: Solaris 10 and HUGE_VAL
- From: "martin at v dot loewis dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2005 14:13:20 -0000
- Subject: [Bug c/20317] New: Solaris 10 and HUGE_VAL
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling the program
#define _XOPEN_SOURCE 600
#include <math.h>
int main()
{
double x = HUGE_VAL;
}
using
/opt/sfw/bin/gcc --std=gnu99 a.c
gives
a.c: In function `main':
a.c:6: error: incompatible types in initialization
I'll attach the preprocessor output if I can; in short,
HUGE_VAL expands to __builtin_huge_val, which is a
function in gcc but a constant in SunPRO.
fixinclude needs to adjust this difference, fixing
iso/math_c99.h appropriately.
--
Summary: Solaris 10 and HUGE_VAL
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martin at v dot loewis dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.10
GCC host triplet: sparc-sun-solaris2.10
GCC target triplet: sparc-sun-solaris2.10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20317