[U-Boot] compiled failed when turned off gcc optimazition

TigerLiu at viatech.com.cn TigerLiu at viatech.com.cn
Mon Jul 1 12:08:38 CEST 2013


Hi, Denk:
During debug u-boot with JTAG tools, maybe turning off optimizations was recommended.

Best wishes,
-----邮件原件-----
发件人: Wolfgang Denk [mailto:wd at denx.de] 
发送时间: 2013年7月1日 18:03
收件人: Tiger Liu
抄送: u-boot at lists.denx.de
主题: Re: [U-Boot] compiled failed when turned off gcc optimazition

Dear TigerLiu at viatech.com.cn,

In message <FE7ADED5C2218B4786C09CD97DC4C49F9403F2 at exchbj02.viatech.com.bj> you wrote:
>
> I tried to turn off gcc optimazition by changing config.mk file:
> OPTFLAGS= -O0 #-fomit-frame-pointer
> 
> But failed to compile u-boot, it tipped:

Don't do it, then.

Q: why would you want to switch off optimization?  That's almost
always a bad idea...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I have made mistakes, but have never made the mistake of  claiming  I
never made one.                                     - James G. Bennet


More information about the U-Boot mailing list