]>
Commit | Line | Data |
---|---|---|
85d2d1a8 | 1 | 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
2 | ||
3 | * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to | |
4 | avoid goto. | |
5 | ||
e1029911 | 6 | 2014-04-24 Jakub Jelinek <jakub@redhat.com> |
7 | ||
8 | * c-parser.c (c_parser_omp_atomic): Allow seq_cst before | |
9 | atomic-clause, allow comma in between atomic-clause and | |
10 | seq_cst. | |
11 | ||
9f0a7bc6 | 12 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
13 | ||
14 | PR c/59073 | |
15 | * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for | |
16 | fails, don't set OM_PARALLEL_COMBINED and return NULL. | |
17 | ||
094da06d | 18 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
19 | ||
20 | PR middle-end/60469 | |
21 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
22 | create_tmp_var instead build_decl for creating temps. | |
23 | (build_array_notation_expr): Likewise. | |
24 | (fix_conditional_array_notations_1): Likewise. | |
25 | (fix_array_notation_expr): Likewise. | |
26 | (fix_array_notation_call_expr): Likewise. | |
27 | ||
5a672e62 | 28 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
29 | ||
30 | PR c++/60689 | |
31 | * c-tree.h (c_build_function_call_vec): New prototype. | |
32 | * c-typeck.c (build_function_call_vec): Don't call | |
33 | resolve_overloaded_builtin here. | |
34 | (c_build_function_call_vec): New wrapper function around | |
35 | build_function_call_vec. Call resolve_overloaded_builtin here. | |
36 | (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign): | |
37 | Call c_build_function_call_vec instead of build_function_call_vec. | |
38 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
39 | * c-decl.c (finish_decl): Likewise. | |
40 | ||
f40f5e0e | 41 | 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
42 | ||
43 | PR c/55383 | |
44 | * c-typeck.c: Use correct format string in cast-qual warning | |
45 | ||
9ec099a3 | 46 | 2014-03-07 Thomas Schwinge <thomas@codesourcery.com> |
47 | ||
48 | * c-decl.c (c_decl_attributes): Use | |
49 | lang_hooks.types.omp_mappable_type. | |
50 | * c-typeck.c (c_finish_omp_clauses): Likewise. | |
51 | ||
3bfdc94f | 52 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
53 | ||
54 | PR c/60197 | |
55 | * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead | |
56 | of checking tree code. | |
57 | ||
8f1128f8 | 58 | 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
59 | ||
60 | * c-parser.c (c_parser_declspecs): Replace call to error by error_at. | |
61 | (c_parser_parameter_declaration): Likewise. | |
62 | ||
977b1853 | 63 | 2014-02-19 Marek Polacek <polacek@redhat.com> |
64 | ||
65 | PR c/60195 | |
66 | * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp. | |
67 | Call mark_exp_read on exp.value. | |
68 | (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set | |
69 | TREE_ADDRESSABLE on old instead of val. | |
70 | (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING. | |
71 | ||
825cd6ef | 72 | 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
73 | ||
74 | * c-parser.c (c_parser_get_builtin_args): Replace calls to | |
75 | C_EXPR_APPEND by vec_safe_push. | |
76 | * c-tree.h (C_EXPR_APPEND): Remove. | |
77 | ||
ec761d5a | 78 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
79 | ||
80 | PR c/59963 | |
81 | * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to | |
82 | build_function_call_vec. | |
83 | (build_function_call): Likewise. | |
84 | (build_atomic_assign): Likewise. | |
85 | (build_function_call_vec): Add arg_loc parameter. Use it. | |
86 | (convert_arguments): Likewise. | |
87 | (convert_for_assignment): Rename rhs_loc to expr_loc. | |
88 | * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list. | |
89 | (c_parser_objc_keywordexpr): Likewise. | |
90 | (c_parser_postfix_expression_after_primary): Call | |
91 | build_function_call_vec with expr_loc rather than op_loc. | |
92 | Call c_parser_expr_list to fill arg_loc. Pass arg_loc to | |
93 | build_function_call_vec. | |
94 | (c_parser_expr_list): Add locations parameter. Fill it with locations | |
95 | of function arguments. | |
96 | * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec. | |
97 | ||
22a75734 | 98 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
99 | ||
100 | PR c/59940 | |
101 | * c-typeck.c (build_function_call_vec): Use loc parameter. | |
102 | (convert_arguments): Add location parameter. Use it. | |
103 | (ep_convert_and_check): Likewise. | |
104 | (build_atomic_assign): Adjust convert_for_assignment call. | |
105 | (build_modify_expr): Likewise. | |
106 | (digest_init): Likewise. | |
107 | (c_finish_return): Likewise. | |
108 | (build_conditional_expr): Adjust ep_convert_and_check calls. | |
109 | (convert_for_assignment): Add rhs_loc parameter. Use it. | |
110 | (build_binary_op): Adjust convert_and_check and ep_convert_and_check | |
111 | calls. | |
112 | ||
29f580ac | 113 | 2014-01-30 Richard Biener <rguenther@suse.de> |
114 | ||
115 | PR c/59905 | |
116 | * c-typeck.c (build_function_call_vec): Do not replace calls | |
117 | to a function via an incompatible type with a runtime abort. | |
118 | ||
a89e6c15 | 119 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
120 | ||
121 | * c-parser.c (c_parser_declaration_or_fndef): Replaced | |
122 | flag_enable_cilkplus with flag_cilkplus. | |
123 | (c_parser_direct_declarator_inner): Likewise. | |
124 | (c_parser_attribute_any_word): Likewise. | |
125 | (c_parser_attributes): Likewise. | |
126 | (c_parser_compound_statement): Likewise. | |
127 | (c_parser_statement_after_labels): Likewise. | |
128 | (c_parser_if_statement): Likewise. | |
129 | (c_parser_switch_statement): Likewise. | |
130 | (c_parser_do_statement): Likewise. | |
131 | (c_parser_for_statement): Likewise. | |
132 | (c_parser_unary_expression): Likewise. | |
133 | (c_parser_postfix_expression): Likewise. | |
134 | (c_parser_postfix_expression_after_primary): Likewise. | |
135 | (c_parser_postfix_expression_after_primary): Likewise. | |
136 | (c_parser_omp_clause_name): Likewise. | |
137 | (c_finish_omp_declare_simd): Likewise. | |
138 | (c_parser_cilk_verify_simd): Likewise. | |
139 | * c-typeck.c (build_array_ref): Likewise. | |
140 | (build_function_call_vec): Likewise. | |
141 | (convert_arguments): Likewise. | |
142 | (build_compound_expr): Likewise. | |
143 | (c_finish_return): Likewise. | |
144 | (c_finish_if_stmt): Likewise. | |
145 | (c_finish_loop): Likewise. | |
146 | (build_binary_op): Likewise. | |
147 | ||
2623625f | 148 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
149 | ||
150 | PR c/59846 | |
151 | * c-typeck.c (parser_build_binary_op): Use location instead of | |
152 | input_location. | |
153 | (build_binary_op): Pass location to shorten_compare. | |
154 | ||
46da3601 | 155 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
156 | ||
157 | PR c/58346 | |
158 | * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to | |
159 | an empty aggregate. | |
160 | ||
9a9db3c1 | 161 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
162 | ||
163 | PR c/59871 | |
164 | * c-typeck.c (build_compound_expr): Warn even for right-hand operand | |
165 | of a comma expression. | |
166 | (emit_side_effect_warnings): Likewise. | |
167 | ||
69c9b607 | 168 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
169 | ||
170 | PR c/59825 | |
171 | * c-array-notation.c (expand_array_notation_exprs): Rewrote this | |
172 | function to use walk_tree and moved a lot of its functionality to | |
173 | expand_array_notations. | |
174 | (expand_array_notations): New function. | |
175 | ||
7e005ab5 | 176 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
177 | ||
178 | * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function" | |
179 | attribute an attribute without value. | |
180 | ||
d6779b5f | 181 | 2014-01-23 Jakub Jelinek <jakub@redhat.com> |
182 | ||
183 | PR middle-end/58809 | |
184 | * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR, | |
185 | BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs. | |
186 | ||
ec431042 | 187 | 2014-01-22 Marek Polacek <polacek@redhat.com> |
188 | ||
189 | PR c/59891 | |
190 | * c-typeck.c (build_conditional_expr): Call c_fully_fold instead | |
191 | of remove_c_maybe_const_expr on op1 and op2. | |
192 | ||
1248c663 | 193 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
194 | ||
195 | PR c/58943 | |
196 | * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side | |
197 | effects, preevaluate rhs using SAVE_EXPR first. | |
198 | ||
0bc789fc | 199 | 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com> |
200 | ||
201 | PR c++/59631 | |
202 | * c-parser.c (c_parser_postfix_expression): Replaced consecutive if | |
203 | statements with if-elseif statements. | |
204 | ||
6685d11c | 205 | 2014-01-06 Marek Polacek <polacek@redhat.com> |
206 | ||
207 | PR c/57773 | |
208 | * c-decl.c (check_bitfield_type_and_width): Warn for implementation | |
209 | defined bit-field types only in ISO C. | |
210 | ||
3aea1f79 | 211 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
212 | ||
213 | Update copyright years | |
214 | ||
e4f22041 | 215 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
216 | ||
217 | * c-array-notation.c: Use the standard form for the copyright notice. | |
218 | ||
74acc703 | 219 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
220 | ||
221 | * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field. | |
222 | (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens | |
223 | field in parser is not empty. If not-empty, call the function | |
224 | c_parser_finish_omp_declare_simd. | |
225 | (c_parser_cilk_clause_vectorlength): Modified function to be shared | |
226 | between SIMD-enabled functions and #pragma simd. Added new parameter. | |
227 | (c_parser_cilk_all_clauses): Modified the usage of the function | |
228 | c_parser_cilk_clause_vectorlength as mentioned above. | |
229 | (c_parser_cilk_simd_fn_vector_attrs): New function. | |
230 | (c_finish_cilk_simd_fn_tokens): Likewise. | |
231 | (is_cilkplus_vector_p): Likewise. | |
232 | (c_parser_omp_clause_name): Added checking for "vectorlength," | |
233 | "nomask," and "mask" strings in clause name. | |
234 | (c_parser_omp_all_clauses): Added 3 new case statements: | |
235 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and | |
236 | PRAGMA_CILK_CLAUSE_NOMASK. | |
237 | (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a | |
238 | check for vector attribute and if so call the function | |
239 | c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled, | |
240 | called the function c_finish_cilk_simd_fn_tokens. | |
241 | (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in | |
242 | parser field is non-empty. If so, parse them as you would parse | |
243 | the omp declare simd pragma. | |
244 | (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn. | |
245 | Added a check when step is a parameter and flag it as error. | |
246 | (CILK_SIMD_FN_CLAUSE_MASK): New #define. | |
247 | (c_parser_cilk_clause_name): Changed pragma_cilk_clause to | |
248 | pragma_omp_clause. | |
249 | ||
395dc01c | 250 | 2013-12-17 Thomas Schwinge <thomas@codesourcery.com> |
251 | ||
252 | * c-parser.c (c_parser_omp_parallel): Fix description. | |
253 | ||
433e804e | 254 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
255 | ||
256 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove. | |
257 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
258 | (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise. | |
259 | * c-typeck.c (cilk_install_body_with_frame_cleanup): New function. | |
260 | ||
a179a7dc | 261 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
262 | ||
263 | PR c/52023 | |
264 | * c-parser.c (c_parser_alignas_specifier): Use | |
265 | c_sizeof_or_alignof_type instead of c_alignof. | |
266 | (c_parser_alignof_expression): Likewise, with min_alignof | |
267 | parameter depending on alignof spelling used. | |
268 | ||
bdf1e3c7 | 269 | 2013-12-04 Marek Polacek <polacek@redhat.com> |
270 | ||
271 | PR c/54113 | |
272 | * c-decl.c (start_function): Don't warn for missing prototype for | |
273 | inline functions. | |
274 | ||
05e8f674 | 275 | 2013-12-03 Marek Polacek <polacek@redhat.com> |
276 | ||
277 | PR c/59351 | |
278 | * c-decl.c (build_compound_literal): Allow compound literals with | |
279 | empty initial value. | |
280 | ||
39f74d66 | 281 | 2013-12-02 Joseph Myers <joseph@codesourcery.com> |
282 | ||
283 | PR c/58235 | |
284 | * c-typeck.c (build_modify_expr): Diagnose assignment to | |
285 | expression with array type. | |
286 | ||
f221adca | 287 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
288 | ||
289 | PR c/42262 | |
290 | * c-typeck.c (process_init_element): Do not treat a string as | |
291 | initializing a whole array when used with a designator for an | |
292 | individual element. | |
293 | ||
75bce827 | 294 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
295 | ||
296 | PR c/57574 | |
297 | * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of | |
298 | an inline function following a static declaration. | |
299 | ||
dc133326 | 300 | 2013-11-28 Jakub Jelinek <jakub@redhat.com> |
301 | ||
302 | PR c/59310 | |
303 | * c-parser.c (c_parser_omp_target): Copy "#pragma omp target" | |
304 | to p_name before calling c_parser_omp_teams instead of after. | |
305 | (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser | |
306 | argument. Remove unused p_name variable. | |
307 | ||
d09768a4 | 308 | 2013-11-27 Aldy Hernandez <aldyh@redhat.com> |
309 | Jakub Jelinek <jakub@redhat.com> | |
310 | ||
311 | * c-decl.c (c_builtin_function_ext_scope): Avoid binding if | |
312 | external_scope is NULL. | |
313 | ||
73fd9cbe | 314 | 2013-11-27 Tom de Vries <tom@codesourcery.com> |
315 | Marc Glisse <marc.glisse@inria.fr> | |
316 | ||
317 | PR c++/59032 | |
318 | * c-typeck.c (build_unary_op): Allow vector increment and decrement. | |
319 | ||
bc61cadb | 320 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
321 | ||
322 | * c-typeck.c: Add required include files from gimple.h. | |
323 | ||
3df42822 | 324 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
325 | ||
326 | * c-decl.c (define_label, shadow_tag_warned) | |
327 | (check_bitfield_type_and_width, grokdeclarator, grokparms, | |
328 | store_parm_decls_newstyle, store_parm_decls_oldstyle) | |
329 | (declspecs_add_type): Remove use of in_system_header macro. | |
330 | * c-parser.c (c_parser_unary_expression): Likewise. | |
331 | * c-typeck.c (store_init_value, process_init_element) | |
332 | (c_start_case): Likewise. | |
333 | ||
334 | * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE | |
335 | macro. | |
336 | ||
337 | * c-parser.c (c_parser_set_source_position_from_token): Remove | |
338 | reference to in_system_header from comment. | |
339 | ||
08f817b3 | 340 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
341 | ||
342 | * c-decl.c (grokdeclarator): Update comment to refer to | |
343 | tree_to_[su]hwi rather than tree_low_cst. | |
344 | ||
6a0712d4 | 345 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
346 | ||
347 | * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with | |
348 | tree_to_uhwi throughout. | |
349 | ||
fcb97e84 | 350 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
351 | ||
352 | * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi | |
353 | throughout. | |
354 | ||
35ec552a | 355 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
356 | ||
357 | * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p | |
358 | throughout. | |
359 | ||
f2697631 | 360 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
361 | ||
362 | * c-parser.c (c_parser_cilk_simd): New. | |
363 | (c_parser_cilk_verify_simd): New. | |
364 | (c_parser_pragma): Add case for PRAGMA_CILK_SIMD. | |
365 | (c_parser_omp_for_loop): Add case for NE_EXPR. | |
366 | Set c_break_label for CILK_SIMD. | |
367 | (c_parser_cilk_clause_vectorlength): New. | |
368 | (c_parser_cilk_clause_linear): New. | |
369 | (c_parser_cilk_clause_name): New. | |
370 | (c_parser_cilk_all_clauses): New. | |
371 | * c-typeck.c (build_unary_op): Pass location argument to | |
372 | readonly_error. | |
373 | (build_modify_expr): Same. | |
374 | (build_asm_expr): Same. | |
375 | (c_finish_bc_stmt): Error on break/continue in loops. | |
376 | ||
e795d6e1 | 377 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
378 | ||
379 | * c-typeck.c: Include only gimplify.h and gimple.h as needed. | |
380 | ||
9ed99284 | 381 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
382 | ||
383 | * c-decl.c: Include print-tree.h. | |
384 | Include stor-layout.h. | |
385 | Include varasm.h. | |
386 | Include attribs.h. | |
387 | Include stringpool.h. | |
388 | * c-lang.c: Include fold-const.h. | |
389 | * c-parser.c: Include stringpool.h. | |
390 | Include attribs.h. | |
391 | Include stor-layout.h. | |
392 | Include varasm.h. | |
393 | Include trans-mem.h. | |
394 | * c-typeck.c: Include stor-layout.h. | |
395 | Include trans-mem.h. | |
396 | Include varasm.h. | |
397 | Include stmt.h. | |
398 | ||
4fba5eb9 | 399 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
400 | ||
401 | * c-tree.h (c_typespec_keyword): Add cts_auto_type. | |
402 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle | |
403 | __auto_type. | |
404 | * c-parser.c (c_token_starts_typename, c_token_starts_declspecs) | |
405 | (c_parser_attribute_any_word, c_parser_objc_selector): Handle | |
406 | RID_AUTO_TYPE. | |
407 | (c_parser_declspecs): Take argument AUTO_TYPE_OK. | |
408 | (c_parser_declaration_or_fndef, c_parser_struct_declaration) | |
409 | (c_parser_declarator, c_parser_direct_declarator_inner) | |
410 | (c_parser_parameter_declaration, c_parser_type_name): All callers | |
411 | changed. | |
412 | (c_parser_declaration_or_fndef): Handle declarations with type | |
413 | determined from the initializer. | |
414 | ||
a8783bee | 415 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
416 | ||
e795d6e1 | 417 | * c-typeck.c: Include gimplify.h. |
a8783bee | 418 | |
d184e0c0 | 419 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
420 | ||
421 | * c-tree.h (struct c_declspecs): Add thread_gnu_p field. | |
422 | * c-parser.c (c_parser_declspecs): Mention _Thread_local in | |
423 | comment. | |
424 | * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread | |
425 | or _Thread_local as appropriate in diagnostics. | |
426 | (build_null_declspecs): Initialize ret->thread_gnu_p. | |
427 | (declspecs_add_scspec): Handle either __thread or _Thread_local | |
428 | for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if | |
429 | pedantic. Do not disallow _Thread_local extern and _Thread_local | |
430 | static. | |
431 | ||
b560fabd | 432 | 2013-11-07 Joseph Myers <joseph@codesourcery.com> |
433 | Andrew MacLeod <amacleod@redhat.com> | |
434 | ||
435 | * c-aux-info.c (gen_type): Handle atomic qualifier. | |
436 | * c-decl.c (validate_proto_after_old_defn): Do not remove atomic | |
437 | qualifiers when compating types. | |
438 | (shadow_tag_warned): Handle atomic_p in declspecs. | |
439 | (quals_from_declspecs): Likewise. | |
440 | (start_decl): Use c_type_promotes_to when promoting argument | |
441 | types. | |
442 | (grokdeclarator): Handle _Atomic. | |
443 | (get_parm_info): Diagnose any qualifier on "void" as only | |
444 | parameter. | |
445 | (store_parm_decls_oldstyle): Do not remove atomic qualifiers when | |
446 | comparing types. Use c_type_promotes_to when promoting argument | |
447 | types. | |
448 | (finish_function): Use c_type_promotes_to when promoting argument | |
449 | types. | |
450 | (build_null_declspecs): Handle atomic_p in declspecs. | |
451 | (declspecs_add_qual): Handle RID_ATOMIC. | |
452 | * c-parser.c (c_token_starts_typename, c_token_is_qualifier) | |
453 | (c_token_starts_declspecs): Handle RID_ATOMIC. | |
454 | (c_parser_declspecs): Handle atomic type specifiers and | |
455 | qualifiers. | |
456 | (c_parser_typeof_specifier): Remove const and _Atomic qualifiers | |
457 | from types of expressions with atomic type. | |
458 | (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. | |
459 | (c_parser_attribute_any_word): Handle RID_ATOMIC. | |
460 | (c_parser_initializer, c_parser_initelt, c_parser_initval) | |
461 | (c_parser_statement_after_labels, c_parser_switch_statement) | |
462 | (c_parser_for_statement, c_parser_expr_no_commas) | |
463 | (c_parser_conditional_expression, c_parser_binary_expression) | |
464 | (c_parser_cast_expression, c_parser_unary_expression) | |
465 | (c_parser_postfix_expression) | |
466 | (c_parser_postfix_expression_after_primary, c_parser_expression): | |
467 | Use convert_lvalue_to_rvalue. | |
468 | (c_parser_expression_conv, c_parser_expr_list): Document | |
469 | conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. | |
470 | (c_parser_objc_synchronized_statement): Use | |
471 | convert_lvalue_to_rvalue. | |
472 | (c_parser_objc_selector): Handle RID_ATOMIC. | |
473 | (c_parser_objc_receiver, c_parser_array_notation): Use | |
474 | convert_lvalue_to_rvalue. | |
475 | * c-tree.h (ctsk_typeof): Adjust comment to mention use for | |
476 | _Atomic (type-name). | |
477 | (struct c_declspecs): Add atomic_p field. | |
478 | (convert_lvalue_to_rvalue): Declare. | |
479 | * c-typeck.c (c_type_promotes_to): Promote atomic types to | |
480 | corresponding atomic types. | |
481 | (qualify_type): Don't add _Atomic qualifiers from second argument. | |
482 | (comp_target_types): Do not allow _Atomic mismatches. | |
483 | (type_lists_compatible_p): Do not remove atomic qualifiers when | |
484 | comparing types. | |
485 | (really_atomic_lvalue, convert_lvalue_to_rvalue) | |
486 | (build_atomic_assign): New functions. | |
487 | (build_unary_op): Use build_atomic_assign for atomic increment and | |
488 | decrement. | |
489 | (build_conditional_expr): Do not treat _Atomic void as a qualified | |
490 | version of void. | |
491 | (build_modify_expr): Use build_atomic_assign for atomic LHS. | |
492 | (find_anonymous_field_with_type, convert_to_anonymous_field) | |
493 | (convert_for_assignment): Do not remove atomic qualifiers when | |
494 | comparing types. | |
495 | (digest_init): Do not accept initialization of arrays of atomic | |
496 | elements by string constants. | |
497 | (build_asm_expr): Use convert_lvalue_to_rvalue. | |
498 | (build_binary_op): Do not treat _Atomic void as a qualified | |
499 | version of void. | |
500 | ||
8b023e7c | 501 | 2013-11-06 DJ Delorie <dj@redhat.com> |
502 | ||
503 | * c-decl.c (locate_old_decl): If a previous conflicting decl is | |
504 | both explicit and builtin, print the location of the explicit one. | |
505 | ||
c630ef93 | 506 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
507 | ||
508 | * c-parser.c (c_parser_omp_for, c_parser_omp_parallel, | |
509 | c_parser_omp_distribute, c_parser_omp_teams, | |
510 | c_parser_omp_target, c_parser_omp_declare): Handle | |
511 | -fopenmp-simd. | |
512 | ||
2c4c3477 | 513 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
514 | ||
515 | * c-decl.c (grokdeclarator): Add VLA instrumentation. | |
516 | ||
df205251 | 517 | 2013-11-01 Jakub Jelinek <jakub@redhat.com> |
518 | ||
519 | * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to | |
520 | check_dup_generic at the end, unless remove is true. | |
521 | (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after | |
522 | remove = true;. | |
523 | (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise. | |
524 | ||
23871d0c | 525 | 2013-10-31 Jakub Jelinek <jakub@redhat.com> |
526 | ||
527 | * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause | |
528 | with decl that is not pointer nor array. | |
529 | ||
d037099f | 530 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
531 | ||
532 | * c-decl.c (finish_function): Added a call for insert_cilk_frame when | |
533 | a spawning function is found. | |
534 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define. | |
535 | (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise. | |
536 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
537 | * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC | |
538 | case. | |
539 | (c_parser_postfix_expression): Added RID_CILK_SPAWN case. | |
540 | * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma | |
541 | expr. | |
542 | (c_finish_return): Added a check to reject _Cilk_spawn in return | |
543 | expression. | |
544 | (build_cilk_spawn): New function. | |
545 | (build_cilk_sync): Likewise. | |
546 | * Makefile.in (c-decl.o): Added cilk.h in dependency list. | |
547 | ||
4c90c04c | 548 | 2013-10-27 Tobias Burnus <burnus@net-b.de> |
549 | ||
550 | PR other/33426 | |
551 | * c-parser.c (c_parser_while_statement, c_parser_while_statement, | |
552 | c_parser_pragma): Add GCC ivdep support to 'do' and 'while'. | |
553 | (c_parser_statement_after_labels): Update calls. | |
554 | ||
48a972c8 | 555 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
4644b593 | 556 | |
557 | PR other/33426 | |
558 | * c-parser.c (c_parser_pragma, c_parser_for_statement): | |
559 | Handle PRAGMA_IVDEP. | |
560 | (c_parser_statement_after_labels): Update call. | |
561 | ||
12f86df0 | 562 | 2013-10-24 Marek Polacek <polacek@redhat.com> |
563 | ||
564 | * c-parser.c (c_parser_struct_declaration): Add a comment. | |
565 | (c_parser_declarator): Don't allow _Alignas here. | |
566 | ||
7740abd8 | 567 | 2013-10-17 Andrew MacLeod <amacleod@redhat.com> |
568 | ||
569 | * c-parser.c: Include omp-low.h. | |
570 | * c-typeck.c: Likewise. | |
571 | ||
43d03c23 | 572 | 2013-10-17 Marek Polacek <polacek@redhat.com> |
573 | ||
574 | PR c/58267 | |
575 | * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter. | |
576 | Document syntax of the array-declarator. | |
577 | (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs | |
578 | are not permitted. | |
579 | (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call. | |
580 | (c_parser_struct_declaration): Likewise. | |
581 | (c_parser_declarator): Likewise. | |
582 | (c_parser_direct_declarator_inner): Likewise. | |
583 | (c_parser_parameter_declaration): Likewise. | |
584 | (c_parser_type_name): Likewise. | |
585 | ||
bc7bff74 | 586 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
587 | ||
588 | * c-lang.h (current_omp_declare_target_attribute): New extern | |
589 | decl. | |
590 | * c-parser.c: Include c-lang.h. | |
591 | (struct c_parser): Change tokens to c_token *. | |
592 | Add tokens_buf field. Change tokens_avail type to unsigned int. | |
593 | (c_parser_consume_token): If parser->tokens isn't | |
594 | &parser->tokens_buf[0], increment parser->tokens. | |
595 | (c_parser_consume_pragma): Likewise. | |
596 | (enum pragma_context): Add pragma_struct and pragma_param. | |
597 | (c_parser_external_declaration): Adjust | |
598 | c_parser_declaration_or_fndef caller. | |
599 | (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses | |
600 | argument, if it is non-vNULL vector, call c_finish_omp_declare_simd. | |
601 | Adjust recursive call. | |
602 | (c_parser_struct_or_union_specifier): Use pragma_struct instead | |
603 | of pragma_external. | |
604 | (c_parser_parameter_declaration): Use pragma_param instead of | |
605 | pragma_external. | |
606 | (c_parser_compound_statement_nostart, c_parser_label, | |
607 | c_parser_for_statement): Adjust | |
608 | c_parser_declaration_or_fndef callers. | |
609 | (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass | |
610 | it through to c_parser_conditional_expression. | |
611 | (c_parser_conditional_expression): Add omp_atomic_lhs argument, | |
612 | pass it through to c_parser_binary_expression. Adjust recursive | |
613 | call. | |
614 | (c_parser_binary_expression): Remove prec argument, add | |
615 | omp_atomic_lhs argument instead. Always start from PREC_NONE, if | |
616 | omp_atomic_lhs is non-NULL and one of the arguments of toplevel | |
617 | binop matches it, use build2 instead of parser_build_binary_op. | |
618 | (c_parser_pragma): Handle PRAGMA_OMP_CANCEL, | |
619 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET, | |
620 | PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION. | |
621 | Handle pragma_struct and pragma_param the same as pragma_external. | |
622 | (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names. | |
623 | (c_parser_omp_variable_list): Parse array sections for | |
624 | OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses. | |
625 | (c_parser_omp_clause_collapse): Fully fold collapse expression. | |
626 | (c_parser_omp_clause_reduction): Handle user defined reductions. | |
627 | (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind, | |
628 | c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit, | |
629 | c_parser_omp_clause_aligned, c_parser_omp_clause_linear, | |
630 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen, | |
631 | c_parser_omp_clause_depend, c_parser_omp_clause_map, | |
632 | c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule, | |
633 | c_parser_omp_clause_proc_bind, c_parser_omp_clause_to, | |
634 | c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions. | |
635 | (c_parser_omp_all_clauses): Add finish_p argument. Don't call | |
636 | c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses. | |
637 | (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is | |
638 | present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms. | |
639 | (c_parser_omp_for_loop): Add CODE argument, pass it through | |
640 | to c_finish_omp_for. Change last argument to cclauses, | |
641 | and adjust uses to grab parallel clauses from the array of all | |
642 | the split clauses. Adjust c_parser_binary_expression, | |
643 | c_parser_declaration_or_fndef and c_finish_omp_for callers. | |
644 | (omp_split_clauses): New function. | |
645 | (c_parser_omp_simd): New function. | |
646 | (c_parser_omp_for): Add p_name, mask and cclauses arguments. | |
647 | Allow the function to be called also when parsing combined constructs, | |
648 | and call c_parser_omp_simd when parsing for simd. | |
649 | (c_parser_omp_sections_scope): If section-sequence doesn't start with | |
650 | #pragma omp section, require exactly one structured-block instead of | |
651 | sequence of statements. | |
652 | (c_parser_omp_sections): Add p_name, mask and cclauses arguments. | |
653 | Allow the function to be called also when parsing combined constructs. | |
654 | (c_parser_omp_parallel): Add p_name, mask and cclauses arguments. | |
655 | Allow the function to be called also when parsing combined | |
656 | constructs. | |
657 | (c_parser_omp_taskgroup, c_parser_omp_cancel, | |
658 | c_parser_omp_cancellation_point, c_parser_omp_distribute, | |
659 | c_parser_omp_teams, c_parser_omp_target_data, | |
660 | c_parser_omp_target_update, c_parser_omp_target, | |
661 | c_parser_omp_declare_simd, c_finish_omp_declare_simd, | |
662 | c_parser_omp_declare_target, c_parser_omp_end_declare_target, | |
663 | c_parser_omp_declare_reduction, c_parser_omp_declare): New functions. | |
664 | (c_parser_omp_construct): Add p_name and mask vars. Handle | |
665 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP, | |
666 | PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel | |
667 | and c_parser_omp_sections callers. | |
668 | (c_parse_file): Initialize tparser.tokens and the_parser->tokens here. | |
669 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
670 | OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. | |
671 | (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND. | |
672 | (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add | |
673 | OMP_CLAUSE_DEPEND. | |
674 | (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK, | |
675 | OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK, | |
676 | OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK, | |
677 | OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK, | |
678 | OMP_DECLARE_SIMD_CLAUSE_MASK): Define. | |
679 | * c-typeck.c: Include tree-inline.h. | |
680 | (c_finish_omp_cancel, c_finish_omp_cancellation_point, | |
681 | handle_omp_array_sections_1, handle_omp_array_sections, | |
682 | c_clone_omp_udr, c_find_omp_placeholder_r): New functions. | |
683 | (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and | |
684 | user defined reductions. | |
685 | (c_tree_equal): New function. | |
686 | * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls, | |
687 | c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal, | |
688 | c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup, | |
689 | c_check_omp_declare_reduction_r): New prototypes. | |
690 | * c-decl.c (current_omp_declare_target_attribute): New variable. | |
691 | (c_decl_attributes): New function. | |
692 | (start_decl, start_function): Use it instead of decl_attributes. | |
693 | (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id, | |
694 | c_omp_reduction_decl, c_omp_reduction_lookup, | |
695 | c_check_omp_declare_reduction_r): New functions. | |
696 | ||
3ce7d1bd | 697 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
698 | ||
699 | * Make-lang.in (c/gccspec.o): Remove. | |
700 | (CFLAGS-c/gccspec.o): New variable. | |
701 | (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o) | |
702 | (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o) | |
703 | (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove. | |
704 | ||
96da1c1d | 705 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
706 | ||
707 | * Make-lang.in (c/gccspec.o): Don't use subshell. | |
708 | ||
1b309377 | 709 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
710 | ||
711 | PR sanitize/58443 | |
712 | * c-typeck.c (build_binary_op): Properly honor -fsanitize options. | |
713 | Remove unnecessary check. | |
714 | ||
05f893e1 | 715 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
716 | ||
717 | PR sanitizer/58411 | |
718 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
719 | no_sanitize_undefined attribute. | |
720 | ||
bda0b9d2 | 721 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
722 | ||
723 | PR target/57848 | |
724 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
725 | wrong assumption that it is never called on prexisting | |
726 | symbol. | |
727 | ||
73437615 | 728 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
729 | ||
730 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
731 | ||
eaab24b9 | 732 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
733 | ||
734 | * c-objc-common.c (c_tree_printer): Tidy. | |
735 | ||
9e46467d | 736 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
737 | ||
738 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
739 | instrumentation. | |
740 | ||
f8234178 | 741 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
f9086116 | 742 | Joseph Myers <joseph@codesourcery.com> |
f8234178 | 743 | |
c90a7d10 | 744 | PR c/35649 |
f8234178 | 745 | * c-typeck.c (c_common_type): Prefer double_type_node over |
746 | other REAL_TYPE types with the same precision. | |
747 | (convert_arguments): Likewise. | |
748 | ||
6f07f480 | 749 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
750 | ||
751 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
752 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
753 | ||
eed6bc21 | 754 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
755 | ||
756 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
757 | printer initialization. | |
758 | ||
57717943 | 759 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
eed6bc21 | 760 | |
57717943 | 761 | PR c/57490 |
762 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
763 | check for truth values. | |
764 | (expand_array_notation_exprs): Added truth values case. Removed an | |
765 | unwanted else. Added for-loop to walk through subtrees in default | |
766 | case. | |
767 | ||
a94db6b0 | 768 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
769 | ||
770 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
771 | ||
e76163a9 | 772 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
773 | ||
774 | * c-parser.c (struct c_generic_association): Fix typo. | |
775 | ||
7aa04c8d | 776 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
777 | Joseph Myers <joseph@codesourcery.com> | |
778 | ||
779 | * c-parser.c (struct c_generic_association): New. | |
780 | (c_generic_association_d): New typedef. | |
781 | (c_parser_generic_selection): New function. | |
782 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
783 | ||
76bbe4ca | 784 | 2013-07-13 Jason Merrill <jason@redhat.com> |
785 | ||
786 | PR c++/57793 | |
787 | * c-decl.c (finish_struct): Check for too-large class. | |
788 | ||
21ebaa24 | 789 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
f5298614 | 790 | |
791 | PR c/57821 | |
792 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
793 | ||
936c3081 | 794 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
795 | ||
796 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
797 | notations in an array of function pointers. | |
798 | ||
50acebe0 | 799 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
800 | ||
801 | * c-array-notation.c (make_triplet_val_inv): New function. | |
802 | (create_cmp_incr): Likewise. | |
803 | (create_array_refs): Likewise. | |
804 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
805 | Also modularized common parts between functions and called the function. | |
806 | (build_array_notation_expr): Likewise. | |
807 | (fix_conditional_array_notations_1): Likewise. | |
808 | (fix_array_notation_expr): Likewise. | |
809 | (fix_array_notation_call_expr): Likewise. | |
810 | ||
01e6cdb4 | 811 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
812 | ||
813 | PR c/57630 | |
814 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
815 | ||
6a3adac6 | 816 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
817 | ||
818 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
819 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
820 | a couple while statements that were dead code. | |
821 | ||
62aab3f3 | 822 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
823 | ||
824 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
825 | excessive precision expressions in function parameters. Also removed | |
826 | couple unwanted while statements. | |
827 | ||
bfc83720 | 828 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
829 | ||
830 | * c-array-notation.c (expand_array_notation_exprs): Added | |
831 | ARRAY_NOTATION_REF case. | |
832 | ||
09970d67 | 833 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
834 | ||
835 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
836 | function to c-family/array-notation-common.c. | |
837 | (is_cilkplus_reduce_builtin): Likewise. | |
838 | (find_rank): Likewise. | |
839 | (extract_array_notation_exprs): Likewise. | |
840 | (replace_array_notations): Likewise. | |
841 | (find_inv_trees): Likewise. | |
842 | (replace_inv_trees): Likewise. | |
843 | (contains_array_notation_expr): Likewise. | |
844 | (find_correct_array_notation_type): Likewise. | |
845 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
846 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
847 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
848 | ||
6e13bc01 | 849 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
850 | ||
851 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
852 | reduction functions outside the for-loop. Added a check if the fundecl | |
853 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
854 | body unconditional. | |
855 | ||
cc92dddc | 856 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
857 | ||
858 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
859 | condition of the if-statement matches the rank of else-block and then- | |
860 | block when array notations are used. | |
861 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
862 | expression after the entire function body is parsed. | |
863 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
864 | to the end of function parsing. | |
865 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
866 | whole if-statement instead of just the condition. | |
867 | (expand_array_notation_exprs): Added MODIFY_EXPR case. | |
868 | ||
eddc63fd | 869 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
870 | ||
871 | PR c/57474 | |
872 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
873 | array to NULL_TREE if they are unused. Also added a check for the | |
874 | field to be NULL before its fields are used in future. | |
875 | ||
a2115a4a | 876 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
877 | ||
878 | PR bootstrap/57450 | |
879 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
880 | (build_array_notation_expr): Likewise. | |
881 | ||
3c6d4197 | 882 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
883 | ||
884 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
885 | index is greater than one. If true, then emit an error. | |
886 | (build_function_call_vec): Exclude error reporting and checking | |
887 | for builtin array-notation functions. | |
888 | (convert_arguments): Likewise. | |
889 | (c_finish_return): Added a check for array notations as a return | |
890 | expression. If true, then emit an error. | |
891 | (c_finish_loop): Added a check for array notations in a loop | |
892 | condition. If true then emit an error. | |
893 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
894 | (build_binary_op): Added a check for array notation expr inside | |
895 | op1 and op0. If present, we call another function to find correct | |
896 | type. | |
897 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
898 | * c-parser.c (c_parser_compound_statement): Check if array | |
899 | notation code is used in tree, if so, then transform them into | |
900 | appropriate C code. | |
901 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
902 | or RHS, if so, then build array notation expression instead of | |
903 | regular modify. | |
904 | (c_parser_postfix_expression_after_primary): Added a check for | |
905 | colon(s) after square braces, if so then handle it like an array | |
906 | notation. Also, break up array notations in unary op if found. | |
907 | (c_parser_direct_declarator_inner): Added a check for array | |
908 | notation. | |
909 | (c_parser_compound_statement): Added a check for array notation in | |
910 | a stmt. If one is present, then expand array notation expr. | |
911 | (c_parser_if_statement): Likewise. | |
912 | (c_parser_switch_statement): Added a check for array notations in | |
913 | a switch statement's condition. If true, then output an error. | |
914 | (c_parser_while_statement): Similarly, but for a while. | |
915 | (c_parser_do_statement): Similarly, but for a do-while. | |
916 | (c_parser_for_statement): Similarly, but for a for-loop. | |
917 | (c_parser_unary_expression): Check if array notation is used in a | |
918 | pre-increment or pre-decrement expression. If true, then expand | |
919 | them. | |
920 | (c_parser_array_notation): New function. | |
921 | * c-array-notation.c: New file. | |
922 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
923 | ||
2c1c8a2c | 924 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
925 | ||
926 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
927 | spaces better. | |
928 | ||
be5f9e46 | 929 | 2013-05-16 Jason Merrill <jason@redhat.com> |
930 | ||
931 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
932 | ||
9205a6cc | 933 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
934 | ||
935 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
936 | to simply use OPT_Wpointer_arith. | |
937 | (build_unary_op): Likewise. | |
938 | ||
0b049e15 | 939 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
940 | ||
941 | PR c/19449 | |
942 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
943 | argument. If set, or it temporarily for parsing of the first | |
944 | argument into force_folding_builtin_constant_p. | |
945 | (c_parser_postfix_expression): Adjust callers. | |
946 | ||
8e966116 | 947 | 2013-03-21 Richard Biener <rguenther@suse.de> |
948 | ||
949 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
950 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
951 | ||
b862f263 | 952 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
953 | ||
954 | PR c/44938 | |
955 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
956 | origtypes to NULL. | |
957 | ||
54550ecb | 958 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
959 | ||
960 | PR c/56078 | |
961 | * c-typeck.c (set_nonincremental_init_from_string): If | |
962 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
963 | returned false. | |
964 | (process_init_element): Likewise. | |
965 | ||
035b65e2 | 966 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
967 | ||
968 | PR c++/55619 | |
969 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
970 | argument, don't call default_function_array_conversion | |
971 | nor c_fully_fold here. | |
972 | (c_parser_asm_statement): Adjust callers. | |
973 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
974 | and outputs here, and call default_function_array_conversion | |
975 | on inputs that don't need to be addressable. | |
976 | ||
7cbb7f1a | 977 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
978 | ||
979 | PR c/39464 | |
980 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
981 | warning require that both c_common_unsigned_type as well as | |
982 | c_common_signed_type is the same for both mvl and mvr types. | |
983 | ||
f1f41a6c | 984 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
985 | ||
986 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
987 | ||
988 | * c-common.c: Use new vec API in vec.h. | |
989 | * c-common.h: Likewise. | |
990 | * c-gimplify.c: Likewise. | |
991 | * c-pragma.c: Likewise. | |
992 | * c-pretty-print.c: Likewise. | |
993 | * c-pretty-print.h: Likewise. | |
994 | * c-semantics.c: Likewise. | |
995 | * c-decl.c: Likewise. | |
996 | * c-parser.c: Likewise. | |
997 | * c-tree.h: Likewise. | |
998 | * c-typeck.c: Likewise. | |
999 | ||
8b447d3f | 1000 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
1001 | ||
1002 | PR c++/54930 | |
1003 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
1004 | ||
08fc5390 | 1005 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1006 | ||
1007 | PR c/53066 | |
1008 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
1009 | shadows a function, unless the variable is a function or a | |
1010 | pointer-to-function. | |
1011 | ||
57f872a2 | 1012 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
1013 | ||
1014 | PR c/54381 | |
1015 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
1016 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
1017 | add location_t * and tree * arguments, fill in array of 3 | |
1018 | sizeof_arg trees and corresponding locs. | |
1019 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
1020 | c_parser_expr_list callers. | |
1021 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
1022 | array of 3 sizeof_arg trees and locs (corresponding to first | |
1023 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
1024 | ||
d1455aa3 | 1025 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
1026 | ||
1027 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
1028 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
1029 | hash table. | |
1030 | ||
b0e7825e | 1031 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
1032 | ||
1033 | PR c++/54194 | |
1034 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
1035 | call. | |
1036 | ||
41ed701a | 1037 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
1038 | ||
1039 | PR c++/54427 | |
1040 | * c-typeck.c: Include c-common.h. | |
1041 | (enum stv_conv): Moved to c-common.h. | |
1042 | (scalar_to_vector): Moved to c-common.c. | |
1043 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
1044 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
1045 | ||
ef34afc1 | 1046 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
1047 | ||
1048 | * c-decl.c (c_write_global_declarations): Fix handling of | |
1049 | -fdump-ada-spec*. | |
1050 | ||
7bd765d4 | 1051 | 2012-09-30 Sharad Singhai <singhai@google.com> |
1052 | ||
1053 | * c-decl.c (c_write_global_declarations): Use a different method | |
1054 | to determine if the dump has ben initialized. | |
1055 | ||
c4b1a13a | 1056 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
1057 | ||
1058 | PR c/54552 | |
1059 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
1060 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
1061 | c_fully_fold first. | |
1062 | ||
bb554051 | 1063 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
1064 | ||
1065 | PR c/54103 | |
1066 | * c-typeck.c (build_unary_op): Pass original argument of | |
1067 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
1068 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
1069 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
1070 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
1071 | to c_objc_common_truthvalue_conversion, then remove any | |
1072 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
1073 | c_objc_common_truthvalue_conversion not | |
1074 | c_common_truthvalue_conversion. | |
1075 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
1076 | call note_integer_operands for arguments with integer operands | |
1077 | that are not integer constants. | |
1078 | ||
c708c6ef | 1079 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
1080 | ||
1081 | PR c/54559 | |
1082 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
1083 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
1084 | ||
cce20430 | 1085 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
1086 | ||
1087 | PR c/54428 | |
1088 | * c-convert.c (convert): Don't call fold_convert_loc if | |
1089 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
1090 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
1091 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
1092 | ||
a90d57ed | 1093 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
1094 | ||
1095 | PR c/54355 | |
1096 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
1097 | for nested and empty_ok arguments in the call to | |
1098 | c_parser_declaration_or_fndef. | |
1099 | ||
f003f5dc | 1100 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
1101 | ||
1102 | * c-tree.h (c_last_sizeof_arg): Declare. | |
1103 | * c-parser.c (struct c_tree_loc_pair): New type. | |
1104 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
1105 | non-NULL. | |
1106 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
1107 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
1108 | sizeof_pointer_memaccess_warning if needed. | |
1109 | (sizeof_ptr_memacc_comptypes): New function. | |
1110 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
1111 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
1112 | ||
a5656b73 | 1113 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
1114 | ||
1115 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
1116 | ||
b9ed1410 | 1117 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
1118 | ||
1119 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
1120 | * Make-lang.in: Fix dependencies. | |
1121 | ||
e53d55e7 | 1122 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
1123 | ||
1124 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
1125 | and add language Makefile hooks. | |
1126 | * config-lang.in: New file. | |
1127 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
1128 | add the required "normal" config-lang.in rules. | |
1129 | * c-lang.h: Moved from gcc/ to here. | |
1130 | * c-tree.h: Likewise. | |
1131 | * c-objc-common.c: Likewise. | |
1132 | * c-objc-common.h: Likewise. | |
1133 | * c-typeck.c: Likewise. | |
1134 | * c-convert.c: Likewise. | |
1135 | * c-lang.c: Likewise. | |
1136 | * c-aux-info.c: Likewise. | |
1137 | * c-errors.c: Likewise. | |
1138 | * gccspec.c: Likewise. | |
1139 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
1140 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
1141 | \f | |
3aea1f79 | 1142 | Copyright (C) 2012-2014 Free Software Foundation, Inc. |
e53d55e7 | 1143 | |
1144 | Copying and distribution of this file, with or without modification, | |
1145 | are permitted in any medium without royalty provided the copyright | |
1146 | notice and this notice are preserved. |