mirror of
https://github.com/mirror/tinycc.git
synced 2026-08-22 11:23:27 +08:00
C11 conformance: Add _Noreturn, stdnoreturn.h, and partial _Alignas support
_Noreturn, just like __attribute__((noreturn)), is ignored. I also added stdnoreturn.h, in all its glorious uselessness. _Alignas only works for integer expressions right now. In order to comply, we need: - _Alignas(type) -> _Alignas(_Alignof(type)). - stdalign.h as soon as it is done. Note: DR 444 is supported; it works on struct members. Signed-off-by: Devin Hussey <husseydevin@gmail.com>
This commit is contained in:
7
include/stdnoreturn.h
Normal file
7
include/stdnoreturn.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef _STDNORETURN_H
|
||||
#define _STDNORETURN_H
|
||||
|
||||
/* ISOC11 noreturn */
|
||||
#define noreturn _Noreturn
|
||||
|
||||
#endif /* _STDNORETURN_H */
|
||||
Reference in New Issue
Block a user