changeset 2950:dc8e6a281225

* cdl/libm.cdl (CYGPKG_LIBM_CFLAGS_ADD): Compile with -fno-strict-aliasing to avoid miscompilation. Workaround for a more fundamental problem with CYG_LIBM_HI/LO.
author jlarmour
date Sat, 15 May 2010 16:34:30 +0000
parents ae816c83f082
children ecbc3608d513
files packages/language/c/libm/current/ChangeLog packages/language/c/libm/current/cdl/libm.cdl
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/packages/language/c/libm/current/ChangeLog
+++ b/packages/language/c/libm/current/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-15  Jonathan Larmour  <jifl@jifvik.org>
+
+	* cdl/libm.cdl (CYGPKG_LIBM_CFLAGS_ADD): Compile with
+	-fno-strict-aliasing to avoid miscompilation. Workaround for a more
+	fundamental problem with CYG_LIBM_HI/LO.
+
 2008-11-20  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* cdl/libm.cdl: Rename X_TLOSS CDL option to match normal convention.
@@ -813,7 +819,7 @@ Fri Jun  5 07:07:03 1998  Jonathan Larmo
 // ####GPLCOPYRIGHTBEGIN####                                                
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2007, 2008, 2010 Free Software Foundation, Inc.
 //
 // This program is free software; you can redistribute it and/or modify     
 // it under the terms of the GNU General Public License as published by     
--- a/packages/language/c/libm/current/cdl/libm.cdl
+++ b/packages/language/c/libm/current/cdl/libm.cdl
@@ -8,7 +8,7 @@
 ## ####ECOSGPLCOPYRIGHTBEGIN####                                            
 ## -------------------------------------------                              
 ## This file is part of eCos, the Embedded Configurable Operating System.   
-## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2010 Free Software Foundation, Inc.
 ##
 ## eCos is free software; you can redistribute it and/or modify it under    
 ## the terms of the GNU General Public License as published by the Free     
@@ -229,7 +229,8 @@ cdl_package CYGPKG_LIBM {
             display "Additional compiler flags"
             flavor  data
             no_define
-            default_value { ((0 == CYGPKG_HAL_I386) && (0 == CYGPKG_HAL_SYNTH_I386)) ? "" : "-ffloat-store" }
+            default_value { "-fno-strict-aliasing " . \
+                                ((0 == CYGPKG_HAL_I386) && (0 == 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