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:
Aidan MacDonald 2025-03-01 18:11:51 +01:00
parent da4e02cdd3
commit 1aa9f26b02
3 changed files with 13 additions and 2 deletions

View file

@ -460,7 +460,8 @@ void sbr_qmf_synthesis_64(sbr_info *sbr, qmfs_info *qmfs, qmf_t X[MAX_NTSR][64],
p_buf_1 = qmfs->v + qmfs->v_index;
/* calculate 64 output samples and window */
#ifdef CPU_ARM
/* note: GCC 4.9 complains about the inline asm on Cortex-M targets */
#if defined(CPU_ARM_CLASSIC) || (defined(CPU_ARM_MICRO) && __GNUC__ > 4)
const real_t *qtab = qmf_c;
real_t *pbuf = p_buf_1;
for (k = 0; k < 64; k++, pbuf++)