diff mbox

[gomp4,4/23] Remove int_array_type_node

Message ID 52A5D9ED.90900@codesourcery.com
State New
Headers show

Commit Message

Bernd Schmidt Dec. 9, 2013, 2:55 p.m. UTC

Comments

Joseph Myers Dec. 9, 2013, 10:35 p.m. UTC | #1
OK for mainline (subject to testing there, of course).
diff mbox

Patch

The last user of this was in objc and has been removed a while ago.

	gcc/c-family/
	* c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
	(int_array_type_node): Remove.
	* c-common.c (c_common_nodes_and_builtins): Don't build it.

------------------------------------------------------------------------
Index: gcc/c-family/c-common.c
===================================================================
--- gcc/c-family/c-common.c	(revision 422346)
+++ gcc/c-family/c-common.c	(revision 422347)
@@ -115,11 +115,6 @@  cpp_reader *parse_in;		/* Declared in c-
 
 	tree char_array_type_node;
 
-   Type `int[SOMENUMBER]' or something like it.
-   Used when an array of int needed and the size is irrelevant.
-
-	tree int_array_type_node;
-
    Type `wchar_t[SOMENUMBER]' or something like it.
    Used when a wide string literal is created.
 
@@ -5478,10 +5473,6 @@  c_common_nodes_and_builtins (void)
   char_array_type_node
     = build_array_type (char_type_node, array_domain_type);
 
-  /* Likewise for arrays of ints.  */
-  int_array_type_node
-    = build_array_type (integer_type_node, array_domain_type);
-
   string_type_node = build_pointer_type (char_type_node);
   const_string_type_node
     = build_pointer_type (build_qualified_type
Index: gcc/c-family/c-common.h
===================================================================
--- gcc/c-family/c-common.h	(revision 422346)
+++ gcc/c-family/c-common.h	(revision 422347)
@@ -278,7 +278,6 @@  enum c_tree_index
     CTI_CHAR16_ARRAY_TYPE,
     CTI_CHAR32_ARRAY_TYPE,
     CTI_WCHAR_ARRAY_TYPE,
-    CTI_INT_ARRAY_TYPE,
     CTI_STRING_TYPE,
     CTI_CONST_STRING_TYPE,
 
@@ -418,7 +417,6 @@  extern const unsigned int num_c_common_r
 #define char16_array_type_node		c_global_trees[CTI_CHAR16_ARRAY_TYPE]
 #define char32_array_type_node		c_global_trees[CTI_CHAR32_ARRAY_TYPE]
 #define wchar_array_type_node		c_global_trees[CTI_WCHAR_ARRAY_TYPE]
-#define int_array_type_node		c_global_trees[CTI_INT_ARRAY_TYPE]
 #define string_type_node		c_global_trees[CTI_STRING_TYPE]
 #define const_string_type_node		c_global_trees[CTI_CONST_STRING_TYPE]