]>
Commit | Line | Data |
---|---|---|
40e9ce2d | 1 | 2016-03-01 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | PR c/69796 | |
4 | PR c/69974 | |
5 | * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE | |
6 | of incomplete decls to error_mark_node. | |
7 | ||
f0ea75d1 | 8 | 2016-02-24 Marek Polacek <polacek@redhat.com> |
9 | ||
10 | PR c/69819 | |
11 | * c-decl.c (finish_decl): Don't update the copy of the type of a | |
12 | different decl type. | |
13 | ||
d41ab738 | 14 | 2016-02-23 Jakub Jelinek <jakub@redhat.com> |
15 | ||
16 | PR objc/69844 | |
17 | * c-parser.c (c_parser_for_statement): Properly handle ObjC classes | |
18 | in id_kind reclassification. | |
19 | ||
7675e968 | 20 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
21 | ||
22 | PR c/69835 | |
23 | * c-typeck.c (build_binary_op): Revert 2015-09-09 change. | |
24 | ||
28072426 | 25 | 2016-02-16 James Norris <jnorris@codesourcery.com> |
26 | ||
27 | PR c/64748 | |
28 | * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms. | |
29 | ||
74a4140f | 30 | 2016-02-12 Bernd Schmidt <bschmidt@redhat.com> |
31 | ||
7c25ed5c | 32 | * c-decl.c (build_null_declspecs): Zero the entire struct. |
33 | ||
74a4140f | 34 | PR c/69522 |
35 | * c-parser.c (c_parser_braced_init): New arg outer_obstack. All | |
36 | callers changed. If nested_p is true, use it to call | |
37 | finish_implicit_inits. | |
38 | * c-tree.h (finish_implicit_inits): Declare. | |
39 | * c-typeck.c (finish_implicit_inits): New function. Move code | |
40 | from ... | |
41 | (push_init_level): ... here. | |
42 | (set_designator, process_init_element): Call finish_implicit_inits. | |
43 | ||
40b38ace | 44 | 2016-02-11 Jakub Jelinek <jakub@redhat.com> |
45 | ||
46 | PR c/69768 | |
47 | * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop | |
48 | arguments for -Waddress warning. | |
49 | ||
6b098e91 | 50 | 2016-02-04 Jakub Jelinek <jakub@redhat.com> |
51 | ||
52 | PR c/69669 | |
53 | * c-decl.c (finish_enum): When honoring mode attribute, | |
54 | make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE. | |
55 | ||
ff5e28e9 | 56 | 2016-01-29 Jakub Jelinek <jakub@redhat.com> |
57 | ||
58 | PR debug/69518 | |
59 | * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in | |
60 | all type variants, not just TYPE_MAIN_VARIANT. | |
61 | ||
78e516eb | 62 | 2016-01-27 Jakub Jelinek <jakub@redhat.com> |
63 | ||
64 | PR debug/66869 | |
65 | * c-decl.c (c_write_global_declarations_1): Warn with | |
66 | warn_unused_function if static prototype without definition | |
67 | is not C_DECL_USED. | |
68 | ||
fee5e491 | 69 | 2016-01-27 Marek Polacek <polacek@redhat.com> |
70 | ||
71 | PR c/68062 | |
72 | * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand | |
73 | to unsigned, if needed. Add -Wsign-compare warning. | |
74 | ||
9bbfd060 | 75 | 2016-01-26 Jakub Jelinek <jakub@redhat.com> |
76 | ||
77 | PR tree-optimization/69483 | |
78 | * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT. | |
79 | ||
6ebc6587 | 80 | 2016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
16d4186f | 81 | |
82 | PR c/24293 | |
83 | * c-tree.h (incomplete_record_decls): Declare. | |
84 | * c-parser.c (incomplete_record_decls): Define. | |
85 | (c_parser_translation_unit): Iterate through incomplete_record_decls and | |
86 | report error if any decl has zero size. | |
87 | * c-decl.c (finish_decl): Append static decl with incomplete struct/union | |
88 | or enum type to incomplete_record_decls. | |
89 | ||
4c39e3a5 | 90 | 2016-01-14 Tom de Vries <tom@codesourcery.com> |
91 | ||
92 | PR tree-optimization/68773 | |
93 | * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't | |
94 | set force_output. | |
95 | ||
77f35cec | 96 | 2016-01-14 Marek Polacek <polacek@redhat.com> |
97 | ||
98 | PR c/69262 | |
99 | * c-decl.c (grokdeclarator): Provide more information for invalid | |
100 | array declarations. | |
101 | ||
d74214f3 | 102 | 2016-01-06 David Malcolm <dmalcolm@redhat.com> |
103 | ||
104 | * c-parser.c (c_parser_unary_expression): For dereferences, build | |
105 | a combined location before calling build_indirect_ref, so that | |
106 | error reports cover the full range, manually updating the c_expr | |
107 | src_range. | |
108 | ||
be3c9981 | 109 | 2016-01-06 Marek Polacek <polacek@redhat.com> |
110 | ||
111 | PR sanitizer/69099 | |
112 | * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to | |
113 | ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of | |
114 | NULL. | |
115 | ||
f1717362 | 116 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
117 | ||
118 | Update copyright years. | |
119 | ||
d7d6a3ab | 120 | 2016-01-04 Marek Polacek <polacek@redhat.com> |
121 | ||
122 | PR c/68908 | |
123 | * c-typeck.c (build_atomic_assign): Improve commentary. Add | |
124 | optimization to use __atomic_fetch_* built-in if possible. | |
125 | ||
9d5fd7c6 | 126 | 2015-12-23 Thomas Schwinge <thomas@codesourcery.com> |
127 | ||
128 | * c-parser.c (c_parser_oacc_clause_use_device): Merge function | |
129 | into... | |
130 | (c_parser_omp_clause_use_device_ptr): ... this function. Adjust | |
131 | all users. | |
132 | ||
37e2d32f | 133 | 2015-12-22 Marek Polacek <polacek@redhat.com> |
134 | ||
135 | PR c/69002 | |
136 | * c-typeck.c (build_component_ref): Warn when acessing elements of | |
137 | atomic structures or unions. | |
138 | ||
c0bf500c | 139 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
140 | ||
141 | * c-typeck.c: Include "gcc-rich-location.h". | |
142 | (build_binary_op): In the two places that call binary_op_error, | |
143 | create a gcc_rich_location and populate it with the location of | |
144 | the binary op and its two operands. | |
145 | ||
b9f9586a | 146 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
147 | ||
148 | * c-parser.c (c_parser_statement_after_labels): When calling | |
149 | c_finish_return, Use the return expression's location if it has | |
150 | one, falling back to the location of the first token within it. | |
151 | * c-typeck.c (c_finish_return): When issuing warnings about | |
152 | the incorrect presence/absence of a return value, issue a note | |
153 | showing the declaration of the function. | |
154 | ||
dbd79382 | 155 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
156 | ||
157 | * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2 | |
158 | to 4. | |
159 | (c_parser_peek_nth_token): New function. | |
160 | (c_parser_peek_conflict_marker): New function. | |
161 | (c_parser_error): Detect conflict markers and report them as such. | |
162 | ||
e2093e02 | 163 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
164 | ||
165 | * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC | |
166 | to preserve range information for the primary expression | |
167 | in the call to c_parser_postfix_expression_after_primary. | |
168 | ||
b49f1fbb | 169 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
170 | ||
171 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the | |
172 | expression location, falling back on the first token location, | |
173 | rather than always using the latter. | |
174 | ||
1d65bac2 | 175 | 2015-12-16 Marek Polacek <polacek@redhat.com> |
176 | ||
177 | PR c/64637 | |
178 | * c-typeck.c (c_process_expr_stmt): Use location of the expression if | |
179 | available. | |
180 | ||
75e722a6 | 181 | 2015-12-15 Marek Polacek <polacek@redhat.com> |
182 | ||
183 | PR c/68907 | |
184 | * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an | |
185 | artificial decl. | |
186 | ||
7063d45b | 187 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
188 | ||
189 | * c-parser.c (c_parser_alignof_expression): Capture location of | |
190 | closing parenthesis (if any), or of end of unary expression, and | |
191 | use it to build a src_range for the expression. | |
192 | ||
f73b4782 | 193 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
194 | ||
195 | PR c/68757 | |
196 | * c-parser.c (c_parser_get_builtin_args): Add | |
197 | "out_close_paren_loc" param, and write back to it. | |
198 | (c_parser_postfix_expression): Capture the closing | |
199 | parenthesis location for RID_CHOOSE_EXPR, | |
200 | RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX, | |
201 | RID_BUILTIN_SHUFFLE and use it to set the source range | |
202 | for such expressions; within RID_BUILTIN_COMPLEX set | |
203 | the underlying location. | |
204 | ||
1b062945 | 205 | 2015-12-07 Marek Polacek <polacek@redhat.com> |
206 | ||
207 | PR c/68668 | |
208 | * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use | |
209 | TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT. | |
210 | ||
a4ab54ac | 211 | 2015-12-04 Eric Botcazou <ebotcazou@adacore.com> |
212 | ||
213 | * c-tree.h (c_build_va_arg): Adjust prototype. | |
214 | * c-parser.c (c_parser_postfix_expression): Adjust call to above. | |
215 | * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1 | |
216 | parameter, adjust throughout and issue an error if EXPR is a component | |
217 | with reverse storage order. | |
218 | ||
da562e32 | 219 | 2015-12-02 Jason Merrill <jason@redhat.com> |
220 | ||
221 | * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold) | |
222 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
223 | Move from c-common.c. | |
224 | * c-tree.h: Declare decl_constant_value_for_optimization. | |
225 | * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o. | |
226 | ||
89f16034 | 227 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
228 | ||
229 | PR c/68162 | |
230 | * c-decl.c (grokdeclarator): Set first_non_attr_kind before | |
231 | following link from declarator to next declarator. Track original | |
232 | qualified type and pass it to c_build_qualified_type. | |
233 | * c-typeck.c (c_build_qualified_type): Add arguments | |
234 | orig_qual_type and orig_qual_indirect. | |
235 | ||
2a7545d5 | 236 | 2015-12-02 Thomas Schwinge <thomas@codesourcery.com> |
237 | ||
238 | * c-parser.c (c_parser_omp_clause_name) | |
239 | (c_parser_oacc_all_clauses): Alphabetical sorting. | |
240 | ||
ad80582d | 241 | 2015-12-02 Jakub Jelinek <jakub@redhat.com> |
242 | ||
243 | PR c/68533 | |
244 | * c-decl.c (get_parm_info): Use b->locus instead of input_location | |
245 | for diagnostics. | |
246 | ||
571b3486 | 247 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
248 | Cesar Philippidis <cesar@codesourcery.com> | |
249 | James Norris <James_Norris@mentor.com> | |
250 | ||
251 | * c-parser.c (c_parser_omp_clause_name): Add use_device support. | |
252 | (c_parser_oacc_clause_use_device): New function. | |
253 | (c_parser_oacc_all_clauses): Add use_device support. | |
254 | (OACC_HOST_DATA_CLAUSE_MASK): New macro. | |
255 | (c_parser_oacc_host_data): New function. | |
256 | (c_parser_omp_construct): Add host_data support. | |
257 | * c-tree.h (c_finish_oacc_host_data): Add prototype. | |
258 | * c-typeck.c (c_finish_oacc_host_data): New function. | |
259 | (c_finish_omp_clauses): Add use_device support. | |
260 | ||
c4848393 | 261 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
262 | ||
263 | PR c/67106 | |
264 | * c-decl.c: Set TYPE_PACKED in variants. | |
265 | ||
d4e328e9 | 266 | 2015-11-27 Martin Liska <mliska@suse.cz> |
267 | ||
268 | PR c++/68312 | |
269 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
270 | Use release_vec_vec instead of vec::release. | |
271 | (build_array_notation_expr): Likewise. | |
272 | (fix_conditional_array_notations_1): Likewise. | |
273 | (fix_array_notation_expr): Likewise. | |
274 | (fix_array_notation_call_expr): Likewise. | |
275 | ||
c5e4f591 | 276 | 2015-11-27 Jakub Jelinek <jakub@redhat.com> |
277 | ||
278 | PR c/63326 | |
279 | * c-parser.c (c_parser_compound_statement_nostart): If | |
280 | last_label is true, use pragma_stmt instead of pragma_compound | |
281 | as second c_parser_pragma argument. | |
282 | (c_parser_omp_ordered, c_parser_omp_target_update, | |
283 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass | |
284 | false as second argument to c_parser_skip_to_pragma_eol after | |
285 | diagnosing standalone directives used in pragma_stmt context. | |
286 | ||
c954a5bd | 287 | 2015-11-24 Ilya Verbin <ilya.verbin@intel.com> |
288 | ||
289 | * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" | |
290 | with "if (ENABLE_OFFLOADING)". | |
291 | ||
daebf4f3 | 292 | 2015-11-23 David Malcolm <dmalcolm@redhat.com> |
293 | ||
294 | PR objc/68438 | |
295 | * c-parser.c (c_parser_postfix_expression): Set up source ranges | |
296 | for various Objective-C constructs: Class.name syntax, | |
297 | @selector(), @protocol(), @encode(), and [] message syntax. | |
298 | ||
734caf84 | 299 | 2015-11-20 David Malcolm <dmalcolm@redhat.com> |
300 | ||
301 | PR 62314 | |
302 | * c-typeck.c (should_suggest_deref_p): New function. | |
303 | (build_component_ref): Special-case POINTER_TYPE when | |
304 | generating a "not a structure of union" error message, and | |
305 | suggest a "->" rather than a ".", providing a fix-it hint. | |
306 | ||
11d8dd6f | 307 | 2015-11-19 David Malcolm <dmalcolm@redhat.com> |
308 | ||
309 | * c-typeck.c (lookup_field_fuzzy): Move determination of closest | |
310 | candidate into a new function, find_closest_identifier. | |
311 | ||
62efaf6b | 312 | 2015-11-19 Marek Polacek <polacek@redhat.com> |
313 | ||
314 | PR c/68412 | |
315 | * c-typeck.c (parser_build_binary_op): Properly handle | |
316 | C_MAYBE_CONST_EXPR before calling warn_tautological_cmp. | |
317 | ||
9dfffd6d | 318 | 2015-11-17 David Malcolm <dmalcolm@redhat.com> |
319 | ||
320 | * c-parser.c (set_c_expr_source_range): Bulletproof both | |
321 | overloaded implementations against NULL expr->value. | |
322 | (c_parser_braced_init): Set src_range for "ret" to a sane pair of | |
323 | values. | |
324 | (c_parser_unary_expression): Likewise when handling addresses of | |
325 | labels. | |
326 | (c_parser_postfix_expression): Likewise for statement expressions, | |
327 | for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for | |
328 | __builtin_va_arg, and for __builtin_offset_of. | |
329 | (c_parser_postfix_expression_after_paren_type): Initialize expr's | |
330 | src_range using the range of the braced initializer. | |
331 | (c_parser_transaction_expression): Set src_range for "ret" to a | |
332 | sane pair of values. | |
333 | ||
c58a4cfd | 334 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
335 | ||
336 | * c-parser.c (c_finish_omp_declare_simd): Look for | |
337 | "simd" attribute as well. Update error message. | |
338 | ||
5f3001a9 | 339 | 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
340 | ||
341 | * c-parser.c (c_parser_omp_declare_target): Adjust. | |
342 | ||
a9833286 | 343 | 2015-11-14 Jakub Jelinek <jakub@redhat.com> |
344 | ||
345 | * c-typeck.c (c_finish_omp_clauses): Don't mark | |
346 | GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable. | |
347 | ||
ef61516b | 348 | 2015-11-14 Marek Polacek <polacek@redhat.com> |
349 | ||
350 | * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout. | |
351 | * c-typeck.c: Likewise. | |
352 | ||
a96cefb2 | 353 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
354 | ||
355 | * c-decl.c (warn_defaults_to): Pass line_table to | |
356 | rich_location ctor. | |
357 | * c-errors.c (pedwarn_c99): Likewise. | |
358 | (pedwarn_c90): Likewise. | |
359 | * c-parser.c (set_c_expr_source_range): New functions. | |
360 | (c_token::get_range): New method. | |
361 | (c_token::get_finish): New method. | |
362 | (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret | |
363 | based on the range from the start of the LHS to the end of the | |
364 | RHS. | |
365 | (c_parser_conditional_expression): Likewise, based on the range | |
366 | from the start of the cond.value to the end of exp2.value. | |
367 | (c_parser_binary_expression): Call set_c_expr_source_range on | |
368 | the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR. | |
369 | (c_parser_cast_expression): Call set_c_expr_source_range on ret | |
370 | based on the cast_loc through to the end of the expr. | |
371 | (c_parser_unary_expression): Likewise, based on the | |
372 | op_loc through to the end of op. | |
373 | (c_parser_sizeof_expression) Likewise, based on the start of the | |
374 | sizeof token through to either the closing paren or the end of | |
375 | expr. | |
376 | (c_parser_postfix_expression): Likewise, using the token range, | |
377 | or from the open paren through to the close paren for | |
378 | parenthesized expressions. | |
379 | (c_parser_postfix_expression_after_primary): Likewise, for | |
380 | various kinds of expression. | |
381 | * c-tree.h (struct c_expr): Add field "src_range". | |
382 | (c_expr::get_start): New method. | |
383 | (c_expr::get_finish): New method. | |
384 | (set_c_expr_source_range): New decls. | |
385 | * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range | |
386 | on ret for prefix unary ops. | |
387 | (parser_build_binary_op): Likewise, running from the start of | |
388 | arg1.value through to the end of arg2.value. | |
389 | ||
7a810b2f | 390 | 2015-11-13 Marek Polacek <polacek@redhat.com> |
391 | ||
392 | PR c/68320 | |
393 | * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs. | |
394 | ||
b67f0560 | 395 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
396 | ||
397 | * c-typeck.c: Include spellcheck.h. | |
398 | (lookup_field_fuzzy_find_candidates): New function. | |
399 | (lookup_field_fuzzy): New function. | |
400 | (build_component_ref): If the field was not found, try using | |
401 | lookup_field_fuzzy and potentially offer a suggestion. | |
402 | ||
2fc5e987 | 403 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
404 | Joseph Myers <joseph@codesourcery.com> | |
405 | ||
406 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE. | |
407 | (c_parser_omp_clause_name): Handle 'device_resident' clause. | |
408 | (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
409 | and PRAGMA_OMP_CLAUSE_LINK. | |
410 | (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
411 | and PRAGMA_OACC_CLAUSE_LINK. | |
412 | (OACC_DECLARE_CLAUSE_MASK): New definition. | |
413 | (c_parser_oacc_declare): New function. | |
414 | ||
28a70e29 | 415 | 2015-11-12 Marek Polacek <polacek@redhat.com> |
416 | ||
417 | PR c/67784 | |
418 | * c-parser.c (c_parser_for_statement): Reclassify the token in | |
419 | a correct scope. | |
420 | ||
81b1b2a8 | 421 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
422 | ||
423 | PR c/68107 | |
424 | PR c++/68266 | |
425 | * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code | |
426 | checking the size of an array. | |
427 | ||
6e803544 | 428 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
429 | ||
430 | * c-array-notation.c: Remove unused header files. | |
431 | * c-aux-info.c: Likewise. | |
432 | * c-convert.c: Likewise. | |
433 | * c-decl.c: Likewise. | |
434 | * c-errors.c: Likewise. | |
435 | * c-lang.c: Likewise. | |
436 | * c-objc-common.c: Likewise. | |
437 | * c-parser.c: Likewise. | |
438 | * c-typeck.c: Likewise. | |
439 | * gccspec.c: Likewise. | |
440 | ||
a1b7fe4b | 441 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
442 | Cesar Philippidis <cesar@codesourcery.com> | |
443 | James Norris <jnorris@codesourcery.com> | |
444 | Julian Brown <julian@codesourcery.com> | |
445 | Nathan Sidwell <nathan@codesourcery.com> | |
446 | ||
447 | c/ | |
448 | * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC | |
449 | routine arg. | |
450 | (c_parser_declaration_or_fndef): Call c_finish_oacc_routine. | |
451 | (c_parser_pragma): Parse 'acc routine'. | |
452 | (OACC_ROUTINE_CLAUSE_MARK): Define. | |
453 | (c_parser_oacc_routine, (c_finish_oacc_routine): New. | |
454 | ||
7758d608 | 455 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
456 | ||
457 | PR debug/67192 | |
458 | * c-typeck.c (c_finish_loop): For unconditional loops, set the | |
459 | location of the backward-goto to the start of the loop body. | |
460 | ||
c2bf2fb2 | 461 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
462 | ||
463 | PR debug/67192 | |
464 | * c-parser.c (c_parser_while_statement): Finish the loop before | |
465 | parsing ahead for misleading indentation. | |
466 | (c_parser_for_statement): Likewise. | |
467 | ||
292237f3 | 468 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
469 | ||
470 | * c-decl.c (finish_struct): If the structure has reverse storage | |
471 | order, rewrite the type of array fields with scalar component. Call | |
472 | maybe_apply_pragma_scalar_storage_order on entry. | |
473 | * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue | |
474 | errors on bit-fields and reverse SSO here and not... | |
475 | (c_mark_addressable): ...here. | |
476 | (output_init_element): Adjust call to initializer_constant_valid_p. | |
477 | (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER. | |
478 | ||
f0479000 | 479 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
480 | ||
481 | * c-decl.c (warn_defaults_to): Update for change in signature | |
482 | of diagnostic_set_info. | |
483 | * c-errors.c (pedwarn_c99): Likewise. | |
484 | (pedwarn_c90): Likewise. | |
485 | * c-objc-common.c (c_tree_printer): Update for new "caret_p" param | |
486 | for textinfo::set_location. | |
487 | ||
ef014f95 | 488 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
489 | Thomas Schwinge <thomas@codesourcery.com> | |
490 | James Norris <jnorris@codesourcery.com> | |
491 | ||
492 | * c-parser.c (c_parser_omp_clause_name): Add support for | |
493 | PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE. | |
494 | (c_parser_omp_clause_default): Add is_oacc argument. Handle | |
495 | default(none) in OpenACC. | |
496 | (c_parser_oacc_shape_clause): Allow pointer variables as gang static | |
497 | arguments. | |
498 | (c_parser_oacc_clause_tile): New function. | |
499 | (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT, | |
500 | OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE. | |
501 | (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT, | |
502 | TILE}. | |
503 | (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT. | |
504 | (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE, | |
505 | FIRSTPRIVATE}. | |
506 | (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default. | |
507 | (c_parser_oacc_update): Update the error message for missing clauses. | |
508 | * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE | |
509 | and OMP_CLAUSE_INDEPENDENT. | |
510 | ||
f480ca9a | 511 | 2015-11-05 Marek Polacek <polacek@redhat.com> |
512 | ||
513 | PR c/68090 | |
514 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't | |
515 | deal with pre-evaluation on invalid types. | |
516 | ||
9561765e | 517 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
518 | Ilya Verbin <ilya.verbin@intel.com> | |
519 | ||
520 | * c-parser.c: Include context.h and gimple-expr.h. | |
521 | (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose | |
522 | monotonic together with nonmonotonic. | |
523 | (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here. | |
524 | (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause. | |
525 | (c_parser_omp_target_data, c_parser_omp_target_enter_data, | |
526 | c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER. | |
527 | (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit | |
528 | expressions on combined target teams before the target. | |
529 | (c_parser_omp_declare_target): If decl has "omp declare target" or | |
530 | "omp declare target link" attribute, and cgraph or varpool node already | |
531 | exists, then set corresponding flags. Call c_finish_omp_clauses | |
532 | in the parenthesized extended-list syntax case. | |
533 | * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside | |
534 | declare target. | |
535 | * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound | |
536 | on OMP_CLAUSE_REDUCTION array sections. | |
537 | (handle_omp_array_sections): Encode low-bound into the MEM_REF, either | |
538 | into the constant offset, or for variable low-bound using | |
539 | POINTER_PLUS_EXPR. For structure element based array sections use | |
540 | GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER. | |
541 | (c_finish_omp_clauses): Drop generic_field_head, structure | |
542 | elements are now always mapped even as array section bases, | |
543 | diagnose same var in data sharing and mapping clauses. Diagnose if | |
544 | linear step on declare simd is neither a constant nor a uniform | |
545 | parameter. Look through POINTER_PLUS_EXPR for array section | |
546 | reductions. Diagnose the same var or function appearing multiple | |
547 | times on the same directive. Fix up wording for the to clause if t | |
548 | is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic | |
549 | modifier on kinds other than dynamic or guided or nonmonotonic | |
550 | modifier together with ordered clause. | |
551 | ||
9e10bfb7 | 552 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
553 | Chung-Lin Tang <cltang@codesourcery.com> | |
554 | ||
555 | * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC. | |
556 | ||
4cba6f60 | 557 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
558 | ||
559 | * c-array-notation.c: Reorder #include's and remove duplicates. | |
560 | * c-aux-info.c: Likewise. | |
561 | * c-convert.c: Likewise. | |
562 | * c-decl.c: Likewise. | |
563 | * c-errors.c: Likewise. | |
564 | * c-lang.c: Likewise. | |
565 | * c-objc-common.c: Likewise. | |
566 | * c-parser.c: Likewise. | |
567 | * c-typeck.c: Likewise. | |
568 | ||
7b15d957 | 569 | 2015-10-26 Jim Wilson <jim.wilson@linaro.org> |
570 | ||
571 | PR debug/66068 | |
572 | * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS | |
573 | after calling build_qualified_type. | |
574 | ||
62c48328 | 575 | 2015-10-27 Cesar Philippidis <cesar@codesourcery.com> |
576 | Thomas Schwinge <thomas@codesourcery.com> | |
577 | James Norris <jnorris@codesourcery.com> | |
578 | Joseph Myers <joseph@codesourcery.com> | |
579 | Julian Brown <julian@codesourcery.com> | |
580 | Bernd Schmidt <bschmidt@redhat.com> | |
581 | ||
582 | * c-parser.c (c_parser_oacc_shape_clause): New. | |
583 | (c_parser_oacc_simple_clause): New. | |
584 | (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker. | |
585 | (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq. | |
586 | ||
2c4c8725 | 587 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
588 | James Norris <jnorris@codesourcery.com> | |
589 | Cesar Philippidis <cesar@codesourcery.com> | |
590 | ||
591 | PR c/64765 | |
592 | PR c/64880 | |
593 | * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal | |
594 | parameters, and handle these. Adjust all users. | |
595 | (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions | |
596 | into... | |
597 | (c_parser_oacc_kernels_parallel): ... this new function. Adjust | |
598 | all users. | |
599 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't | |
600 | declare functions. | |
601 | (c_finish_omp_construct): Declare function. | |
602 | * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels): | |
603 | Merge functions into... | |
604 | (c_finish_omp_construct): ... this new function. | |
605 | ||
844cece0 | 606 | 2015-10-22 Richard Biener <rguenther@suse.de> |
607 | ||
608 | * c-typeck.c (c_finish_omp_clauses): Properly convert operands | |
609 | before folding a MINUS_EXPR. | |
610 | ||
5ce1b137 | 611 | 2015-10-21 Marek Polacek <polacek@redhat.com> |
612 | ||
613 | PR c/68024 | |
614 | * c-decl.c (start_function): Warn about vararg functions without | |
615 | a prototype. | |
616 | ||
1f137e6d | 617 | 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com> |
618 | ||
619 | * c-typeck.c (build_conditional_expr): Use boolean vector | |
620 | type for vector comparison. | |
621 | (build_vec_cmp): New. | |
622 | (build_binary_op): Use build_vec_cmp for comparison. | |
623 | ||
8523243e | 624 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
625 | ||
626 | * c-parser.c (is_cilkplus_vector_p): Don't define here. | |
627 | ||
3f73be3e | 628 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
629 | ||
630 | PR c/67964 | |
631 | * c-parser.c (c_parser_attributes): Break out of the loop if the | |
632 | token after an attribute isn't a comma. | |
633 | ||
43895be5 | 634 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
635 | Aldy Hernandez <aldyh@redhat.com> | |
636 | ||
637 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here. | |
638 | (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses. | |
639 | (c_parser_omp_variable_list): Handle structure elements for | |
640 | map, to and from clauses. Handle array sections in reduction | |
641 | clause. Formatting fixes. | |
642 | (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of | |
643 | if clause modifiers. | |
644 | (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
645 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
646 | c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr, | |
647 | c_parser_omp_clause_is_device_ptr): New functions. | |
648 | (c_parser_omp_clause_ordered): Parse optional parameter. | |
649 | (c_parser_omp_clause_reduction): Handle array reductions. | |
650 | (c_parser_omp_clause_schedule): Parse optional simd modifier. | |
651 | (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New | |
652 | functions. | |
653 | (c_parser_omp_clause_linear): Parse linear clause modifiers. | |
654 | (c_parser_omp_clause_depend_sink): New function. | |
655 | (c_parser_omp_clause_depend): Parse source/sink depend kinds. | |
656 | (c_parser_omp_clause_map): Parse release/delete map kinds and | |
657 | optional always modifier. | |
658 | (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if | |
659 | and c_finish_omp_clauses callers. | |
660 | (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses. | |
661 | Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive. | |
662 | (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller. | |
663 | (OMP_CRITICAL_CLAUSE_MASK): Define. | |
664 | (c_parser_omp_critical): Parse critical clauses. | |
665 | (c_parser_omp_for_loop): Handle doacross loops, adjust | |
666 | c_finish_omp_for and c_finish_omp_clauses callers. | |
667 | (OMP_SIMD_CLAUSE_MASK): Add simdlen clause. | |
668 | (c_parser_omp_simd): Allow ordered clause if it has no parameter. | |
669 | (OMP_FOR_CLAUSE_MASK): Add linear clause. | |
670 | (c_parser_omp_for): Disallow ordered clause when combined with | |
671 | distribute. Disallow linear clause when combined with distribute | |
672 | and not combined with simd. | |
673 | (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define. | |
674 | (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument, | |
675 | parse clauses and if depend clause is found, don't parse a body. | |
676 | (c_parser_omp_parallel): Disallow copyin clause on target parallel. | |
677 | Allow target parallel without for after it. | |
678 | (OMP_TASK_CLAUSE_MASK): Add priority clause. | |
679 | (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause. | |
680 | (c_parser_omp_target_data): Diagnose no map clauses or clauses with | |
681 | invalid kinds. | |
682 | (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses. | |
683 | (OMP_TARGET_ENTER_DATA_CLAUSE_MASK, | |
684 | OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define. | |
685 | (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New | |
686 | functions. | |
687 | (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate, | |
688 | defaultmap and is_device_ptr clauses. | |
689 | (c_parser_omp_target): Parse target parallel and target simd. Set | |
690 | OMP_TARGET_COMBINED on combined constructs. Parse target enter data | |
691 | and target exit data. Diagnose invalid map kinds. | |
692 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Define. | |
693 | (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this | |
694 | construct. | |
695 | (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for | |
696 | &omp_priv. | |
697 | (OMP_TASKLOOP_CLAUSE_MASK): Define. | |
698 | (c_parser_omp_taskloop): New function. | |
699 | (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here, | |
700 | handle PRAGMA_OMP_TASKLOOP. | |
701 | (c_parser_cilk_for): Adjust c_finish_omp_clauses callers. | |
702 | * c-tree.h (c_finish_omp_clauses): Add two new arguments. | |
703 | * c-typeck.c (handle_omp_array_sections_1): Fix comment typo. | |
704 | Add IS_OMP argument, handle structure element bases, diagnose | |
705 | bitfields, pass IS_OMP recursively, diagnose known zero length | |
706 | array sections in depend clauses, handle array sections in reduction | |
707 | clause, diagnose negative length even for pointers. | |
708 | (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for | |
709 | types, pass IS_OMP down to handle_omp_array_sections_1, handle | |
710 | array sections in reduction clause, set | |
711 | OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero | |
712 | length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP. | |
713 | (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments. | |
714 | Handle new OpenMP 4.5 clauses and new restrictions for the old ones. | |
715 | ||
789fbb51 | 716 | 2015-10-06 Marek Polacek <polacek@redhat.com> |
717 | ||
718 | * c-parser.c (c_parser_statement_after_labels): Use | |
719 | protected_set_expr_location. | |
720 | (c_parser_omp_clause_num_gangs): Likewise. | |
721 | (c_parser_omp_clause_num_threads): Likewise. | |
722 | (c_parser_omp_clause_num_workers): Likewise. | |
723 | (c_parser_omp_clause_vector_length): Likewise. | |
724 | (c_parser_omp_clause_num_teams): Likewise. | |
725 | (c_parser_omp_clause_thread_limit): Likewise. | |
726 | * c-typeck.c (build_c_cast): Likewise. | |
727 | (c_cast_expr): Likewise. | |
728 | ||
20cb53c9 | 729 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
730 | ||
731 | * c-typeck.c (c_tree_equal): Use real_equal instead of | |
732 | REAL_VALUES_EQUAL. | |
733 | ||
6d02e6b2 | 734 | 2015-10-04 Jason Merrill <jason@redhat.com> |
735 | ||
736 | * c-parser.c (c_lex_one_token): Handle @synchronized. | |
737 | * c-decl.c (match_builtin_function_types): A declaration of a built-in | |
738 | can change whether the function is transaction_safe. | |
739 | ||
802c32cd | 740 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
741 | ||
742 | PR c/67730 | |
743 | * c-typeck.c (convert_for_assignment): Use the expansion point | |
744 | location throughout. | |
745 | ||
ef17a71a | 746 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
747 | ||
748 | PR c/64249 | |
749 | * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter | |
750 | and pass it down to c_parser_if_statement. | |
751 | (c_parser_else_body): Add CHAIN parameter and pass it down to | |
752 | c_parser_statement_after_labels. | |
753 | (c_parser_if_statement): Add CHAIN parameter. Add code to warn about | |
754 | duplicated if-else-if conditions. | |
755 | ||
7e93eb1a | 756 | 2015-10-01 Marek Polacek <polacek@redhat.com> |
757 | ||
758 | * c-typeck.c (convert_for_assignment): Improve commentary. | |
759 | ||
ab4c803c | 760 | 2015-09-30 Marek Polacek <polacek@redhat.com> |
761 | ||
762 | PR c/67730 | |
763 | * c-typeck.c (c_finish_return): Use the expansion point location for | |
764 | certain "return with value" warnings. | |
765 | ||
ed536208 | 766 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
767 | ||
768 | * c-parser.c (pragma_lex): Add loc argument. | |
769 | ||
03e8b174 | 770 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
771 | ||
772 | PR c/67580 | |
773 | * c-decl.c (tag_exists_p): New function. | |
774 | * c-parser.c (c_parser_declaration_or_fndef): Give a hint when | |
775 | struct/union/enum keywords are missing. | |
776 | * c-tree.h (tag_exists_p): Declare. | |
777 | ||
a39b4dc0 | 778 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
779 | ||
780 | * c-decl.c (lookup_label): Return NULL_TREE instead of 0. | |
781 | (lookup_tag): Change the type of THISLEVEL_ONLY to bool. | |
782 | Return NULL_TREE instead of 0. | |
783 | (lookup_name): Return NULL_TREE instead of 0. | |
784 | (lookup_name_in_scope): Likewise. | |
785 | (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0. | |
786 | (parser_xref_tag): Use false instead of 0. | |
787 | (start_struct): Use true instead of 1. | |
788 | (start_enum): Use true instead of 1 and NULL_TREE instead of 0. | |
789 | ||
85f5e2ee | 790 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
791 | ||
792 | * c-typeck.c (set_nonincremental_init_from_string): Use | |
793 | HOST_WIDE_INT_M1U when shifting a negative value. | |
794 | ||
739237d5 | 795 | 2015-09-09 Mark Wielaard <mjw@redhat.com> |
796 | ||
797 | * c-typeck.c (build_binary_op): Check and warn when nonnull arg | |
798 | parm against NULL. | |
799 | ||
d2b2788c | 800 | 2015-09-10 Jakub Jelinek <jakub@redhat.com> |
801 | ||
802 | PR c/67502 | |
803 | * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts | |
804 | into OMP_FOR_PRE_BODY rather than before the loop. | |
805 | ||
deef87db | 806 | 2015-09-09 Jakub Jelinek <jakub@redhat.com> |
807 | ||
c43f93d7 | 808 | PR c/67501 |
809 | * c-parser.c (c_parser_oacc_all_clauses, | |
810 | c_parser_omp_all_clauses): Remove invalid clause from | |
811 | list of clauses even if parser->error is set. | |
812 | ||
0fdcfb93 | 813 | PR c/67500 |
814 | * c-parser.c (c_parser_omp_clause_aligned, | |
815 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up | |
816 | test for errors. | |
817 | * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to | |
818 | error_mark_node. | |
819 | ||
deef87db | 820 | PR c/67495 |
821 | * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression | |
822 | instead of c_parser_unary_expression. If the result is !lvalue_p, | |
823 | wrap the result of c_fully_fold into NON_LVALUE_EXPR. | |
824 | ||
e96292e9 | 825 | 2015-09-04 Marek Polacek <polacek@redhat.com> |
826 | ||
827 | PR sanitizer/67279 | |
828 | * c-typeck.c (build_binary_op): Don't instrument static initializers. | |
829 | ||
547c6b1f | 830 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
831 | ||
832 | PR c/66516 | |
6ccd7236 | 833 | * c-typeck.c (convert_arguments, parser_build_unary_op, |
834 | build_conditional_expr, c_cast_expr, convert_for_assignment, | |
835 | build_binary_op, _objc_common_truthvalue_conversion): Call | |
547c6b1f | 836 | reject_gcc_builtin. |
837 | (c_decl_implicit): Define. | |
838 | ||
bd66724c | 839 | 2015-09-02 Marek Polacek <polacek@redhat.com> |
840 | ||
841 | PR c/67432 | |
842 | * c-parser.c (c_parser_enum_specifier): Give a better error for | |
843 | an empty enum. | |
844 | ||
6dc50383 | 845 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
846 | ||
847 | * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs. | |
848 | ||
7ad1d78d | 849 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
850 | ||
851 | * c-decl.c (grokdeclarator): Call error_at instead of error and pass | |
852 | LOC to it. | |
853 | ||
c9099388 | 854 | 2015-08-03 Marek Polacek <polacek@redhat.com> |
855 | ||
856 | PR c/67088 | |
857 | * c-decl.c (check_bitfield_type_and_width): Add location parameter. | |
858 | Use it. | |
859 | (grokdeclarator): Pass LOC down to check_bitfield_type_and_width. | |
860 | ||
9255be07 | 861 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
862 | ||
863 | * c-parser.c (c_parser_if_body): Take token_indent_info | |
864 | argument. Call warn_for_misleading_indentation even when the | |
865 | body is a semicolon. Extract token_indent_infos corresponding | |
866 | to the guard, body and next tokens. Adjust call to | |
867 | warn_for_misleading_indentation accordingly. | |
868 | (c_parser_else_body): Likewise. | |
869 | (c_parser_if_statement): Likewise. | |
870 | (c_parser_while_statement): Likewise. | |
871 | (c_parser_for_statement): Likewise. | |
872 | ||
dbbd4c6d | 873 | 2015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com> |
874 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
875 | ||
876 | * c-decl.c (get_parm_info): Remove static var. Update warning | |
877 | message. | |
878 | ||
6784a472 | 879 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
880 | ||
881 | PR c++/66555 | |
882 | PR c/54979 | |
883 | * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp. | |
884 | ||
8d669e79 | 885 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
886 | ||
887 | PR c++/55095 | |
888 | * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init. | |
889 | (build_binary_op): Warn about left shift overflows. | |
890 | ||
1eacc14a | 891 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
892 | ||
893 | * c-array-notation.c: Adjust includes for flags.h changes. | |
894 | * c-objc-common.c: Likewise. | |
895 | ||
9ef16211 | 896 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
897 | ||
898 | * c-array-notation.c: Adjust includes. | |
899 | * c-aux-info.c: Likewise. | |
900 | * c-convert.c: Likewise. | |
901 | * c-decl.c: Likewise. | |
902 | * c-errors.c: Likewise. | |
903 | * c-lang.c: Likewise. | |
904 | * c-objc-common.c: Likewise. | |
905 | * c-parser.c: Likewise. | |
906 | * c-typeck.c: Likewise. | |
907 | ||
0949f227 | 908 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
909 | ||
910 | PR fortran/66605 | |
911 | * c-decl.c (finish_function): Call do_warn_unused_parameter. | |
912 | ||
be23b16f | 913 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
914 | ||
915 | PR c/66322 | |
916 | * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P. | |
917 | (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn | |
918 | about -Wswitch-bool here. | |
919 | (do_case): Update c_add_case_label call. | |
920 | (c_finish_case): Update c_do_switch_warnings call. | |
921 | ||
6290f0db | 922 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
923 | ||
924 | * c-typeck.c: Use VECTOR_TYPE_P throughout. | |
925 | ||
aa3e402e | 926 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
927 | ||
928 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
929 | INDIRECT_REF_P. | |
930 | * c-typeck.c (array_to_pointer_conversion): Likewise. | |
931 | (build_unary_op): Likewise. | |
932 | (c_finish_return): Likewise. | |
933 | ||
ec2e0095 | 934 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
935 | ||
936 | * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list. | |
937 | * c-parser.c: Likewise. | |
938 | ||
770ff93b | 939 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
940 | ||
941 | * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash | |
942 | instead of pointer_hash. | |
943 | (detect_field_duplicates): Likewise. | |
944 | ||
f48c7f4a | 945 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
946 | ||
947 | * c-array-notation.c: Use VAR_P throughout. | |
948 | * c-decl.c: Likewise. | |
949 | * c-objc-common.c: Likewise. | |
950 | * c-parser.c: Likewise. | |
951 | * c-typeck.c: Likewise. | |
952 | ||
ce41e81a | 953 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
954 | ||
955 | * c-decl.c: Use is_global_var throughout. | |
956 | * c-parser.c: Likewise. | |
957 | * c-typeck.c: Likewise. | |
958 | ||
f2ab3bac | 959 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
960 | ||
961 | * c-array-notation.c: Do not include input.h, line-map.h or is-a.h. | |
962 | * c-aux-info.c: Likewise. | |
963 | * c-convert.c: Likewise. | |
964 | * c-decl.c: Likewise. | |
965 | * c-errors.c: Likewise. | |
966 | * c-lang.c: Likewise. | |
967 | * c-objc-common.c: Likewise. | |
968 | * c-parser.c: Likewise. | |
969 | * c-typeck.c: Likewise. | |
970 | ||
647730ab | 971 | 2015-06-11 Jan Hubicka <hubicka@ucw.cz> |
972 | ||
973 | PR middle-end/66325 | |
974 | * c-decl.c (start_enum): Set TYPE_PACKED consistently among type | |
975 | variants. | |
976 | ||
dd4b0a0d | 977 | 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com> |
978 | ||
979 | * c-decl.c (pop_scope): Register the main translation unit | |
980 | through the new debug hook. | |
981 | ||
64486212 | 982 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
983 | ||
984 | * c-array-notation.c : Adjust include files. | |
985 | * c-aux-info.c : Likewise. | |
986 | * c-convert.c : Likewise. | |
987 | * c-decl.c : Likewise. | |
988 | * c-errors.c : Likewise. | |
989 | * c-lang.c : Likewise. | |
990 | * c-lang.h : Likewise. | |
991 | * c-objc-common.c : Likewise. | |
992 | * c-parser.c : Likewise. | |
993 | * c-typeck.c : Likewise. | |
994 | ||
3a1c9df2 | 995 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
996 | ||
997 | * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and | |
998 | immediately clobber it. | |
999 | (c_write_global_declarations_1): Remove call to | |
1000 | check_global_declaration_1. | |
1001 | (c_write_global_declarations_2): Remove. | |
1002 | (c_write_final_cleanups): Rename from c_write_global_declarations. | |
1003 | Remove call to finalize_compilation_unit. | |
1004 | Remove calls to debugging hooks. | |
1005 | * c-objc-common.c: Adjust comment for c_warn_unused_global_decl. | |
1006 | * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS. | |
1007 | * c-tree.h: Remove c_write_global_declarations. | |
1008 | ||
f77c0292 | 1009 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
1010 | ||
1011 | * c-array-notation.c: Adjust includes for restructured coretypes.h. | |
1012 | * c-aux-info.c: Likewise. | |
1013 | * c-convert.c: Likewise. | |
1014 | * c-decl.c: Likewise. | |
1015 | * c-errors.c: Likewise. | |
1016 | * c-lang.c: Likewise. | |
1017 | * c-objc-common.c: Likewise. | |
1018 | * c-parser.c: Likewise. | |
1019 | * c-typeck.c: Likewise. | |
1020 | ||
b44134dc | 1021 | 2015-06-04 Marek Polacek <polacek@redhat.com> |
1022 | ||
1023 | PR c/66341 | |
1024 | * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if | |
1025 | it is a lvalue. | |
1026 | ||
d1df0bfc | 1027 | 2015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
1028 | ||
1029 | * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc. | |
1030 | Warn for empty struct. | |
1031 | (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct. | |
1032 | ||
f8363c5d | 1033 | 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com> |
1034 | ||
1035 | * c-decl.c (start_function): Call plugin before parsing. | |
1036 | (finish_function): Call plugin after parsing. | |
1037 | ||
5b9761f5 | 1038 | 2015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
1039 | ||
1040 | PR c/49551 | |
1041 | * c-decl.c (merge_decls): Merge DECL_COMMON. | |
1042 | ||
eeec71b4 | 1043 | 2015-05-22 Jim Wilson <jim.wilson@linaro.org> |
1044 | ||
1045 | * Make-lang.in (check_gcc_pallelize): Define. | |
1046 | ||
5a4c69dd | 1047 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
1048 | ||
1049 | PR c/47043 | |
1050 | * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator | |
1051 | attributes. | |
1052 | ||
5650b4ff | 1053 | 2015-05-21 Marek Polacek <polacek@redhat.com> |
1054 | ||
1055 | * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of | |
1056 | DECL_BUILT_IN. | |
1057 | ||
b443c459 | 1058 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
1059 | ||
1060 | * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
1061 | * c-typeck.c: Likewise. | |
1062 | ||
9e73638f | 1063 | 2015-05-19 Marek Polacek <polacek@redhat.com> |
1064 | ||
1065 | * c-typeck.c (start_init): Use AGGREGATE_TYPE_P. | |
1066 | ||
d7729e26 | 1067 | 2015-05-19 Jakub Jelinek <jakub@redhat.com> |
1068 | ||
1069 | PR middle-end/66199 | |
1070 | * c-parser.c (c_parser_omp_for_loop): Don't add | |
1071 | OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving | |
1072 | OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES. | |
1073 | (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined | |
1074 | constructs. | |
1075 | ||
dfcf26a5 | 1076 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
1077 | ||
1078 | * c-typeck.c (build_array_ref): Use std::swap instead of explicit | |
9e73638f | 1079 | swaps. |
dfcf26a5 | 1080 | |
09172322 | 1081 | 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1082 | ||
1083 | PR fortran/44054 | |
1084 | * c-objc-common.c (c_tree_printer): Replace locus pointer with | |
1085 | accessor function. | |
1086 | ||
aac24642 | 1087 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
1088 | ||
1089 | PR c/66066 | |
1090 | PR c/66127 | |
1091 | * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic | |
1092 | rather than with 0. | |
1093 | ||
e5f01cba | 1094 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
1095 | ||
1096 | * c-parser.c (c_parser_if_body): Add param "if_loc", use it | |
1097 | to add a call to warn_for_misleading_indentation. | |
1098 | (c_parser_else_body): Likewise, adding param "else_loc". | |
1099 | (c_parser_if_statement): Check for misleading indentation. | |
1100 | (c_parser_while_statement): Likewise. | |
1101 | (c_parser_for_statement): Likewise. | |
1102 | ||
dc5945dc | 1103 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
1104 | ||
1105 | PR c/64918 | |
1106 | * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects. | |
1107 | (output_init_element): Likewise. | |
1108 | ||
cdc64059 | 1109 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
1110 | ||
1111 | PR c/65179 | |
1112 | * c-typeck.c (build_binary_op): Warn when left shifting a negative | |
1113 | value. | |
1114 | ||
6fa7118e | 1115 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
1116 | ||
1117 | * c-typeck.c (set_init_label): Call error_at instead of error and | |
1118 | pass LOC to it. | |
1119 | ||
98f44804 | 1120 | * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print |
1121 | the type of a decl. | |
1122 | ||
2cd7caae | 1123 | * c-typeck.c (c_build_va_arg): Clarify the error message. |
1124 | ||
95cfd391 | 1125 | 2015-04-29 Thomas Schwinge <thomas@codesourcery.com> |
1126 | ||
1127 | * c-parser.c (c_parser_oacc_enter_exit_data): Use | |
1128 | OMP_STANDALONE_CLAUSES. | |
1129 | ||
e65e39f8 | 1130 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
1131 | ||
1132 | * c-parser.c (c_parser_binary_expression): Remove duplicate line. | |
1133 | ||
5580bf42 | 1134 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
1135 | ||
1136 | PR c/65901 | |
1137 | * c-typeck.c (c_build_va_arg): Require TYPE be a complete type. | |
1138 | ||
c3468fc2 | 1139 | 2015-04-25 Marek Polacek <polacek@redhat.com> |
1140 | ||
1141 | PR c/52085 | |
1142 | * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode" | |
1143 | attribute. | |
1144 | ||
0cd6b1b4 | 1145 | 2015-04-23 Marek Polacek <polacek@redhat.com> |
1146 | ||
1147 | PR c/65345 | |
1148 | * c-decl.c (set_labels_context_r): New function. | |
1149 | (store_parm_decls): Call it via walk_tree_without_duplicates. | |
1150 | * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw | |
1151 | instead of create_tmp_var. Build TARGET_EXPR instead of | |
1152 | COMPOUND_EXPR. | |
1153 | (build_atomic_assign): Use create_tmp_var_raw instead of | |
1154 | create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR. | |
1155 | ||
05a827ce | 1156 | 2015-04-20 Ilya Verbin <ilya.verbin@intel.com> |
1157 | ||
1158 | * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon. | |
1159 | (c_parser_omp_target_update): Add missed %> to error_at (). | |
1160 | ||
de801c28 | 1161 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
1162 | ||
1163 | PR target/55143 | |
1164 | * c-decl.c (c_default_pointer_mode): Remove definition. | |
1165 | * c-tree.h (c_default_pointer_mode): Remove declaration. | |
1166 | ||
c3b1dca4 | 1167 | 2015-03-27 Tobias Burnus <burnus@net-b.de> |
1168 | ||
1169 | PR c/65586 | |
1170 | * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't | |
1171 | error out. | |
1172 | (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute, | |
1173 | c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare): | |
1174 | Update calls to not error for skipped omp pragmas with -fopenmp-simd. | |
1175 | ||
1443772f | 1176 | 2015-03-19 Jakub Jelinek <jakub@redhat.com> |
1177 | ||
1178 | * c-decl.c (c_decl_attributes): Also add "omp declare target" | |
1179 | attribute for DECL_EXTERNAL VAR_DECLs. | |
1180 | ||
76738f56 | 1181 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
1182 | ||
1183 | * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier | |
1184 | argument. | |
1185 | ||
16f958b3 | 1186 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
1187 | ||
1188 | PR c/65120 | |
1189 | * c-typeck.c (parser_build_binary_op): Check for tcc_comparison | |
1190 | before preparing arguments to warn_logical_not_parentheses. | |
1191 | ||
6054103a | 1192 | 2015-03-09 Jakub Jelinek <jakub@redhat.com> |
1193 | ||
1194 | PR c/65120 | |
1195 | * c-typeck.c (parser_build_binary_op): Don't warn for | |
1196 | !!x == y or !b == y where b is _Bool. | |
1197 | ||
de3a1e03 | 1198 | 2015-03-09 Marek Polacek <polacek@redhat.com> |
1199 | ||
1200 | * c-convert.c (convert): Make use of do_ubsan_in_current_function. | |
1201 | * c-decl.c (grokdeclarator): Likewise. | |
1202 | * c-typeck.c (build_binary_op): Likewise. | |
1203 | ||
084e6bf0 | 1204 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
1205 | ||
1206 | PR c/65228 | |
1207 | * c-decl.c (start_decl): Return NULL_TREE if decl is an error node. | |
1208 | ||
4d7c4134 | 1209 | 2015-02-14 Marek Polacek <polacek@redhat.com> |
1210 | ||
1211 | PR c/64768 | |
1212 | * c-decl.c (grokdeclarator): Set the range of a flexible array member | |
1213 | declared through a typedef name. | |
1214 | ||
b1380826 | 1215 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
1216 | ||
1217 | PR c/65050 | |
1218 | * c-decl.c (grokdeclarator): Print also the type when giving | |
1219 | the error message about array's incomplete element type. | |
1220 | ||
35ff54b5 | 1221 | 2015-02-11 Jakub Jelinek <jakub@redhat.com> |
1222 | ||
1223 | PR c/64824 | |
1224 | * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec | |
1225 | check in the POP macro. | |
1226 | ||
46861609 | 1227 | 2015-02-09 Marek Polacek <polacek@redhat.com> |
1228 | ||
1229 | PR c/64856 | |
1230 | * c-typeck.c (process_init_element): Don't always wrap | |
1231 | COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when | |
1232 | initializing a range of elements. | |
1233 | ||
bbf8fbec | 1234 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
1235 | ||
1236 | PR c/64824 | |
1237 | PR c/64868 | |
1238 | * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR. | |
1239 | ||
46861609 | 1240 | 2015-02-02 Bruno Loff <bruno.loff@gmail.com> |
1f0ce3ac | 1241 | |
1242 | * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after | |
1243 | processing enum declaration. | |
1244 | ||
70279be9 | 1245 | 2015-01-29 Marek Polacek <polacek@redhat.com> |
1246 | ||
1247 | PR c/64709 | |
1248 | * c-typeck.c (pop_init_level): If constructor_elements has | |
1249 | exactly one element with integer_zerop value, set constructor_zeroinit | |
1250 | to 1. Remove braces around warning_init call. | |
1251 | ||
591970b4 | 1252 | 2015-01-27 Jakub Jelinek <jakub@redhat.com> |
1253 | ||
1254 | PR c/64766 | |
1255 | * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL | |
1256 | of FUNCTION_DECLs with error_mark_node. | |
1257 | ||
87778dc4 | 1258 | 2015-01-26 Jakub Jelinek <jakub@redhat.com> |
1259 | ||
1260 | PR c/64778 | |
1261 | * c-typeck.c (convert_arguments): Return -1 if there are | |
1262 | error_args, even if we've diagnosed too many arguments. | |
1263 | ||
cffdfb3d | 1264 | 2015-01-21 Richard Biener <rguenther@suse.de> |
1265 | ||
1266 | PR middle-end/64313 | |
1267 | * c-decl.c (merge_decls): Call set_builtin_decl_declared_p | |
1268 | for builtins the user declared correctly. | |
1269 | ||
ca4c3545 | 1270 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
1271 | Bernd Schmidt <bernds@codesourcery.com> | |
1272 | Cesar Philippidis <cesar@codesourcery.com> | |
1273 | James Norris <jnorris@codesourcery.com> | |
1274 | Jakub Jelinek <jakub@redhat.com> | |
1275 | Ilmir Usmanov <i.usmanov@samsung.com> | |
1276 | ||
1277 | * c-parser.c: Include "gomp-constants.h". | |
1278 | (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum | |
1279 | omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. | |
1280 | Use OMP_CLAUSE_SET_MAP_KIND. | |
1281 | (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA, | |
1282 | PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE. | |
1283 | (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE, | |
1284 | PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, | |
1285 | PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT. | |
1286 | (c_parser_omp_clause_name): Handle "auto", "async", "copy", | |
1287 | "copyout", "create", "delete", "deviceptr", "gang", "host", | |
1288 | "num_gangs", "num_workers", "present", "present_or_copy", "pcopy", | |
1289 | "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout", | |
1290 | "present_or_create", "pcreate", "seq", "self", "vector", | |
1291 | "vector_length", "wait", "worker". | |
1292 | (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK) | |
1293 | (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK) | |
1294 | (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK) | |
1295 | (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros. | |
1296 | (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_. | |
1297 | (c_parser_oacc_wait_list, c_parser_oacc_data_clause) | |
1298 | (c_parser_oacc_data_clause_deviceptr) | |
1299 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers) | |
1300 | (c_parser_oacc_clause_async, c_parser_oacc_clause_wait) | |
1301 | (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses) | |
1302 | (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels) | |
1303 | (c_parser_oacc_enter_exit_data, c_parser_oacc_loop) | |
1304 | (c_parser_oacc_parallel, c_parser_oacc_update) | |
1305 | (c_parser_oacc_wait): New functions. | |
1306 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
1307 | (c_finish_oacc_data): New prototypes. | |
1308 | * c-typeck.c: Include "gomp-constants.h". | |
1309 | (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use | |
1310 | GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use | |
1311 | OMP_CLAUSE_SET_MAP_KIND. | |
1312 | (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
1313 | (c_finish_oacc_data): New functions. | |
1314 | (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_, | |
1315 | OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS, | |
1316 | OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, | |
1317 | OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG, | |
1318 | OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's | |
1319 | GOMP_MAP_FORCE_DEVICEPTR. | |
1320 | ||
1f78217c | 1321 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
1322 | ||
1323 | * c-array-notation.c: Include hash-set.h, machmode.h, | |
1324 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
1325 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
1326 | * c-aux-info.c: Ditto. | |
1327 | * c-convert.c: Ditto. | |
1328 | * c-decl.c: Ditto. | |
1329 | * c-errors.c: Ditto. | |
1330 | * c-lang.c: Dittoxs. | |
1331 | * c-objc-common.c: Ditto. | |
1332 | * c-parser.c: Ditto. | |
1333 | * c-typeck.c: Include hash-set.h, machmode.h, | |
1334 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
1335 | fold-const.h, wide-int.h, inchash.h, real.h and | |
1336 | fixed-value.h due to flattening of tree.h. | |
1337 | ||
15e18a8c | 1338 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
1339 | ||
1340 | PR c/64417 | |
1341 | * c-typeck.c (process_init_element): Disallow initialization of | |
1342 | a flexible array member with a string constant if the structure | |
1343 | is in an array. | |
1344 | ||
d353bf18 | 1345 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
1346 | ||
823a9dd4 | 1347 | PR sanitizer/64344 |
1348 | * c-typeck.c (convert_for_assignment, c_finish_return): For | |
1349 | -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum | |
1350 | types also set in_late_binary_op around convert call. | |
1351 | * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE | |
1352 | to integral type casts, if not in_late_binary_op, pass c_fully_fold | |
1353 | result on expr as last argument to ubsan_instrument_float_cast, | |
1354 | if in_late_binary_op, don't use c_save_expr but save_expr. | |
1355 | ||
d353bf18 | 1356 | Update copyright years. |
1357 | ||
92b63884 | 1358 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
1359 | ||
1360 | PR c/64423 | |
1361 | * c-typeck.c (build_array_ref): Pass loc down to | |
1362 | warn_array_subscript_with_type_char. | |
1363 | ||
8a8211df | 1364 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
1365 | ||
1366 | * c-typeck.c: New behavious for pointers to arrays with qualifiers | |
1367 | (common-pointer-type): For pointers to arrays take qualifiers from | |
1368 | element type. | |
1369 | (build_conditional_expr): Add warnings for lost qualifiers. | |
1370 | (comp-target-types): Allow pointers to arrays with different qualifiers. | |
1371 | (convert-for-assignment): Adapt warnings for discarded qualifiers. Add | |
1372 | WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS | |
1373 | to PEDWARN_FOR_QUALIFIERS. | |
1374 | ||
35ea0139 | 1375 | 2014-12-17 Jakub Jelinek <jakub@redhat.com> |
1376 | ||
1377 | PR sanitizer/64289 | |
1378 | * c-convert.c: Include ubsan.h. | |
1379 | (convert): For real -> integral casts and | |
1380 | -fsanitize=float-cast-overflow don't call convert_to_integer, but | |
1381 | instead instrument the float cast directly. | |
1382 | ||
f9e245b2 | 1383 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
1384 | ||
1385 | * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign, | |
1386 | c_finish_stmt_expr): Remove NULL last argument from | |
1387 | create_tmp_var_raw and create_tmp_var calls. | |
1388 | * c-array-notation.c (fix_builtin_array_notation_fn, | |
1389 | build_array_notation_expr, fix_conditional_array_notations_1, | |
1390 | fix_array_notation_expr, fix_array_notation_call_expr): Likewise. | |
1391 | ||
fce2dbd1 | 1392 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
1393 | ||
1394 | PR c/63862 | |
1395 | * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't | |
1396 | convert the right operand to integer type. | |
1397 | ||
396c36b7 | 1398 | 2014-11-25 Marek Polacek <polacek@redhat.com> |
1399 | ||
1400 | PR c/63877 | |
1401 | * c-decl.c (start_function): Disable -Wmissing-declarations warning | |
1402 | for inline functions. | |
1403 | ||
c61ef207 | 1404 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
1405 | ||
1406 | PR target/63764 | |
1407 | * c-typeck.c (build_array_ref): Adjust | |
1408 | convert_vector_to_pointer_for_subscript caller. If it returns true, | |
1409 | call non_lvalue_loc on the result. | |
1410 | ||
565353e8 | 1411 | 2014-11-11 Richard Biener <rguenther@suse.de> |
1412 | ||
1413 | * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues | |
1414 | to true. | |
1415 | ||
fdd735a7 | 1416 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
1417 | ||
1418 | PR c/60804 | |
1419 | * c-parser.c (c_parser_statement_after_labels): Call | |
1420 | check_no_cilk. | |
1421 | (c_parser_if_statement): Dito. | |
1422 | (c_parser_switch_statement): Dito. | |
1423 | (c_parser_while_statement): Dito. | |
1424 | (c_parser_do_statement): Dito. | |
1425 | (c_parser_for_statement): Dito. | |
1426 | * c-typeck.c (c_finish_loop): Dito. | |
1427 | ||
0feb4de1 | 1428 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
1429 | ||
1430 | * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and | |
1431 | OPT_Wshift_count_overflow in the warnings. | |
1432 | ||
a3fec48a | 1433 | 2014-10-30 Marek Polacek <polacek@redhat.com> |
1434 | ||
1435 | * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name, | |
1436 | print the stripped version as well, if they're not the same. | |
1437 | ||
3754d046 | 1438 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
1439 | ||
1440 | * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from | |
1441 | machine_mode. | |
1442 | ||
1140c305 | 1443 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
1444 | ||
1445 | * c-decl.c: Adjust include files. | |
1446 | * c-parser.c: Ditto. | |
1447 | ||
ab103e33 | 1448 | 2014-10-27 Phil Muldoon <pmuldoon@redhat.com> |
1449 | Tom Tromey <tromey@redhat.com> | |
1450 | ||
1451 | * c-tree.h (enum c_oracle_request): New. | |
1452 | (c_binding_oracle_function): New typedef. | |
1453 | (c_binding_oracle, c_pushtag, c_bind): Declare. | |
1454 | * c-decl.c (c_binding_oracle): New global. | |
1455 | (I_SYMBOL_CHECKED): New macro. | |
1456 | (i_symbol_binding): New function. | |
1457 | (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine. | |
1458 | (I_TAG_CHECKED): New macro. | |
1459 | (i_tag_binding): New function. | |
1460 | (I_TAG_BINDING, I_TAG_DECL): Redefine. | |
1461 | (I_LABEL_CHECKED): New macro. | |
1462 | (i_label_binding): New function. | |
1463 | (I_LABEL_BINDING, I_LABEL_DECL): Redefine. | |
1464 | (c_print_identifier): Save and restore c_binding_oracle. | |
1465 | (c_pushtag, c_bind): New functions. | |
1466 | ||
94ea8568 | 1467 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
1468 | ||
1469 | * c-typeck.c: Adjust include files. | |
1470 | ||
32ecf960 | 1471 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1472 | ||
1473 | PR c++/53061 | |
1474 | * c-objc-common.c (c_objc_common_init): Do not do diagnostics | |
1475 | initialization here... | |
1476 | (c_initialize_diagnostics): ... but here. Set defaults after | |
1477 | building pretty-printer. | |
1478 | ||
2981340f | 1479 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
1480 | ||
1481 | PR c/63626 | |
1482 | * c-decl.c (pop_scope): Don't print warning in external_scope. | |
1483 | ||
d303aeaf | 1484 | 2014-10-19 Marek Polacek <polacek@redhat.com> |
1485 | ||
1486 | PR c/63567 | |
1487 | * c-typeck.c (output_init_element): Allow initializing objects with | |
1488 | static storage duration with compound literals even in C99 and add | |
1489 | pedwarn for it. | |
1490 | ||
bccf97da | 1491 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
1492 | ||
1493 | PR c/63567 | |
1494 | * c-typeck.c (digest_init): Allow initializing objects with static | |
1495 | storage duration with compound literals even in C99 and add pedwarn | |
1496 | for it. | |
1497 | ||
d9c77450 | 1498 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
1499 | ||
1500 | PR c/63543 | |
1501 | * c-tree.h (C_TYPE_ERROR_REPORTED): Define. | |
1502 | * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..." | |
1503 | error multiple times. Print the type. | |
1504 | ||
a2bbd0a7 | 1505 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
1506 | ||
1507 | PR c/63549 | |
1508 | * c-typeck.c (build_array_ref): Bail if the index in an incomplete | |
1509 | type. | |
1510 | ||
e610d2b2 | 1511 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
1512 | ||
1513 | * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally. | |
1514 | (start_function): Use OPT_Wimplicit_int instead of 0. | |
1515 | (store_parm_decls_oldstyle): Likewise. | |
1516 | ||
6b6e56b6 | 1517 | 2014-10-17 Alan Modra <amodra@gmail.com> |
1518 | ||
1519 | PR middle-end/61848 | |
1520 | * c-decl.c (merge_decls): Don't merge section name or tls model | |
1521 | to newdecl symtab node, instead merge to olddecl. Override | |
1522 | existing olddecl section name. Set tls_model for all thread-local | |
1523 | vars, not just OMP thread-private ones. Remove incorrect comment. | |
1524 | ||
a3020f2f | 1525 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
1526 | ||
1527 | * c-decl.c: Adjust include files. | |
1528 | ||
9f75f026 | 1529 | 2014-10-14 DJ Delorie <dj@redhat.com> |
1530 | ||
1531 | * c-parser.c (c_parse_init): Add RID entries for each __intN. | |
1532 | (c_token_starts_typename): Check all __intN, not just __int128. | |
1533 | (c_token_starts_declspecs): Likewise. | |
1534 | (c_parser_declspecs): Likewise. | |
1535 | (c_parser_attribute_any_word): Likewise. | |
1536 | (c_parser_objc_selector): Likewise. | |
1537 | * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n. | |
1538 | (struct c_declspecs): Add int_n_idx field to record *which* __intN | |
1539 | is specified. | |
1540 | * c-decl.c (declspecs_add_type): Check for all __intN, not just | |
1541 | __int128. | |
1542 | (finish_declspecs): Likewise. | |
1543 | ||
4f284d4a | 1544 | 2014-10-13 Anthony Brandon <anthony.brandon@gmail.com> |
1545 | ||
1546 | * c-parser.c (c_parser_all_labels): New function to replace | |
1547 | the duplicate code. | |
1548 | (c_parser_statement): Call the new function. | |
1549 | ||
61a892dc | 1550 | 2014-10-09 Marek Polacek <polacek@redhat.com> |
1551 | ||
1552 | PR c/63480 | |
1553 | * c-typeck.c (pop_init_level): Don't warn about initializing | |
1554 | with { }. | |
1555 | ||
4e888fd9 | 1556 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
1557 | ||
1558 | PR c/59717 | |
1559 | * c-decl.c (header_for_builtin_fn): New function. | |
1560 | (implicitly_declare): Suggest which header to include. | |
1561 | ||
224bdd51 | 1562 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
1563 | ||
1564 | * c-convert.c (convert): Use error_operand_p. | |
1565 | * c-typeck.c (require_complete_type): Likewise. | |
1566 | (really_atomic_lvalue): Likewise. | |
1567 | (digest_init): Likewise. | |
1568 | (handle_omp_array_sections_1): Likewise. | |
1569 | ||
a2bc79db | 1570 | 2014-10-03 Marek Polacek <polacek@redhat.com> |
1571 | ||
1572 | PR c/63453 | |
1573 | * c-decl.c (pop_scope): Don't warn about "inline function declared | |
1574 | but never defined" for functions marked with gnu_inline attribute. | |
1575 | ||
4fc4088b | 1576 | 2014-09-25 Jakub Jelinek <jakub@redhat.com> |
1577 | ||
1578 | PR c++/63249 | |
1579 | * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read | |
1580 | on low_bound and length. | |
1581 | ||
5213d6c9 | 1582 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
1583 | ||
1584 | PR c/61405 | |
1585 | PR c/53874 | |
1586 | * c-parser.c: Don't define CPP_KEYWORD. | |
1587 | (c_parser_switch_statement): Pass original type to c_finish_case. | |
1588 | * c-tree.h (c_finish_case): Update declaration. | |
1589 | * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it | |
1590 | conditionally to c_do_switch_warnings. | |
1591 | ||
6ea2b1bc | 1592 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
1593 | ||
1594 | PR c/62024 | |
1595 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op | |
1596 | conversions. | |
1597 | ||
40750995 | 1598 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
1599 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
1600 | Igor Zamyatin <igor.zamyatin@intel.com> | |
1601 | ||
1602 | * c-parser.c (c_parser_cilk_for): New function. | |
1603 | (c_parser_cilk_grainsize): Likewise. | |
1604 | (c_get_temp_regvar): Likewise. | |
1605 | (c_parser_statement_after_labels): Added RID_CILK_FOR case. | |
1606 | (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case. | |
1607 | (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks. | |
1608 | * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ | |
1609 | case. | |
1610 | ||
8c583613 | 1611 | 2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com> |
1612 | ||
1613 | * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes, | |
1614 | with using HOST_WIDE_INT without truncation to 'int' | |
1615 | ||
dc6229e8 | 1616 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
1617 | ||
1618 | PR c++/62199 | |
1619 | * c-typeck.c (parser_build_binary_op): Adjust call to | |
1620 | warn_logical_not_parentheses. | |
1621 | ||
5fdda74b | 1622 | 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com> |
1623 | ||
1624 | PR other/62008 | |
1625 | * c-parser.c (c_parser_array_notation): Check for correct | |
1626 | type of an array added. | |
1627 | ||
78bf4156 | 1628 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
1629 | ||
1630 | PR c++/62153 | |
1631 | * c-typeck.c (build_binary_op): If either operand of a comparison | |
1632 | is a boolean expression, call maybe_warn_bool_compare. | |
1633 | ||
005b8fe7 | 1634 | 2014-08-19 Patrick Palka <ppalka@gcc.gnu.org> |
1635 | ||
1636 | PR c/45584 | |
1637 | * c-typeck.c (build_c_cast): Do a conversion even when the | |
1638 | TYPE_MAIN_VARIANTs are the same. | |
1639 | ||
508ea33a | 1640 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
1641 | ||
1642 | * c-decl.c (diagnose_mismatched_decls): Unconditionally call | |
1643 | pedwarn_c99 instead of pedwarn. | |
1644 | (grokfield): Likewise. | |
1645 | (warn_defaults_to): New function. | |
1646 | (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99. | |
1647 | Unconditionally call pedwarn_c99 instead of pedwarn. | |
1648 | (start_function): Call warn_defaults_to instead of pedwarn_c99. | |
1649 | (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't | |
1650 | check flag_isoc11 before. | |
1651 | * c-errors.c (pedwarn_c99): Change the return type to bool. | |
1652 | Handle -Wc99-c11-compat. | |
1653 | * c-parser.c (disable_extension_diagnostics): Handle | |
1654 | warn_c99_c11_compat. | |
1655 | (restore_extension_diagnostics): Likewise. | |
1656 | (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99 | |
1657 | instead of pedwarn, don't check flag_isoc11 before. | |
1658 | (c_parser_declspecs): Likewise. | |
1659 | (c_parser_alignas_specifier): Likewise. | |
1660 | (c_parser_alignof_expression): Likewise. | |
1661 | (c_parser_generic_selection): Likewise. | |
1662 | * c-tree.h (pedwarn_c99): Update declaration. | |
1663 | * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead | |
1664 | of pedwarn_c99. | |
1665 | ||
806fe15e | 1666 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
1667 | ||
1668 | * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally | |
1669 | to pedwarn_c90. | |
1670 | * c-errors.c: Include "opts.h". | |
1671 | (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better. | |
1672 | * c-parser.c (disable_extension_diagnostics): Handle negative value | |
1673 | of warn_c90_c99_compat, too. | |
1674 | (restore_extension_diagnostics): Likewise. | |
1675 | (c_parser_compound_statement_nostart): Pass | |
1676 | OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90. | |
1677 | ||
89868e45 | 1678 | 2014-08-12 Marek Polacek <polacek@redhat.com> |
1679 | ||
1680 | * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>: | |
1681 | Add pedwarn. | |
1682 | (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>: | |
1683 | Likewise. | |
1684 | (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise. | |
1685 | ||
890c2e2f | 1686 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
1687 | ||
1688 | PR c/51849 | |
1689 | * c-decl.c (build_array_declarator): Remove check for !flag_isoc99. | |
1690 | Call pedwarn_c90 instead of pedwarn. | |
1691 | (check_bitfield_type_and_width): Likewise. | |
1692 | (declspecs_add_qual): Likewise. | |
1693 | (declspecs_add_type): Likewise. | |
1694 | (warn_variable_length_array): Unify function for -pedantic and -Wvla. | |
1695 | Adjust to only call pedwarn_c90. | |
1696 | (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call | |
1697 | pedwarn_c90 instead of pedwarn. | |
1698 | * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat. | |
1699 | * c-parser.c (disable_extension_diagnostics): Handle | |
1700 | warn_c90_c99_compat. | |
1701 | (restore_extension_diagnostics): Likewise. | |
1702 | (c_parser_enum_specifier): Remove check for !flag_isoc99. Call | |
1703 | pedwarn_c90 instead of pedwarn. | |
1704 | (c_parser_initelt): Likewise. | |
1705 | (c_parser_postfix_expression): Likewise. | |
1706 | (c_parser_postfix_expression_after_paren_type): Likewise. | |
1707 | (c_parser_compound_statement_nostart): Remove check for !flag_isoc99. | |
1708 | * c-tree.h: Fix formatting. | |
1709 | * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call | |
1710 | pedwarn_c90 instead of pedwarn. | |
1711 | ||
7149db5f | 1712 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
1713 | ||
1714 | * c-typeck.c: Remove include of pointer-set.h. | |
1715 | ||
1c75251e | 1716 | 2014-08-07 Marek Polacek <polacek@redhat.com> |
1717 | ||
1718 | * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization. | |
1719 | ||
06ecf488 | 1720 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
1721 | ||
1722 | * c-typeck.c: Use hash_map instead of pointer_map. | |
1723 | ||
431205b7 | 1724 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
1725 | ||
1726 | * c-decl.c: Use hash_set instead of pointer_set. | |
1727 | ||
3394c80c | 1728 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
1729 | ||
1730 | PR middle-end/61455 | |
1731 | * c-array-notation.c (expand_array_notations): Handling | |
1732 | of DECL_EXPR added. | |
1733 | ||
f22a2cb7 | 1734 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
1735 | ||
1736 | PR c++/60517 | |
1737 | * c-typeck.c (c_finish_return): Return 0 instead of the address of | |
1738 | a local variable. | |
1739 | ||
74691f46 | 1740 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
1741 | ||
1742 | * c-typeck.c (struct constructor_stack) <designator_depth>: New | |
1743 | field. | |
1744 | (really_start_incremental_init, push_init_level): Initialize | |
1745 | designator_depth. | |
1746 | (pop_init_level): Set global designator_depth. | |
1747 | (process_init_element): Check for designated_init attribute. | |
1748 | ||
f9767fb6 | 1749 | 2014-07-20 Marek Polacek <polacek@redhat.com> |
1750 | ||
1751 | PR c/61852 | |
1752 | * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it. | |
1753 | (implicitly_declare): Pass location to implicit_decl_warning. | |
1754 | ||
305d96bc | 1755 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
1756 | ||
1757 | PR middle-end/61294 | |
1758 | * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask. | |
1759 | If non-NULL, call c_parser_check_literal_zero. | |
1760 | (c_parser_check_literal_zero): New function. | |
1761 | (c_parser_postfix_expression_after_primary): Adjust | |
1762 | c_parser_expr_list caller, handle -Wmemset-transposed-args. | |
1763 | ||
87d59e72 | 1764 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
1765 | ||
1766 | PR c/6940 | |
1767 | * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER. | |
1768 | * c-tree.h (C_ARRAY_PARAMETER): Define. | |
1769 | * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array | |
1770 | function parameter. | |
1771 | ||
752098c8 | 1772 | 2014-07-02 Jan Hubicka <hubicka@ucw.cz> |
1773 | Chen Gang <gang.chen.5i5j@gmail.com> | |
1774 | ||
1775 | * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before | |
1776 | releasing symbol. | |
1777 | ||
1207866e | 1778 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
1779 | ||
1780 | * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion | |
1781 | instead of 0 to WARN_FOR_ASSIGNMENT. | |
1782 | ||
7a6bbb76 | 1783 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
1784 | ||
1785 | PR c/58286 | |
1786 | * c-typeck.c (convert_for_assignment): Pass | |
1787 | OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT. | |
1788 | ||
70575064 | 1789 | 2014-06-30 Marek Polacek <polacek@redhat.com> |
1790 | ||
1791 | * c-decl.c (grokdeclarator): Don't instrument VLAs if the function | |
1792 | has no_sanitize_undefined attribute. | |
1793 | ||
4879e4cf | 1794 | 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com> |
1795 | ||
1796 | PR middle-end/57541 | |
1797 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
1798 | Check for 0 arguments in builtin call. Check that bultin argument is | |
1799 | correct. | |
1800 | * c-parser.c (c_parser_array_notation): Check for incorrect initial | |
1801 | index. | |
1802 | ||
45c5b823 | 1803 | 2014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1804 | ||
1805 | * c-parser.c (c_parser_declaration_or_fndef): Discard all type | |
1806 | qualifiers in __auto_type for atomic types. | |
1807 | (c_parser_typeof_specifier): Discard all type qualifiers in | |
1808 | __typeof__ for atomic types. | |
1809 | ||
430b73ee | 1810 | 2014-06-25 Marek Polacek <polacek@redhat.com> |
1811 | ||
1812 | PR c/61162 | |
1813 | * c-parser.c (c_parser_statement_after_labels): Pass the location of | |
1814 | the return expression to c_finish_return. | |
1815 | ||
9580cb79 | 1816 | 2014-06-25 Jakub Jelinek <jakub@redhat.com> |
1817 | ||
1818 | * c-typeck.c (c_finish_omp_clauses): Make sure | |
1819 | OMP_CLAUSE_LINEAR_STEP has correct type. | |
1820 | ||
c1f445d2 | 1821 | 2014-06-24 Trevor Saunders <tsaunders@mozilla.com> |
1822 | ||
1823 | * c-decl.c: Adjust. | |
1824 | ||
e471cc6f | 1825 | 2014-06-24 Jakub Jelinek <jakub@redhat.com> |
1826 | ||
1827 | * c-parser.c (c_parser_omp_for_loop): For | |
1828 | #pragma omp parallel for simd move lastprivate clause from parallel | |
1829 | to for rather than simd. | |
1830 | ||
499b7390 | 1831 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
1832 | ||
1833 | * c-typeck.c (parser_build_binary_op): Don't call | |
1834 | warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR. | |
1835 | ||
5e68df57 | 1836 | 2014-06-15 Jan Hubicka <hubicka@ucw.cz> |
1837 | ||
1838 | * c-parser.c (c_parser_omp_threadprivate): Likewise. | |
1839 | * c-decl.c (merge_decls): Likewise. | |
1840 | ||
064b0d02 | 1841 | 2014-06-09 Marek Polacek <polacek@redhat.com> |
1842 | ||
1843 | PR c/36446 | |
1844 | * c-typeck.c (error_init): Call inform instead of error_at. | |
1845 | (pedwarn_init): Call inform instead of pedwarn. | |
1846 | (warning_init): Call inform instead of warning_at. | |
1847 | ||
71e19e54 | 1848 | 2014-06-07 Jan Hubicka <hubicka@ucw.cz> |
1849 | ||
1850 | * c-decl.c (merge_decls): Use set_decl_section_name. | |
1851 | (duplicate_decls): Remove node if it exists. | |
1852 | ||
95cdf3fd | 1853 | 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu> |
1854 | ||
1855 | PR c/53119 | |
1856 | * c-typeck.c (push_init_level, process_init_element, | |
1857 | pop_init_level): Correct check for zero initialization, move | |
1858 | missing brace warning to respect zero initialization. | |
1859 | ||
a07f86a6 | 1860 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
1861 | ||
1862 | PR c/56724 | |
1863 | * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass. | |
1864 | ||
32dc1512 | 1865 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
1866 | ||
1867 | PR c/49706 | |
1868 | * c-typeck.c (parser_build_binary_op): Warn when logical not is used | |
1869 | on the left hand side operand of a comparison. | |
1870 | ||
64cf1262 | 1871 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
1872 | ||
1873 | PR c/48062 | |
1874 | * c-decl.c (warn_if_shadowing): Call inform instead of warning_at. | |
1875 | Print note only if the warning was printed. | |
1876 | ||
071f6d39 | 1877 | 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com> |
1878 | ||
1879 | PR c/58942 | |
1880 | * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case | |
1881 | with a pointer. | |
1882 | ||
c69ec07d | 1883 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
1884 | ||
1885 | PR c/60439 | |
1886 | * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to | |
1887 | c_start_case. | |
1888 | * c-tree.h (c_start_case): Update. | |
1889 | * c-typeck.c (c_start_case): Add new boolean parameter. Warn if | |
1890 | switch condition has boolean value. | |
1891 | ||
f7715905 | 1892 | 2014-06-02 Andrew MacLeod <amacleod@redhat.com> |
1893 | ||
1894 | * c-decl.c: Include builtins.h. | |
1895 | * c-parser.c: Likewise. | |
1896 | ||
dcfff6f9 | 1897 | 2014-05-27 Marek Polacek <polacek@redhat.com> |
1898 | ||
1899 | PR c/56724 | |
1900 | * c-typeck.c (convert_arguments): Get location of a parameter. Change | |
1901 | error and warning calls to error_at and warning_at. Pass location of | |
1902 | a parameter to it. Call warning_at with OPT_Wtraditional_conversion. | |
1903 | (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and | |
1904 | WARN_FOR_QUALIFIERS. Pass expr_loc to those. | |
1905 | ||
c048c42c | 1906 | 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com> |
1907 | ||
1908 | PR c/61191 | |
1909 | * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid | |
1910 | function parameters. | |
1911 | ||
8c016392 | 1912 | 2014-05-23 Jan Hubicka <hubicka@ucw.cz> |
1913 | ||
1914 | * c-decl.c (merge_decls): Preserve symtab node pointers. | |
1915 | (duplicate_decls): Free new decl. | |
1916 | ||
184a718f | 1917 | 2014-05-23 Thomas Schwinge <thomas@codesourcery.com> |
1918 | ||
6ce915ef | 1919 | * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable |
1920 | initialization. | |
1921 | ||
184a718f | 1922 | * c-parser.c (c_parser_omp_target): Return bool values. |
1923 | ||
22ac3f78 | 1924 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
1925 | ||
1926 | * c-parser.c (c_parser_omp_clause_thread_limit): Rename | |
1927 | num_teams_loc variable to num_thread_limit_loc. | |
1928 | ||
3ab4693e | 1929 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
1930 | ||
1931 | * c-array-notation.c (expand_array_notations): Use void_node | |
1932 | instead of void_zero_node. | |
1933 | ||
25a27413 | 1934 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
1935 | ||
1936 | * c-decl.c (finish_struct): Adjust. | |
1937 | (finish_enum): Likewise. | |
1938 | (bind): Adjust. | |
1939 | (record_inline_static): Likewise. | |
1940 | (push_scope): Likewise. | |
1941 | (make_label): Likewise. | |
1942 | (lookup_label_for_goto): Likewise. | |
1943 | (finish_struct): Likewise. | |
1944 | (finish_enum): Likewise. | |
1945 | (store_parm_decls): Likewise. | |
1946 | (c_push_function_context): Likewise. | |
1947 | * c-lang.h: Remove usage of variable_size gty attribute. | |
1948 | * c-parser.c (c_parse_init): Adjust. | |
1949 | (c_parse_file): Likewise. | |
1950 | ||
172b8440 | 1951 | 2014-05-13 Marek Polacek <polacek@redhat.com> |
1952 | ||
1953 | PR c/61162 | |
1954 | * c-typeck.c (convert_for_assignment): Pass location to | |
1955 | WARN_FOR_ASSIGNMENT instead of input_location. | |
1956 | ||
c9e51d25 | 1957 | 2014-05-10 Marek Polacek <polacek@redhat.com> |
1958 | ||
1959 | * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to | |
1960 | maybe_warn_string_init. | |
1961 | (c_parser_postfix_expression_after_paren_type): Pass type_loc to | |
1962 | maybe_warn_string_init. | |
1963 | * c-tree.h (maybe_warn_string_init): Update declaration. | |
1964 | * c-typeck.c (maybe_warn_string_init): Add location parameter. | |
1965 | Call pedwarn_init with loc instead of with input_location. | |
1966 | (digest_init): Pass init_loc to maybe_warn_string_init. | |
1967 | (pop_init_level): Call pedwarn_init with loc instead of with | |
1968 | input_location. | |
1969 | (set_init_index): Likewise. | |
1970 | (process_init_element): Likewise. | |
1971 | ||
53de1631 | 1972 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
1973 | ||
1974 | PR c/61096 | |
1975 | * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level. | |
1976 | (c_parser_initelt): Pass location to set_init_label. Pass array index | |
1977 | location to set_init_index. | |
1978 | * c-tree.h (push_init_level): Update declaration. | |
1979 | (pop_init_level): Likewise. | |
1980 | (set_init_index): Likewise. | |
1981 | (set_init_label): Likewise. | |
1982 | * c-typeck.c (error_init): Add location parameter. Call error_at | |
1983 | instead of error. | |
1984 | (digest_init): Pass init_loc to error_init. | |
1985 | (really_start_incremental_init): | |
1986 | (push_init_level): Add location parameter. Pass loc to pop_init_level | |
1987 | and error_init. | |
1988 | (pop_init_level): Likewise. | |
1989 | (set_designator): Add location parameter. Pass loc to pop_init_level, | |
1990 | push_init_level, and error_init. | |
1991 | (set_init_index): Add location parameter. Pass loc to error_init and | |
1992 | set_designator. | |
1993 | (set_init_label): Likewise. | |
1994 | (output_init_element): Pass loc to error_init. | |
1995 | (process_init_element): Pass loc to error_init, pop_init_level, | |
1996 | pedwarn_init, and push_init_level. | |
1997 | ||
3e5a8b00 | 1998 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
1999 | ||
2000 | PR c/50459 | |
2001 | * c-parser.c (c_parser_attributes): Parse the arguments as an | |
2002 | expression-list if the attribute takes identifier. | |
2003 | ||
c2c4ae8d | 2004 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
2005 | ||
2006 | PR c/61053 | |
2007 | * c-decl.c (grokdeclarator): Use min_align_of_type instead of | |
2008 | TYPE_ALIGN_UNIT. | |
2009 | ||
2026249a | 2010 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
2011 | ||
2012 | PR c/61077 | |
2013 | * c-decl.c (start_function): Warn for _Atomic-qualified return type | |
2014 | of main. | |
2015 | ||
960d5a55 | 2016 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
2017 | Mike Stump <mikestump@comcast.net> | |
2018 | Richard Sandiford <rdsandiford@googlemail.com> | |
2019 | ||
2020 | * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN. | |
2021 | (finish_enum): Use wide-int interfaces. | |
2022 | * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise. | |
2023 | * c-typeck.c (build_c_cast): Likewise. | |
2024 | (set_nonincremental_init_from_string): Likewise. | |
2025 | (c_tree_equal): Likewise. | |
2026 | ||
e0e14cbd | 2027 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
2028 | ||
2029 | PR c/25801 | |
2030 | * c-typeck.c (c_size_in_bytes): Update comment. Don't call error. | |
2031 | Return size_one_node when the type is not complete. | |
2032 | (pointer_diff): Remove comment. | |
2033 | (build_unary_op): Improve error messages. | |
2034 | ||
27ff10cb | 2035 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
2036 | ||
2037 | * c-typeck.c (c_finish_return): Separate warning_at calls. | |
2038 | ||
68410ce9 | 2039 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
2040 | ||
2041 | * c-tree.h (error_init): Remove declaration. | |
2042 | (pedwarn_init): Likewise. | |
2043 | * c-typeck.c (error_init): Make static and move above. | |
2044 | (pedwarn_init): Likewise. | |
2045 | (warning_init): Move above. | |
2046 | (maybe_warn_string_init): Likewise. | |
2047 | ||
e8e27117 | 2048 | 2014-05-01 Jeff Law <law@redhat.com> |
2049 | ||
2050 | Revert: | |
2051 | ||
2052 | 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> | |
2053 | * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to | |
2054 | avoid goto. | |
2055 | ||
971df357 | 2056 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
2057 | ||
2058 | PR c/60784 | |
2059 | * c-typeck.c (push_init_level): Set constructor_designated to | |
2060 | p->designated for structures. | |
2061 | ||
de548fe5 | 2062 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2063 | ||
2064 | PR c/60915 | |
2065 | * c-parser.c (c_parser_declaration_or_fndef): Give better error if | |
2066 | function-definition has an attribute after the declarator. | |
2067 | ||
053a0ded | 2068 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2069 | ||
2070 | PR c/60257 | |
2071 | * c-typeck.c (warning_init): Add location_t parameter. Call | |
2072 | warning_at instead of warning. | |
2073 | (push_init_level): Pass input_location to warning_init. | |
2074 | (add_pending_init): Add location_t parameter. Pass loc to | |
2075 | warning_init. | |
2076 | (set_nonincremental_init): Pass input_location to add_pending_init. | |
2077 | (set_nonincremental_init_from_string): Likewise. | |
2078 | (output_init_element): Pass loc to warning_init and to | |
2079 | add_pending_init. | |
2080 | ||
694296f2 | 2081 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2082 | ||
2083 | PR c/43395 | |
2084 | * c-typeck.c (c_finish_return): Distinguish between label and variable | |
2085 | when warning about returning local address. | |
2086 | ||
86bbd7f9 | 2087 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2088 | ||
2089 | PR c/29467 | |
2090 | * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used | |
2091 | in C89 mode. | |
2092 | ||
e4ab2ef3 | 2093 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2094 | ||
2095 | PR c/43245 | |
2096 | * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers | |
2097 | instead of 0 to WARN_FOR_QUALIFIERS. | |
2098 | ||
ca3999cb | 2099 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2100 | ||
2101 | PR c/56989 | |
2102 | * c-typeck.c (default_conversion): Use better location for | |
2103 | error call. | |
2104 | ||
52cc0072 | 2105 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
2106 | ||
2107 | * c-typeck.c (build_binary_op): Call ubsan_instrument_division | |
2108 | also when SANITIZE_FLOAT_DIVIDE is on. | |
2109 | ||
af379dd3 | 2110 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
2111 | ||
2112 | PR c/60139 | |
2113 | * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn | |
2114 | and pedwarn_init. Use loc insted of input_location. | |
2115 | ||
b069c2a0 | 2116 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
2117 | ||
2118 | PR c/60351 | |
2119 | * c-typeck.c (build_binary_op): Use location when warning about | |
2120 | shift count. | |
2121 | ||
4a026b48 | 2122 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
2123 | ||
2124 | PR c/18079 | |
2125 | * c-decl.c (diagnose_mismatched_decls): Warn for mismatched | |
2126 | always_inline/noinline and hot/cold attributes. | |
2127 | ||
adc93f31 | 2128 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
2129 | ||
2130 | PR c/60114 | |
2131 | * c-parser.c (c_parser_initelt): Pass input_location to | |
2132 | process_init_element. | |
2133 | (c_parser_initval): Pass loc to process_init_element. | |
2134 | * c-tree.h (process_init_element): Adjust declaration. | |
2135 | * c-typeck.c (push_init_level): Pass input_location to | |
2136 | process_init_element. | |
2137 | (pop_init_level): Likewise. | |
2138 | (set_designator): Likewise. | |
2139 | (output_init_element): Add location_t parameter. Pass loc to | |
2140 | digest_init. | |
2141 | (output_pending_init_elements): Pass input_location to | |
2142 | output_init_element. | |
2143 | (process_init_element): Add location_t parameter. Pass loc to | |
2144 | output_init_element. | |
2145 | ||
e1029911 | 2146 | 2014-04-24 Jakub Jelinek <jakub@redhat.com> |
2147 | ||
2148 | * c-parser.c (c_parser_omp_atomic): Allow seq_cst before | |
2149 | atomic-clause, allow comma in between atomic-clause and | |
2150 | seq_cst. | |
2151 | ||
9f0a7bc6 | 2152 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
2153 | ||
2154 | PR c/59073 | |
2155 | * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for | |
2156 | fails, don't set OM_PARALLEL_COMBINED and return NULL. | |
2157 | ||
094da06d | 2158 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
2159 | ||
2160 | PR middle-end/60469 | |
2161 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
2162 | create_tmp_var instead build_decl for creating temps. | |
2163 | (build_array_notation_expr): Likewise. | |
2164 | (fix_conditional_array_notations_1): Likewise. | |
2165 | (fix_array_notation_expr): Likewise. | |
2166 | (fix_array_notation_call_expr): Likewise. | |
2167 | ||
5a672e62 | 2168 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
2169 | ||
2170 | PR c++/60689 | |
2171 | * c-tree.h (c_build_function_call_vec): New prototype. | |
2172 | * c-typeck.c (build_function_call_vec): Don't call | |
2173 | resolve_overloaded_builtin here. | |
2174 | (c_build_function_call_vec): New wrapper function around | |
2175 | build_function_call_vec. Call resolve_overloaded_builtin here. | |
2176 | (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign): | |
2177 | Call c_build_function_call_vec instead of build_function_call_vec. | |
2178 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
2179 | * c-decl.c (finish_decl): Likewise. | |
2180 | ||
f40f5e0e | 2181 | 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2182 | ||
2183 | PR c/55383 | |
2184 | * c-typeck.c: Use correct format string in cast-qual warning | |
2185 | ||
9ec099a3 | 2186 | 2014-03-07 Thomas Schwinge <thomas@codesourcery.com> |
2187 | ||
2188 | * c-decl.c (c_decl_attributes): Use | |
2189 | lang_hooks.types.omp_mappable_type. | |
2190 | * c-typeck.c (c_finish_omp_clauses): Likewise. | |
2191 | ||
3bfdc94f | 2192 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
2193 | ||
2194 | PR c/60197 | |
2195 | * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead | |
2196 | of checking tree code. | |
2197 | ||
8f1128f8 | 2198 | 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
2199 | ||
2200 | * c-parser.c (c_parser_declspecs): Replace call to error by error_at. | |
2201 | (c_parser_parameter_declaration): Likewise. | |
2202 | ||
977b1853 | 2203 | 2014-02-19 Marek Polacek <polacek@redhat.com> |
2204 | ||
2205 | PR c/60195 | |
2206 | * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp. | |
2207 | Call mark_exp_read on exp.value. | |
2208 | (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set | |
2209 | TREE_ADDRESSABLE on old instead of val. | |
2210 | (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING. | |
2211 | ||
825cd6ef | 2212 | 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
2213 | ||
2214 | * c-parser.c (c_parser_get_builtin_args): Replace calls to | |
2215 | C_EXPR_APPEND by vec_safe_push. | |
2216 | * c-tree.h (C_EXPR_APPEND): Remove. | |
2217 | ||
ec761d5a | 2218 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
2219 | ||
2220 | PR c/59963 | |
2221 | * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to | |
2222 | build_function_call_vec. | |
2223 | (build_function_call): Likewise. | |
2224 | (build_atomic_assign): Likewise. | |
2225 | (build_function_call_vec): Add arg_loc parameter. Use it. | |
2226 | (convert_arguments): Likewise. | |
2227 | (convert_for_assignment): Rename rhs_loc to expr_loc. | |
2228 | * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list. | |
2229 | (c_parser_objc_keywordexpr): Likewise. | |
2230 | (c_parser_postfix_expression_after_primary): Call | |
2231 | build_function_call_vec with expr_loc rather than op_loc. | |
2232 | Call c_parser_expr_list to fill arg_loc. Pass arg_loc to | |
2233 | build_function_call_vec. | |
2234 | (c_parser_expr_list): Add locations parameter. Fill it with locations | |
2235 | of function arguments. | |
2236 | * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec. | |
2237 | ||
22a75734 | 2238 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
2239 | ||
2240 | PR c/59940 | |
2241 | * c-typeck.c (build_function_call_vec): Use loc parameter. | |
2242 | (convert_arguments): Add location parameter. Use it. | |
2243 | (ep_convert_and_check): Likewise. | |
2244 | (build_atomic_assign): Adjust convert_for_assignment call. | |
2245 | (build_modify_expr): Likewise. | |
2246 | (digest_init): Likewise. | |
2247 | (c_finish_return): Likewise. | |
2248 | (build_conditional_expr): Adjust ep_convert_and_check calls. | |
2249 | (convert_for_assignment): Add rhs_loc parameter. Use it. | |
2250 | (build_binary_op): Adjust convert_and_check and ep_convert_and_check | |
2251 | calls. | |
2252 | ||
29f580ac | 2253 | 2014-01-30 Richard Biener <rguenther@suse.de> |
2254 | ||
2255 | PR c/59905 | |
2256 | * c-typeck.c (build_function_call_vec): Do not replace calls | |
2257 | to a function via an incompatible type with a runtime abort. | |
2258 | ||
a89e6c15 | 2259 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2260 | ||
2261 | * c-parser.c (c_parser_declaration_or_fndef): Replaced | |
2262 | flag_enable_cilkplus with flag_cilkplus. | |
2263 | (c_parser_direct_declarator_inner): Likewise. | |
2264 | (c_parser_attribute_any_word): Likewise. | |
2265 | (c_parser_attributes): Likewise. | |
2266 | (c_parser_compound_statement): Likewise. | |
2267 | (c_parser_statement_after_labels): Likewise. | |
2268 | (c_parser_if_statement): Likewise. | |
2269 | (c_parser_switch_statement): Likewise. | |
2270 | (c_parser_do_statement): Likewise. | |
2271 | (c_parser_for_statement): Likewise. | |
2272 | (c_parser_unary_expression): Likewise. | |
2273 | (c_parser_postfix_expression): Likewise. | |
2274 | (c_parser_postfix_expression_after_primary): Likewise. | |
2275 | (c_parser_postfix_expression_after_primary): Likewise. | |
2276 | (c_parser_omp_clause_name): Likewise. | |
2277 | (c_finish_omp_declare_simd): Likewise. | |
2278 | (c_parser_cilk_verify_simd): Likewise. | |
2279 | * c-typeck.c (build_array_ref): Likewise. | |
2280 | (build_function_call_vec): Likewise. | |
2281 | (convert_arguments): Likewise. | |
2282 | (build_compound_expr): Likewise. | |
2283 | (c_finish_return): Likewise. | |
2284 | (c_finish_if_stmt): Likewise. | |
2285 | (c_finish_loop): Likewise. | |
2286 | (build_binary_op): Likewise. | |
2287 | ||
2623625f | 2288 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
2289 | ||
2290 | PR c/59846 | |
2291 | * c-typeck.c (parser_build_binary_op): Use location instead of | |
2292 | input_location. | |
2293 | (build_binary_op): Pass location to shorten_compare. | |
2294 | ||
46da3601 | 2295 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
2296 | ||
2297 | PR c/58346 | |
2298 | * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to | |
2299 | an empty aggregate. | |
2300 | ||
9a9db3c1 | 2301 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
2302 | ||
2303 | PR c/59871 | |
2304 | * c-typeck.c (build_compound_expr): Warn even for right-hand operand | |
2305 | of a comma expression. | |
2306 | (emit_side_effect_warnings): Likewise. | |
2307 | ||
69c9b607 | 2308 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2309 | ||
2310 | PR c/59825 | |
2311 | * c-array-notation.c (expand_array_notation_exprs): Rewrote this | |
2312 | function to use walk_tree and moved a lot of its functionality to | |
2313 | expand_array_notations. | |
2314 | (expand_array_notations): New function. | |
2315 | ||
7e005ab5 | 2316 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2317 | ||
2318 | * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function" | |
2319 | attribute an attribute without value. | |
2320 | ||
d6779b5f | 2321 | 2014-01-23 Jakub Jelinek <jakub@redhat.com> |
2322 | ||
2323 | PR middle-end/58809 | |
2324 | * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR, | |
2325 | BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs. | |
2326 | ||
ec431042 | 2327 | 2014-01-22 Marek Polacek <polacek@redhat.com> |
2328 | ||
2329 | PR c/59891 | |
2330 | * c-typeck.c (build_conditional_expr): Call c_fully_fold instead | |
2331 | of remove_c_maybe_const_expr on op1 and op2. | |
2332 | ||
1248c663 | 2333 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
2334 | ||
2335 | PR c/58943 | |
2336 | * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side | |
2337 | effects, preevaluate rhs using SAVE_EXPR first. | |
2338 | ||
0bc789fc | 2339 | 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2340 | ||
2341 | PR c++/59631 | |
2342 | * c-parser.c (c_parser_postfix_expression): Replaced consecutive if | |
2343 | statements with if-elseif statements. | |
2344 | ||
6685d11c | 2345 | 2014-01-06 Marek Polacek <polacek@redhat.com> |
2346 | ||
2347 | PR c/57773 | |
2348 | * c-decl.c (check_bitfield_type_and_width): Warn for implementation | |
2349 | defined bit-field types only in ISO C. | |
2350 | ||
3aea1f79 | 2351 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
2352 | ||
2353 | Update copyright years | |
2354 | ||
e4f22041 | 2355 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
2356 | ||
2357 | * c-array-notation.c: Use the standard form for the copyright notice. | |
2358 | ||
74acc703 | 2359 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2360 | ||
2361 | * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field. | |
2362 | (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens | |
2363 | field in parser is not empty. If not-empty, call the function | |
2364 | c_parser_finish_omp_declare_simd. | |
2365 | (c_parser_cilk_clause_vectorlength): Modified function to be shared | |
2366 | between SIMD-enabled functions and #pragma simd. Added new parameter. | |
2367 | (c_parser_cilk_all_clauses): Modified the usage of the function | |
2368 | c_parser_cilk_clause_vectorlength as mentioned above. | |
2369 | (c_parser_cilk_simd_fn_vector_attrs): New function. | |
2370 | (c_finish_cilk_simd_fn_tokens): Likewise. | |
2371 | (is_cilkplus_vector_p): Likewise. | |
2372 | (c_parser_omp_clause_name): Added checking for "vectorlength," | |
2373 | "nomask," and "mask" strings in clause name. | |
2374 | (c_parser_omp_all_clauses): Added 3 new case statements: | |
2375 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and | |
2376 | PRAGMA_CILK_CLAUSE_NOMASK. | |
2377 | (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a | |
2378 | check for vector attribute and if so call the function | |
2379 | c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled, | |
2380 | called the function c_finish_cilk_simd_fn_tokens. | |
2381 | (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in | |
2382 | parser field is non-empty. If so, parse them as you would parse | |
2383 | the omp declare simd pragma. | |
2384 | (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn. | |
2385 | Added a check when step is a parameter and flag it as error. | |
2386 | (CILK_SIMD_FN_CLAUSE_MASK): New #define. | |
2387 | (c_parser_cilk_clause_name): Changed pragma_cilk_clause to | |
2388 | pragma_omp_clause. | |
2389 | ||
395dc01c | 2390 | 2013-12-17 Thomas Schwinge <thomas@codesourcery.com> |
2391 | ||
2392 | * c-parser.c (c_parser_omp_parallel): Fix description. | |
2393 | ||
433e804e | 2394 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2395 | ||
2396 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove. | |
2397 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
2398 | (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise. | |
2399 | * c-typeck.c (cilk_install_body_with_frame_cleanup): New function. | |
2400 | ||
a179a7dc | 2401 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
2402 | ||
2403 | PR c/52023 | |
2404 | * c-parser.c (c_parser_alignas_specifier): Use | |
2405 | c_sizeof_or_alignof_type instead of c_alignof. | |
2406 | (c_parser_alignof_expression): Likewise, with min_alignof | |
2407 | parameter depending on alignof spelling used. | |
2408 | ||
bdf1e3c7 | 2409 | 2013-12-04 Marek Polacek <polacek@redhat.com> |
2410 | ||
2411 | PR c/54113 | |
2412 | * c-decl.c (start_function): Don't warn for missing prototype for | |
2413 | inline functions. | |
2414 | ||
05e8f674 | 2415 | 2013-12-03 Marek Polacek <polacek@redhat.com> |
2416 | ||
2417 | PR c/59351 | |
2418 | * c-decl.c (build_compound_literal): Allow compound literals with | |
2419 | empty initial value. | |
2420 | ||
39f74d66 | 2421 | 2013-12-02 Joseph Myers <joseph@codesourcery.com> |
2422 | ||
2423 | PR c/58235 | |
2424 | * c-typeck.c (build_modify_expr): Diagnose assignment to | |
2425 | expression with array type. | |
2426 | ||
f221adca | 2427 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
2428 | ||
2429 | PR c/42262 | |
2430 | * c-typeck.c (process_init_element): Do not treat a string as | |
2431 | initializing a whole array when used with a designator for an | |
2432 | individual element. | |
2433 | ||
75bce827 | 2434 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
2435 | ||
2436 | PR c/57574 | |
2437 | * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of | |
2438 | an inline function following a static declaration. | |
2439 | ||
dc133326 | 2440 | 2013-11-28 Jakub Jelinek <jakub@redhat.com> |
2441 | ||
2442 | PR c/59310 | |
2443 | * c-parser.c (c_parser_omp_target): Copy "#pragma omp target" | |
2444 | to p_name before calling c_parser_omp_teams instead of after. | |
2445 | (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser | |
2446 | argument. Remove unused p_name variable. | |
2447 | ||
d09768a4 | 2448 | 2013-11-27 Aldy Hernandez <aldyh@redhat.com> |
2449 | Jakub Jelinek <jakub@redhat.com> | |
2450 | ||
2451 | * c-decl.c (c_builtin_function_ext_scope): Avoid binding if | |
2452 | external_scope is NULL. | |
2453 | ||
73fd9cbe | 2454 | 2013-11-27 Tom de Vries <tom@codesourcery.com> |
2455 | Marc Glisse <marc.glisse@inria.fr> | |
2456 | ||
2457 | PR c++/59032 | |
2458 | * c-typeck.c (build_unary_op): Allow vector increment and decrement. | |
2459 | ||
bc61cadb | 2460 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
2461 | ||
2462 | * c-typeck.c: Add required include files from gimple.h. | |
2463 | ||
3df42822 | 2464 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
2465 | ||
2466 | * c-decl.c (define_label, shadow_tag_warned) | |
2467 | (check_bitfield_type_and_width, grokdeclarator, grokparms, | |
2468 | store_parm_decls_newstyle, store_parm_decls_oldstyle) | |
2469 | (declspecs_add_type): Remove use of in_system_header macro. | |
2470 | * c-parser.c (c_parser_unary_expression): Likewise. | |
2471 | * c-typeck.c (store_init_value, process_init_element) | |
2472 | (c_start_case): Likewise. | |
2473 | ||
2474 | * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE | |
2475 | macro. | |
2476 | ||
2477 | * c-parser.c (c_parser_set_source_position_from_token): Remove | |
2478 | reference to in_system_header from comment. | |
2479 | ||
08f817b3 | 2480 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
2481 | ||
2482 | * c-decl.c (grokdeclarator): Update comment to refer to | |
2483 | tree_to_[su]hwi rather than tree_low_cst. | |
2484 | ||
6a0712d4 | 2485 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
2486 | ||
2487 | * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with | |
2488 | tree_to_uhwi throughout. | |
2489 | ||
fcb97e84 | 2490 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
2491 | ||
2492 | * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi | |
2493 | throughout. | |
2494 | ||
35ec552a | 2495 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
2496 | ||
2497 | * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p | |
2498 | throughout. | |
2499 | ||
f2697631 | 2500 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
2501 | ||
2502 | * c-parser.c (c_parser_cilk_simd): New. | |
2503 | (c_parser_cilk_verify_simd): New. | |
2504 | (c_parser_pragma): Add case for PRAGMA_CILK_SIMD. | |
2505 | (c_parser_omp_for_loop): Add case for NE_EXPR. | |
2506 | Set c_break_label for CILK_SIMD. | |
2507 | (c_parser_cilk_clause_vectorlength): New. | |
2508 | (c_parser_cilk_clause_linear): New. | |
2509 | (c_parser_cilk_clause_name): New. | |
2510 | (c_parser_cilk_all_clauses): New. | |
2511 | * c-typeck.c (build_unary_op): Pass location argument to | |
2512 | readonly_error. | |
2513 | (build_modify_expr): Same. | |
2514 | (build_asm_expr): Same. | |
2515 | (c_finish_bc_stmt): Error on break/continue in loops. | |
2516 | ||
e795d6e1 | 2517 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
2518 | ||
2519 | * c-typeck.c: Include only gimplify.h and gimple.h as needed. | |
2520 | ||
9ed99284 | 2521 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
2522 | ||
2523 | * c-decl.c: Include print-tree.h. | |
2524 | Include stor-layout.h. | |
2525 | Include varasm.h. | |
2526 | Include attribs.h. | |
2527 | Include stringpool.h. | |
2528 | * c-lang.c: Include fold-const.h. | |
2529 | * c-parser.c: Include stringpool.h. | |
2530 | Include attribs.h. | |
2531 | Include stor-layout.h. | |
2532 | Include varasm.h. | |
2533 | Include trans-mem.h. | |
2534 | * c-typeck.c: Include stor-layout.h. | |
2535 | Include trans-mem.h. | |
2536 | Include varasm.h. | |
2537 | Include stmt.h. | |
2538 | ||
4fba5eb9 | 2539 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
2540 | ||
2541 | * c-tree.h (c_typespec_keyword): Add cts_auto_type. | |
2542 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle | |
2543 | __auto_type. | |
2544 | * c-parser.c (c_token_starts_typename, c_token_starts_declspecs) | |
2545 | (c_parser_attribute_any_word, c_parser_objc_selector): Handle | |
2546 | RID_AUTO_TYPE. | |
2547 | (c_parser_declspecs): Take argument AUTO_TYPE_OK. | |
2548 | (c_parser_declaration_or_fndef, c_parser_struct_declaration) | |
2549 | (c_parser_declarator, c_parser_direct_declarator_inner) | |
2550 | (c_parser_parameter_declaration, c_parser_type_name): All callers | |
2551 | changed. | |
2552 | (c_parser_declaration_or_fndef): Handle declarations with type | |
2553 | determined from the initializer. | |
2554 | ||
a8783bee | 2555 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
2556 | ||
e795d6e1 | 2557 | * c-typeck.c: Include gimplify.h. |
a8783bee | 2558 | |
d184e0c0 | 2559 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
2560 | ||
2561 | * c-tree.h (struct c_declspecs): Add thread_gnu_p field. | |
2562 | * c-parser.c (c_parser_declspecs): Mention _Thread_local in | |
2563 | comment. | |
2564 | * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread | |
2565 | or _Thread_local as appropriate in diagnostics. | |
2566 | (build_null_declspecs): Initialize ret->thread_gnu_p. | |
2567 | (declspecs_add_scspec): Handle either __thread or _Thread_local | |
2568 | for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if | |
2569 | pedantic. Do not disallow _Thread_local extern and _Thread_local | |
2570 | static. | |
2571 | ||
b560fabd | 2572 | 2013-11-07 Joseph Myers <joseph@codesourcery.com> |
2573 | Andrew MacLeod <amacleod@redhat.com> | |
2574 | ||
2575 | * c-aux-info.c (gen_type): Handle atomic qualifier. | |
2576 | * c-decl.c (validate_proto_after_old_defn): Do not remove atomic | |
2577 | qualifiers when compating types. | |
2578 | (shadow_tag_warned): Handle atomic_p in declspecs. | |
2579 | (quals_from_declspecs): Likewise. | |
2580 | (start_decl): Use c_type_promotes_to when promoting argument | |
2581 | types. | |
2582 | (grokdeclarator): Handle _Atomic. | |
2583 | (get_parm_info): Diagnose any qualifier on "void" as only | |
2584 | parameter. | |
2585 | (store_parm_decls_oldstyle): Do not remove atomic qualifiers when | |
2586 | comparing types. Use c_type_promotes_to when promoting argument | |
2587 | types. | |
2588 | (finish_function): Use c_type_promotes_to when promoting argument | |
2589 | types. | |
2590 | (build_null_declspecs): Handle atomic_p in declspecs. | |
2591 | (declspecs_add_qual): Handle RID_ATOMIC. | |
2592 | * c-parser.c (c_token_starts_typename, c_token_is_qualifier) | |
2593 | (c_token_starts_declspecs): Handle RID_ATOMIC. | |
2594 | (c_parser_declspecs): Handle atomic type specifiers and | |
2595 | qualifiers. | |
2596 | (c_parser_typeof_specifier): Remove const and _Atomic qualifiers | |
2597 | from types of expressions with atomic type. | |
2598 | (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. | |
2599 | (c_parser_attribute_any_word): Handle RID_ATOMIC. | |
2600 | (c_parser_initializer, c_parser_initelt, c_parser_initval) | |
2601 | (c_parser_statement_after_labels, c_parser_switch_statement) | |
2602 | (c_parser_for_statement, c_parser_expr_no_commas) | |
2603 | (c_parser_conditional_expression, c_parser_binary_expression) | |
2604 | (c_parser_cast_expression, c_parser_unary_expression) | |
2605 | (c_parser_postfix_expression) | |
2606 | (c_parser_postfix_expression_after_primary, c_parser_expression): | |
2607 | Use convert_lvalue_to_rvalue. | |
2608 | (c_parser_expression_conv, c_parser_expr_list): Document | |
2609 | conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. | |
2610 | (c_parser_objc_synchronized_statement): Use | |
2611 | convert_lvalue_to_rvalue. | |
2612 | (c_parser_objc_selector): Handle RID_ATOMIC. | |
2613 | (c_parser_objc_receiver, c_parser_array_notation): Use | |
2614 | convert_lvalue_to_rvalue. | |
2615 | * c-tree.h (ctsk_typeof): Adjust comment to mention use for | |
2616 | _Atomic (type-name). | |
2617 | (struct c_declspecs): Add atomic_p field. | |
2618 | (convert_lvalue_to_rvalue): Declare. | |
2619 | * c-typeck.c (c_type_promotes_to): Promote atomic types to | |
2620 | corresponding atomic types. | |
2621 | (qualify_type): Don't add _Atomic qualifiers from second argument. | |
2622 | (comp_target_types): Do not allow _Atomic mismatches. | |
2623 | (type_lists_compatible_p): Do not remove atomic qualifiers when | |
2624 | comparing types. | |
2625 | (really_atomic_lvalue, convert_lvalue_to_rvalue) | |
2626 | (build_atomic_assign): New functions. | |
2627 | (build_unary_op): Use build_atomic_assign for atomic increment and | |
2628 | decrement. | |
2629 | (build_conditional_expr): Do not treat _Atomic void as a qualified | |
2630 | version of void. | |
2631 | (build_modify_expr): Use build_atomic_assign for atomic LHS. | |
2632 | (find_anonymous_field_with_type, convert_to_anonymous_field) | |
2633 | (convert_for_assignment): Do not remove atomic qualifiers when | |
2634 | comparing types. | |
2635 | (digest_init): Do not accept initialization of arrays of atomic | |
2636 | elements by string constants. | |
2637 | (build_asm_expr): Use convert_lvalue_to_rvalue. | |
2638 | (build_binary_op): Do not treat _Atomic void as a qualified | |
2639 | version of void. | |
2640 | ||
8b023e7c | 2641 | 2013-11-06 DJ Delorie <dj@redhat.com> |
2642 | ||
2643 | * c-decl.c (locate_old_decl): If a previous conflicting decl is | |
2644 | both explicit and builtin, print the location of the explicit one. | |
2645 | ||
c630ef93 | 2646 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
2647 | ||
2648 | * c-parser.c (c_parser_omp_for, c_parser_omp_parallel, | |
2649 | c_parser_omp_distribute, c_parser_omp_teams, | |
2650 | c_parser_omp_target, c_parser_omp_declare): Handle | |
2651 | -fopenmp-simd. | |
2652 | ||
2c4c3477 | 2653 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
2654 | ||
2655 | * c-decl.c (grokdeclarator): Add VLA instrumentation. | |
2656 | ||
df205251 | 2657 | 2013-11-01 Jakub Jelinek <jakub@redhat.com> |
2658 | ||
2659 | * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to | |
2660 | check_dup_generic at the end, unless remove is true. | |
2661 | (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after | |
2662 | remove = true;. | |
2663 | (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise. | |
2664 | ||
23871d0c | 2665 | 2013-10-31 Jakub Jelinek <jakub@redhat.com> |
2666 | ||
2667 | * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause | |
2668 | with decl that is not pointer nor array. | |
2669 | ||
d037099f | 2670 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2671 | ||
2672 | * c-decl.c (finish_function): Added a call for insert_cilk_frame when | |
2673 | a spawning function is found. | |
2674 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define. | |
2675 | (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise. | |
2676 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
2677 | * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC | |
2678 | case. | |
2679 | (c_parser_postfix_expression): Added RID_CILK_SPAWN case. | |
2680 | * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma | |
2681 | expr. | |
2682 | (c_finish_return): Added a check to reject _Cilk_spawn in return | |
2683 | expression. | |
2684 | (build_cilk_spawn): New function. | |
2685 | (build_cilk_sync): Likewise. | |
2686 | * Makefile.in (c-decl.o): Added cilk.h in dependency list. | |
2687 | ||
4c90c04c | 2688 | 2013-10-27 Tobias Burnus <burnus@net-b.de> |
2689 | ||
2690 | PR other/33426 | |
2691 | * c-parser.c (c_parser_while_statement, c_parser_while_statement, | |
2692 | c_parser_pragma): Add GCC ivdep support to 'do' and 'while'. | |
2693 | (c_parser_statement_after_labels): Update calls. | |
2694 | ||
48a972c8 | 2695 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
4644b593 | 2696 | |
2697 | PR other/33426 | |
2698 | * c-parser.c (c_parser_pragma, c_parser_for_statement): | |
2699 | Handle PRAGMA_IVDEP. | |
2700 | (c_parser_statement_after_labels): Update call. | |
2701 | ||
12f86df0 | 2702 | 2013-10-24 Marek Polacek <polacek@redhat.com> |
2703 | ||
2704 | * c-parser.c (c_parser_struct_declaration): Add a comment. | |
2705 | (c_parser_declarator): Don't allow _Alignas here. | |
2706 | ||
7740abd8 | 2707 | 2013-10-17 Andrew MacLeod <amacleod@redhat.com> |
2708 | ||
2709 | * c-parser.c: Include omp-low.h. | |
2710 | * c-typeck.c: Likewise. | |
2711 | ||
43d03c23 | 2712 | 2013-10-17 Marek Polacek <polacek@redhat.com> |
2713 | ||
2714 | PR c/58267 | |
2715 | * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter. | |
2716 | Document syntax of the array-declarator. | |
2717 | (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs | |
2718 | are not permitted. | |
2719 | (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call. | |
2720 | (c_parser_struct_declaration): Likewise. | |
2721 | (c_parser_declarator): Likewise. | |
2722 | (c_parser_direct_declarator_inner): Likewise. | |
2723 | (c_parser_parameter_declaration): Likewise. | |
2724 | (c_parser_type_name): Likewise. | |
2725 | ||
bc7bff74 | 2726 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
2727 | ||
2728 | * c-lang.h (current_omp_declare_target_attribute): New extern | |
2729 | decl. | |
2730 | * c-parser.c: Include c-lang.h. | |
2731 | (struct c_parser): Change tokens to c_token *. | |
2732 | Add tokens_buf field. Change tokens_avail type to unsigned int. | |
2733 | (c_parser_consume_token): If parser->tokens isn't | |
2734 | &parser->tokens_buf[0], increment parser->tokens. | |
2735 | (c_parser_consume_pragma): Likewise. | |
2736 | (enum pragma_context): Add pragma_struct and pragma_param. | |
2737 | (c_parser_external_declaration): Adjust | |
2738 | c_parser_declaration_or_fndef caller. | |
2739 | (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses | |
2740 | argument, if it is non-vNULL vector, call c_finish_omp_declare_simd. | |
2741 | Adjust recursive call. | |
2742 | (c_parser_struct_or_union_specifier): Use pragma_struct instead | |
2743 | of pragma_external. | |
2744 | (c_parser_parameter_declaration): Use pragma_param instead of | |
2745 | pragma_external. | |
2746 | (c_parser_compound_statement_nostart, c_parser_label, | |
2747 | c_parser_for_statement): Adjust | |
2748 | c_parser_declaration_or_fndef callers. | |
2749 | (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass | |
2750 | it through to c_parser_conditional_expression. | |
2751 | (c_parser_conditional_expression): Add omp_atomic_lhs argument, | |
2752 | pass it through to c_parser_binary_expression. Adjust recursive | |
2753 | call. | |
2754 | (c_parser_binary_expression): Remove prec argument, add | |
2755 | omp_atomic_lhs argument instead. Always start from PREC_NONE, if | |
2756 | omp_atomic_lhs is non-NULL and one of the arguments of toplevel | |
2757 | binop matches it, use build2 instead of parser_build_binary_op. | |
2758 | (c_parser_pragma): Handle PRAGMA_OMP_CANCEL, | |
2759 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET, | |
2760 | PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION. | |
2761 | Handle pragma_struct and pragma_param the same as pragma_external. | |
2762 | (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names. | |
2763 | (c_parser_omp_variable_list): Parse array sections for | |
2764 | OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses. | |
2765 | (c_parser_omp_clause_collapse): Fully fold collapse expression. | |
2766 | (c_parser_omp_clause_reduction): Handle user defined reductions. | |
2767 | (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind, | |
2768 | c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit, | |
2769 | c_parser_omp_clause_aligned, c_parser_omp_clause_linear, | |
2770 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen, | |
2771 | c_parser_omp_clause_depend, c_parser_omp_clause_map, | |
2772 | c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule, | |
2773 | c_parser_omp_clause_proc_bind, c_parser_omp_clause_to, | |
2774 | c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions. | |
2775 | (c_parser_omp_all_clauses): Add finish_p argument. Don't call | |
2776 | c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses. | |
2777 | (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is | |
2778 | present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms. | |
2779 | (c_parser_omp_for_loop): Add CODE argument, pass it through | |
2780 | to c_finish_omp_for. Change last argument to cclauses, | |
2781 | and adjust uses to grab parallel clauses from the array of all | |
2782 | the split clauses. Adjust c_parser_binary_expression, | |
2783 | c_parser_declaration_or_fndef and c_finish_omp_for callers. | |
2784 | (omp_split_clauses): New function. | |
2785 | (c_parser_omp_simd): New function. | |
2786 | (c_parser_omp_for): Add p_name, mask and cclauses arguments. | |
2787 | Allow the function to be called also when parsing combined constructs, | |
2788 | and call c_parser_omp_simd when parsing for simd. | |
2789 | (c_parser_omp_sections_scope): If section-sequence doesn't start with | |
2790 | #pragma omp section, require exactly one structured-block instead of | |
2791 | sequence of statements. | |
2792 | (c_parser_omp_sections): Add p_name, mask and cclauses arguments. | |
2793 | Allow the function to be called also when parsing combined constructs. | |
2794 | (c_parser_omp_parallel): Add p_name, mask and cclauses arguments. | |
2795 | Allow the function to be called also when parsing combined | |
2796 | constructs. | |
2797 | (c_parser_omp_taskgroup, c_parser_omp_cancel, | |
2798 | c_parser_omp_cancellation_point, c_parser_omp_distribute, | |
2799 | c_parser_omp_teams, c_parser_omp_target_data, | |
2800 | c_parser_omp_target_update, c_parser_omp_target, | |
2801 | c_parser_omp_declare_simd, c_finish_omp_declare_simd, | |
2802 | c_parser_omp_declare_target, c_parser_omp_end_declare_target, | |
2803 | c_parser_omp_declare_reduction, c_parser_omp_declare): New functions. | |
2804 | (c_parser_omp_construct): Add p_name and mask vars. Handle | |
2805 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP, | |
2806 | PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel | |
2807 | and c_parser_omp_sections callers. | |
2808 | (c_parse_file): Initialize tparser.tokens and the_parser->tokens here. | |
2809 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
2810 | OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. | |
2811 | (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND. | |
2812 | (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add | |
2813 | OMP_CLAUSE_DEPEND. | |
2814 | (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK, | |
2815 | OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK, | |
2816 | OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK, | |
2817 | OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK, | |
2818 | OMP_DECLARE_SIMD_CLAUSE_MASK): Define. | |
2819 | * c-typeck.c: Include tree-inline.h. | |
2820 | (c_finish_omp_cancel, c_finish_omp_cancellation_point, | |
2821 | handle_omp_array_sections_1, handle_omp_array_sections, | |
2822 | c_clone_omp_udr, c_find_omp_placeholder_r): New functions. | |
2823 | (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and | |
2824 | user defined reductions. | |
2825 | (c_tree_equal): New function. | |
2826 | * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls, | |
2827 | c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal, | |
2828 | c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup, | |
2829 | c_check_omp_declare_reduction_r): New prototypes. | |
2830 | * c-decl.c (current_omp_declare_target_attribute): New variable. | |
2831 | (c_decl_attributes): New function. | |
2832 | (start_decl, start_function): Use it instead of decl_attributes. | |
2833 | (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id, | |
2834 | c_omp_reduction_decl, c_omp_reduction_lookup, | |
2835 | c_check_omp_declare_reduction_r): New functions. | |
2836 | ||
3ce7d1bd | 2837 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
2838 | ||
2839 | * Make-lang.in (c/gccspec.o): Remove. | |
2840 | (CFLAGS-c/gccspec.o): New variable. | |
2841 | (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o) | |
2842 | (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o) | |
2843 | (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove. | |
2844 | ||
96da1c1d | 2845 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
2846 | ||
2847 | * Make-lang.in (c/gccspec.o): Don't use subshell. | |
2848 | ||
1b309377 | 2849 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
2850 | ||
2851 | PR sanitize/58443 | |
2852 | * c-typeck.c (build_binary_op): Properly honor -fsanitize options. | |
2853 | Remove unnecessary check. | |
2854 | ||
05f893e1 | 2855 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
2856 | ||
2857 | PR sanitizer/58411 | |
2858 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
2859 | no_sanitize_undefined attribute. | |
2860 | ||
bda0b9d2 | 2861 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
2862 | ||
2863 | PR target/57848 | |
2864 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
2865 | wrong assumption that it is never called on prexisting | |
2866 | symbol. | |
2867 | ||
73437615 | 2868 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
2869 | ||
2870 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
2871 | ||
eaab24b9 | 2872 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2873 | ||
2874 | * c-objc-common.c (c_tree_printer): Tidy. | |
2875 | ||
9e46467d | 2876 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
2877 | ||
2878 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
2879 | instrumentation. | |
2880 | ||
f8234178 | 2881 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
f9086116 | 2882 | Joseph Myers <joseph@codesourcery.com> |
f8234178 | 2883 | |
c90a7d10 | 2884 | PR c/35649 |
f8234178 | 2885 | * c-typeck.c (c_common_type): Prefer double_type_node over |
2886 | other REAL_TYPE types with the same precision. | |
2887 | (convert_arguments): Likewise. | |
2888 | ||
6f07f480 | 2889 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2890 | ||
2891 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
2892 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
2893 | ||
eed6bc21 | 2894 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2895 | ||
2896 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
2897 | printer initialization. | |
2898 | ||
57717943 | 2899 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
eed6bc21 | 2900 | |
57717943 | 2901 | PR c/57490 |
2902 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
2903 | check for truth values. | |
2904 | (expand_array_notation_exprs): Added truth values case. Removed an | |
2905 | unwanted else. Added for-loop to walk through subtrees in default | |
2906 | case. | |
2907 | ||
a94db6b0 | 2908 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2909 | ||
2910 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
2911 | ||
e76163a9 | 2912 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
2913 | ||
2914 | * c-parser.c (struct c_generic_association): Fix typo. | |
2915 | ||
7aa04c8d | 2916 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
2917 | Joseph Myers <joseph@codesourcery.com> | |
2918 | ||
2919 | * c-parser.c (struct c_generic_association): New. | |
2920 | (c_generic_association_d): New typedef. | |
2921 | (c_parser_generic_selection): New function. | |
2922 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
2923 | ||
76bbe4ca | 2924 | 2013-07-13 Jason Merrill <jason@redhat.com> |
2925 | ||
2926 | PR c++/57793 | |
2927 | * c-decl.c (finish_struct): Check for too-large class. | |
2928 | ||
21ebaa24 | 2929 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
f5298614 | 2930 | |
2931 | PR c/57821 | |
2932 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
2933 | ||
936c3081 | 2934 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2935 | ||
2936 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
2937 | notations in an array of function pointers. | |
2938 | ||
50acebe0 | 2939 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2940 | ||
2941 | * c-array-notation.c (make_triplet_val_inv): New function. | |
2942 | (create_cmp_incr): Likewise. | |
2943 | (create_array_refs): Likewise. | |
2944 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
2945 | Also modularized common parts between functions and called the function. | |
2946 | (build_array_notation_expr): Likewise. | |
2947 | (fix_conditional_array_notations_1): Likewise. | |
2948 | (fix_array_notation_expr): Likewise. | |
2949 | (fix_array_notation_call_expr): Likewise. | |
2950 | ||
01e6cdb4 | 2951 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
2952 | ||
2953 | PR c/57630 | |
2954 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
2955 | ||
6a3adac6 | 2956 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2957 | ||
2958 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
2959 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
2960 | a couple while statements that were dead code. | |
2961 | ||
62aab3f3 | 2962 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2963 | ||
2964 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
2965 | excessive precision expressions in function parameters. Also removed | |
2966 | couple unwanted while statements. | |
2967 | ||
bfc83720 | 2968 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2969 | ||
2970 | * c-array-notation.c (expand_array_notation_exprs): Added | |
2971 | ARRAY_NOTATION_REF case. | |
2972 | ||
09970d67 | 2973 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2974 | ||
2975 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
2976 | function to c-family/array-notation-common.c. | |
2977 | (is_cilkplus_reduce_builtin): Likewise. | |
2978 | (find_rank): Likewise. | |
2979 | (extract_array_notation_exprs): Likewise. | |
2980 | (replace_array_notations): Likewise. | |
2981 | (find_inv_trees): Likewise. | |
2982 | (replace_inv_trees): Likewise. | |
2983 | (contains_array_notation_expr): Likewise. | |
2984 | (find_correct_array_notation_type): Likewise. | |
2985 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
2986 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
2987 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
2988 | ||
6e13bc01 | 2989 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2990 | ||
2991 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
2992 | reduction functions outside the for-loop. Added a check if the fundecl | |
2993 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
2994 | body unconditional. | |
2995 | ||
cc92dddc | 2996 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2997 | ||
2998 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
2999 | condition of the if-statement matches the rank of else-block and then- | |
3000 | block when array notations are used. | |
3001 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
3002 | expression after the entire function body is parsed. | |
3003 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
3004 | to the end of function parsing. | |
3005 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
3006 | whole if-statement instead of just the condition. | |
3007 | (expand_array_notation_exprs): Added MODIFY_EXPR case. | |
3008 | ||
eddc63fd | 3009 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3010 | ||
3011 | PR c/57474 | |
3012 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
3013 | array to NULL_TREE if they are unused. Also added a check for the | |
3014 | field to be NULL before its fields are used in future. | |
3015 | ||
a2115a4a | 3016 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3017 | ||
3018 | PR bootstrap/57450 | |
3019 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
3020 | (build_array_notation_expr): Likewise. | |
3021 | ||
3c6d4197 | 3022 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3023 | ||
3024 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
3025 | index is greater than one. If true, then emit an error. | |
3026 | (build_function_call_vec): Exclude error reporting and checking | |
3027 | for builtin array-notation functions. | |
3028 | (convert_arguments): Likewise. | |
3029 | (c_finish_return): Added a check for array notations as a return | |
3030 | expression. If true, then emit an error. | |
3031 | (c_finish_loop): Added a check for array notations in a loop | |
3032 | condition. If true then emit an error. | |
3033 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
3034 | (build_binary_op): Added a check for array notation expr inside | |
3035 | op1 and op0. If present, we call another function to find correct | |
3036 | type. | |
3037 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
3038 | * c-parser.c (c_parser_compound_statement): Check if array | |
3039 | notation code is used in tree, if so, then transform them into | |
3040 | appropriate C code. | |
3041 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
3042 | or RHS, if so, then build array notation expression instead of | |
3043 | regular modify. | |
3044 | (c_parser_postfix_expression_after_primary): Added a check for | |
3045 | colon(s) after square braces, if so then handle it like an array | |
3046 | notation. Also, break up array notations in unary op if found. | |
3047 | (c_parser_direct_declarator_inner): Added a check for array | |
3048 | notation. | |
3049 | (c_parser_compound_statement): Added a check for array notation in | |
3050 | a stmt. If one is present, then expand array notation expr. | |
3051 | (c_parser_if_statement): Likewise. | |
3052 | (c_parser_switch_statement): Added a check for array notations in | |
3053 | a switch statement's condition. If true, then output an error. | |
3054 | (c_parser_while_statement): Similarly, but for a while. | |
3055 | (c_parser_do_statement): Similarly, but for a do-while. | |
3056 | (c_parser_for_statement): Similarly, but for a for-loop. | |
3057 | (c_parser_unary_expression): Check if array notation is used in a | |
3058 | pre-increment or pre-decrement expression. If true, then expand | |
3059 | them. | |
3060 | (c_parser_array_notation): New function. | |
3061 | * c-array-notation.c: New file. | |
3062 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
3063 | ||
2c1c8a2c | 3064 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
3065 | ||
3066 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
3067 | spaces better. | |
3068 | ||
be5f9e46 | 3069 | 2013-05-16 Jason Merrill <jason@redhat.com> |
3070 | ||
3071 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
3072 | ||
9205a6cc | 3073 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
3074 | ||
3075 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
3076 | to simply use OPT_Wpointer_arith. | |
3077 | (build_unary_op): Likewise. | |
3078 | ||
0b049e15 | 3079 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
3080 | ||
3081 | PR c/19449 | |
3082 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
3083 | argument. If set, or it temporarily for parsing of the first | |
3084 | argument into force_folding_builtin_constant_p. | |
3085 | (c_parser_postfix_expression): Adjust callers. | |
3086 | ||
8e966116 | 3087 | 2013-03-21 Richard Biener <rguenther@suse.de> |
3088 | ||
3089 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
3090 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
3091 | ||
b862f263 | 3092 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
3093 | ||
3094 | PR c/44938 | |
3095 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
3096 | origtypes to NULL. | |
3097 | ||
54550ecb | 3098 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
3099 | ||
3100 | PR c/56078 | |
3101 | * c-typeck.c (set_nonincremental_init_from_string): If | |
3102 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
3103 | returned false. | |
3104 | (process_init_element): Likewise. | |
3105 | ||
035b65e2 | 3106 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
3107 | ||
3108 | PR c++/55619 | |
3109 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
3110 | argument, don't call default_function_array_conversion | |
3111 | nor c_fully_fold here. | |
3112 | (c_parser_asm_statement): Adjust callers. | |
3113 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
3114 | and outputs here, and call default_function_array_conversion | |
3115 | on inputs that don't need to be addressable. | |
3116 | ||
7cbb7f1a | 3117 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
3118 | ||
3119 | PR c/39464 | |
3120 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
3121 | warning require that both c_common_unsigned_type as well as | |
3122 | c_common_signed_type is the same for both mvl and mvr types. | |
3123 | ||
f1f41a6c | 3124 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
3125 | ||
3126 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
3127 | ||
3128 | * c-common.c: Use new vec API in vec.h. | |
3129 | * c-common.h: Likewise. | |
3130 | * c-gimplify.c: Likewise. | |
3131 | * c-pragma.c: Likewise. | |
3132 | * c-pretty-print.c: Likewise. | |
3133 | * c-pretty-print.h: Likewise. | |
3134 | * c-semantics.c: Likewise. | |
3135 | * c-decl.c: Likewise. | |
3136 | * c-parser.c: Likewise. | |
3137 | * c-tree.h: Likewise. | |
3138 | * c-typeck.c: Likewise. | |
3139 | ||
8b447d3f | 3140 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
3141 | ||
3142 | PR c++/54930 | |
3143 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
3144 | ||
08fc5390 | 3145 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3146 | ||
3147 | PR c/53066 | |
3148 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
3149 | shadows a function, unless the variable is a function or a | |
3150 | pointer-to-function. | |
3151 | ||
57f872a2 | 3152 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
3153 | ||
3154 | PR c/54381 | |
3155 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
3156 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
3157 | add location_t * and tree * arguments, fill in array of 3 | |
3158 | sizeof_arg trees and corresponding locs. | |
3159 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
3160 | c_parser_expr_list callers. | |
3161 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
3162 | array of 3 sizeof_arg trees and locs (corresponding to first | |
3163 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
3164 | ||
d1455aa3 | 3165 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
3166 | ||
3167 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
3168 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
3169 | hash table. | |
3170 | ||
b0e7825e | 3171 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
3172 | ||
3173 | PR c++/54194 | |
3174 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
3175 | call. | |
3176 | ||
41ed701a | 3177 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
3178 | ||
3179 | PR c++/54427 | |
3180 | * c-typeck.c: Include c-common.h. | |
3181 | (enum stv_conv): Moved to c-common.h. | |
3182 | (scalar_to_vector): Moved to c-common.c. | |
3183 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
3184 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
3185 | ||
ef34afc1 | 3186 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
3187 | ||
3188 | * c-decl.c (c_write_global_declarations): Fix handling of | |
3189 | -fdump-ada-spec*. | |
3190 | ||
7bd765d4 | 3191 | 2012-09-30 Sharad Singhai <singhai@google.com> |
3192 | ||
3193 | * c-decl.c (c_write_global_declarations): Use a different method | |
3194 | to determine if the dump has ben initialized. | |
3195 | ||
c4b1a13a | 3196 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
3197 | ||
3198 | PR c/54552 | |
3199 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
3200 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
3201 | c_fully_fold first. | |
3202 | ||
bb554051 | 3203 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
3204 | ||
3205 | PR c/54103 | |
3206 | * c-typeck.c (build_unary_op): Pass original argument of | |
3207 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
3208 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
3209 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
3210 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
3211 | to c_objc_common_truthvalue_conversion, then remove any | |
3212 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
3213 | c_objc_common_truthvalue_conversion not | |
3214 | c_common_truthvalue_conversion. | |
3215 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
3216 | call note_integer_operands for arguments with integer operands | |
3217 | that are not integer constants. | |
3218 | ||
c708c6ef | 3219 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
3220 | ||
3221 | PR c/54559 | |
3222 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
3223 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
3224 | ||
cce20430 | 3225 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
3226 | ||
3227 | PR c/54428 | |
3228 | * c-convert.c (convert): Don't call fold_convert_loc if | |
3229 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
3230 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
3231 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
3232 | ||
a90d57ed | 3233 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
3234 | ||
3235 | PR c/54355 | |
3236 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
3237 | for nested and empty_ok arguments in the call to | |
3238 | c_parser_declaration_or_fndef. | |
3239 | ||
f003f5dc | 3240 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
3241 | ||
3242 | * c-tree.h (c_last_sizeof_arg): Declare. | |
3243 | * c-parser.c (struct c_tree_loc_pair): New type. | |
3244 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
3245 | non-NULL. | |
3246 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
3247 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
3248 | sizeof_pointer_memaccess_warning if needed. | |
3249 | (sizeof_ptr_memacc_comptypes): New function. | |
3250 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
3251 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
3252 | ||
a5656b73 | 3253 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
3254 | ||
3255 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
3256 | ||
b9ed1410 | 3257 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
3258 | ||
3259 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
3260 | * Make-lang.in: Fix dependencies. | |
3261 | ||
e53d55e7 | 3262 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
3263 | ||
3264 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
3265 | and add language Makefile hooks. | |
3266 | * config-lang.in: New file. | |
3267 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
3268 | add the required "normal" config-lang.in rules. | |
3269 | * c-lang.h: Moved from gcc/ to here. | |
3270 | * c-tree.h: Likewise. | |
3271 | * c-objc-common.c: Likewise. | |
3272 | * c-objc-common.h: Likewise. | |
3273 | * c-typeck.c: Likewise. | |
3274 | * c-convert.c: Likewise. | |
3275 | * c-lang.c: Likewise. | |
3276 | * c-aux-info.c: Likewise. | |
3277 | * c-errors.c: Likewise. | |
3278 | * gccspec.c: Likewise. | |
3279 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
3280 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
3281 | \f | |
f1717362 | 3282 | Copyright (C) 2012-2016 Free Software Foundation, Inc. |
e53d55e7 | 3283 | |
3284 | Copying and distribution of this file, with or without modification, | |
3285 | are permitted in any medium without royalty provided the copyright | |
3286 | notice and this notice are preserved. |