forked from len0rd/rockbox
iriver_flash: we need -fno-delete-null-pointer-checks
Change-Id: I36bbfc81d9cb79a9627e5ba7ee50e1305f54848b
This commit is contained in:
parent
804a49886a
commit
f62eee569c
1 changed files with 7 additions and 0 deletions
|
|
@ -22,6 +22,13 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "plugin.h"
|
#include "plugin.h"
|
||||||
|
|
||||||
|
/* cfi_program_word() relies on writing to address 0, which normally is illegal.
|
||||||
|
So we need this to ensure we don't helpfully optimize it away into a TRAP
|
||||||
|
when compiled with -fdelete-null-pointer-checks, which is enabled by default
|
||||||
|
at -Os with our current gcc 4.9.x toolchain.
|
||||||
|
*/
|
||||||
|
#pragma GCC optimize "no-delete-null-pointer-checks"
|
||||||
|
|
||||||
/* All CFI flash routines are copied and ported from firmware_flash.c */
|
/* All CFI flash routines are copied and ported from firmware_flash.c */
|
||||||
|
|
||||||
unsigned char *audiobuf;
|
unsigned char *audiobuf;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue