diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-26 21:27:46 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-26 21:27:46 -0400 |
commit | f62eee569c33537d7d3957b5226a3c5a2532d3f3 (patch) | |
tree | 7c41042d54cb620a54b0a4ff4b7cd60231d9d370 /apps | |
parent | 804a49886a842495c6bb049c229d924230b85b26 (diff) | |
download | rockbox-f62eee569c33537d7d3957b5226a3c5a2532d3f3.tar.gz rockbox-f62eee569c33537d7d3957b5226a3c5a2532d3f3.zip |
iriver_flash: we need -fno-delete-null-pointer-checks
Change-Id: I36bbfc81d9cb79a9627e5ba7ee50e1305f54848b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/iriver_flash.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/iriver_flash.c b/apps/plugins/iriver_flash.c index 2004840531..ce31429aa8 100644 --- a/apps/plugins/iriver_flash.c +++ b/apps/plugins/iriver_flash.c | |||
@@ -22,6 +22,13 @@ | |||
22 | ****************************************************************************/ | 22 | ****************************************************************************/ |
23 | #include "plugin.h" | 23 | #include "plugin.h" |
24 | 24 | ||
25 | /* cfi_program_word() relies on writing to address 0, which normally is illegal. | ||
26 | So we need this to ensure we don't helpfully optimize it away into a TRAP | ||
27 | when compiled with -fdelete-null-pointer-checks, which is enabled by default | ||
28 | at -Os with our current gcc 4.9.x toolchain. | ||
29 | */ | ||
30 | #pragma GCC optimize "no-delete-null-pointer-checks" | ||
31 | |||
25 | /* All CFI flash routines are copied and ported from firmware_flash.c */ | 32 | /* All CFI flash routines are copied and ported from firmware_flash.c */ |
26 | 33 | ||
27 | unsigned char *audiobuf; | 34 | unsigned char *audiobuf; |