]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
0645c1a2
AM
12013-10-17 Andrew MacLeod <amacleod@redhat.com>
2
3 * c-parser.c: Include omp-low.h.
4 * c-typeck.c: Likewise.
5
568a31f2
MP
62013-10-17 Marek Polacek <polacek@redhat.com>
7
8 PR c/58267
9 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
10 Document syntax of the array-declarator.
11 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
12 are not permitted.
13 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
14 (c_parser_struct_declaration): Likewise.
15 (c_parser_declarator): Likewise.
16 (c_parser_direct_declarator_inner): Likewise.
17 (c_parser_parameter_declaration): Likewise.
18 (c_parser_type_name): Likewise.
19
acf0174b
JJ
202013-10-11 Jakub Jelinek <jakub@redhat.com>
21
22 * c-lang.h (current_omp_declare_target_attribute): New extern
23 decl.
24 * c-parser.c: Include c-lang.h.
25 (struct c_parser): Change tokens to c_token *.
26 Add tokens_buf field. Change tokens_avail type to unsigned int.
27 (c_parser_consume_token): If parser->tokens isn't
28 &parser->tokens_buf[0], increment parser->tokens.
29 (c_parser_consume_pragma): Likewise.
30 (enum pragma_context): Add pragma_struct and pragma_param.
31 (c_parser_external_declaration): Adjust
32 c_parser_declaration_or_fndef caller.
33 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
34 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
35 Adjust recursive call.
36 (c_parser_struct_or_union_specifier): Use pragma_struct instead
37 of pragma_external.
38 (c_parser_parameter_declaration): Use pragma_param instead of
39 pragma_external.
40 (c_parser_compound_statement_nostart, c_parser_label,
41 c_parser_for_statement): Adjust
42 c_parser_declaration_or_fndef callers.
43 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
44 it through to c_parser_conditional_expression.
45 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
46 pass it through to c_parser_binary_expression. Adjust recursive
47 call.
48 (c_parser_binary_expression): Remove prec argument, add
49 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
50 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
51 binop matches it, use build2 instead of parser_build_binary_op.
52 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
53 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
54 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
55 Handle pragma_struct and pragma_param the same as pragma_external.
56 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
57 (c_parser_omp_variable_list): Parse array sections for
58 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
59 (c_parser_omp_clause_collapse): Fully fold collapse expression.
60 (c_parser_omp_clause_reduction): Handle user defined reductions.
61 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
62 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
63 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
64 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
65 c_parser_omp_clause_depend, c_parser_omp_clause_map,
66 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
67 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
68 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
69 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
70 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
71 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
72 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
73 (c_parser_omp_for_loop): Add CODE argument, pass it through
74 to c_finish_omp_for. Change last argument to cclauses,
75 and adjust uses to grab parallel clauses from the array of all
76 the split clauses. Adjust c_parser_binary_expression,
77 c_parser_declaration_or_fndef and c_finish_omp_for callers.
78 (omp_split_clauses): New function.
79 (c_parser_omp_simd): New function.
80 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
81 Allow the function to be called also when parsing combined constructs,
82 and call c_parser_omp_simd when parsing for simd.
83 (c_parser_omp_sections_scope): If section-sequence doesn't start with
84 #pragma omp section, require exactly one structured-block instead of
85 sequence of statements.
86 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
87 Allow the function to be called also when parsing combined constructs.
88 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
89 Allow the function to be called also when parsing combined
90 constructs.
91 (c_parser_omp_taskgroup, c_parser_omp_cancel,
92 c_parser_omp_cancellation_point, c_parser_omp_distribute,
93 c_parser_omp_teams, c_parser_omp_target_data,
94 c_parser_omp_target_update, c_parser_omp_target,
95 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
96 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
97 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
98 (c_parser_omp_construct): Add p_name and mask vars. Handle
99 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
100 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
101 and c_parser_omp_sections callers.
102 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
103 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
104 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
105 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
106 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
107 OMP_CLAUSE_DEPEND.
108 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
109 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
110 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
111 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
112 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
113 * c-typeck.c: Include tree-inline.h.
114 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
115 handle_omp_array_sections_1, handle_omp_array_sections,
116 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
117 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
118 user defined reductions.
119 (c_tree_equal): New function.
120 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
121 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
122 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
123 c_check_omp_declare_reduction_r): New prototypes.
124 * c-decl.c (current_omp_declare_target_attribute): New variable.
125 (c_decl_attributes): New function.
126 (start_decl, start_function): Use it instead of decl_attributes.
127 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
128 c_omp_reduction_decl, c_omp_reduction_lookup,
129 c_check_omp_declare_reduction_r): New functions.
130
0a6c2227
TT
1312013-09-25 Tom Tromey <tromey@redhat.com>
132
133 * Make-lang.in (c/gccspec.o): Remove.
134 (CFLAGS-c/gccspec.o): New variable.
135 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
136 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
137 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
138
f3bc55f0
TT
1392013-09-25 Tom Tromey <tromey@redhat.com>
140
141 * Make-lang.in (c/gccspec.o): Don't use subshell.
142
a24d975c
MP
1432013-09-18 Marek Polacek <polacek@redhat.com>
144
145 PR sanitize/58443
146 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
147 Remove unnecessary check.
148
ce6923c5
MP
1492013-09-18 Marek Polacek <polacek@redhat.com>
150
151 PR sanitizer/58411
152 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
153 no_sanitize_undefined attribute.
154
a1e51df9
KT
1552013-09-13 Kai Tietz <ktietz@redhat.com>
156
157 PR target/57848
158 * c-decl.c (c_builtin_function_ext_scope): Remove
159 wrong assumption that it is never called on prexisting
160 symbol.
161
0af94e6f
JR
1622013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
163
164 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
165
20059c8b
GDR
1662013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
167
168 * c-objc-common.c (c_tree_printer): Tidy.
169
de5a5fa1
MP
1702013-08-30 Marek Polacek <polacek@redhat.com>
171
172 * c-typeck.c (build_binary_op): Add division by zero and shift
173 instrumentation.
174
2531a1d9 1752013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 176 Joseph Myers <joseph@codesourcery.com>
2531a1d9 177
6e2bcc98 178 PR c/35649
2531a1d9
JR
179 * c-typeck.c (c_common_type): Prefer double_type_node over
180 other REAL_TYPE types with the same precision.
181 (convert_arguments): Likewise.
182
025311c4
GDR
1832013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
184
185 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
186 (c_initialize_diagnostics): Call a destructor for the early printer.
187
da6ca2b5
GDR
1882013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
189
190 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
191 printer initialization.
192
318cda85 1932013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 194
318cda85
BI
195 PR c/57490
196 * c-array-notation.c (fix_conditional_array_notations_1): Added a
197 check for truth values.
198 (expand_array_notation_exprs): Added truth values case. Removed an
199 unwanted else. Added for-loop to walk through subtrees in default
200 case.
201
b066401f
GDR
2022013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
203
204 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
205
fb48aadc
JM
2062013-07-23 Joseph Myers <joseph@codesourcery.com>
207
208 * c-parser.c (struct c_generic_association): Fix typo.
209
433cc7b0
TT
2102013-07-23 Tom Tromey <tromey@redhat.com>
211 Joseph Myers <joseph@codesourcery.com>
212
213 * c-parser.c (struct c_generic_association): New.
214 (c_generic_association_d): New typedef.
215 (c_parser_generic_selection): New function.
216 (c_parser_postfix_expression): Handle RID_GENERIC.
217
26d40c3d
JM
2182013-07-13 Jason Merrill <jason@redhat.com>
219
220 PR c++/57793
221 * c-decl.c (finish_struct): Check for too-large class.
222
ecdbd01a 2232013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
224
225 PR c/57821
226 * c-typeck.c (set_init_index): When folding, check for index overflow.
227
1141ed3f
BI
2282013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
229
230 * c-parser.c (c_parser_array_notation): Removed rejection of array
231 notations in an array of function pointers.
232
713b46fa
BI
2332013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
234
235 * c-array-notation.c (make_triplet_val_inv): New function.
236 (create_cmp_incr): Likewise.
237 (create_array_refs): Likewise.
238 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
239 Also modularized common parts between functions and called the function.
240 (build_array_notation_expr): Likewise.
241 (fix_conditional_array_notations_1): Likewise.
242 (fix_array_notation_expr): Likewise.
243 (fix_array_notation_call_expr): Likewise.
244
92f20202
MP
2452013-06-18 Marek Polacek <polacek@redhat.com>
246
247 PR c/57630
248 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
249
73a23b06
BI
2502013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
251
252 * c-array-notation.c (build_array_notation_expr): Reject array notation
253 mismatch between LHS and RHS even inside a call_expr. Also, removed
254 a couple while statements that were dead code.
255
00b8517d
BI
2562013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
257
258 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
259 excessive precision expressions in function parameters. Also removed
260 couple unwanted while statements.
261
1509bdda
BI
2622013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
263
264 * c-array-notation.c (expand_array_notation_exprs): Added
265 ARRAY_NOTATION_REF case.
266
d60f1706
BI
2672013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
268
269 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
270 function to c-family/array-notation-common.c.
271 (is_cilkplus_reduce_builtin): Likewise.
272 (find_rank): Likewise.
273 (extract_array_notation_exprs): Likewise.
274 (replace_array_notations): Likewise.
275 (find_inv_trees): Likewise.
276 (replace_inv_trees): Likewise.
277 (contains_array_notation_expr): Likewise.
278 (find_correct_array_notation_type): Likewise.
279 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
280 (struct inv_list): Moved this to c-family/array-notation-common.c.
281 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
282
6d6efbb3
BI
2832013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
284
285 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
286 reduction functions outside the for-loop. Added a check if the fundecl
287 is non-NULL. Finally, removed an unwanted if-statement, and made the
288 body unconditional.
289
25c22937
BI
2902013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
291
292 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
293 condition of the if-statement matches the rank of else-block and then-
294 block when array notations are used.
295 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
296 expression after the entire function body is parsed.
297 (c_parser_expr_no_commas): Delayed creating array notation expressions
298 to the end of function parsing.
299 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
300 whole if-statement instead of just the condition.
301 (expand_array_notation_exprs): Added MODIFY_EXPR case.
302
edd25645
BI
3032013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
304
305 PR c/57474
306 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
307 array to NULL_TREE if they are unused. Also added a check for the
308 field to be NULL before its fields are used in future.
309
065ce7f1
RO
3102013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
311
312 PR bootstrap/57450
313 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
314 (build_array_notation_expr): Likewise.
315
36536d79
BI
3162013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
317
318 * c-typeck.c (build_array_ref): Added a check to see if array's
319 index is greater than one. If true, then emit an error.
320 (build_function_call_vec): Exclude error reporting and checking
321 for builtin array-notation functions.
322 (convert_arguments): Likewise.
323 (c_finish_return): Added a check for array notations as a return
324 expression. If true, then emit an error.
325 (c_finish_loop): Added a check for array notations in a loop
326 condition. If true then emit an error.
327 (lvalue_p): Added a ARRAY_NOTATION_REF case.
328 (build_binary_op): Added a check for array notation expr inside
329 op1 and op0. If present, we call another function to find correct
330 type.
331 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
332 * c-parser.c (c_parser_compound_statement): Check if array
333 notation code is used in tree, if so, then transform them into
334 appropriate C code.
335 (c_parser_expr_no_commas): Check if array notation is used in LHS
336 or RHS, if so, then build array notation expression instead of
337 regular modify.
338 (c_parser_postfix_expression_after_primary): Added a check for
339 colon(s) after square braces, if so then handle it like an array
340 notation. Also, break up array notations in unary op if found.
341 (c_parser_direct_declarator_inner): Added a check for array
342 notation.
343 (c_parser_compound_statement): Added a check for array notation in
344 a stmt. If one is present, then expand array notation expr.
345 (c_parser_if_statement): Likewise.
346 (c_parser_switch_statement): Added a check for array notations in
347 a switch statement's condition. If true, then output an error.
348 (c_parser_while_statement): Similarly, but for a while.
349 (c_parser_do_statement): Similarly, but for a do-while.
350 (c_parser_for_statement): Similarly, but for a for-loop.
351 (c_parser_unary_expression): Check if array notation is used in a
352 pre-increment or pre-decrement expression. If true, then expand
353 them.
354 (c_parser_array_notation): New function.
355 * c-array-notation.c: New file.
356 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
357
cd192ccc
MS
3582013-05-23 Mike Stump <mikestump@comcast.net>
359
360 * c-typeck.c (convert_for_assignment): Handle references to memory
361 spaces better.
362
427b248d
JM
3632013-05-16 Jason Merrill <jason@redhat.com>
364
365 * Make-lang.in (cc1$(exeext)): Use link mutex.
366
44d90fe1
PC
3672013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
368
369 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
370 to simply use OPT_Wpointer_arith.
371 (build_unary_op): Likewise.
372
4e7d7b3d
JJ
3732013-04-03 Jakub Jelinek <jakub@redhat.com>
374
375 PR c/19449
376 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
377 argument. If set, or it temporarily for parsing of the first
378 argument into force_folding_builtin_constant_p.
379 (c_parser_postfix_expression): Adjust callers.
380
839b422f
RB
3812013-03-21 Richard Biener <rguenther@suse.de>
382
383 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
384 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
385
2ee028f1
MP
3862013-02-12 Marek Polacek <polacek@redhat.com>
387
388 PR c/44938
389 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
390 origtypes to NULL.
391
8824edff
JJ
3922013-01-24 Jakub Jelinek <jakub@redhat.com>
393
394 PR c/56078
395 * c-typeck.c (set_nonincremental_init_from_string): If
396 constructor_max_index is NULL, treat it as if tree_int_cst_lt
397 returned false.
398 (process_init_element): Likewise.
399
eadd3d0d
JJ
4002012-12-20 Jakub Jelinek <jakub@redhat.com>
401
402 PR c++/55619
403 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
404 argument, don't call default_function_array_conversion
405 nor c_fully_fold here.
406 (c_parser_asm_statement): Adjust callers.
407 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
408 and outputs here, and call default_function_array_conversion
409 on inputs that don't need to be addressable.
410
f8a93a2e
JJ
4112012-12-18 Jakub Jelinek <jakub@redhat.com>
412
413 PR c/39464
414 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
415 warning require that both c_common_unsigned_type as well as
416 c_common_signed_type is the same for both mvl and mvr types.
417
9771b263
DN
4182012-11-16 Diego Novillo <dnovillo@google.com>
419
420 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
421
422 * c-common.c: Use new vec API in vec.h.
423 * c-common.h: Likewise.
424 * c-gimplify.c: Likewise.
425 * c-pragma.c: Likewise.
426 * c-pretty-print.c: Likewise.
427 * c-pretty-print.h: Likewise.
428 * c-semantics.c: Likewise.
429 * c-decl.c: Likewise.
430 * c-parser.c: Likewise.
431 * c-tree.h: Likewise.
432 * c-typeck.c: Likewise.
433
880661a4
JW
4342012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
435
436 PR c++/54930
437 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
438
077d1abe
MLI
4392012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
440
441 PR c/53066
442 * c-decl.c (warn_if_shadowing): Do not warn if a variable
443 shadows a function, unless the variable is a function or a
444 pointer-to-function.
445
3a785c97
JJ
4462012-10-12 Jakub Jelinek <jakub@redhat.com>
447
448 PR c/54381
449 * c-parser.c (struct c_tree_loc_pair): Removed.
450 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
451 add location_t * and tree * arguments, fill in array of 3
452 sizeof_arg trees and corresponding locs.
453 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
454 c_parser_expr_list callers.
455 (c_parser_postfix_expression_after_primary): Likewise. Pass
456 array of 3 sizeof_arg trees and locs (corresponding to first
457 3 arguments) to sizeof_pointer_memaccess_warning.
458
703c8606
LC
4592012-10-09 Lawrence Crowl <crowl@google.com>
460
461 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
462 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
463 hash table.
464
5d9de0d0
PC
4652012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
466
467 PR c++/54194
468 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
469 call.
470
a212e43f
MG
4712012-10-09 Marc Glisse <marc.glisse@inria.fr>
472
473 PR c++/54427
474 * c-typeck.c: Include c-common.h.
475 (enum stv_conv): Moved to c-common.h.
476 (scalar_to_vector): Moved to c-common.c.
477 (build_binary_op): Adapt to scalar_to_vector's new prototype.
478 * Make-lang.in: c-typeck.c depends on c-common.h.
479
3b78de56
AC
4802012-10-04 Arnaud Charlet <charlet@adacore.com>
481
482 * c-decl.c (c_write_global_declarations): Fix handling of
483 -fdump-ada-spec*.
484
78c60e3d
SS
4852012-09-30 Sharad Singhai <singhai@google.com>
486
487 * c-decl.c (c_write_global_declarations): Use a different method
488 to determine if the dump has ben initialized.
489
9f33203d
JM
4902012-09-14 Joseph Myers <joseph@codesourcery.com>
491
492 PR c/54552
493 * c-typeck.c (c_cast_expr): When casting to a type requiring
494 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
495 c_fully_fold first.
496
a27d595d
JM
4972012-09-14 Joseph Myers <joseph@codesourcery.com>
498
499 PR c/54103
500 * c-typeck.c (build_unary_op): Pass original argument of
501 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
502 any C_MAYBE_CONST_EXPR, if it has integer operands.
503 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
504 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
505 to c_objc_common_truthvalue_conversion, then remove any
506 C_MAYBE_CONST_EXPR, if they have integer operands. Use
507 c_objc_common_truthvalue_conversion not
508 c_common_truthvalue_conversion.
509 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
510 call note_integer_operands for arguments with integer operands
511 that are not integer constants.
512
9feb29df
JJ
5132012-09-13 Jakub Jelinek <jakub@redhat.com>
514
515 PR c/54559
516 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
517 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
518
d409320c
JJ
5192012-08-31 Jakub Jelinek <jakub@redhat.com>
520
521 PR c/54428
522 * c-convert.c (convert): Don't call fold_convert_loc if
523 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
524 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
525 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
526
6265d07c
JJ
5272012-08-24 Jakub Jelinek <jakub@redhat.com>
528
529 PR c/54355
530 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
531 for nested and empty_ok arguments in the call to
532 c_parser_declaration_or_fndef.
533
1a4049e7
JJ
5342012-08-17 Jakub Jelinek <jakub@redhat.com>
535
536 * c-tree.h (c_last_sizeof_arg): Declare.
537 * c-parser.c (struct c_tree_loc_pair): New type.
538 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
539 non-NULL.
540 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
541 (c_parser_postfix_expression_after_primary): Likewise. Call
542 sizeof_pointer_memaccess_warning if needed.
543 (sizeof_ptr_memacc_comptypes): New function.
544 * c-typeck.c (c_last_sizeof_arg): New global variable.
545 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
546
0229aee9
UB
5472012-07-24 Uros Bizjak <ubizjak@gmail.com>
548
549 * c-lang.h (lang_decl): Add variable_size GTY option.
550
7ee2468b
SB
5512012-07-16 Steven Bosscher <steven@gcc.gnu.org>
552
553 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
554 * Make-lang.in: Fix dependencies.
555
d4a10d0a
SB
5562012-06-29 Steven Bosscher <steven@gcc.gnu.org>
557
558 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
559 and add language Makefile hooks.
560 * config-lang.in: New file.
561 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
562 add the required "normal" config-lang.in rules.
563 * c-lang.h: Moved from gcc/ to here.
564 * c-tree.h: Likewise.
565 * c-objc-common.c: Likewise.
566 * c-objc-common.h: Likewise.
567 * c-typeck.c: Likewise.
568 * c-convert.c: Likewise.
569 * c-lang.c: Likewise.
570 * c-aux-info.c: Likewise.
571 * c-errors.c: Likewise.
572 * gccspec.c: Likewise.
573 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
574 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
575\f
d1e082c2 576Copyright (C) 2012-2013 Free Software Foundation, Inc.
d4a10d0a
SB
577
578Copying and distribution of this file, with or without modification,
579are permitted in any medium without royalty provided the copyright
580notice and this notice are preserved.