]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
eddc63fd 12013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
2
3 PR c/57474
4 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
5 array to NULL_TREE if they are unused. Also added a check for the
6 field to be NULL before its fields are used in future.
7
a2115a4a 82013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9
10 PR bootstrap/57450
11 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
12 (build_array_notation_expr): Likewise.
13
3c6d4197 142013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
15
16 * c-typeck.c (build_array_ref): Added a check to see if array's
17 index is greater than one. If true, then emit an error.
18 (build_function_call_vec): Exclude error reporting and checking
19 for builtin array-notation functions.
20 (convert_arguments): Likewise.
21 (c_finish_return): Added a check for array notations as a return
22 expression. If true, then emit an error.
23 (c_finish_loop): Added a check for array notations in a loop
24 condition. If true then emit an error.
25 (lvalue_p): Added a ARRAY_NOTATION_REF case.
26 (build_binary_op): Added a check for array notation expr inside
27 op1 and op0. If present, we call another function to find correct
28 type.
29 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
30 * c-parser.c (c_parser_compound_statement): Check if array
31 notation code is used in tree, if so, then transform them into
32 appropriate C code.
33 (c_parser_expr_no_commas): Check if array notation is used in LHS
34 or RHS, if so, then build array notation expression instead of
35 regular modify.
36 (c_parser_postfix_expression_after_primary): Added a check for
37 colon(s) after square braces, if so then handle it like an array
38 notation. Also, break up array notations in unary op if found.
39 (c_parser_direct_declarator_inner): Added a check for array
40 notation.
41 (c_parser_compound_statement): Added a check for array notation in
42 a stmt. If one is present, then expand array notation expr.
43 (c_parser_if_statement): Likewise.
44 (c_parser_switch_statement): Added a check for array notations in
45 a switch statement's condition. If true, then output an error.
46 (c_parser_while_statement): Similarly, but for a while.
47 (c_parser_do_statement): Similarly, but for a do-while.
48 (c_parser_for_statement): Similarly, but for a for-loop.
49 (c_parser_unary_expression): Check if array notation is used in a
50 pre-increment or pre-decrement expression. If true, then expand
51 them.
52 (c_parser_array_notation): New function.
53 * c-array-notation.c: New file.
54 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
55
2c1c8a2c 562013-05-23 Mike Stump <mikestump@comcast.net>
57
58 * c-typeck.c (convert_for_assignment): Handle references to memory
59 spaces better.
60
be5f9e46 612013-05-16 Jason Merrill <jason@redhat.com>
62
63 * Make-lang.in (cc1$(exeext)): Use link mutex.
64
9205a6cc 652013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
66
67 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
68 to simply use OPT_Wpointer_arith.
69 (build_unary_op): Likewise.
70
0b049e15 712013-04-03 Jakub Jelinek <jakub@redhat.com>
72
73 PR c/19449
74 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
75 argument. If set, or it temporarily for parsing of the first
76 argument into force_folding_builtin_constant_p.
77 (c_parser_postfix_expression): Adjust callers.
78
8e966116 792013-03-21 Richard Biener <rguenther@suse.de>
80
81 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
82 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
83
b862f263 842013-02-12 Marek Polacek <polacek@redhat.com>
85
86 PR c/44938
87 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
88 origtypes to NULL.
89
54550ecb 902013-01-24 Jakub Jelinek <jakub@redhat.com>
91
92 PR c/56078
93 * c-typeck.c (set_nonincremental_init_from_string): If
94 constructor_max_index is NULL, treat it as if tree_int_cst_lt
95 returned false.
96 (process_init_element): Likewise.
97
035b65e2 982012-12-20 Jakub Jelinek <jakub@redhat.com>
99
100 PR c++/55619
101 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
102 argument, don't call default_function_array_conversion
103 nor c_fully_fold here.
104 (c_parser_asm_statement): Adjust callers.
105 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
106 and outputs here, and call default_function_array_conversion
107 on inputs that don't need to be addressable.
108
7cbb7f1a 1092012-12-18 Jakub Jelinek <jakub@redhat.com>
110
111 PR c/39464
112 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
113 warning require that both c_common_unsigned_type as well as
114 c_common_signed_type is the same for both mvl and mvr types.
115
f1f41a6c 1162012-11-16 Diego Novillo <dnovillo@google.com>
117
118 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
119
120 * c-common.c: Use new vec API in vec.h.
121 * c-common.h: Likewise.
122 * c-gimplify.c: Likewise.
123 * c-pragma.c: Likewise.
124 * c-pretty-print.c: Likewise.
125 * c-pretty-print.h: Likewise.
126 * c-semantics.c: Likewise.
127 * c-decl.c: Likewise.
128 * c-parser.c: Likewise.
129 * c-tree.h: Likewise.
130 * c-typeck.c: Likewise.
131
8b447d3f 1322012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
133
134 PR c++/54930
135 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
136
08fc5390 1372012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
138
139 PR c/53066
140 * c-decl.c (warn_if_shadowing): Do not warn if a variable
141 shadows a function, unless the variable is a function or a
142 pointer-to-function.
143
57f872a2 1442012-10-12 Jakub Jelinek <jakub@redhat.com>
145
146 PR c/54381
147 * c-parser.c (struct c_tree_loc_pair): Removed.
148 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
149 add location_t * and tree * arguments, fill in array of 3
150 sizeof_arg trees and corresponding locs.
151 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
152 c_parser_expr_list callers.
153 (c_parser_postfix_expression_after_primary): Likewise. Pass
154 array of 3 sizeof_arg trees and locs (corresponding to first
155 3 arguments) to sizeof_pointer_memaccess_warning.
156
d1455aa3 1572012-10-09 Lawrence Crowl <crowl@google.com>
158
159 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
160 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
161 hash table.
162
b0e7825e 1632012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
164
165 PR c++/54194
166 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
167 call.
168
41ed701a 1692012-10-09 Marc Glisse <marc.glisse@inria.fr>
170
171 PR c++/54427
172 * c-typeck.c: Include c-common.h.
173 (enum stv_conv): Moved to c-common.h.
174 (scalar_to_vector): Moved to c-common.c.
175 (build_binary_op): Adapt to scalar_to_vector's new prototype.
176 * Make-lang.in: c-typeck.c depends on c-common.h.
177
ef34afc1 1782012-10-04 Arnaud Charlet <charlet@adacore.com>
179
180 * c-decl.c (c_write_global_declarations): Fix handling of
181 -fdump-ada-spec*.
182
7bd765d4 1832012-09-30 Sharad Singhai <singhai@google.com>
184
185 * c-decl.c (c_write_global_declarations): Use a different method
186 to determine if the dump has ben initialized.
187
c4b1a13a 1882012-09-14 Joseph Myers <joseph@codesourcery.com>
189
190 PR c/54552
191 * c-typeck.c (c_cast_expr): When casting to a type requiring
192 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
193 c_fully_fold first.
194
bb554051 1952012-09-14 Joseph Myers <joseph@codesourcery.com>
196
197 PR c/54103
198 * c-typeck.c (build_unary_op): Pass original argument of
199 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
200 any C_MAYBE_CONST_EXPR, if it has integer operands.
201 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
202 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
203 to c_objc_common_truthvalue_conversion, then remove any
204 C_MAYBE_CONST_EXPR, if they have integer operands. Use
205 c_objc_common_truthvalue_conversion not
206 c_common_truthvalue_conversion.
207 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
208 call note_integer_operands for arguments with integer operands
209 that are not integer constants.
210
c708c6ef 2112012-09-13 Jakub Jelinek <jakub@redhat.com>
212
213 PR c/54559
214 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
215 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
216
cce20430 2172012-08-31 Jakub Jelinek <jakub@redhat.com>
218
219 PR c/54428
220 * c-convert.c (convert): Don't call fold_convert_loc if
221 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
222 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
223 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
224
a90d57ed 2252012-08-24 Jakub Jelinek <jakub@redhat.com>
226
227 PR c/54355
228 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
229 for nested and empty_ok arguments in the call to
230 c_parser_declaration_or_fndef.
231
f003f5dc 2322012-08-17 Jakub Jelinek <jakub@redhat.com>
233
234 * c-tree.h (c_last_sizeof_arg): Declare.
235 * c-parser.c (struct c_tree_loc_pair): New type.
236 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
237 non-NULL.
238 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
239 (c_parser_postfix_expression_after_primary): Likewise. Call
240 sizeof_pointer_memaccess_warning if needed.
241 (sizeof_ptr_memacc_comptypes): New function.
242 * c-typeck.c (c_last_sizeof_arg): New global variable.
243 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
244
a5656b73 2452012-07-24 Uros Bizjak <ubizjak@gmail.com>
246
247 * c-lang.h (lang_decl): Add variable_size GTY option.
248
b9ed1410 2492012-07-16 Steven Bosscher <steven@gcc.gnu.org>
250
251 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
252 * Make-lang.in: Fix dependencies.
253
e53d55e7 2542012-06-29 Steven Bosscher <steven@gcc.gnu.org>
255
256 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
257 and add language Makefile hooks.
258 * config-lang.in: New file.
259 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
260 add the required "normal" config-lang.in rules.
261 * c-lang.h: Moved from gcc/ to here.
262 * c-tree.h: Likewise.
263 * c-objc-common.c: Likewise.
264 * c-objc-common.h: Likewise.
265 * c-typeck.c: Likewise.
266 * c-convert.c: Likewise.
267 * c-lang.c: Likewise.
268 * c-aux-info.c: Likewise.
269 * c-errors.c: Likewise.
270 * gccspec.c: Likewise.
271 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
272 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
273\f
711789cc 274Copyright (C) 2012-2013 Free Software Foundation, Inc.
e53d55e7 275
276Copying and distribution of this file, with or without modification,
277are permitted in any medium without royalty provided the copyright
278notice and this notice are preserved.