]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
Properly set ld_library_path in cilk-plus tests
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
241b71bb
TV
12013-11-27 Tom de Vries <tom@codesourcery.com>
2 Marc Glisse <marc.glisse@inria.fr>
3
4 PR c++/59032
5 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
6
2fb9a547
AM
72013-11-22 Andrew MacLeod <amacleod@redhat.com>
8
9 * c-typeck.c: Add required include files from gimple.h.
10
8400e75e
DM
112013-11-22 David Malcolm <dmalcolm@redhat.com>
12
13 * c-decl.c (define_label, shadow_tag_warned)
14 (check_bitfield_type_and_width, grokdeclarator, grokparms,
15 store_parm_decls_newstyle, store_parm_decls_oldstyle)
16 (declspecs_add_type): Remove use of in_system_header macro.
17 * c-parser.c (c_parser_unary_expression): Likewise.
18 * c-typeck.c (store_init_value, process_init_element)
19 (c_start_case): Likewise.
20
21 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
22 macro.
23
24 * c-parser.c (c_parser_set_source_position_from_token): Remove
25 reference to in_system_header from comment.
26
386b1f1f
RS
272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
28
29 * c-decl.c (grokdeclarator): Update comment to refer to
30 tree_to_[su]hwi rather than tree_low_cst.
31
ae7e9ddd
RS
322013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
33
34 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
35 tree_to_uhwi throughout.
36
9439e9a1
RS
372013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
38
39 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
40 throughout.
41
9541ffee
RS
422013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
43
44 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
45 throughout.
46
c02065fc
AH
472013-11-15 Aldy Hernandez <aldyh@redhat.com>
48
49 * c-parser.c (c_parser_cilk_simd): New.
50 (c_parser_cilk_verify_simd): New.
51 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
52 (c_parser_omp_for_loop): Add case for NE_EXPR.
53 Set c_break_label for CILK_SIMD.
54 (c_parser_cilk_clause_vectorlength): New.
55 (c_parser_cilk_clause_linear): New.
56 (c_parser_cilk_clause_name): New.
57 (c_parser_cilk_all_clauses): New.
58 * c-typeck.c (build_unary_op): Pass location argument to
59 readonly_error.
60 (build_modify_expr): Same.
61 (build_asm_expr): Same.
62 (c_finish_bc_stmt): Error on break/continue in loops.
63
18f429e2
AM
642013-11-14 Andrew MacLeod <amacleod@redhat.com>
65
66 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
67
d8a2d370
DN
682013-11-14 Diego Novillo <dnovillo@google.com>
69
70 * c-decl.c: Include print-tree.h.
71 Include stor-layout.h.
72 Include varasm.h.
73 Include attribs.h.
74 Include stringpool.h.
75 * c-lang.c: Include fold-const.h.
76 * c-parser.c: Include stringpool.h.
77 Include attribs.h.
78 Include stor-layout.h.
79 Include varasm.h.
80 Include trans-mem.h.
81 * c-typeck.c: Include stor-layout.h.
82 Include trans-mem.h.
83 Include varasm.h.
84 Include stmt.h.
85
38b7bc7f
JM
862013-11-13 Joseph Myers <joseph@codesourcery.com>
87
88 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
89 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
90 __auto_type.
91 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
92 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
93 RID_AUTO_TYPE.
94 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
95 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
96 (c_parser_declarator, c_parser_direct_declarator_inner)
97 (c_parser_parameter_declaration, c_parser_type_name): All callers
98 changed.
99 (c_parser_declaration_or_fndef): Handle declarations with type
100 determined from the initializer.
101
45b0be94
AM
1022013-11-12 Andrew MacLeod <amacleod@redhat.com>
103
18f429e2 104 * c-typeck.c: Include gimplify.h.
45b0be94 105
582d9b50
JM
1062013-11-12 Joseph Myers <joseph@codesourcery.com>
107
108 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
109 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
110 comment.
111 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
112 or _Thread_local as appropriate in diagnostics.
113 (build_null_declspecs): Initialize ret->thread_gnu_p.
114 (declspecs_add_scspec): Handle either __thread or _Thread_local
115 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
116 pedantic. Do not disallow _Thread_local extern and _Thread_local
117 static.
118
267bac10
JM
1192013-11-07 Joseph Myers <joseph@codesourcery.com>
120 Andrew MacLeod <amacleod@redhat.com>
121
122 * c-aux-info.c (gen_type): Handle atomic qualifier.
123 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
124 qualifiers when compating types.
125 (shadow_tag_warned): Handle atomic_p in declspecs.
126 (quals_from_declspecs): Likewise.
127 (start_decl): Use c_type_promotes_to when promoting argument
128 types.
129 (grokdeclarator): Handle _Atomic.
130 (get_parm_info): Diagnose any qualifier on "void" as only
131 parameter.
132 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
133 comparing types. Use c_type_promotes_to when promoting argument
134 types.
135 (finish_function): Use c_type_promotes_to when promoting argument
136 types.
137 (build_null_declspecs): Handle atomic_p in declspecs.
138 (declspecs_add_qual): Handle RID_ATOMIC.
139 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
140 (c_token_starts_declspecs): Handle RID_ATOMIC.
141 (c_parser_declspecs): Handle atomic type specifiers and
142 qualifiers.
143 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
144 from types of expressions with atomic type.
145 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
146 (c_parser_attribute_any_word): Handle RID_ATOMIC.
147 (c_parser_initializer, c_parser_initelt, c_parser_initval)
148 (c_parser_statement_after_labels, c_parser_switch_statement)
149 (c_parser_for_statement, c_parser_expr_no_commas)
150 (c_parser_conditional_expression, c_parser_binary_expression)
151 (c_parser_cast_expression, c_parser_unary_expression)
152 (c_parser_postfix_expression)
153 (c_parser_postfix_expression_after_primary, c_parser_expression):
154 Use convert_lvalue_to_rvalue.
155 (c_parser_expression_conv, c_parser_expr_list): Document
156 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
157 (c_parser_objc_synchronized_statement): Use
158 convert_lvalue_to_rvalue.
159 (c_parser_objc_selector): Handle RID_ATOMIC.
160 (c_parser_objc_receiver, c_parser_array_notation): Use
161 convert_lvalue_to_rvalue.
162 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
163 _Atomic (type-name).
164 (struct c_declspecs): Add atomic_p field.
165 (convert_lvalue_to_rvalue): Declare.
166 * c-typeck.c (c_type_promotes_to): Promote atomic types to
167 corresponding atomic types.
168 (qualify_type): Don't add _Atomic qualifiers from second argument.
169 (comp_target_types): Do not allow _Atomic mismatches.
170 (type_lists_compatible_p): Do not remove atomic qualifiers when
171 comparing types.
172 (really_atomic_lvalue, convert_lvalue_to_rvalue)
173 (build_atomic_assign): New functions.
174 (build_unary_op): Use build_atomic_assign for atomic increment and
175 decrement.
176 (build_conditional_expr): Do not treat _Atomic void as a qualified
177 version of void.
178 (build_modify_expr): Use build_atomic_assign for atomic LHS.
179 (find_anonymous_field_with_type, convert_to_anonymous_field)
180 (convert_for_assignment): Do not remove atomic qualifiers when
181 comparing types.
182 (digest_init): Do not accept initialization of arrays of atomic
183 elements by string constants.
184 (build_asm_expr): Use convert_lvalue_to_rvalue.
185 (build_binary_op): Do not treat _Atomic void as a qualified
186 version of void.
187
0c249d4b
DD
1882013-11-06 DJ Delorie <dj@redhat.com>
189
190 * c-decl.c (locate_old_decl): If a previous conflicting decl is
191 both explicit and builtin, print the location of the explicit one.
192
6d7f7e0a
TB
1932013-11-05 Tobias Burnus <burnus@net-b.de>
194
195 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
196 c_parser_omp_distribute, c_parser_omp_teams,
197 c_parser_omp_target, c_parser_omp_declare): Handle
198 -fopenmp-simd.
199
b906f4ca
MP
2002013-11-03 Marek Polacek <polacek@redhat.com>
201
202 * c-decl.c (grokdeclarator): Add VLA instrumentation.
203
ee1d5a02
JJ
2042013-11-01 Jakub Jelinek <jakub@redhat.com>
205
206 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
207 check_dup_generic at the end, unless remove is true.
208 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
209 remove = true;.
210 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
211
5a9785fb
JJ
2122013-10-31 Jakub Jelinek <jakub@redhat.com>
213
214 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
215 with decl that is not pointer nor array.
216
939b37da
BI
2172013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
218
219 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
220 a spawning function is found.
221 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
222 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
223 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
224 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
225 case.
226 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
227 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
228 expr.
229 (c_finish_return): Added a check to reject _Cilk_spawn in return
230 expression.
231 (build_cilk_spawn): New function.
232 (build_cilk_sync): Likewise.
233 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
234
d4af74d4
TB
2352013-10-27 Tobias Burnus <burnus@net-b.de>
236
237 PR other/33426
238 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
239 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
240 (c_parser_statement_after_labels): Update calls.
241
d73749df 2422013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
243
244 PR other/33426
245 * c-parser.c (c_parser_pragma, c_parser_for_statement):
246 Handle PRAGMA_IVDEP.
247 (c_parser_statement_after_labels): Update call.
248
f28aa681
MP
2492013-10-24 Marek Polacek <polacek@redhat.com>
250
251 * c-parser.c (c_parser_struct_declaration): Add a comment.
252 (c_parser_declarator): Don't allow _Alignas here.
253
0645c1a2
AM
2542013-10-17 Andrew MacLeod <amacleod@redhat.com>
255
256 * c-parser.c: Include omp-low.h.
257 * c-typeck.c: Likewise.
258
568a31f2
MP
2592013-10-17 Marek Polacek <polacek@redhat.com>
260
261 PR c/58267
262 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
263 Document syntax of the array-declarator.
264 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
265 are not permitted.
266 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
267 (c_parser_struct_declaration): Likewise.
268 (c_parser_declarator): Likewise.
269 (c_parser_direct_declarator_inner): Likewise.
270 (c_parser_parameter_declaration): Likewise.
271 (c_parser_type_name): Likewise.
272
acf0174b
JJ
2732013-10-11 Jakub Jelinek <jakub@redhat.com>
274
275 * c-lang.h (current_omp_declare_target_attribute): New extern
276 decl.
277 * c-parser.c: Include c-lang.h.
278 (struct c_parser): Change tokens to c_token *.
279 Add tokens_buf field. Change tokens_avail type to unsigned int.
280 (c_parser_consume_token): If parser->tokens isn't
281 &parser->tokens_buf[0], increment parser->tokens.
282 (c_parser_consume_pragma): Likewise.
283 (enum pragma_context): Add pragma_struct and pragma_param.
284 (c_parser_external_declaration): Adjust
285 c_parser_declaration_or_fndef caller.
286 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
287 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
288 Adjust recursive call.
289 (c_parser_struct_or_union_specifier): Use pragma_struct instead
290 of pragma_external.
291 (c_parser_parameter_declaration): Use pragma_param instead of
292 pragma_external.
293 (c_parser_compound_statement_nostart, c_parser_label,
294 c_parser_for_statement): Adjust
295 c_parser_declaration_or_fndef callers.
296 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
297 it through to c_parser_conditional_expression.
298 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
299 pass it through to c_parser_binary_expression. Adjust recursive
300 call.
301 (c_parser_binary_expression): Remove prec argument, add
302 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
303 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
304 binop matches it, use build2 instead of parser_build_binary_op.
305 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
306 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
307 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
308 Handle pragma_struct and pragma_param the same as pragma_external.
309 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
310 (c_parser_omp_variable_list): Parse array sections for
311 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
312 (c_parser_omp_clause_collapse): Fully fold collapse expression.
313 (c_parser_omp_clause_reduction): Handle user defined reductions.
314 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
315 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
316 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
317 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
318 c_parser_omp_clause_depend, c_parser_omp_clause_map,
319 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
320 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
321 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
322 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
323 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
324 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
325 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
326 (c_parser_omp_for_loop): Add CODE argument, pass it through
327 to c_finish_omp_for. Change last argument to cclauses,
328 and adjust uses to grab parallel clauses from the array of all
329 the split clauses. Adjust c_parser_binary_expression,
330 c_parser_declaration_or_fndef and c_finish_omp_for callers.
331 (omp_split_clauses): New function.
332 (c_parser_omp_simd): New function.
333 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
334 Allow the function to be called also when parsing combined constructs,
335 and call c_parser_omp_simd when parsing for simd.
336 (c_parser_omp_sections_scope): If section-sequence doesn't start with
337 #pragma omp section, require exactly one structured-block instead of
338 sequence of statements.
339 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
340 Allow the function to be called also when parsing combined constructs.
341 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
342 Allow the function to be called also when parsing combined
343 constructs.
344 (c_parser_omp_taskgroup, c_parser_omp_cancel,
345 c_parser_omp_cancellation_point, c_parser_omp_distribute,
346 c_parser_omp_teams, c_parser_omp_target_data,
347 c_parser_omp_target_update, c_parser_omp_target,
348 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
349 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
350 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
351 (c_parser_omp_construct): Add p_name and mask vars. Handle
352 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
353 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
354 and c_parser_omp_sections callers.
355 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
356 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
357 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
358 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
359 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
360 OMP_CLAUSE_DEPEND.
361 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
362 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
363 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
364 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
365 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
366 * c-typeck.c: Include tree-inline.h.
367 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
368 handle_omp_array_sections_1, handle_omp_array_sections,
369 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
370 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
371 user defined reductions.
372 (c_tree_equal): New function.
373 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
374 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
375 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
376 c_check_omp_declare_reduction_r): New prototypes.
377 * c-decl.c (current_omp_declare_target_attribute): New variable.
378 (c_decl_attributes): New function.
379 (start_decl, start_function): Use it instead of decl_attributes.
380 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
381 c_omp_reduction_decl, c_omp_reduction_lookup,
382 c_check_omp_declare_reduction_r): New functions.
383
0a6c2227
TT
3842013-09-25 Tom Tromey <tromey@redhat.com>
385
386 * Make-lang.in (c/gccspec.o): Remove.
387 (CFLAGS-c/gccspec.o): New variable.
388 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
389 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
390 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
391
f3bc55f0
TT
3922013-09-25 Tom Tromey <tromey@redhat.com>
393
394 * Make-lang.in (c/gccspec.o): Don't use subshell.
395
a24d975c
MP
3962013-09-18 Marek Polacek <polacek@redhat.com>
397
398 PR sanitize/58443
399 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
400 Remove unnecessary check.
401
ce6923c5
MP
4022013-09-18 Marek Polacek <polacek@redhat.com>
403
404 PR sanitizer/58411
405 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
406 no_sanitize_undefined attribute.
407
a1e51df9
KT
4082013-09-13 Kai Tietz <ktietz@redhat.com>
409
410 PR target/57848
411 * c-decl.c (c_builtin_function_ext_scope): Remove
412 wrong assumption that it is never called on prexisting
413 symbol.
414
0af94e6f
JR
4152013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
416
417 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
418
20059c8b
GDR
4192013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
420
421 * c-objc-common.c (c_tree_printer): Tidy.
422
de5a5fa1
MP
4232013-08-30 Marek Polacek <polacek@redhat.com>
424
425 * c-typeck.c (build_binary_op): Add division by zero and shift
426 instrumentation.
427
2531a1d9 4282013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 429 Joseph Myers <joseph@codesourcery.com>
2531a1d9 430
6e2bcc98 431 PR c/35649
2531a1d9
JR
432 * c-typeck.c (c_common_type): Prefer double_type_node over
433 other REAL_TYPE types with the same precision.
434 (convert_arguments): Likewise.
435
025311c4
GDR
4362013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
437
438 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
439 (c_initialize_diagnostics): Call a destructor for the early printer.
440
da6ca2b5
GDR
4412013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
442
443 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
444 printer initialization.
445
318cda85 4462013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 447
318cda85
BI
448 PR c/57490
449 * c-array-notation.c (fix_conditional_array_notations_1): Added a
450 check for truth values.
451 (expand_array_notation_exprs): Added truth values case. Removed an
452 unwanted else. Added for-loop to walk through subtrees in default
453 case.
454
b066401f
GDR
4552013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
456
457 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
458
fb48aadc
JM
4592013-07-23 Joseph Myers <joseph@codesourcery.com>
460
461 * c-parser.c (struct c_generic_association): Fix typo.
462
433cc7b0
TT
4632013-07-23 Tom Tromey <tromey@redhat.com>
464 Joseph Myers <joseph@codesourcery.com>
465
466 * c-parser.c (struct c_generic_association): New.
467 (c_generic_association_d): New typedef.
468 (c_parser_generic_selection): New function.
469 (c_parser_postfix_expression): Handle RID_GENERIC.
470
26d40c3d
JM
4712013-07-13 Jason Merrill <jason@redhat.com>
472
473 PR c++/57793
474 * c-decl.c (finish_struct): Check for too-large class.
475
ecdbd01a 4762013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
477
478 PR c/57821
479 * c-typeck.c (set_init_index): When folding, check for index overflow.
480
1141ed3f
BI
4812013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
482
483 * c-parser.c (c_parser_array_notation): Removed rejection of array
484 notations in an array of function pointers.
485
713b46fa
BI
4862013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
487
488 * c-array-notation.c (make_triplet_val_inv): New function.
489 (create_cmp_incr): Likewise.
490 (create_array_refs): Likewise.
491 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
492 Also modularized common parts between functions and called the function.
493 (build_array_notation_expr): Likewise.
494 (fix_conditional_array_notations_1): Likewise.
495 (fix_array_notation_expr): Likewise.
496 (fix_array_notation_call_expr): Likewise.
497
92f20202
MP
4982013-06-18 Marek Polacek <polacek@redhat.com>
499
500 PR c/57630
501 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
502
73a23b06
BI
5032013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
504
505 * c-array-notation.c (build_array_notation_expr): Reject array notation
506 mismatch between LHS and RHS even inside a call_expr. Also, removed
507 a couple while statements that were dead code.
508
00b8517d
BI
5092013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
510
511 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
512 excessive precision expressions in function parameters. Also removed
513 couple unwanted while statements.
514
1509bdda
BI
5152013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
516
517 * c-array-notation.c (expand_array_notation_exprs): Added
518 ARRAY_NOTATION_REF case.
519
d60f1706
BI
5202013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
521
522 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
523 function to c-family/array-notation-common.c.
524 (is_cilkplus_reduce_builtin): Likewise.
525 (find_rank): Likewise.
526 (extract_array_notation_exprs): Likewise.
527 (replace_array_notations): Likewise.
528 (find_inv_trees): Likewise.
529 (replace_inv_trees): Likewise.
530 (contains_array_notation_expr): Likewise.
531 (find_correct_array_notation_type): Likewise.
532 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
533 (struct inv_list): Moved this to c-family/array-notation-common.c.
534 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
535
6d6efbb3
BI
5362013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
537
538 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
539 reduction functions outside the for-loop. Added a check if the fundecl
540 is non-NULL. Finally, removed an unwanted if-statement, and made the
541 body unconditional.
542
25c22937
BI
5432013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
544
545 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
546 condition of the if-statement matches the rank of else-block and then-
547 block when array notations are used.
548 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
549 expression after the entire function body is parsed.
550 (c_parser_expr_no_commas): Delayed creating array notation expressions
551 to the end of function parsing.
552 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
553 whole if-statement instead of just the condition.
554 (expand_array_notation_exprs): Added MODIFY_EXPR case.
555
edd25645
BI
5562013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
557
558 PR c/57474
559 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
560 array to NULL_TREE if they are unused. Also added a check for the
561 field to be NULL before its fields are used in future.
562
065ce7f1
RO
5632013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
564
565 PR bootstrap/57450
566 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
567 (build_array_notation_expr): Likewise.
568
36536d79
BI
5692013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
570
571 * c-typeck.c (build_array_ref): Added a check to see if array's
572 index is greater than one. If true, then emit an error.
573 (build_function_call_vec): Exclude error reporting and checking
574 for builtin array-notation functions.
575 (convert_arguments): Likewise.
576 (c_finish_return): Added a check for array notations as a return
577 expression. If true, then emit an error.
578 (c_finish_loop): Added a check for array notations in a loop
579 condition. If true then emit an error.
580 (lvalue_p): Added a ARRAY_NOTATION_REF case.
581 (build_binary_op): Added a check for array notation expr inside
582 op1 and op0. If present, we call another function to find correct
583 type.
584 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
585 * c-parser.c (c_parser_compound_statement): Check if array
586 notation code is used in tree, if so, then transform them into
587 appropriate C code.
588 (c_parser_expr_no_commas): Check if array notation is used in LHS
589 or RHS, if so, then build array notation expression instead of
590 regular modify.
591 (c_parser_postfix_expression_after_primary): Added a check for
592 colon(s) after square braces, if so then handle it like an array
593 notation. Also, break up array notations in unary op if found.
594 (c_parser_direct_declarator_inner): Added a check for array
595 notation.
596 (c_parser_compound_statement): Added a check for array notation in
597 a stmt. If one is present, then expand array notation expr.
598 (c_parser_if_statement): Likewise.
599 (c_parser_switch_statement): Added a check for array notations in
600 a switch statement's condition. If true, then output an error.
601 (c_parser_while_statement): Similarly, but for a while.
602 (c_parser_do_statement): Similarly, but for a do-while.
603 (c_parser_for_statement): Similarly, but for a for-loop.
604 (c_parser_unary_expression): Check if array notation is used in a
605 pre-increment or pre-decrement expression. If true, then expand
606 them.
607 (c_parser_array_notation): New function.
608 * c-array-notation.c: New file.
609 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
610
cd192ccc
MS
6112013-05-23 Mike Stump <mikestump@comcast.net>
612
613 * c-typeck.c (convert_for_assignment): Handle references to memory
614 spaces better.
615
427b248d
JM
6162013-05-16 Jason Merrill <jason@redhat.com>
617
618 * Make-lang.in (cc1$(exeext)): Use link mutex.
619
44d90fe1
PC
6202013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
621
622 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
623 to simply use OPT_Wpointer_arith.
624 (build_unary_op): Likewise.
625
4e7d7b3d
JJ
6262013-04-03 Jakub Jelinek <jakub@redhat.com>
627
628 PR c/19449
629 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
630 argument. If set, or it temporarily for parsing of the first
631 argument into force_folding_builtin_constant_p.
632 (c_parser_postfix_expression): Adjust callers.
633
839b422f
RB
6342013-03-21 Richard Biener <rguenther@suse.de>
635
636 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
637 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
638
2ee028f1
MP
6392013-02-12 Marek Polacek <polacek@redhat.com>
640
641 PR c/44938
642 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
643 origtypes to NULL.
644
8824edff
JJ
6452013-01-24 Jakub Jelinek <jakub@redhat.com>
646
647 PR c/56078
648 * c-typeck.c (set_nonincremental_init_from_string): If
649 constructor_max_index is NULL, treat it as if tree_int_cst_lt
650 returned false.
651 (process_init_element): Likewise.
652
eadd3d0d
JJ
6532012-12-20 Jakub Jelinek <jakub@redhat.com>
654
655 PR c++/55619
656 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
657 argument, don't call default_function_array_conversion
658 nor c_fully_fold here.
659 (c_parser_asm_statement): Adjust callers.
660 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
661 and outputs here, and call default_function_array_conversion
662 on inputs that don't need to be addressable.
663
f8a93a2e
JJ
6642012-12-18 Jakub Jelinek <jakub@redhat.com>
665
666 PR c/39464
667 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
668 warning require that both c_common_unsigned_type as well as
669 c_common_signed_type is the same for both mvl and mvr types.
670
9771b263
DN
6712012-11-16 Diego Novillo <dnovillo@google.com>
672
673 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
674
675 * c-common.c: Use new vec API in vec.h.
676 * c-common.h: Likewise.
677 * c-gimplify.c: Likewise.
678 * c-pragma.c: Likewise.
679 * c-pretty-print.c: Likewise.
680 * c-pretty-print.h: Likewise.
681 * c-semantics.c: Likewise.
682 * c-decl.c: Likewise.
683 * c-parser.c: Likewise.
684 * c-tree.h: Likewise.
685 * c-typeck.c: Likewise.
686
880661a4
JW
6872012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
688
689 PR c++/54930
690 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
691
077d1abe
MLI
6922012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
693
694 PR c/53066
695 * c-decl.c (warn_if_shadowing): Do not warn if a variable
696 shadows a function, unless the variable is a function or a
697 pointer-to-function.
698
3a785c97
JJ
6992012-10-12 Jakub Jelinek <jakub@redhat.com>
700
701 PR c/54381
702 * c-parser.c (struct c_tree_loc_pair): Removed.
703 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
704 add location_t * and tree * arguments, fill in array of 3
705 sizeof_arg trees and corresponding locs.
706 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
707 c_parser_expr_list callers.
708 (c_parser_postfix_expression_after_primary): Likewise. Pass
709 array of 3 sizeof_arg trees and locs (corresponding to first
710 3 arguments) to sizeof_pointer_memaccess_warning.
711
703c8606
LC
7122012-10-09 Lawrence Crowl <crowl@google.com>
713
714 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
715 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
716 hash table.
717
5d9de0d0
PC
7182012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
719
720 PR c++/54194
721 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
722 call.
723
a212e43f
MG
7242012-10-09 Marc Glisse <marc.glisse@inria.fr>
725
726 PR c++/54427
727 * c-typeck.c: Include c-common.h.
728 (enum stv_conv): Moved to c-common.h.
729 (scalar_to_vector): Moved to c-common.c.
730 (build_binary_op): Adapt to scalar_to_vector's new prototype.
731 * Make-lang.in: c-typeck.c depends on c-common.h.
732
3b78de56
AC
7332012-10-04 Arnaud Charlet <charlet@adacore.com>
734
735 * c-decl.c (c_write_global_declarations): Fix handling of
736 -fdump-ada-spec*.
737
78c60e3d
SS
7382012-09-30 Sharad Singhai <singhai@google.com>
739
740 * c-decl.c (c_write_global_declarations): Use a different method
741 to determine if the dump has ben initialized.
742
9f33203d
JM
7432012-09-14 Joseph Myers <joseph@codesourcery.com>
744
745 PR c/54552
746 * c-typeck.c (c_cast_expr): When casting to a type requiring
747 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
748 c_fully_fold first.
749
a27d595d
JM
7502012-09-14 Joseph Myers <joseph@codesourcery.com>
751
752 PR c/54103
753 * c-typeck.c (build_unary_op): Pass original argument of
754 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
755 any C_MAYBE_CONST_EXPR, if it has integer operands.
756 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
757 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
758 to c_objc_common_truthvalue_conversion, then remove any
759 C_MAYBE_CONST_EXPR, if they have integer operands. Use
760 c_objc_common_truthvalue_conversion not
761 c_common_truthvalue_conversion.
762 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
763 call note_integer_operands for arguments with integer operands
764 that are not integer constants.
765
9feb29df
JJ
7662012-09-13 Jakub Jelinek <jakub@redhat.com>
767
768 PR c/54559
769 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
770 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
771
d409320c
JJ
7722012-08-31 Jakub Jelinek <jakub@redhat.com>
773
774 PR c/54428
775 * c-convert.c (convert): Don't call fold_convert_loc if
776 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
777 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
778 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
779
6265d07c
JJ
7802012-08-24 Jakub Jelinek <jakub@redhat.com>
781
782 PR c/54355
783 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
784 for nested and empty_ok arguments in the call to
785 c_parser_declaration_or_fndef.
786
1a4049e7
JJ
7872012-08-17 Jakub Jelinek <jakub@redhat.com>
788
789 * c-tree.h (c_last_sizeof_arg): Declare.
790 * c-parser.c (struct c_tree_loc_pair): New type.
791 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
792 non-NULL.
793 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
794 (c_parser_postfix_expression_after_primary): Likewise. Call
795 sizeof_pointer_memaccess_warning if needed.
796 (sizeof_ptr_memacc_comptypes): New function.
797 * c-typeck.c (c_last_sizeof_arg): New global variable.
798 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
799
0229aee9
UB
8002012-07-24 Uros Bizjak <ubizjak@gmail.com>
801
802 * c-lang.h (lang_decl): Add variable_size GTY option.
803
7ee2468b
SB
8042012-07-16 Steven Bosscher <steven@gcc.gnu.org>
805
806 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
807 * Make-lang.in: Fix dependencies.
808
d4a10d0a
SB
8092012-06-29 Steven Bosscher <steven@gcc.gnu.org>
810
811 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
812 and add language Makefile hooks.
813 * config-lang.in: New file.
814 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
815 add the required "normal" config-lang.in rules.
816 * c-lang.h: Moved from gcc/ to here.
817 * c-tree.h: Likewise.
818 * c-objc-common.c: Likewise.
819 * c-objc-common.h: Likewise.
820 * c-typeck.c: Likewise.
821 * c-convert.c: Likewise.
822 * c-lang.c: Likewise.
823 * c-aux-info.c: Likewise.
824 * c-errors.c: Likewise.
825 * gccspec.c: Likewise.
826 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
827 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
828\f
d1e082c2 829Copyright (C) 2012-2013 Free Software Foundation, Inc.
d4a10d0a
SB
830
831Copying and distribution of this file, with or without modification,
832are permitted in any medium without royalty provided the copyright
833notice and this notice are preserved.