OK backporting following patches to 4.7? http://gcc.gnu.org/ml/gcc-patches/2012-07/msg01193.html
2012-08-17 Julian Brown <jul...@codesourcery.com> * Makefile.in (LIB2_DIVMOD_EXCEPTION_FLAGS): Default to -fexceptions -fnon-call-exceptions if not defined. ($(lib2-divmod-o), $(lib2-divmod-s-o)): Use above. * config/arm/t-bpabi (LIB2_DIVMOD_EXCEPTION_FLAGS): Define. * gcc.target/arm/div64-unwinding.c: New test. 2012-09-26 Janis Johnson <jani...@codesourcery.com> * gcc.target/arm/div64-unwinding.c: XFAIL for GNU/Linux. * gcc.target/arm/mmx-2.c: Specify -mcpu=iwmmxt. * gcc.target/arm/combine-movs.c: Use effective target arm_thumb2. * gcc.target/arm/pr42879.c: Handle big-endian.