[svn:parrot] r44817 - in branches/fix_icc_failures: config/init/hints t/pmc

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Tue Mar 9 16:38:56 UTC 2010


Author: whiteknight
Date: Tue Mar  9 16:38:54 2010
New Revision: 44817
URL: https://trac.parrot.org/parrot/changeset/44817

Log:
update hints to compile with '-fp-model source' on icc. This fixes handling of negative zero, but doesn't fix stringification of negative zero issues

Modified:
   branches/fix_icc_failures/config/init/hints/linux.pm
   branches/fix_icc_failures/t/pmc/float.t

Modified: branches/fix_icc_failures/config/init/hints/linux.pm
==============================================================================
--- branches/fix_icc_failures/config/init/hints/linux.pm	Tue Mar  9 15:53:13 2010	(r44816)
+++ branches/fix_icc_failures/config/init/hints/linux.pm	Tue Mar  9 16:38:54 2010	(r44817)
@@ -162,6 +162,10 @@
     # which is *not* the default behavior. ahem.
     $ccflags .= ' -we147';
 
+    # TT #1488. ICC optimizes floating-point too aggressively and loses support
+    # for negative zero without this.
+    $ccflags .= ' -fp-model source';
+
     $verbose and print " ccflags: $ccflags\n";
     return $ccflags;
 }

Modified: branches/fix_icc_failures/t/pmc/float.t
==============================================================================
--- branches/fix_icc_failures/t/pmc/float.t	Tue Mar  9 15:53:13 2010	(r44816)
+++ branches/fix_icc_failures/t/pmc/float.t	Tue Mar  9 16:38:54 2010	(r44817)
@@ -342,7 +342,7 @@
     neg $P0
 
     $S0 = $P0
-    is($S0, "-0")
+    is($S0, "-0", "negative 0.0 to string")
     .return ()
 
   negative_zero_todoed:


More information about the parrot-commits mailing list