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