http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58869
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- If you specify -mcpu, you don't need to also specify the architecture; the compiler can work that out from the CPU. At a technical level, Cortex-A7 implements the ARMv7ve variant of ARMv7, which is why you get conflict messages (v7ve having the integer divide instructions), the diagnostic is telling you that the architecture derived from the CPU option is at variance with that coming from the -march option. If you really want to generate strict ARMv7 code that is tuned for cortex-a7, then use -march=armv7-a -mtune=cortex-a7.