diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-27 10:29:59 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-27 10:29:59 -0400 |
commit | 61f698715dfed3a7e21895430020f029934184cd (patch) | |
tree | b6c3f3b0acc9e5566d677ad2234b43709d23aefd | |
parent | f62eee569c33537d7d3957b5226a3c5a2532d3f3 (diff) | |
download | rockbox-61f698715dfed3a7e21895430020f029934184cd.tar.gz rockbox-61f698715dfed3a7e21895430020f029934184cd.zip |
coldfire: We need -fno-delete-null-pointer-checks in flash controller code
Change-Id: I9a3e4ced2c3d41f6a31a968af72659a1a14f702e
-rw-r--r-- | firmware/target/coldfire/debug-coldfire.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/coldfire/debug-coldfire.c b/firmware/target/coldfire/debug-coldfire.c index 249c0a75ab..ef44a82176 100644 --- a/firmware/target/coldfire/debug-coldfire.c +++ b/firmware/target/coldfire/debug-coldfire.c | |||
@@ -50,6 +50,11 @@ | |||
50 | #elif (CONFIG_KEYPAD == MPIO_HD300_PAD) | 50 | #elif (CONFIG_KEYPAD == MPIO_HD300_PAD) |
51 | # define DEBUG_CANCEL BUTTON_MENU | 51 | # define DEBUG_CANCEL BUTTON_MENU |
52 | #endif | 52 | #endif |
53 | |||
54 | /* dbg_flash_id() hits address 0, which is nominally illegal. Make sure | ||
55 | GCC doesn't helpfully turn this into an exception. | ||
56 | */ | ||
57 | #pragma GCC optimize "no-delete-null-pointer-checks" | ||
53 | /* Tool function to read the flash manufacturer and type, if available. | 58 | /* Tool function to read the flash manufacturer and type, if available. |
54 | Only chips which could be reprogrammed in system will return values. | 59 | Only chips which could be reprogrammed in system will return values. |
55 | (The mode switch addresses vary between flash manufacturers, hence addr1/2) */ | 60 | (The mode switch addresses vary between flash manufacturers, hence addr1/2) */ |