From: Yuli Barcohen Date: Thu, 16 Dec 2004 10:43:39 +0200 Subject: [U-Boot-Users] MPC85xx config.mk patch for -mno-string In-Reply-To: <20041215223349.6C08EC1430@atlas.denx.de> References: <1103053896.29431.8.camel@cashmere.sps.mot.com> <20041215223349.6C08EC1430@atlas.denx.de> Message-ID: <16833.19131.955353.670619@astp0002.localdomain> 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 writes: Wolfgang> Why do we need this? GCC 3.3.3 (DENX ELDK 3.1 3.3.3-8) Wolfgang> compiles the same code without problems. Where are the Wolfgang> string instructions coming from? GCC can be built with different defaults. The -mno-string option guarantees that string instructions will not be generated. I wrote some half-year ago that I too need this option for my GCC version. In theory, -mcpu=8540 implies -mno-string. In the real world, at least some GCC versions generate string instructions if -mno-string is not specified explicitly, and you can discover this only when the U-Boot crashes in run-time. -- ======================================================================== Yuli Barcohen | Phone +972-9-765-1788 | Software Project Leader yuli at arabellasw.com | Fax +972-9-765-7494 | Arabella Software, Israel ========================================================================