2002 2003 2004 2005 <2006> 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 2002 2003 2004 2005 <2006> 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: C strict aliasing rules |
From: | Andrew Johnson <[email protected]> |
To: | Eric Norum <[email protected]> |
Cc: | [email protected], Core talk list <[email protected]> |
Date: | Tue, 28 Nov 2006 14:35:50 -0600 |
Eric Norum wrote:
So where's the best place to make the addition? To configure/ CONFIG.gnuCommon in the OPT....YES macros?OPT_CFLAGS_YES = -O3 -fno-strict-aliasing OPT_CXXFLAGS_YES = -O3 -fno-strict-aliasing
Nope: cc1plus: Invalid option `-fno-strict-aliasing'That's from a vxWorks compile - this will have to be set by each architecture that uses gcc.
Have we identified *anywhere* in base yet where we actually need this though? We've been running IOCs on Linux and Solaris built with gcc 4.0.2 and -O3 for ages, and nothing has failed or even behaved strangely yet that I can remember; isn't this all a storm in a tea-cup?
- Andrew -- There is considerable overlap between the intelligence of the smartest bears and the dumbest tourists -- Yosemite National Park Ranger