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