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