1 2013-01-24 Jakub Jelinek <jakub@redhat.com>
4 * c-typeck.c (set_nonincremental_init_from_string): If
5 constructor_max_index is NULL, treat it as if tree_int_cst_lt
7 (process_init_element): Likewise.
9 2012-12-20 Jakub Jelinek <jakub@redhat.com>
12 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
13 argument, don't call default_function_array_conversion
14 nor c_fully_fold here.
15 (c_parser_asm_statement): Adjust callers.
16 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
17 and outputs here, and call default_function_array_conversion
18 on inputs that don't need to be addressable.
20 2012-12-18 Jakub Jelinek <jakub@redhat.com>
23 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
24 warning require that both c_common_unsigned_type as well as
25 c_common_signed_type is the same for both mvl and mvr types.
27 2012-11-16 Diego Novillo <dnovillo@google.com>
29 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
31 * c-common.c: Use new vec API in vec.h.
32 * c-common.h: Likewise.
33 * c-gimplify.c: Likewise.
34 * c-pragma.c: Likewise.
35 * c-pretty-print.c: Likewise.
36 * c-pretty-print.h: Likewise.
37 * c-semantics.c: Likewise.
39 * c-parser.c: Likewise.
41 * c-typeck.c: Likewise.
43 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
46 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
48 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
51 * c-decl.c (warn_if_shadowing): Do not warn if a variable
52 shadows a function, unless the variable is a function or a
55 2012-10-12 Jakub Jelinek <jakub@redhat.com>
58 * c-parser.c (struct c_tree_loc_pair): Removed.
59 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
60 add location_t * and tree * arguments, fill in array of 3
61 sizeof_arg trees and corresponding locs.
62 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
63 c_parser_expr_list callers.
64 (c_parser_postfix_expression_after_primary): Likewise. Pass
65 array of 3 sizeof_arg trees and locs (corresponding to first
66 3 arguments) to sizeof_pointer_memaccess_warning.
68 2012-10-09 Lawrence Crowl <crowl@google.com>
70 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
71 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
74 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
77 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
80 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
83 * c-typeck.c: Include c-common.h.
84 (enum stv_conv): Moved to c-common.h.
85 (scalar_to_vector): Moved to c-common.c.
86 (build_binary_op): Adapt to scalar_to_vector's new prototype.
87 * Make-lang.in: c-typeck.c depends on c-common.h.
89 2012-10-04 Arnaud Charlet <charlet@adacore.com>
91 * c-decl.c (c_write_global_declarations): Fix handling of
94 2012-09-30 Sharad Singhai <singhai@google.com>
96 * c-decl.c (c_write_global_declarations): Use a different method
97 to determine if the dump has ben initialized.
99 2012-09-14 Joseph Myers <joseph@codesourcery.com>
102 * c-typeck.c (c_cast_expr): When casting to a type requiring
103 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
106 2012-09-14 Joseph Myers <joseph@codesourcery.com>
109 * c-typeck.c (build_unary_op): Pass original argument of
110 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
111 any C_MAYBE_CONST_EXPR, if it has integer operands.
112 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
113 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
114 to c_objc_common_truthvalue_conversion, then remove any
115 C_MAYBE_CONST_EXPR, if they have integer operands. Use
116 c_objc_common_truthvalue_conversion not
117 c_common_truthvalue_conversion.
118 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
119 call note_integer_operands for arguments with integer operands
120 that are not integer constants.
122 2012-09-13 Jakub Jelinek <jakub@redhat.com>
125 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
126 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
128 2012-08-31 Jakub Jelinek <jakub@redhat.com>
131 * c-convert.c (convert): Don't call fold_convert_loc if
132 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
133 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
134 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
136 2012-08-24 Jakub Jelinek <jakub@redhat.com>
139 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
140 for nested and empty_ok arguments in the call to
141 c_parser_declaration_or_fndef.
143 2012-08-17 Jakub Jelinek <jakub@redhat.com>
145 * c-tree.h (c_last_sizeof_arg): Declare.
146 * c-parser.c (struct c_tree_loc_pair): New type.
147 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
149 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
150 (c_parser_postfix_expression_after_primary): Likewise. Call
151 sizeof_pointer_memaccess_warning if needed.
152 (sizeof_ptr_memacc_comptypes): New function.
153 * c-typeck.c (c_last_sizeof_arg): New global variable.
154 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
156 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
158 * c-lang.h (lang_decl): Add variable_size GTY option.
160 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
162 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
163 * Make-lang.in: Fix dependencies.
165 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
167 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
168 and add language Makefile hooks.
169 * config-lang.in: New file.
170 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
171 add the required "normal" config-lang.in rules.
172 * c-lang.h: Moved from gcc/ to here.
173 * c-tree.h: Likewise.
174 * c-objc-common.c: Likewise.
175 * c-objc-common.h: Likewise.
176 * c-typeck.c: Likewise.
177 * c-convert.c: Likewise.
178 * c-lang.c: Likewise.
179 * c-aux-info.c: Likewise.
180 * c-errors.c: Likewise.
181 * gccspec.c: Likewise.
182 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
183 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
185 Copyright (C) 2012-2013 Free Software Foundation, Inc.
187 Copying and distribution of this file, with or without modification,
188 are permitted in any medium without royalty provided the copyright
189 notice and this notice are preserved.