From: Richard Stallman Date: Fri, 3 Jul 1992 06:41:45 +0000 (+0000) Subject: Added declarations for mode-related internal type nodes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac4f24e7d91a3d5ed79e3d2cfb4eb2ca203b1a75;p=gcc.git Added declarations for mode-related internal type nodes. (init_decl_processing): Initialize the new type nodes. From-SVN: r1398 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index ac79c3cf508..ff1e7e7c148 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -131,6 +131,16 @@ tree float_type_node; tree double_type_node; tree long_double_type_node; +tree intQI_type_node; +tree intHI_type_node; +tree intSI_type_node; +tree intDI_type_node; + +tree unsigned_intQI_type_node; +tree unsigned_intHI_type_node; +tree unsigned_intSI_type_node; +tree unsigned_intDI_type_node; + /* a VOID_TYPE node. */ tree void_type_node; @@ -2399,6 +2409,30 @@ init_decl_processing () pushdecl (build_decl (TYPE_DECL, get_identifier ("unsigned char"), unsigned_char_type_node)); + intQI_type_node = make_signed_type (8); + pushdecl (build_decl (TYPE_DECL, NULL_TREE, intQI_type_node)); + + intHI_type_node = make_signed_type (16); + pushdecl (build_decl (TYPE_DECL, NULL_TREE, intHI_type_node)); + + intSI_type_node = make_signed_type (32); + pushdecl (build_decl (TYPE_DECL, NULL_TREE, intSI_type_node)); + + intDI_type_node = make_signed_type (64); + pushdecl (build_decl (TYPE_DECL, NULL_TREE, intDI_type_node)); + + unsigned_intQI_type_node = make_unsigned_type (8); + pushdecl (build_decl (TYPE_DECL, NULL_TREE, unsigned_intQI_type_node)); + + unsigned_intHI_type_node = make_unsigned_type (16); + pushdecl (build_decl (TYPE_DECL, NULL_TREE, unsigned_intHI_type_node)); + + unsigned_intSI_type_node = make_unsigned_type (32); + pushdecl (build_decl (TYPE_DECL, NULL_TREE, unsigned_intSI_type_node)); + + unsigned_intDI_type_node = make_unsigned_type (64); + pushdecl (build_decl (TYPE_DECL, NULL_TREE, unsigned_intDI_type_node)); + float_type_node = make_node (REAL_TYPE); TYPE_PRECISION (float_type_node) = FLOAT_TYPE_SIZE; pushdecl (build_decl (TYPE_DECL, ridpointers[(int) RID_FLOAT],