mirror of
https://github.com/vivier/EMILE.git
synced 2025-02-10 17:30:34 +00:00
Remove the sp register from UNPRESERVED_REGS
Including the stack pointer register in a clobber list has long since been deprecated by GCC (~9.0 and ~8.4), and according to my research, it appears the compiler ignores its presence in a clobber list regardless. Whether this is the correct thing to do here I do not know, but from my research, it seems to be, and it does silence the associated deprecation warning that, due to -Werror, causes builds to fail. See here: https://stackoverflow.com/questions/64928418/arm-cortex-m0-set-msp-c17-compiler-warning
This commit is contained in:
parent
224ab6eabc
commit
37c3d55720
@ -36,7 +36,7 @@
|
||||
/*
|
||||
* Inside Macintosh Volume I, I-94: Register Saving Conventions */
|
||||
|
||||
#define UNPRESERVED_REGS "%%a0", "%%a1", "%%a2", "%%d1", "%%d2", "%%sp", "memory"
|
||||
#define UNPRESERVED_REGS "%%a0", "%%a1", "%%a2", "%%d1", "%%d2", "memory"
|
||||
|
||||
#define _Trap(a) #a
|
||||
#define Trap(a) " dc.w "_Trap(a)" /* "#a" */\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user