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