1 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
3 * c-parser.c: Include omp-low.h.
4 * c-typeck.c: Likewise.
6 2013-10-17 Marek Polacek <polacek@redhat.com>
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
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.
20 2013-10-11 Jakub Jelinek <jakub@redhat.com>
22 * c-lang.h (current_omp_declare_target_attribute): New extern
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
38 (c_parser_parameter_declaration): Use pragma_param instead of
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
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
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
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.
131 2013-09-25 Tom Tromey <tromey@redhat.com>
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.
139 2013-09-25 Tom Tromey <tromey@redhat.com>
141 * Make-lang.in (c/gccspec.o): Don't use subshell.
143 2013-09-18 Marek Polacek <polacek@redhat.com>
146 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
147 Remove unnecessary check.
149 2013-09-18 Marek Polacek <polacek@redhat.com>
152 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
153 no_sanitize_undefined attribute.
155 2013-09-13 Kai Tietz <ktietz@redhat.com>
158 * c-decl.c (c_builtin_function_ext_scope): Remove
159 wrong assumption that it is never called on prexisting
162 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
164 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
166 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
168 * c-objc-common.c (c_tree_printer): Tidy.
170 2013-08-30 Marek Polacek <polacek@redhat.com>
172 * c-typeck.c (build_binary_op): Add division by zero and shift
175 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
176 Joseph Myers <joseph@codesourcery.com>
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.
183 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
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.
188 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
190 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
191 printer initialization.
193 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
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
202 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
204 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
206 2013-07-23 Joseph Myers <joseph@codesourcery.com>
208 * c-parser.c (struct c_generic_association): Fix typo.
210 2013-07-23 Tom Tromey <tromey@redhat.com>
211 Joseph Myers <joseph@codesourcery.com>
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.
218 2013-07-13 Jason Merrill <jason@redhat.com>
221 * c-decl.c (finish_struct): Check for too-large class.
223 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
226 * c-typeck.c (set_init_index): When folding, check for index overflow.
228 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
230 * c-parser.c (c_parser_array_notation): Removed rejection of array
231 notations in an array of function pointers.
233 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
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.
245 2013-06-18 Marek Polacek <polacek@redhat.com>
248 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
250 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
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.
256 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
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.
262 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
264 * c-array-notation.c (expand_array_notation_exprs): Added
265 ARRAY_NOTATION_REF case.
267 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
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.
283 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
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
290 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
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.
303 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
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.
310 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
313 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
314 (build_array_notation_expr): Likewise.
316 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
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
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
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
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
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
354 (c_parser_array_notation): New function.
355 * c-array-notation.c: New file.
356 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
358 2013-05-23 Mike Stump <mikestump@comcast.net>
360 * c-typeck.c (convert_for_assignment): Handle references to memory
363 2013-05-16 Jason Merrill <jason@redhat.com>
365 * Make-lang.in (cc1$(exeext)): Use link mutex.
367 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
369 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
370 to simply use OPT_Wpointer_arith.
371 (build_unary_op): Likewise.
373 2013-04-03 Jakub Jelinek <jakub@redhat.com>
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.
381 2013-03-21 Richard Biener <rguenther@suse.de>
383 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
384 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
386 2013-02-12 Marek Polacek <polacek@redhat.com>
389 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
392 2013-01-24 Jakub Jelinek <jakub@redhat.com>
395 * c-typeck.c (set_nonincremental_init_from_string): If
396 constructor_max_index is NULL, treat it as if tree_int_cst_lt
398 (process_init_element): Likewise.
400 2012-12-20 Jakub Jelinek <jakub@redhat.com>
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.
411 2012-12-18 Jakub Jelinek <jakub@redhat.com>
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.
418 2012-11-16 Diego Novillo <dnovillo@google.com>
420 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
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.
434 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
437 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
439 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
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
446 2012-10-12 Jakub Jelinek <jakub@redhat.com>
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.
459 2012-10-09 Lawrence Crowl <crowl@google.com>
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
465 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
468 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
471 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
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.
480 2012-10-04 Arnaud Charlet <charlet@adacore.com>
482 * c-decl.c (c_write_global_declarations): Fix handling of
485 2012-09-30 Sharad Singhai <singhai@google.com>
487 * c-decl.c (c_write_global_declarations): Use a different method
488 to determine if the dump has ben initialized.
490 2012-09-14 Joseph Myers <joseph@codesourcery.com>
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
497 2012-09-14 Joseph Myers <joseph@codesourcery.com>
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.
513 2012-09-13 Jakub Jelinek <jakub@redhat.com>
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.
519 2012-08-31 Jakub Jelinek <jakub@redhat.com>
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.
527 2012-08-24 Jakub Jelinek <jakub@redhat.com>
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.
534 2012-08-17 Jakub Jelinek <jakub@redhat.com>
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
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.
547 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
549 * c-lang.h (lang_decl): Add variable_size GTY option.
551 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
553 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
554 * Make-lang.in: Fix dependencies.
556 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
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.
576 Copyright (C) 2012-2013 Free Software Foundation, Inc.
578 Copying and distribution of this file, with or without modification,
579 are permitted in any medium without royalty provided the copyright
580 notice and this notice are preserved.