]>
Commit | Line | Data |
---|---|---|
318cda85 BI |
1 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2 | ||
3 | PR c/57490 | |
4 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
5 | check for truth values. | |
6 | (expand_array_notation_exprs): Added truth values case. Removed an | |
7 | unwanted else. Added for-loop to walk through subtrees in default | |
8 | case. | |
9 | ||
b066401f GDR |
10 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
11 | ||
12 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
13 | ||
fb48aadc JM |
14 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
15 | ||
16 | * c-parser.c (struct c_generic_association): Fix typo. | |
17 | ||
433cc7b0 TT |
18 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
19 | Joseph Myers <joseph@codesourcery.com> | |
20 | ||
21 | * c-parser.c (struct c_generic_association): New. | |
22 | (c_generic_association_d): New typedef. | |
23 | (c_parser_generic_selection): New function. | |
24 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
25 | ||
26d40c3d JM |
26 | 2013-07-13 Jason Merrill <jason@redhat.com> |
27 | ||
28 | PR c++/57793 | |
29 | * c-decl.c (finish_struct): Check for too-large class. | |
30 | ||
40d3d530 JR |
31 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
32 | ||
33 | PR c/57821 | |
34 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
35 | ||
1141ed3f BI |
36 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
37 | ||
38 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
39 | notations in an array of function pointers. | |
40 | ||
713b46fa BI |
41 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
42 | ||
43 | * c-array-notation.c (make_triplet_val_inv): New function. | |
44 | (create_cmp_incr): Likewise. | |
45 | (create_array_refs): Likewise. | |
46 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
47 | Also modularized common parts between functions and called the function. | |
48 | (build_array_notation_expr): Likewise. | |
49 | (fix_conditional_array_notations_1): Likewise. | |
50 | (fix_array_notation_expr): Likewise. | |
51 | (fix_array_notation_call_expr): Likewise. | |
52 | ||
92f20202 MP |
53 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
54 | ||
55 | PR c/57630 | |
56 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
57 | ||
73a23b06 BI |
58 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
59 | ||
60 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
61 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
62 | a couple while statements that were dead code. | |
63 | ||
00b8517d BI |
64 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
65 | ||
66 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
67 | excessive precision expressions in function parameters. Also removed | |
68 | couple unwanted while statements. | |
69 | ||
1509bdda BI |
70 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
71 | ||
72 | * c-array-notation.c (expand_array_notation_exprs): Added | |
73 | ARRAY_NOTATION_REF case. | |
74 | ||
d60f1706 BI |
75 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
76 | ||
77 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
78 | function to c-family/array-notation-common.c. | |
79 | (is_cilkplus_reduce_builtin): Likewise. | |
80 | (find_rank): Likewise. | |
81 | (extract_array_notation_exprs): Likewise. | |
82 | (replace_array_notations): Likewise. | |
83 | (find_inv_trees): Likewise. | |
84 | (replace_inv_trees): Likewise. | |
85 | (contains_array_notation_expr): Likewise. | |
86 | (find_correct_array_notation_type): Likewise. | |
87 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
88 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
89 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
90 | ||
6d6efbb3 BI |
91 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
92 | ||
93 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
94 | reduction functions outside the for-loop. Added a check if the fundecl | |
95 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
96 | body unconditional. | |
97 | ||
25c22937 BI |
98 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
99 | ||
100 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
101 | condition of the if-statement matches the rank of else-block and then- | |
102 | block when array notations are used. | |
103 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
104 | expression after the entire function body is parsed. | |
105 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
106 | to the end of function parsing. | |
107 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
108 | whole if-statement instead of just the condition. | |
109 | (expand_array_notation_exprs): Added MODIFY_EXPR case. | |
110 | ||
edd25645 BI |
111 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
112 | ||
113 | PR c/57474 | |
114 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
115 | array to NULL_TREE if they are unused. Also added a check for the | |
116 | field to be NULL before its fields are used in future. | |
117 | ||
065ce7f1 RO |
118 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
119 | ||
120 | PR bootstrap/57450 | |
121 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
122 | (build_array_notation_expr): Likewise. | |
123 | ||
36536d79 BI |
124 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
125 | ||
126 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
127 | index is greater than one. If true, then emit an error. | |
128 | (build_function_call_vec): Exclude error reporting and checking | |
129 | for builtin array-notation functions. | |
130 | (convert_arguments): Likewise. | |
131 | (c_finish_return): Added a check for array notations as a return | |
132 | expression. If true, then emit an error. | |
133 | (c_finish_loop): Added a check for array notations in a loop | |
134 | condition. If true then emit an error. | |
135 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
136 | (build_binary_op): Added a check for array notation expr inside | |
137 | op1 and op0. If present, we call another function to find correct | |
138 | type. | |
139 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
140 | * c-parser.c (c_parser_compound_statement): Check if array | |
141 | notation code is used in tree, if so, then transform them into | |
142 | appropriate C code. | |
143 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
144 | or RHS, if so, then build array notation expression instead of | |
145 | regular modify. | |
146 | (c_parser_postfix_expression_after_primary): Added a check for | |
147 | colon(s) after square braces, if so then handle it like an array | |
148 | notation. Also, break up array notations in unary op if found. | |
149 | (c_parser_direct_declarator_inner): Added a check for array | |
150 | notation. | |
151 | (c_parser_compound_statement): Added a check for array notation in | |
152 | a stmt. If one is present, then expand array notation expr. | |
153 | (c_parser_if_statement): Likewise. | |
154 | (c_parser_switch_statement): Added a check for array notations in | |
155 | a switch statement's condition. If true, then output an error. | |
156 | (c_parser_while_statement): Similarly, but for a while. | |
157 | (c_parser_do_statement): Similarly, but for a do-while. | |
158 | (c_parser_for_statement): Similarly, but for a for-loop. | |
159 | (c_parser_unary_expression): Check if array notation is used in a | |
160 | pre-increment or pre-decrement expression. If true, then expand | |
161 | them. | |
162 | (c_parser_array_notation): New function. | |
163 | * c-array-notation.c: New file. | |
164 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
165 | ||
cd192ccc MS |
166 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
167 | ||
168 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
169 | spaces better. | |
170 | ||
427b248d JM |
171 | 2013-05-16 Jason Merrill <jason@redhat.com> |
172 | ||
173 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
174 | ||
44d90fe1 PC |
175 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
176 | ||
177 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
178 | to simply use OPT_Wpointer_arith. | |
179 | (build_unary_op): Likewise. | |
180 | ||
4e7d7b3d JJ |
181 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
182 | ||
183 | PR c/19449 | |
184 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
185 | argument. If set, or it temporarily for parsing of the first | |
186 | argument into force_folding_builtin_constant_p. | |
187 | (c_parser_postfix_expression): Adjust callers. | |
188 | ||
839b422f RB |
189 | 2013-03-21 Richard Biener <rguenther@suse.de> |
190 | ||
191 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
192 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
193 | ||
2ee028f1 MP |
194 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
195 | ||
196 | PR c/44938 | |
197 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
198 | origtypes to NULL. | |
199 | ||
8824edff JJ |
200 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
201 | ||
202 | PR c/56078 | |
203 | * c-typeck.c (set_nonincremental_init_from_string): If | |
204 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
205 | returned false. | |
206 | (process_init_element): Likewise. | |
207 | ||
eadd3d0d JJ |
208 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
209 | ||
210 | PR c++/55619 | |
211 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
212 | argument, don't call default_function_array_conversion | |
213 | nor c_fully_fold here. | |
214 | (c_parser_asm_statement): Adjust callers. | |
215 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
216 | and outputs here, and call default_function_array_conversion | |
217 | on inputs that don't need to be addressable. | |
218 | ||
f8a93a2e JJ |
219 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
220 | ||
221 | PR c/39464 | |
222 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
223 | warning require that both c_common_unsigned_type as well as | |
224 | c_common_signed_type is the same for both mvl and mvr types. | |
225 | ||
9771b263 DN |
226 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
227 | ||
228 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
229 | ||
230 | * c-common.c: Use new vec API in vec.h. | |
231 | * c-common.h: Likewise. | |
232 | * c-gimplify.c: Likewise. | |
233 | * c-pragma.c: Likewise. | |
234 | * c-pretty-print.c: Likewise. | |
235 | * c-pretty-print.h: Likewise. | |
236 | * c-semantics.c: Likewise. | |
237 | * c-decl.c: Likewise. | |
238 | * c-parser.c: Likewise. | |
239 | * c-tree.h: Likewise. | |
240 | * c-typeck.c: Likewise. | |
241 | ||
880661a4 JW |
242 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
243 | ||
244 | PR c++/54930 | |
245 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
246 | ||
077d1abe MLI |
247 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
248 | ||
249 | PR c/53066 | |
250 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
251 | shadows a function, unless the variable is a function or a | |
252 | pointer-to-function. | |
253 | ||
3a785c97 JJ |
254 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
255 | ||
256 | PR c/54381 | |
257 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
258 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
259 | add location_t * and tree * arguments, fill in array of 3 | |
260 | sizeof_arg trees and corresponding locs. | |
261 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
262 | c_parser_expr_list callers. | |
263 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
264 | array of 3 sizeof_arg trees and locs (corresponding to first | |
265 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
266 | ||
703c8606 LC |
267 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
268 | ||
269 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
270 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
271 | hash table. | |
272 | ||
5d9de0d0 PC |
273 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
274 | ||
275 | PR c++/54194 | |
276 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
277 | call. | |
278 | ||
a212e43f MG |
279 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
280 | ||
281 | PR c++/54427 | |
282 | * c-typeck.c: Include c-common.h. | |
283 | (enum stv_conv): Moved to c-common.h. | |
284 | (scalar_to_vector): Moved to c-common.c. | |
285 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
286 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
287 | ||
3b78de56 AC |
288 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
289 | ||
290 | * c-decl.c (c_write_global_declarations): Fix handling of | |
291 | -fdump-ada-spec*. | |
292 | ||
78c60e3d SS |
293 | 2012-09-30 Sharad Singhai <singhai@google.com> |
294 | ||
295 | * c-decl.c (c_write_global_declarations): Use a different method | |
296 | to determine if the dump has ben initialized. | |
297 | ||
9f33203d JM |
298 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
299 | ||
300 | PR c/54552 | |
301 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
302 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
303 | c_fully_fold first. | |
304 | ||
a27d595d JM |
305 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
306 | ||
307 | PR c/54103 | |
308 | * c-typeck.c (build_unary_op): Pass original argument of | |
309 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
310 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
311 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
312 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
313 | to c_objc_common_truthvalue_conversion, then remove any | |
314 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
315 | c_objc_common_truthvalue_conversion not | |
316 | c_common_truthvalue_conversion. | |
317 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
318 | call note_integer_operands for arguments with integer operands | |
319 | that are not integer constants. | |
320 | ||
9feb29df JJ |
321 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
322 | ||
323 | PR c/54559 | |
324 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
325 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
326 | ||
d409320c JJ |
327 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
328 | ||
329 | PR c/54428 | |
330 | * c-convert.c (convert): Don't call fold_convert_loc if | |
331 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
332 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
333 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
334 | ||
6265d07c JJ |
335 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
336 | ||
337 | PR c/54355 | |
338 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
339 | for nested and empty_ok arguments in the call to | |
340 | c_parser_declaration_or_fndef. | |
341 | ||
1a4049e7 JJ |
342 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
343 | ||
344 | * c-tree.h (c_last_sizeof_arg): Declare. | |
345 | * c-parser.c (struct c_tree_loc_pair): New type. | |
346 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
347 | non-NULL. | |
348 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
349 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
350 | sizeof_pointer_memaccess_warning if needed. | |
351 | (sizeof_ptr_memacc_comptypes): New function. | |
352 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
353 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
354 | ||
0229aee9 UB |
355 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
356 | ||
357 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
358 | ||
7ee2468b SB |
359 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
360 | ||
361 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
362 | * Make-lang.in: Fix dependencies. | |
363 | ||
d4a10d0a SB |
364 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
365 | ||
366 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
367 | and add language Makefile hooks. | |
368 | * config-lang.in: New file. | |
369 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
370 | add the required "normal" config-lang.in rules. | |
371 | * c-lang.h: Moved from gcc/ to here. | |
372 | * c-tree.h: Likewise. | |
373 | * c-objc-common.c: Likewise. | |
374 | * c-objc-common.h: Likewise. | |
375 | * c-typeck.c: Likewise. | |
376 | * c-convert.c: Likewise. | |
377 | * c-lang.c: Likewise. | |
378 | * c-aux-info.c: Likewise. | |
379 | * c-errors.c: Likewise. | |
380 | * gccspec.c: Likewise. | |
381 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
382 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
383 | \f | |
d1e082c2 | 384 | Copyright (C) 2012-2013 Free Software Foundation, Inc. |
d4a10d0a SB |
385 | |
386 | Copying and distribution of this file, with or without modification, | |
387 | are permitted in any medium without royalty provided the copyright | |
388 | notice and this notice are preserved. |