]> gcc.gnu.org Git - gcc.git/commitdiff
Added declarations for mode-related internal type nodes.
authorRichard Stallman <rms@gnu.org>
Fri, 3 Jul 1992 06:41:45 +0000 (06:41 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 3 Jul 1992 06:41:45 +0000 (06:41 +0000)
(init_decl_processing):  Initialize the new type nodes.

From-SVN: r1398

gcc/c-decl.c

index ac79c3cf50868ffaad35c0bf96b7e6d4931516d5..ff1e7e7c148f9f42346e45a44f37cd7c3d0b2744 100644 (file)
@@ -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],
This page took 0.076018 seconds and 5 git commands to generate.