diff options
author | Patrick Georgi <pgeorgi@google.com> | 2018-07-04 17:21:09 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-12 22:10:02 -0700 |
commit | 7e972ab9860d594c0db9d4c2df1742a96f64bc67 (patch) | |
tree | 93a1d43a4b9aa749e9fe50f10279cdbdac380053 /core/cortex-m | |
parent | 97a7b12b3ba7caad4b48eee2ec27773c044b3519 (diff) | |
download | chrome-ec-7e972ab9860d594c0db9d4c2df1742a96f64bc67.tar.gz |
assert/panic: mark noreturn to inform the compiler
BUG=b:65441143
BRANCH=none
TEST=buildall with gcc8.1 stops failing on this family of functions
Change-Id: I44f9d643e46f955ea0cd0b5893c2806a4e3f52b0
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1126315
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'core/cortex-m')
-rw-r--r-- | core/cortex-m/panic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/cortex-m/panic.c b/core/cortex-m/panic.c index 703586c135..bc049bd698 100644 --- a/core/cortex-m/panic.c +++ b/core/cortex-m/panic.c @@ -383,6 +383,7 @@ void software_panic(uint32_t reason, uint32_t info) "mov " STRINGIFY(SOFTWARE_PANIC_REASON_REG) ", %1\n" "bl exception_panic\n" : : "r"(info), "r"(reason)); + __builtin_unreachable(); } void panic_set_reason(uint32_t reason, uint32_t info, uint8_t exception) |