[Bug target/15642] NAN Is Not a Constant Because __APPLE_CC__ is Not Defined (OK in Apple 3.3.0)

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri May 28 17:36:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-28 00:16 -------
I think I have a fixincl fix but I cannot test it until I build autogen which it fails for me.
Here is the inclhack.def part which I created:
/*
 * Fixup Darwin's broken check for __builtin_nanf.
 */ 
    
fix = {
   hackname = broken_nan;
    files    = "architecture/ppc/math.h";
    files    = "architecture/i386/math.h";
    select   = "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)"
     
    c_fix     = format; 
    c_fxi_arg = "#if defined(__GNUC__) && ((__GNUC__ > 4)||((__GNUC__ > 3) && (__GNUC_MINOR__ >= 
3)))"
    
    test_text = "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)"
}; 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |geoffk at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15642



More information about the Gcc-bugs mailing list