[Bug libgcc/60464] [arm] ARM -mthumb version of libgcc contains ARM (non-thumb) code; not safe for thumb-only architectures
jeremygccb at baymoo dot org
gcc-bugzilla@gcc.gnu.org
Sat Mar 8 08:33:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60464
--- Comment #7 from Jeremy Cooper <jeremygccb at baymoo dot org> ---
I have managed to resolve the problem by doing two things. However, one of them
is still distasteful (editing the GCC 4.8.2 source).
1. Edited gcc/config/arm/t-arm-elf, uncommenting the following lines:
MULTILIB_OPTIONS += march=armv7
MULTILIB_DIRNAMES += thumb2
MULTILIB_EXCEPTIONS += march=armv7* marm/*march=armv7*
MULTILIB_MATCHES += march?armv7=march?armv7-a
MULTILIB_MATCHES += march?armv7=march?armv7-r
MULTILIB_MATCHES += march?armv7=march?armv7-m
MULTILIB_MATCHES += march?armv7=mcpu?cortex-a8
MULTILIB_MATCHES += march?armv7=mcpu?cortex-r4
MULTILIB_MATCHES += march?armv7=mcpu?cortex-m3
2. configure --target=arm-none-eabi --enable-languages=c --disable-libssp
--disable-libstdcxx
Is there a reason these were commented out? Is the armv7 multilib unstable?
More information about the Gcc-bugs
mailing list