forked from len0rd/rockbox
arm: workaround to build Cortex-M7 targets with GCC 4.9
Cortex-M7 support was added in GCC 5, while GCC 4.9 only supports the M4. The instruction set is almost identical between both processors; the only difference is that the M7 supports double-precision floating point and the M4 doesn't. Since Rockbox currently doesn't use the FPU, building M7 targets as M4 works fine. Change-Id: I5880d6e81a85fa9b3e16e08d57e7955b4493df0b
This commit is contained in:
parent
da4e02cdd3
commit
1aa9f26b02
3 changed files with 13 additions and 2 deletions
|
|
@ -1075,7 +1075,7 @@ Lyre prototype 1 */
|
|||
* Older versions of GCC emit assembly in divided syntax with no option
|
||||
* to enable unified syntax.
|
||||
*/
|
||||
#if (__GNUC__ < 8)
|
||||
#if (__GNUC__ < 8) && defined(CPU_ARM_CLASSIC)
|
||||
#define BEGIN_ARM_ASM_SYNTAX_UNIFIED ".syntax unified\n"
|
||||
#define END_ARM_ASM_SYNTAX_UNIFIED ".syntax divided\n"
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue