X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/bef1210245bb3180a57f26405369654eaa477f63..1eeed1150149b63d6e49e033697454bc12b533b9:/lunaix-os/includes/lunaix/compiler.h diff --git a/lunaix-os/includes/lunaix/compiler.h b/lunaix-os/includes/lunaix/compiler.h index 7581978..6c33779 100644 --- a/lunaix-os/includes/lunaix/compiler.h +++ b/lunaix-os/includes/lunaix/compiler.h @@ -10,6 +10,7 @@ #define optimize(opt) __attribute__((optimize(opt))) #define must_inline __attribute__((always_inline)) #define must_emit __attribute__((used)) +#define unreachable __builtin_unreachable() #define clz(bits) __builtin_clz(bits) #define sadd_overflow(a, b, of) __builtin_sadd_overflow(a, b, of) @@ -34,7 +35,7 @@ spin() volatile int __infloop = 1; while (__infloop) ; - __builtin_unreachable(); + unreachable; } #endif /* __LUNAIX_COMPILER_H */