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

2013-07-05 Thread TigerLiu
Hi, experts: Would any expert fix this question? It seems related MOVW instruction's usuage when turning off gcc optimazition. If i just turned on "-O1" or "-O2", still failed to compile uboot code. Best wishes, ___ U-Boot mailing list U-Boot@l

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

2013-07-02 Thread Graeme Russ
Hi Mike, On Wed, Jul 3, 2013 at 5:40 AM, Mike Dunn wrote: > On 07/01/2013 12:51 PM, Wolfgang Denk wrote: > > Dear Mike Dunn, > > > > In message <51d1c455.9010...@newsguy.com> you wrote: > >> > >> But there's a good motivation for wanting to turn off optimization. > > > > I disagree here. If you

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

2013-07-02 Thread Mike Dunn
On 07/01/2013 12:51 PM, Wolfgang Denk wrote: > Dear Mike Dunn, > > In message <51d1c455.9010...@newsguy.com> you wrote: >> >> But there's a good motivation for wanting to turn off optimization. > > I disagree here. If you are hunting down a problem, you want to be as > close at the original code

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

2013-07-01 Thread Wolfgang Denk
Dear Mike Dunn, In message <51d1c455.9010...@newsguy.com> you wrote: > > But there's a good motivation for wanting to turn off optimization. I disagree here. If you are hunting down a problem, you want to be as close at the original code as possible. Disabling optimization is such a dramatic ch

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

2013-07-01 Thread Mike Dunn
On 07/01/2013 04:37 AM, Wolfgang Denk wrote: > Dear tiger...@viatech.com.cn, > > please do not top post / full quote. > > In message > you wrote: >> >> During debug u-boot with JTAG tools, maybe turning off optimizations was >> recommended. > > Many people recommend many things. Even strange

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

2013-07-01 Thread Wolfgang Denk
Dear tiger...@viatech.com.cn, please do not top post / full quote. In message you wrote: > > During debug u-boot with JTAG tools, maybe turning off optimizations was > recommended. Many people recommend many things. Even strange or non-working or incorrect or dangerous ones. Best regards, W

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

2013-07-01 Thread TigerLiu
Hi, Denk: During debug u-boot with JTAG tools, maybe turning off optimizations was recommended. Best wishes, -邮件原件- 发件人: Wolfgang Denk [mailto:w...@denx.de] 发送时间: 2013年7月1日 18:03 收件人: Tiger Liu 抄送: u-boot@lists.denx.de 主题: Re: [U-Boot] compiled failed when turned off gcc optimazition

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

2013-07-01 Thread Wolfgang Denk
Dear tiger...@viatech.com.cn, In message 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 alway

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

2013-07-01 Thread TigerLiu
Hi, experts: 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: .. /home/lion/Origen0921/arm-2010.09/bin/arm-none-eabi-ld: arch/arm/cpu/armv7/libarmv7.o: relocation R_ARM_MOVW_ABS_NC against `a local sym