Trying to compile gcc 5.2.0 for ARM Cortex-M4

Johannes Bauer
Fri Nov 13 16:05:00 GMT 2015

On 13.11.2015 16:16, Kyrill Tkachov wrote:

>>> I only care about Cortex-M4, which exclusively uses Thumb-2. How can I
>>> completely disable Thumb-1 so I can successfully build gcc?
>> My equivalent for 4.9.1 had —with-cpu=cortex-m4 (and not
>> —with-tune=cortex-m4)
> Yes, --with-tune doesn't specify which architecture level you're
> trying to get so GCC probably defaults to something really old that
> uses Thumb1 when asked to compile for -mthumb.

Ah, thanks! I had originally --with-tune AND --with-cpu, but configure
complained about that. That's why I threw --with-cpu out. Apparently, I
threw the wrong one out :-)

Thanks for the hint!
Best regards,

More information about the Gcc-help mailing list