X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ast2firm.c;h=7e06f49a5025330971efa13b9ecc63a36e4aa043;hb=0cd1559ba2a23f1522e3f740067e4ef5ea8c3520;hp=a069e6619b0d2147feb2c7e08ffb35cd18b308eb;hpb=aecd2b03f5879d30caea7b81971b44ec202770c1;p=cparser diff --git a/ast2firm.c b/ast2firm.c index a069e66..7e06f49 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -358,8 +358,12 @@ static ir_type *create_atomic_type(const atomic_type_t *type) ident *id = get_mode_ident(mode); ir_type *irtype = new_d_type_primitive(id, mode, dbgi); + /* TODO: this is x86 specific, we should fiddle this into + * lang_features.h somehow... */ if(type->akind == ATOMIC_TYPE_LONG_DOUBLE - || type->akind == ATOMIC_TYPE_DOUBLE) { + || type->akind == ATOMIC_TYPE_DOUBLE + || type->akind == ATOMIC_TYPE_LONGLONG + || type->akind == ATOMIC_TYPE_ULONGLONG) { set_type_alignment_bytes(irtype, 4); }