title: (Android4.2)random compile error "unrecognized command line option '-mshort-load-bytes'" with arm-eabi-gcc 4.6.x
body: <p>I have ported u-boot to my android4.2 source and use the android toolchain, 
  which has a gcc version 4.6.x-google 20120106.</p>
  
  <p>My environment for build: Ubuntu 10.04, with a host gcc version 4.4.3.</p>
  
  <p>My platform is arm-v7, cotex-a5.</p>
  
  <p>The problem is that sometimes u-boot will encounter the following compile error (I use a multijob for building android):
  </p>
  
  <pre><code>target thumb C++: libGLES_trace &lt;= frameworks/native/opengl/libs/GLES_trace/src/gltrace_context.cpp
  
      CC  ispi.c
  
  target thumb C++: libGLES_trace &lt;= frameworks/native/opengl/libs/GLES_trace/src/gltrace_egl.cpp
  
      CC  spl.c
  
  target thumb C++: libGLES_trace &lt;= frameworks/native/opengl/libs/GLES_trace/src/gltrace_eglapi.cpp
  
      MAKE    arch/arm/lib/
      CC  timer.c
  cc1: error: unrecognized command line option '-mshort-load-bytes'
  
  make[2]: *** [/home/jenkins/workspace/droid-4.2.2_r1/out/target/product/aere/obj/u-boot/arch/arm/cpu/armv7/rda/timer.o] Error 1
  
  make[1]: *** [/home/jenkins/workspace/droid-4.2.2_r1/out/target/product/aere/obj/u-boot/arch/arm/cpu/armv7/rda/librda.o] Error 2
  
  make[1]: Leaving directory `/home/jenkins/workspace/rdadroid-4.2.2_r1/u-boot'
  make: *** [out/target/product/aere/obj/u-boot/u-boot.img] Error 2
  
  make: *** Waiting for unfinished jobs....
  </code></pre>
  
  <p>But if I build it again, the compile error disappears。</p>
  
  <p>I know that GCC after 3.5 doesn't support the <code>-mshort-load-bytes</code> option, but my gcc-version
  is 4.6, and I checked <code>include/generated/cc_options.mk</code>, if build fails, the content is:</p>
  
  <pre class="lang-none prettyprint-override"><code>CC_OPTIONS += -marm
  CC_OPTIONS += -mno-thumb-interwork
  CC_OPTIONS += -mabi=apcs-gnu
  CC_OPTIONS += -mabi=aapcs-linux
  CC_OPTIONS += -march=armv7-a
  CC_OPTIONS += -fno-stack-protector
  CC_OPTIONS += -Wno-format-nonliteral
  CC_OPTIONS += -Wno-format-security
  CC_OPTIONS += -fstack-usage
  CC_OPTIONS += -fno-toplevel-reorder
  CC_OPTIONS += -mshort-load-bytes
  </code></pre>
  
  <p>If success, there is no <code>CC_OPTIONS += -mshort-load-bytes</code>.</p>
  
  <p>So, anyone can tell me how to debug this problems? 
  thank you!</p>