# HG changeset patch # User jlarmour # Date 1273941270 0 # Node ID dc8e6a2812254c42370436edbafd8445ebe47859 # Parent ae816c83f0825beba7d88bd2e372306e926278cf * 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. diff --git a/packages/language/c/libm/current/ChangeLog b/packages/language/c/libm/current/ChangeLog --- a/packages/language/c/libm/current/ChangeLog +++ b/packages/language/c/libm/current/ChangeLog @@ -1,3 +1,9 @@ +2010-05-15 Jonathan Larmour + + * 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 * 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 diff --git a/packages/language/c/libm/current/cdl/libm.cdl b/packages/language/c/libm/current/cdl/libm.cdl --- 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