Commit 085b42ed by Bernd Schmidt Committed by Bernd Schmidt

Remove an unused global tree, last used by objc some years ago.

        * 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.

From-SVN: r205889
parent 67f95586
2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
* 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.
2013-12-05 Marek Polacek <polacek@redhat.com> 2013-12-05 Marek Polacek <polacek@redhat.com>
PR c/52023 PR c/52023
......
...@@ -121,11 +121,6 @@ cpp_reader *parse_in; /* Declared in c-pragma.h. */ ...@@ -121,11 +121,6 @@ cpp_reader *parse_in; /* Declared in c-pragma.h. */
tree char_array_type_node; 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. Type `wchar_t[SOMENUMBER]' or something like it.
Used when a wide string literal is created. Used when a wide string literal is created.
...@@ -5519,10 +5514,6 @@ c_common_nodes_and_builtins (void) ...@@ -5519,10 +5514,6 @@ c_common_nodes_and_builtins (void)
char_array_type_node char_array_type_node
= build_array_type (char_type_node, array_domain_type); = 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); string_type_node = build_pointer_type (char_type_node);
const_string_type_node const_string_type_node
= build_pointer_type (build_qualified_type = build_pointer_type (build_qualified_type
......
...@@ -281,7 +281,6 @@ enum c_tree_index ...@@ -281,7 +281,6 @@ enum c_tree_index
CTI_CHAR16_ARRAY_TYPE, CTI_CHAR16_ARRAY_TYPE,
CTI_CHAR32_ARRAY_TYPE, CTI_CHAR32_ARRAY_TYPE,
CTI_WCHAR_ARRAY_TYPE, CTI_WCHAR_ARRAY_TYPE,
CTI_INT_ARRAY_TYPE,
CTI_STRING_TYPE, CTI_STRING_TYPE,
CTI_CONST_STRING_TYPE, CTI_CONST_STRING_TYPE,
...@@ -421,7 +420,6 @@ extern const unsigned int num_c_common_reswords; ...@@ -421,7 +420,6 @@ extern const unsigned int num_c_common_reswords;
#define char16_array_type_node c_global_trees[CTI_CHAR16_ARRAY_TYPE] #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 char32_array_type_node c_global_trees[CTI_CHAR32_ARRAY_TYPE]
#define wchar_array_type_node c_global_trees[CTI_WCHAR_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 string_type_node c_global_trees[CTI_STRING_TYPE]
#define const_string_type_node c_global_trees[CTI_CONST_STRING_TYPE] #define const_string_type_node c_global_trees[CTI_CONST_STRING_TYPE]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment