[U-Boot] target TQM834x giving build error with gcc v4.9

Kushwaha Prabhakar prabhakar at freescale.com
Mon Aug 3 05:00:44 CEST 2015


Hi,

I am getting below error with gcc v4.9 building for powerpc target. 
Looks like GCCv4.9 is doing more optimization than earlier version. 

build   31-Jul-2015 02:49:45      powerpc: +   TQM834x
build   31-Jul-2015 02:49:45   +(TQM834x)     (((base + size - 1) >> CSBNDS_EA_SHIFT) &
build   31-Jul-2015 02:49:45   +(TQM834x)             ^
build   31-Jul-2015 02:49:45   +(TQM834x) board/tqc/tqm834x/tqm834x.c:80:2: note: containing loop
build   31-Jul-2015 02:49:45   +(TQM834x)   for(cs = 0; cs < 4; ++cs) {
build   31-Jul-2015 02:49:45   +(TQM834x)   ^
build   31-Jul-2015 02:49:45   w+(TQM834x) board/tqc/tqm834x/tqm834x.c: In function 'initdram':
build   31-Jul-2015 02:49:45   w+(TQM834x) board/tqc/tqm834x/tqm834x.c:325:12: warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]	

Regards,
Prabhakar



More information about the U-Boot mailing list