Wolfgang Denk wrote: > In message <[EMAIL PROTECTED]> you wrote: >> Wolfgang Denk wrote: >>> In message <[EMAIL PROTECTED]> 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 ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users