diff options
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 1e49104d563..ed67bb05b91 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -663,8 +663,7 @@ combine_strings (strings) -Wwrite-strings says make the string constant an array of const char so that copying it to a non-const pointer will get a warning. For C++, this is the standard behavior. */ - if (flag_const_strings - && (! flag_traditional && ! flag_writable_strings)) + if (flag_const_strings && ! flag_writable_strings) { tree elements = build_type_variant (wide_flag ? wchar_type_node : char_type_node, @@ -2529,11 +2528,6 @@ c_common_nodes_and_builtins () tree builtin_types[(int) BT_LAST]; int wchar_type_size; tree array_domain_type; - /* Either char* or void*. */ - tree traditional_ptr_type_node; - /* Either const char* or const void*. */ - tree traditional_cptr_type_node; - tree traditional_len_type_node; tree va_list_ref_type_node; tree va_list_arg_type_node; @@ -2607,8 +2601,6 @@ c_common_nodes_and_builtins () c_size_type_node = TREE_TYPE (identifier_global_value (get_identifier (SIZE_TYPE))); signed_size_type_node = signed_type (c_size_type_node); - if (flag_traditional) - c_size_type_node = signed_size_type_node; set_sizetype (c_size_type_node); build_common_tree_nodes_2 (flag_short_double); @@ -2655,13 +2647,6 @@ c_common_nodes_and_builtins () = build_pointer_type (build_qualified_type (char_type_node, TYPE_QUAL_CONST)); - traditional_ptr_type_node = ((flag_traditional && - c_language != clk_cplusplus) - ? string_type_node : ptr_type_node); - traditional_cptr_type_node = ((flag_traditional && - c_language != clk_cplusplus) - ? const_string_type_node : const_ptr_type_node); - (*targetm.init_builtins) (); /* This is special for C++ so functions can be overloaded. */ @@ -2721,10 +2706,6 @@ c_common_nodes_and_builtins () va_list_ref_type_node = build_reference_type (va_list_type_node); } - traditional_len_type_node = ((flag_traditional && - c_language != clk_cplusplus) - ? integer_type_node : sizetype); - #define DEF_PRIMITIVE_TYPE(ENUM, VALUE) \ builtin_types[(int) ENUM] = VALUE; #define DEF_FUNCTION_TYPE_0(ENUM, RETURN) \ @@ -3020,11 +3001,9 @@ simple_type_promotes_to (type) if (c_promoting_integer_type_p (type)) { - /* Traditionally, unsignedness is preserved in default promotions. - Also preserve unsignedness if not really getting any wider. */ + /* Preserve unsignedness if not really getting any wider. */ if (TREE_UNSIGNED (type) - && (flag_traditional - || TYPE_PRECISION (type) == TYPE_PRECISION (integer_type_node))) + && (TYPE_PRECISION (type) == TYPE_PRECISION (integer_type_node))) return unsigned_type_node; return integer_type_node; } |