Parses attribute defines. Removal of incremental array parsing. Labels in macros should now work correctly. Volatile and attribute are no longer keywords. Checked a few todos. On test failure, return -1

This commit is contained in:
Christoffer Lerno
2021-11-18 10:59:49 +01:00
committed by Christoffer Lerno
parent bfde58b9a5
commit 4d4bbbdebc
27 changed files with 486 additions and 204 deletions

View File

@@ -325,7 +325,7 @@ bool type_is_homogenous_aggregate(Type *type, Type **base, unsigned *elements)
AlignSize type_alloca_alignment(Type *type)
{
if (platform_target.abi == ABI_X64)
if (platform_target.abi == ABI_X64 || platform_target.abi == ABI_WIN64)
{
type = type_lowering(type);
if (type->type_kind == TYPE_ARRAY && type_size(type) >= 16) return 16;