changeset 2973:8536a2fc60a4

* cdl/libm.cdl (CYGPKG_LIBM_CFLAGS_ADD): Add a set of parentheses around 'if-then-else' expression, simplified evaluated expression.
author sergeig
date Thu, 11 Nov 2010 20:30:07 +0000
parents 535911f86a6f
children 1a427c29fd0f
files packages/language/c/libm/current/ChangeLog packages/language/c/libm/current/cdl/libm.cdl
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/language/c/libm/current/ChangeLog
+++ b/packages/language/c/libm/current/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-11  Sergei Gavrikov  <sergei.gavrikov@gmail.com>
+
+	* cdl/libm.cdl (CYGPKG_LIBM_CFLAGS_ADD): Add a set of parentheses
+	around 'if-then-else' expression, simplified evaluated expression.
+
 2010-05-15  Jonathan Larmour  <jifl@jifvik.org>
 
 	* cdl/libm.cdl (CYGPKG_LIBM_CFLAGS_ADD): Compile with
--- a/packages/language/c/libm/current/cdl/libm.cdl
+++ b/packages/language/c/libm/current/cdl/libm.cdl
@@ -229,8 +229,8 @@ cdl_package CYGPKG_LIBM {
             display "Additional compiler flags"
             flavor  data
             no_define
-            default_value { "-fno-strict-aliasing " . \
-                                ((0 == CYGPKG_HAL_I386) && (0 == CYGPKG_HAL_SYNTH_I386)) ? "" : "-ffloat-store" }
+            default_value { "-fno-strict-aliasing" . \
+                                ((!CYGPKG_HAL_I386 && !CYGPKG_HAL_SYNTH_I386) ? "" : " -ffloat-store") }
             description   "
                 This option modifies the set of compiler flags for
                 building the math library. These flags are used in addition