coldfire: We need -fno-delete-null-pointer-checks in flash controller code
Change-Id: I9a3e4ced2c3d41f6a31a968af72659a1a14f702e
This commit is contained in:
parent
f62eee569c
commit
61f698715d
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,11 @@
|
|||
#elif (CONFIG_KEYPAD == MPIO_HD300_PAD)
|
||||
# define DEBUG_CANCEL BUTTON_MENU
|
||||
#endif
|
||||
|
||||
/* dbg_flash_id() hits address 0, which is nominally illegal. Make sure
|
||||
GCC doesn't helpfully turn this into an exception.
|
||||
*/
|
||||
#pragma GCC optimize "no-delete-null-pointer-checks"
|
||||
/* Tool function to read the flash manufacturer and type, if available.
|
||||
Only chips which could be reprogrammed in system will return values.
|
||||
(The mode switch addresses vary between flash manufacturers, hence addr1/2) */
|
||||
|
|
Loading…
Reference in a new issue