diff options
author | Chris Kay <chris.kay@arm.com> | 2018-06-14 11:17:53 +0100 |
---|---|---|
committer | ronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com> | 2018-09-17 11:30:58 +0100 |
commit | e730d9b60dae0813d62dd07f2d9b248e4ba68ef3 (patch) | |
tree | 8458dc9e242646001dfebe6c7d5971d04191fbd2 /arch/src/host.c | |
parent | 316c4de56e10f1ce4c422ebb9c4e75c9f75ef5c8 (diff) |
misc: Implement alignof, alignas, noreturn and static_assert manually
The headers these constructs belong in were introduced with C11
standard library, but don't appear to be supported by the Arm Compiler
6's. We work around this by implementing them ourselves.
Change-Id: I601701c0a8e2b5df02e7c2c95c5b0667aac6cff4
Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'arch/src/host.c')
-rw-r--r-- | arch/src/host.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/src/host.c b/arch/src/host.c index 7682a2b8..05391c26 100644 --- a/arch/src/host.c +++ b/arch/src/host.c @@ -9,13 +9,14 @@ #include <stdlib.h> #include <fwk_arch.h> #include <fwk_errno.h> +#include <fwk_noreturn.h> extern int host_interrupt_init(struct fwk_arch_interrupt_driver **driver); /* * Catches early failures in the initialization. */ -static void __attribute__((noreturn)) panic(void) +static noreturn void panic(void) { printf("Panic!\n"); exit(1); |