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