From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Thu, 10 Jul 2008 14:06:45 -0500 Subject: [U-Boot-Users] HELP, trying to remove complier warnings In-Reply-To: <20080710185827.0081E248FE@gemini.denx.de> References: <20080710185827.0081E248FE@gemini.denx.de> Message-ID: <48765DC5.2010503@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > In message <48765849.5050306@freescale.com> you wrote: >> Wolfgang Denk wrote: >>> In message <921B6E79C3E18642BFFC1C8633C430DB01023B9A@CA1EXCLV07.adcorp.kla-tencor.com> you wrote: >>>> Try adding -fno-strict-aliasing >>> No, we don't want to hush up compiler warnings, we want to fix the >>> problems instead. >> It's not silencing a warning (if it were, it'd be a -W flag); it's >> disabling an incompatible optimization. > > OK. > > Then let me rephrase: We do not want to disable optimizations, ... If you want to figure out what that code is doing and rewrite it to be compliant with strict aliasing, go ahead (I tried, and it made my brain hurt). In the meantime, we shouldn't be enabling the optimization on code that was written for an older version of the C language where such an optimization was prohibited, and where the compiler is letting us know that it thinks the code depends on the older semantics. -Scott