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