1 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4 (dump_ada_specs): Adjust prototype of second callback.
5 * c-ada-spec.c (cpp_check): New global variable.
6 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
7 (print_generic_ada_decl): Likewise.
8 (has_static_fields): Change return type to bool and add guard.
9 (has_nontrivial_methods): New predicate.
10 (is_tagged_type): Change return type to bool.
11 (separate_class_package): Call has_nontrivial_methods.
12 (pp_ada_tree_identifier): Minor tweaks.
13 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
14 (dump_ada_array_domains): Likewise.
15 (dump_ada_array_type): Likewise.
16 (dump_template_types): Remove cpp_check parameter and do not pass it to
17 dump_generic_ada_node.
18 (dump_ada_template): Likewise.
19 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
21 (print_ada_methods): Change return type to integer. Remove cpp_check
22 parameter and do not pass it down.
23 (dump_nested_types): Remove cpp_check parameter and do not pass it to
24 dump_generic_ada_node.
25 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
27 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
28 down. Use has_nontrivial_methods to recognize C++ classes. Use return
29 value of print_ada_methods.
30 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
31 Set cpp_check to it before invoking dump_ada_nodes.
32 (dump_ada_specs): Likewise.
34 2013-11-03 Marek Polacek <polacek@redhat.com>
36 * c-ubsan.c: Don't include hash-table.h.
37 (ubsan_instrument_vla): New function.
38 * c-ubsan.h: Declare it.
40 2013-10-31 David Malcolm <dmalcolm@redhat.com>
42 Automated part of renaming of symtab_node_base to symtab_node.
44 Patch autogenerated by rename_symtab.py from
45 https://github.com/davidmalcolm/gcc-refactoring-scripts
46 revision 58bb219cc090b2f4516a9297d868c245495ee622
48 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
49 symtab_node_base to symtab_node.
51 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
53 Implement C++14 digit separators.
54 * c-lex.c (interpret_float): Remove digit separators from scratch string
55 before building real literal.
57 2013-10-30 Jakub Jelinek <jakub@redhat.com>
59 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
61 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
63 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
65 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
67 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
68 (insert_cilk_frame): New prototype.
69 (cilk_init_builtins): Likewise.
70 (gimplify_cilk_spawn): Likewise.
71 (c_cilk_install_body_w_frame_cleanup): Likewise.
72 (cilk_detect_spawn_and_unwrap): Likewise.
73 (cilk_set_spawn_marker): Likewise.
74 (build_cilk_sync): Likewise.
75 (build_cilk_spawn): Likewise.
78 2013-10-29 David Malcolm <dmalcolm@redhat.com>
80 Patch autogenerated by refactor_symtab.py from
81 https://github.com/davidmalcolm/gcc-refactoring-scripts
82 revision 58bb219cc090b2f4516a9297d868c245495ee622
84 * c-gimplify.c (c_genericize): Update for conversion of symtab types
85 to a true class hierarchy.
86 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
88 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
90 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
92 2013-10-26 Jeff Law <law@redhat.com>
94 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
95 * c-family/c.opt: Ignore and warn for mudflap options.
97 2013-10-24 Tobias Burnus <burnus@net-b.de>
100 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
101 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
103 2013-10-23 Jason Merrill <jason@redhat.com>
105 * c-format.c (gcc_cxxdiag_char_table): Add %X.
107 2013-10-11 Jakub Jelinek <jakub@redhat.com>
109 * c-common.h (omp_clause_mask::operator !=): New method.
110 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
111 instead of if (mask & something) tests everywhere.
113 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
114 201307 instead of 201107.
115 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
116 (c_common_attribute_table): Add "omp declare target" and
117 "omp declare simd" attributes.
118 (handle_omp_declare_target_attribute,
119 handle_omp_declare_simd_attribute): New functions.
120 * c-omp.c: Include c-pragma.h.
121 (c_finish_omp_taskgroup): New function.
122 (c_finish_omp_atomic): Add swapped argument, if true,
123 build the operation first with rhs, lhs arguments and use NOP_EXPR
125 (c_finish_omp_for): Add code argument, pass it down to make_code.
126 (c_omp_split_clauses): New function.
127 (c_split_parallel_clauses): Removed.
128 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
129 c_omp_declare_simd_clauses_to_decls): New functions.
130 * c-common.h (omp_clause_mask): New type.
131 (OMP_CLAUSE_MASK_1): Define.
132 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
133 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
134 omp_clause_mask::operator |, omp_clause_mask::operator &,
135 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
136 omp_clause_mask::operator ==): New methods.
137 (enum c_omp_clause_split): New.
138 (c_finish_omp_taskgroup): New prototype.
139 (c_finish_omp_atomic): Add swapped argument.
140 (c_finish_omp_for): Add code argument.
141 (c_omp_split_clauses): New prototype.
142 (c_split_parallel_clauses): Removed.
143 (c_omp_declare_simd_clauses_to_numbers,
144 c_omp_declare_simd_clauses_to_decls): New prototypes.
145 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
146 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
147 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
148 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
149 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
150 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
151 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
152 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
153 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
154 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
155 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
156 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
157 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
158 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
159 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
160 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
161 PRAGMA_OMP_CLAUSE_UNIFORM.
163 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
165 PR tree-optimization/20318
166 * c-common.c (handle_returns_nonnull_attribute): New function.
167 (c_common_attribute_table): Add returns_nonnull.
169 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
172 * c.opt (fcheck-new): Move to common.opt.
174 2013-09-25 Marek Polacek <polacek@redhat.com>
175 Jakub Jelinek <jakub@redhat.com>
178 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
179 an expression if we can prove it is correct.
180 (ubsan_instrument_division): Likewise. Remove unnecessary
183 2013-09-18 Marek Polacek <polacek@redhat.com>
186 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
188 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
190 2013-09-14 Iain Sandoe <iain@codesourcery.com>
193 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
194 fobjc-gc, freplace-objc-classes): Accept for LTO.
196 2013-09-13 Jacek Caban <jacek@codeweavers.com>
198 * c-target.def: New hook
200 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
203 * c.opt (Wdelete-incomplete): Add.
205 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
207 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
208 (vector_types_compatible_elements_p): New function.
209 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
211 (vector_types_compatible_elements_p): Declare.
213 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
215 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
216 a virtual member function.
217 (pp_simple_type_specifier): Remove.
218 (pp_c_type_specifier): Likewise.
219 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
220 Rename from pp_c_type_specifier. Adjust.
221 (c_pretty_printer::c_pretty_printer): Do not assign to
222 simple_type_specifier.
224 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
226 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
228 (c_pretty_printer::storage_class_specifier): Likewise.
229 (c_pretty_printer::initializer): Likewise.
230 (pp_declaration): Remove.
231 (pp_declaration_specifiers): Likewise.
232 (pp_abstract_declarator): Likewise.
233 (pp_declarator): Likewise.
234 (pp_type_id): Likewise.
235 (pp_statement): Likewise.
236 (pp_constant): Likewise.
237 (pp_id_expression): Likewise.
238 (pp_primary_expression): Likewise.
239 (pp_unary_expression): Likewise.
240 (pp_multiplicative_expression): Likewise.
241 (pp_conditional_expression): Likewise.
242 (pp_assignment_expression): Likewise.
243 (pp_expression): Likewise.
244 (pp_c_type_id): Likewise.
245 (pp_c_storage_class_specifier): Likewise.
246 * c-pretty-print.c (pp_c_type_cast): Tidy.
247 (pp_c_pointer): Likewise.
248 (pp_c_type_specifier): Likewise.
249 (pp_c_parameter_type_list): Likewise.
250 (pp_c_function_definition): Likewise.
251 (pp_c_init_declarator): Likewise.
252 (pp_c_initializer_list): Likewise.
253 (pp_c_constructor_elts): Likewise.
254 (c_pretty_printer::direct_abstract_declarator): Likewise.
255 (c_pretty_printer::declaration_specifiers): Likewise.
256 (c_pretty_printer::primary_expression): Likewise.
257 (c_pretty_printer::postfix_expression): Likewise.
258 (c_pretty_printer::type_id): Rename from pp_c_type_id.
259 (c_pretty_printer::storage_class_specifier): Rename from
260 pp_c_storage_class_specifier.
261 (c_pretty_printer::initializer): Rename from pp_c_initializer.
262 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
263 storage_class_specifier, initializer, offset_list, flags.
265 2013-08-30 Marek Polacek <polacek@redhat.com>
267 * c-ubsan.c: New file.
268 * c-ubsan.h: New file.
270 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
272 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
274 (c_pretty_printer::declaration_specifiers): Likewise.
275 (c_pretty_printer::declarator): Likewise.
276 (c_pretty_printer::abstract_declarator): Likewise.
277 (c_pretty_printer::direct_abstract_declarator): Likewise.
278 (c_pretty_printer::direct_declarator): Likewise.
279 (c_pretty_printer::function_specifier): Likewise.
280 (pp_declaration): Adjust.
281 (pp_declaration_specifiers): Likewise.
282 (pp_abstract_declarator): Likewise.
283 (pp_direct_declarator): Likewise.
284 (pp_function_specifier): Likewise.
285 (pp_direct_abstract_declarator): Remove as unused.
286 (pp_c_declaration): Remove.
287 (pp_c_declaration_specifiers): Likewise.
288 (pp_c_declarator): Likewise.
289 (pp_c_direct_declarator): Likewise.
290 (pp_c_function_specifier): Likewise.
291 (pp_c_direct_abstract_declarator): Likewise.
292 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
293 from pp_c_abstract_declarator. Adjust.
294 (c_pretty_printer::direct_abstract_declarator): Rename from
295 pp_c_direct_abstract_declarator. Adjust.
296 (c_pretty_printer::function_specifier): Rename from
297 pp_c_function_specifier. Adjust.
298 (c_pretty_printer::declaration_specifiers): Rename from
299 pp_c_declaration_specifiers. Adjust.
300 (c_pretty_printer::direct_declarator): Rename from
301 pp_c_direct_declarator. Adjust.
302 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
303 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
304 (c_pretty_printer::c_pretty_printer): Do not assign to
305 declaration, declaration_specifiers, declarator,
306 direct_declarator, direct_abstract_declarator, function_specifier.
308 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
310 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
311 virtual member function.
312 (c_pretty_printer::multiplicative_expression): Likewise.
313 (c_pretty_printer::conditional_expression): Likewise.
314 (c_pretty_printer::assignment_expression): Likewise.
315 (c_pretty_printer::expression): Likewise.
316 (pp_unary_expression): Adjust.
317 (pp_multiplicative_expression): Likewise.
318 (pp_assignment_expression): Likewise.
319 (pp_conditional_expression): Likewise.
320 (pp_expression): Likewise.
321 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
322 from pp_c_unary_expression. Adjust.
323 (c_pretty_printer::multiplicative_expression): Rename from
324 pp_c_multiplicative_expression. Adjust.
325 (c_pretty_printer::conditional_expression): Rename from
326 pp_c_conditional_expression. Adjust.
327 (c_pretty_printer::assignment_expression): Rename from
328 pp_c_assignment_expression. Adjust.
329 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
330 (c_pretty_printer::c_pretty_printer): Do not assign to
331 unary_expression, multiplicative_expression,
332 conditional_expression, expression.
334 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
336 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
337 virtual member function.
338 (pp_postfix_expression): Adjust.
339 (pp_c_postfix_expression): Remove.
340 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
341 from pp_c_postfix_expression. Adjust.
342 (c_pretty_printer::c_pretty_printer): Do not assign to
345 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
347 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
348 virtua member function.
349 (pp_primary_expression): Adjust.
350 (pp_c_primary_expression): Remove.
351 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
352 from pp_c_primary_expression. Adjust.
353 (pp_c_initializer_list): Use pp_primary_expression.
354 (c_pretty_printer::c_pretty_printer): Do not assign to
357 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
359 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
360 * c-pretty-print.c (M_): Remove.
361 (c_pretty_printer::translate_string): Define.
362 (pp_c_type_specifier): Use it.
363 (pp_c_primary_expression): Likewise.
364 (pp_c_expression): Likewise.
366 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
368 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
370 (pp_c_id_expression): Remove.
371 (pp_id_expression): Adjust.
372 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
373 pp_c_id_expression. Adjust.
374 (pp_c_postfix_expression): Use pp_id_expression.
375 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
377 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
379 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
381 (pp_constant): Adjust.
382 (pp_c_constant): Remove.
383 * c-pretty-print.c (c_pretty_printer::constant): Rename from
384 pp_c_constant. Adjust.
386 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
387 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
389 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
391 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
392 (c_pretty_printer::c_pretty_printer): Declare.
393 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
394 c_pretty_printer_init. Adjust.
395 (print_c_tree): Do not call c_pretty_printer_init.
396 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
398 2013-08-09 Arnaud Charlet <charlet@adacore.com>
400 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
402 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
405 * c-common.c (pointer_int_sum): Add bool parameter.
406 * c-common.h (pointer_int_sum): Adjust declaration.
408 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
410 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
411 c_pretty_printer variable.
413 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
415 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
417 (pp_c_base): Likewise. Adjust users.
418 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
419 (pp_c_whitespace): Do not call pp_base.
420 (pp_c_left_paren): Likewise.
421 (pp_c_right_paren): Likewise.
422 (pp_c_left_brace): Likewise.
423 (pp_c_right_brace): Likewise.
424 (pp_c_left_bracket): Likewise.
425 (pp_c_right_bracket): Likewise.
426 (pp_c_dot): Likewise.
427 (pp_c_ampersand): Likewise.
428 (pp_c_star): Likewise.
429 (pp_c_arrow): Likewise.
430 (pp_c_semicolon): Likewise.
431 (pp_c_complement): Likewise.
432 (pp_c_exclamation): Likewise.
433 (pp_c_direct_declarator): Likewise.
434 (pp_c_ws_string): Likewise.
435 (pp_c_identifier): Likewise.
436 (pp_c_statement): Likewise.
437 (print_c_tree): Likewise.
439 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
442 * c-common.c (c_parse_error): Catch user-defined literal tokens and
443 provide useful error strings.
445 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
447 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
448 printer functions instead of pp_string or operators and punctuators.
449 (dump_generic_ada_node): Likewise.
450 * c-pretty-print.c (pp_c_type_specifier): Likewise.
451 (pp_c_relational_expression): Likewise.
452 (pp_c_logical_or_expression): Likewise.
454 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
456 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
457 functions instead of pp_character.
458 (pp_ada_tree_identifier): Likewise.
459 (dump_ada_double_name): Likewise.
460 (dump_ada_function_declaration): Likewise.
461 (dump_ada_array_domains): Likewise.
462 (dump_template_types): Likewise.
463 (dump_generic_ada_node): Likewise.
464 (print_ada_declaration): Likewise.
465 (print_ada_struct_decl): Likewise.
466 * c-pretty-print.c (pp_c_integer_constant): Likewise.
468 2013-07-23 Tom Tromey <tromey@redhat.com>
470 * c-common.h (enum rid) <RID_GENERIC>: New constant.
471 * c-common.c (c_common_reswords): Add _Generic.
473 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
475 * c-common.c: Fix typos.
476 * c-common.h: Likewise.
478 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
481 * c-common.c (c_common_attribute_table): Add warn_unused.
482 (handle_warn_unused_attribute): New.
484 2013-07-10 Jakub Jelinek <jakub@redhat.com>
486 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
487 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
489 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
492 * c.opt: Add Wconditionally-supported.
494 2013-07-08 Graham Stott <graham.stott@btinternet.com>
496 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
497 unused variables l_length and l_node.
499 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
502 * c-common.c (complete_array_type): Delay folding first index
503 like other indices. When folding, check for index overflow.
505 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
508 * c-common.h (c_build_vec_perm_expr): New complain argument.
509 * c-common.c (c_build_vec_perm_expr): Likewise.
510 Use save_expr also in C++.
512 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
514 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
515 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
516 * c-opts.c (c_common_post_options): Likewise.
518 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
520 * array-notation-common.c (length_mismatch_in_expr): Changed the
521 parameter type's from a dynamic array to a vec_tree. Also removed
523 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
526 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
528 * c-common.h (struct cilkplus_an_parts): New structure.
529 (struct cilkplus_an_loop_parts): Likewise.
530 (cilkplus_extract_an_triplets): New prototype.
531 (fix_sec_implicit_args): Likewise.
532 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
533 (fix_sec_implicit_args): Likewise.
535 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
537 * array-notation-common.c (find_inv_trees): Removed an unwanted
539 * c-common.h (struct inv_list::additional_tcodes): Changed type from
540 enum rid to enum tree_code.
542 2013-06-11 Jan Hubicka <jh@suse.cz>
544 * c-common.c (handle_alias_ifunc_attribute): Do not set
545 DECL_EXTERNAL for weakref variables.
546 * c-pragma.c (handle_pragma_weak): Make sure aliases
547 are not declared as external.
549 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
551 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
552 function from c/c-array-notation.c.
553 (is_cilkplus_reduce_builtin): Likewise.
554 (find_rank): Likewise.
555 (extract_array_notation_exprs): Likewise.
556 (replace_array_notations): Likewise.
557 (find_inv_trees): Likewise.
558 (replace_inv_trees): Likewise.
559 (contains_array_notation_expr): Likewise.
560 (find_correct_array_notation_type): Likewise.
561 * c-common.h (struct inv_list): Moved this struct from the file
562 c/c-array-notation.c and added a new field called additional tcodes.
563 (length_mismatch_in_expr_p): New prototype.
564 (is_cilkplus_reduce_builtin): Likewise.
565 (find_rank): Likewise.
566 (extract_array_notation_exprs): Likewise.
567 (replace_array_notation): Likewise.
568 (find_inv_trees): Likewise.
569 (replace_inv_trees): Likewise.
570 (find_correct_array_notation_type): Likewise.
572 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
574 * c-common.c (c_define_builtins): When cilkplus is enabled, the
575 function array_notation_init_builtins is called.
576 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
577 * c-common.def (ARRAY_NOTATION_REF): New tree.
578 * c-common.h (build_array_notation_expr): New function declaration.
579 (build_array_notation_ref): Likewise.
580 (extract_sec_implicit_index_arg): New extern declaration.
581 (is_sec_implicit_index_fn): Likewise.
582 (ARRAY_NOTATION_CHECK): New define.
583 (ARRAY_NOTATION_ARRAY): Likewise.
584 (ARRAY_NOTATION_START): Likewise.
585 (ARRAY_NOTATION_LENGTH): Likewise.
586 (ARRAY_NOTATION_STRIDE): Likewise.
587 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
589 (pp_c_expression): Likewise.
590 * c.opt (flag_enable_cilkplus): New flag.
591 * array-notation-common.c: New file.
593 2013-05-14 Jakub Jelinek <jakub@redhat.com>
596 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
598 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
600 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
603 2013-05-07 Han Shen <shenhan@google.com>
605 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
607 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
609 * c-common.c (check_user_alignment): Emit error for negative values.
611 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
613 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
615 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
617 * c-cppbuiltin.c (c_cpp_builtins): Do not define
618 __GXX_EXPERIMENTAL_CXX1Y__.
620 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
621 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
623 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
624 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
625 to simply use OPT_Wpointer_arith.
626 (c_sizeof_or_alignof_type): Likewise.
628 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
630 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
632 2013-04-12 Jakub Jelinek <jakub@redhat.com>
634 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
635 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
638 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
640 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
642 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
644 * c-common.c (pointer_int_sum): Remove dead code.
646 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
649 * c-common.c (handle_optimize_attribute): Don't call
650 save_optabs_if_changed.
652 2013-03-05 Jakub Jelinek <jakub@redhat.com>
655 * c-pch.c (pch_init): Free target_validity at the end.
657 2013-03-04 Jakub Jelinek <jakub@redhat.com>
659 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
661 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
662 Jakub Jelinek <jakub@redhat.com>
665 * c-common.c (handle_no_sanitize_address_attribute): New function.
666 (c_common_attribute_table): Add no_sanitize_address attribute.
667 (handle_no_address_safety_analysis_attribute): Add
668 no_sanitize_address attribute, not no_address_safety_analysis
671 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
674 * c-common.c (handle_optimize_attribute): Call
675 save_optabs_if_changed.
677 2013-02-18 Jakub Jelinek <jakub@redhat.com>
678 Steven Bosscher <steven@gcc.gnu.org>
681 * c-opts.c (c_common_post_options): If debug info is enabled
682 and non-dwarf*, refuse to load PCH files and when writing PCH
685 2013-02-05 Jakub Jelinek <jakub@redhat.com>
688 * c-common.c (handle_error_attribute): Fix condition.
690 2013-01-30 Jakub Jelinek <jakub@redhat.com>
693 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
695 2013-01-18 Jason Merrill <jason@redhat.com>
698 * c.opt (-fextern-tls-init): New.
699 * c-opts.c (c_common_post_options): Handle it.
701 2013-01-09 Jakub Jelinek <jakub@redhat.com>
704 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
705 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
706 and is either negative or bigger or equal to type precision
707 of the first operand.
709 2012-12-03 Marek Polacek <polacek@redhat.com>
712 * c-common.c (check_user_alignment): Swap order of tests,
713 check TREE_CODE first.
715 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
718 * c-common.h (overflow_type): New enum.
719 (build_userdef_literal): Add overflow_type argument.
720 (tree_userdef_literal): Add overflow_type.
721 (USERDEF_LITERAL_OVERFLOW): New access macro.
722 * c-common.c (build_userdef_literal): Add overflow_type
724 * c-lex.c (c_lex_with_flags): Add overflow_type to
725 build_userdef_literal calls.
726 (interpret_integer, interpret_float): Add overflow_type argument.
728 2012-11-28 Richard Biener <rguenther@suse.de>
731 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
732 here and use a type with proper overflow behavior for types that would
733 need to be promoted for the arithmetic.
735 2012-11-23 Jakub Jelinek <jakub@redhat.com>
738 * c-common.c (handle_no_address_safety_analysis_attribute): New
740 (c_common_attribute_table): Add no_address_safety_analysis.
742 2012-11-16 Simon Baldwin <simonb@google.com>
744 * c.opt: Add f[no-]canonical-system-headers.
745 * c-opts.c (c_common_handle_option): Handle
746 OPT_fcanonical_system_headers.
748 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
751 * c-opts.c (c_common_handle_option): Set new flags.
752 * c.opt: Describe new flags.
754 2012-11-09 Jason Merrill <jason@redhat.com>
756 * c.opt (Wabi-tag): New.
758 2012-11-09 Andi Kleen <ak@linux.intel.com>
761 * c-common.c (get_atomic_generic_size): Mask with
764 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
767 * c.opt (Wformat): Make it Alias Wformat=1.
768 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
769 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
771 (Wformat=): RejectNegative. Use LangEnabledBy.
772 (Wnonnull): Use LangEnabledBy.
773 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
774 * c-format.c (set_Wformat): Delete.
775 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
776 (maybe_read_dollar_number): Likewise.
777 (avoid_dollar_number): Likewise.
778 (finish_dollar_format_checking): Likewise.
779 (check_format_info): Likewise.
780 (check_format_info_main): Likewise.
781 (check_format_types): Likewise.
782 (format_type_warning): Likewise.
783 * c-common.c (int): Likewise.
784 (check_function_sentinel): Likewise.
785 * c-common.h (warn_format,set_Wformat): Do not declare here.
787 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
790 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
791 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
793 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
795 (Wvariadic-macros): Init(1).
796 * c-opts.c (c_common_handle_option): Do not handle them
798 (c_common_post_options): Likewise.
799 (sanitize_cpp_opts): warn_unused_macros is now
800 cpp_warn_unused_macros.
801 (push_command_line_include): Likewise.
802 * c-common.c (warn_unknown_pragmas): Do not define.
803 * c-common.h (warn_unknown_pragmas): Do not declare.
805 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
808 * c-common.c (conversion_warning): Handle conditional expressions.
810 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
813 * c.opt (Wreturn_local_addr): Define new option.
815 2012-10-25 Jason Merrill <jason@redhat.com>
817 * c.opt (Wvirtual-move-assign): New.
819 * c.opt (Winherited-variadic-ctor): New.
821 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
824 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
826 2012-10-23 Joseph Myers <joseph@codesourcery.com>
828 * c-common.h (pch_cpp_save_state): Declare.
829 * c-target.def (c_preinclude): New hook.
830 * c-opts.c (done_preinclude): New.
831 (push_command_line_include): Handle default preincluded header.
832 (cb_file_change): Call pch_cpp_save_state when calling
833 push_command_line_include.
834 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
835 (pch_cpp_save_state): New.
836 (pch_init): Call pch_cpp_save_state conditionally, instead of
837 calling cpp_save_state.
839 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
843 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
844 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
845 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
846 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
847 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
848 * c-opts.c (c_common_handle_option): Remove explicit handling from
850 (c_common_post_options): Likewise.
852 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
854 * c-ada-spec.c (LOCATION_COL): Delete.
855 (compare_location): New function.
856 (compare_node): Use it.
857 (compare_comment): Likewise.
859 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
863 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
864 * c-opts.c (c_common_handle_option): Do not set them here. Add
866 (c_common_post_options): Likewise.
868 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
870 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
871 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
872 Remove POINTER_TYPE handling, add large unsigned handling and use
873 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
875 2012-10-12 Jakub Jelinek <jakub@redhat.com>
878 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
879 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
880 locs and array of 3 trees instead of just single loc and single
881 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
882 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
883 For *cmp* builtins that take two sources strings report warnings
884 about first and second source, not about destination and source.
886 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
889 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
891 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
893 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
894 declaring something coming from another file.
896 2012-10-10 Arnaud Charlet <charlet@adacore.com>
899 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
901 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
904 * c-common.c (warn_about_parentheses): Add location_t parameter;
906 * c-common.h: Update declaration.
908 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
911 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
912 more operations. Make error messages optional.
913 * c-common.h (enum stv_conv): Moved from c-typeck.c.
914 (scalar_to_vector): Declare.
916 2012-10-08 Jason Merrill <jason@redhat.com>
918 * c-common.c (c_common_reswords): Add thread_local.
920 2012-10-08 Dodji Seketeli <dodji@redhat.com>
922 PR c++/53528 C++11 attribute support
923 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
925 * c-common.c (check_cxx_fundamental_alignment_constraints): New
927 (handle_aligned_attribute): In choose strictest alignment
928 among many. Use new check_cxx_fundamental_alignment_constraints.
929 (handle_transparent_union_attribute): In c++11 attribute syntax,
930 don't look through typedefs.
932 2012-10-04 Arnaud Charlet <charlet@adacore.com>
934 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
935 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
938 2012-09-25 Dehao Chen <dehao@google.com>
941 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
942 map when read in the pch.
944 2012-09-18 Arnaud Charlet <charlet@adacore.com>
946 * c-ada-spec.c: Style fixes.
948 2012-09-18 Thomas Quinot <quinot@adacore.com>
950 * c.opt (-fada-spec-parent): Define new command line switch.
951 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
952 is specified, generate binding spec as a child of the specified unit.
954 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
955 Manuel López-Ibáñez <manu@gcc.gnu.org>
958 * c.opt ([Winit-self]): Enabled by -Wall in C++.
960 2012-08-23 Arnaud Charlet <charlet@adacore.com>
962 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
963 for pointers, and add missing Convention C pragma.
964 (print_ada_struct_decl): Add missing aliased keyword.
965 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
967 2012-08-17 Jakub Jelinek <jakub@redhat.com>
969 * c-common.c (sizeof_pointer_memaccess_warning): New function.
970 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
971 * c-opts.c (c_common_handle_option): Enable it for -Wall.
972 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
973 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
975 2012-08-10 Richard Guenther <rguenther@suse.de>
977 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
979 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
981 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
982 instead of separate pp_newline and pp_flush.
983 (print_c_tree): Likewise.
985 2012-07-26 Richard Henderson <rth@redhat.com>
987 * c-common.c (handle_hot_attribute): Allow labels.
988 (handle_cold_attribute): Likewise.
990 2012-07-20 Jakub Jelinek <jakub@redhat.com>
993 * c-common.c (check_function_nonnull): Handle multiple nonnull
996 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
998 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
999 * c-ada-spec.c: Likewise.
1000 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1002 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1004 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1005 Remove code conditional on it.
1007 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1009 * c-gimplify.c: Do not include basic-block.h.
1010 * c-common.c: Do not include linfuncs.h.
1012 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1014 * c-common.h: Include tree.h.
1016 2012-07-02 Jason Merrill <jason@redhat.com>
1019 * c-common.c (get_priority): Call default_conversion.
1021 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1023 * c-pch.c (c_common_write_pch): Remove unused variables.
1025 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1027 * cppspec.c: Moved from gcc/ to here.
1029 2012-06-27 Kai Tietz <ktietz@redhat.com>
1031 PR preprocessor/37215
1032 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1034 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1036 * c-common.h (c_common_print_pch_checksum): Remove.
1037 * c-pch.c: Do not include output.h.
1038 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1039 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1040 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1041 (struct c_pch_header): Remove.
1042 (get_ident): Update gpch version.
1043 (pch_init): Do not print executable_checksum to asm_out_file.
1044 Do not fail if there is no asm_out_file to read back from. Set
1045 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1046 (c_common_write_pch): Verify that nothing was written to asm_out_file
1047 since pch_init was called. Do not write a c_pch_header, and do not
1048 copy from asm_out_file to the PCH.
1049 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1050 the content of asm_out_file from the PCH.
1051 (c_common_print_pch_checksum): Remove.
1052 * c-opts.c (c_common_init): Print out executable_checksum directly.
1054 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1056 * c-target.def (objc_declare_unresolved_class_reference,
1057 objc_declare_class_definition): Add new hooks.
1059 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1061 * c-lex.c: Do not include output.h.
1062 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1063 Remove uses of ASM_OUTPUT_IDENT.
1065 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1068 * c-common.h (c_build_vec_perm_expr): Move decl here.
1069 * c-common.c (c_build_vec_perm_expr): Move definition
1072 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1074 * c.opt (fconserve-space): Turn into a no-op.
1076 2012-06-04 Sterling Augustine <saugustine@google.com>
1078 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1079 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1080 both the start and end of the function.
1082 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1084 * c-common.c: Do not include output.h.
1085 * c-pragma.c: Likewise.
1087 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1089 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1090 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1091 (lang_decl_name): Handle namespace decls.
1093 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1095 * c-ada-spec.c: Do not include output.h.
1096 * c-semantics.c: Likewise.
1098 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1100 * c-common.c: Fix typo.
1102 2012-05-29 Michael Matz <matz@suse.de>
1104 * c-common.h (c_expand_decl): Remove prototype.
1106 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1108 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1109 * c-opts.c (c_common_handle_option): Remove code handling
1110 warn_missing_braces.
1112 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1115 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1118 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1121 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1123 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1125 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1126 * c-opts.c (c_common_handle_option): Do not handle explicitly
1127 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1129 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1131 PR preprocessor/7263
1132 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1133 to cpp_classify_number. For diagnostics, use the precise location
1134 instead of the global input_location.
1136 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1139 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1141 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1143 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1145 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1148 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1149 Wreorder): Use LangEnabledBy.
1150 * c-opts.c (c_common_handle_option): Do not enable them
1151 explicitly. Call lang-specific generated functions.
1152 (c_common_post_options): Do not set them here.
1154 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1156 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1157 Wmissing-field-initializers,Wmissing-parameter-type,
1158 Wold-style-declaration,Woverride-init): Use EnabledBy.
1159 * c-opts.c (c_common_post_options): Do not set here explicitly.
1161 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1164 * c-opts.c (c_common_handle_option): Use handle_generated_option
1165 to enable sub-options.
1167 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1170 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1172 2012-05-10 Richard Guenther <rguenther@suse.de>
1174 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1175 adjust commentary about TYPE_IS_SIZETYPE types.
1177 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1180 * c-common.c (warn_logical_operator): Check that argument of
1181 integer_zerop is not NULL.
1183 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1186 * c-common.c (warn_logical_operator): Do not warn if either side
1187 is already true or false.
1189 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1192 * c-common.c (expr_original_type): New.
1193 (shorten_compare): Do not warn for enumeration types.
1195 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1197 * c.opt (fpermissive): Add Var(flag_permissive).
1199 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1202 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1203 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1205 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1207 Add -Wvarargs option
1208 * c.opt (Wvarargs): Define new option.
1210 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1212 * c-common.c (check_function_arguments): Replace
1213 Wmissing-format-attribute with Wsuggest-attribute=format.
1215 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1217 * c.opt (Wsuggest-attribute=format): New. Alias of
1218 Wmissing-format-attribute.
1219 * c-format.c (decode_format_type): Replace
1220 Wmissing-format-attribute with Wsuggest-attribute=format.
1221 (check_function_format): Likewise.
1223 2012-04-27 Ollie Wild <aaw@google.com>
1225 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1226 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1227 * c.opt: Add Wliteral-suffix.
1229 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1232 * c.opt (Wpedantic): New.
1233 (pedantic): Alias Wpedantic.
1234 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1235 (c_common_post_options): Likewise.
1236 (sanitize_cpp_opts): Likewise.
1237 * c-lex.c (interpret_float): Likewise.
1238 * c-format.c (check_format_types): Likewise.
1239 * c-common.c (pointer_int_sum): Likewise.
1240 (c_sizeof_or_alignof_type): Likewise.
1241 (c_add_case_label): Likewise.
1242 (c_do_switch_warnings): Likewise.
1243 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1245 2012-04-15 Jason Merrill <jason@redhat.com>
1248 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1249 (C_STD_NAME): Distinguish between C++98 and C++11.
1251 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1254 * c-common.h (uint16_type_node): Rename into...
1255 (c_uint16_type_node): ...this.
1256 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1257 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1259 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1261 * c-common.c (warn_if_unused_value): Move definition to here.
1262 * c-common.h (warn_if_unused_value): Move declaration to here.
1264 2012-03-23 William Bader <williambader@hotmail.com>
1266 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1268 2012-03-20 Jason Merrill <jason@redhat.com>
1270 * c-common.h (enum cxx_dialect): Add cxx1y.
1271 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1273 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1274 * c-opts.c (c_common_post_options): Likewise.
1275 (set_std_cxx1y): New.
1276 (c_common_handle_option): Call it.
1277 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1279 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1282 * c.opt ([Wuseless-cast]): Add.
1284 2012-03-16 Richard Guenther <rguenther@suse.de>
1286 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1288 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1291 * c.opt (ftemplate-backtrace-limit) Add.
1293 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1295 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1297 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1298 (init_pragma): Don't register extern_prefix.
1300 2012-03-12 Richard Guenther <rguenther@suse.de>
1302 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1303 (builtin_type_for_size): Likewise.
1305 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1308 * c-common.c (sync_resolve_params): Don't decide whether to convert
1309 or not based on TYPE_SIZE comparison, convert whenever arg_type
1310 is unsigned INTEGER_TYPE.
1312 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1315 * c.opt ([Wunused-local-typedefs]): Fix description.
1317 2012-01-24 Mike Stump <mikestump@comcast.net>
1319 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1322 2012-01-18 Richard Guenther <rguenther@suse.de>
1324 * c-opts.c (c_common_post_options): Reset LTO flags if
1325 we are about to generate a PCH.
1327 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1330 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1331 use pp_unsigned_wide_integer.
1333 2012-01-10 Richard Guenther <rguenther@suse.de>
1336 * c-opts.c (c_common_handle_option): Move -Werror handling
1337 to language independent code.
1339 2012-01-05 Richard Guenther <rguenther@suse.de>
1342 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1345 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1348 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1349 of array types with an unknown bound.
1351 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1353 * c-common.c (flag_isoc99): Update comment to refer to C11.
1354 (flag_isoc1x): Change to flag_isoc11.
1355 * c-common.h (flag_isoc99): Update comment to refer to C11.
1356 (flag_isoc1x): Change to flag_isoc11.
1357 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1359 * c-opts.c (set_std_c1x): Change to set_std_c11.
1360 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1362 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1363 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1364 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1366 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1367 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1368 (std=gnu1x): Make alias of std=gnu11.
1370 2011-12-19 Jason Merrill <jason@redhat.com>
1373 * c-common.c (handle_transparent_union_attribute): Check the first
1374 field if the type is complete.
1376 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1379 * c-common.c (RID_IS_FINAL): Add.
1380 * c-common.h (RID_IS_FINAL): Add.
1382 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1384 * c.opt (fgnu-runtime): Provide full description.
1385 (fnext-runtime): Likewise.
1386 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1388 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1390 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1391 predefines in one place. Add LOCK_FREE predefines.
1392 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1395 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1398 * c-common.c (get_atomic_generic_size): Check for various error
1400 (resolve_overloaded_atomic_exchange,
1401 resolve_overloaded_atomic_compare_exchange,
1402 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1403 error_mark_node for error conditions.
1405 2011-11-08 Richard Guenther <rguenther@suse.de>
1410 2011-11-07 Richard Henderson <rth@redhat.com>
1411 Aldy Hernandez <aldyh@redhat.com>
1412 Torvald Riegel <triegel@redhat.com>
1414 Merged from transactional-memory.
1416 * c-common.c (handle_tm_wrap_attribute,
1417 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1418 (struct c_common_reswords): Added __transaction* keywords.
1419 (struct c_common_attribute_table): Added transaction* and tm_regparm
1421 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1423 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1424 find_tm_attribute): Declare.
1426 2011-11-07 Jason Merrill <jason@redhat.com>
1429 * c-common.c, c-common.h: Revert yesterday's changes.
1431 2011-11-06 Jason Merrill <jason@redhat.com>
1434 * c-common.c (decl_has_visibility_attr): Split out from...
1435 (c_determine_visibility): ...here.
1436 * c-common.h: Declare it.
1438 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1440 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1441 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1443 (check_user_alignment): New. Split out of
1444 handle_aligned_attribute. Disallow integer constants with
1445 noninteger types. Conditionally allow zero.
1446 (handle_aligned_attribute): Use check_user_alignment.
1447 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1449 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1450 Richard Henderson <rth@redhat.com>
1452 Merged from cxx-mem-model.
1454 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1455 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1456 parameters that are the same type size.
1457 (get_atomic_generic_size): New. Find size of generic
1458 atomic function parameters and do typechecking.
1459 (add_atomic_size_parameter): New. Insert size into parameter list.
1460 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1461 either __atomic_exchange_n or external library call.
1462 (resolve_overloaded_atomic_compare_exchange): Restructure
1463 __atomic_compare_exchange to either _n variant or external library call.
1464 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1465 __atomic_load_n or an external library call.
1466 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1467 __atomic_store_n or an external library call.
1468 (resolve_overloaded_builtin): Handle new __atomic builtins.
1470 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1473 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1474 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1475 <INDIRECT_REF>: Return the argument.
1476 <ARRAY_REF>: Remove special code for negative offset.
1477 Call fold_build_pointer_plus instead of size_binop.
1478 (fold_offsetof): Remove STOP_REF argument and adjust.
1479 * c-common.h (fold_offsetof_1): Declare.
1480 (fold_offsetof): Remove STOP_REF argument.
1482 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1485 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1486 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1487 Wnarrowing for C++0x and C++98.
1488 * c.opt ([Wnarrowing]): Update.
1490 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1493 * c.opt: Add Wzero-as-null-pointer-constant.
1495 2011-10-31 Jason Merrill <jason@redhat.com>
1497 * c.opt (-fdeduce-init-list): Off by default.
1500 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1501 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1503 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1505 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1508 * c.opt (fvisibility-inlines-hidden): Description change.
1510 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1512 Implement C++11 user-defined literals.
1513 * c-common.c (build_userdef_literal): New.
1514 * c-common.def: New tree code.
1515 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1516 * c-lex.c (interpret_float): Add suffix parm.
1517 (c_lex_with_flags): Build literal tokens.
1519 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1523 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1526 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1527 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1528 Wnarrowing for C++0x and C++98.
1529 * c.opt ([Wnarrowing]): Update.
1531 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1534 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1535 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1536 Wnarrowing for C++0x and C++98.
1537 * c.opt ([Wnarrowing]): Update.
1539 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1542 * c-common.c (conversion_warning): Remove code looking for
1543 artificial operands.
1545 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1548 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1549 !NO_IMPLICIT_EXTERN_C.
1551 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1553 * c-common.c (c_common_reswords): Add __bases,
1555 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1557 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1560 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1562 2011-10-15 Tom Tromey <tromey@redhat.com>
1563 Dodji Seketeli <dodji@redhat.com>
1565 * c.opt (fdebug-cpp): New option.
1566 * c-opts.c (c_common_handle_option): Handle the option.
1567 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1568 output stream in parameter. Factorized from ...
1569 (maybe_print_line): ... this. Dump location debug information when
1570 -fdebug-cpp is in effect.
1571 (print_line_1): New static function. Takes an output stream in
1572 parameter. Factorized from ...
1573 (print_line): ... here. Dump location information when -fdebug-cpp
1575 (scan_translation_unit): Dump location information when
1576 -fdebug-cpp is in effect.
1578 2011-10-15 Tom Tromey <tromey@redhat.com>
1579 Dodji Seketeli <dodji@redhat.com>
1581 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1583 * c-opts.c (c_common_handle_option)<case
1584 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1585 cases. Handle -ftrack-macro-expansion with and without argument.
1587 2011-10-15 Tom Tromey <tromey@redhat.com>
1588 Dodji Seketeli <dodji@redhat.com>
1590 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1591 (print_line, cb_define, do_line_change): Adjust to avoid touching
1592 the internals of struct line_map. Use the public API instead.
1593 * c-pch.c (c_common_read_pch): Likewise.
1594 * c-lex.c (fe_file_change): Likewise.
1596 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1599 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1601 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1604 * c-pretty-print.c (pp_c_floating_constant): Output
1605 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1607 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1609 * c-common.c (def_builtin_1): Delete old interface with two
1610 parallel arrays to hold standard builtin declarations, and replace
1611 it with a function based interface that can support creating
1612 builtins on the fly in the future. Change all uses, and poison
1613 the old names. Make sure 0 is not a legitimate builtin index.
1614 * c-omp.c (c_finish_omp_barrier): Ditto.
1615 (c_finish_omp_taskwait): Ditto.
1616 (c_finish_omp_flush): Ditto.
1618 2011-10-11 Tristan Gingold <gingold@adacore.com>
1620 * c.opt: (fallow-parameterless-variadic-functions): New.
1622 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1624 PR c++/33255 - Support -Wunused-local-typedefs warning
1625 * c-common.h (struct c_language_function::local_typedefs): New
1627 (record_locally_defined_typedef, maybe_record_typedef_use)
1628 (maybe_warn_unused_local_typedefs): Declare new functions.
1629 * c-common.c (record_locally_defined_typedef)
1630 (maybe_record_typedef_use)
1631 (maybe_warn_unused_local_typedefs): Define new functions.
1632 * c.opt: Declare new -Wunused-local-typedefs flag.
1634 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1637 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1640 2011-09-05 Richard Guenther <rguenther@suse.de>
1642 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1643 of integer_minus_one_node for empty array upper bounds.
1645 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1647 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1648 it's the first time it's being called on this main TU.
1650 2011-08-24 Richard Guenther <rguenther@suse.de>
1653 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1655 2011-08-22 Gabriel Charette <gchare@google.com>
1657 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1658 defined in cpp_init_builtins and c_cpp_builtins.
1660 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1662 * c-common.c (c_common_reswords): Add __builtin_complex.
1663 * c-common.h (RID_BUILTIN_COMPLEX): New.
1665 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1667 * c-common.c (c_common_reswords): Add _Noreturn.
1668 (keyword_is_function_specifier): Handle RID_NORETURN.
1669 * c-common.h (RID_NORETURN): New.
1671 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1673 * c-common.c (unsafe_conversion_p): New function. Check if it is
1674 unsafe to convert an expression to the type.
1675 (conversion_warning): Adjust, use unsafe_conversion_p.
1676 * c-common.h (unsafe_conversion_p): New function declaration.
1678 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1680 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1681 (c_finish_omp_taskyield): New prototype.
1682 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1683 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1684 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1685 or RHS1 have side-effects, evaluate those too in the right spot,
1686 if it is a decl and LHS is also a decl, error out if they
1688 (c_finish_omp_taskyield): New function.
1689 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1690 * c-pragma.c (omp_pragmas): Add taskyield.
1691 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1692 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1693 PRAGMA_OMP_CLAUSE_MERGEABLE.
1695 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1697 * c-common.h (set_underlying_type): Remove parm name from
1700 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1702 * c-pretty-print.h: Search c-common.h in c-family.
1704 2011-07-22 Jason Merrill <jason@redhat.com>
1707 * c.opt (Wnarrowing): New.
1710 * c-common.h: Declare c_linkage_bindings.
1711 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1714 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1715 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1716 as flag_isoc99 for 'restrict'.
1717 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1719 2011-07-21 Ian Lance Taylor <iant@google.com>
1722 * c-common.c (c_disable_warnings): New static function.
1723 (c_enable_warnings): New static function.
1724 (c_fully_fold_internal): Change local unused_p to bool. Call
1725 c_disable_warnings and c_enable_warnings rather than change
1726 c_inhibit_evaluation_warnings.
1728 2011-07-20 Jason Merrill <jason@redhat.com>
1730 PR c++/6709 (DR 743)
1731 PR c++/42603 (DR 950)
1732 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1733 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1734 (CPP_DECLTYPE): New.
1735 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1737 2011-07-19 Richard Guenther <rguenther@suse.de>
1739 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1740 * c-omp.c (c_finish_omp_for): Likewise.
1742 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1744 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1745 body on the next line.
1747 2011-07-08 Jason Merrill <jason@redhat.com>
1750 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1753 * c-common.c (c_apply_type_quals_to_decl): Don't check
1754 TYPE_NEEDS_CONSTRUCTING.
1756 2011-07-06 Richard Guenther <rguenther@suse.de>
1758 * c-common.c (c_common_nodes_and_builtins):
1759 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1761 2011-07-05 Richard Guenther <rguenther@suse.de>
1763 * c-common.c (c_common_nodes_and_builtins): Build all common
1766 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1768 * c-common.h (c_tree_chain_next): New static inline function.
1770 * c-common.c (check_builtin_function_arguments): Handle
1771 BUILT_IN_ASSUME_ALIGNED.
1773 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1775 * c-common.c: Add sync_ or SYNC__ to builtin names.
1776 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1778 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1780 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1782 (gen_pragma_handler): New union.
1783 (internal_pragma_handler): New type.
1784 (c_register_pragma_with_data)
1785 (c_register_pragma_with_expansion_and_data): New functions.
1787 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1788 (c_register_pragma, c_register_pragma_with_expansion)
1789 (c_invoke_pragma_handler): Changed to work with
1790 internal_pragma_handler.
1791 (c_register_pragma_with_data)
1792 (c_register_pragma_with_expansion_and_data): New functions.
1794 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1796 * c-common.c: Include common/common-target.h.
1797 (handle_section_attribute): Use
1798 targetm_common.have_named_sections.
1799 * c-cppbuiltin.c: Include common/common-target.h.
1800 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1802 2011-06-10 Richard Guenther <rguenther@suse.de>
1804 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1805 to print a IDENTIFIER_NODE.
1807 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1808 Joseph Myers <joseph@codesourcery.com>
1810 * c.opt (fbuilding-libgcc): New option.
1811 * c-cppbuiltin.c (c_cpp_builtins): Define
1812 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1814 2011-06-07 Jason Merrill <jason@redhat.com>
1816 * c-common.c (max_tinst_depth): Lower default to 900.
1818 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1820 2011-06-07 Richard Guenther <rguenther@suse.de>
1822 * c-common.c (c_common_nodes_and_builtins): Do not set
1823 size_type_node or call set_sizetype.
1825 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1828 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1829 type when using pointer comparison to compare types.
1831 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1833 * c.opt: Add -Wdelete-non-virtual-dtor.
1834 * c-opts.c (c_common_handle_option): Include it in -Wall.
1836 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1841 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1843 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1846 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1849 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1850 C++ don't call c_common_truthvalue_conversion on void type arms.
1852 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1854 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1855 (stmt_list_stack): Define.
1856 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1857 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1859 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1861 * c-common.c (warning_candidate_p): Check for BLOCKs.
1863 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1865 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1868 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1870 * c-common.c (def_fn_type): Remove extra va_end.
1872 2011-05-23 Jason Merrill <jason@redhat.com>
1875 * c-common.c (c_common_get_narrower): New.
1876 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1878 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1880 * c-common.h (check_function_arguments): Tweak prototype of
1881 check_function_arguments.
1882 * c-common.c (check_function_arguments): Likewise. Adjust
1883 calls to check_function_nonnull, check_function_format, and
1884 check_function_sentinel.
1885 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1886 separate attributes and typelist arguments. Use
1887 FOREACH_FUNCTION_ARGS to iterate over argument types.
1889 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1891 * c-common.c (c_common_reswords): Reorder.
1892 * c-common.h (rid): Likewise.
1894 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1896 * c-common.c (def_fn_type): Don't call build_function_type, call
1897 build_function_type_array or build_varargs_function_type_array
1899 (c_common_nodes_and_builtins): Likewise.
1901 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1903 * c-common.c (c_add_case_label): Omit the loc argument to
1905 * c-common.h (build_case_label): Remove.
1906 * c-semantics.c (build_case_label): Remove.
1908 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1910 * c-objc.h (objc_start_method_definition): Update prototype.
1911 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1913 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1915 * c-common.c (check_main_parameter_types): Reindent. Don't use
1916 TYPE_ARG_TYPES directly.
1917 (handle_nonnull_attribute): Likewise.
1918 (sync_resolve_params): Likewise.
1919 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1920 to check_format_string.
1921 (handle_format_attribute): Likewise.
1922 (check_format_string): Take a function type to examine instead of
1923 a type list. Use a function_arg_iterator to step through argument
1926 2011-05-04 Richard Guenther <rguenther@suse.de>
1928 * c-common.c (fix_string_type): Use size_int for index type bounds.
1929 (start_fname_decls): Do not pass NULL to build_int_cst.
1930 (c_init_attributes): Likewise.
1931 * c-lex.c (c_lex_with_flags): Likewise.
1933 2011-04-27 Jason Merrill <jason@redhat.com>
1935 * c-common.c (make_tree_vector_from_list): New.
1936 * c-common.h: Declare it.
1938 2011-04-26 Richard Guenther <rguenther@suse.de>
1940 PR preprocessor/48248
1941 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1942 for output size with -P.
1944 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1946 * c-common.c (struct c_common_resword): Add __underlying_type.
1947 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1949 2011-04-20 Jim Meyering <meyering@redhat.com>
1951 * c-format.c (init_dollar_format_checking): Remove useless
1954 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1956 * c-objc.h (objc_get_interface_ivars): Removed.
1957 (objc_detect_field_duplicates): New.
1958 * stub-objc.c: Likewise.
1960 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1962 * stub-objc.c (objc_declare_protocols): Renamed to
1963 objc_declare_protocol.
1964 * c-objc.h: Likewise.
1966 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1968 * stub-objc.c (objc_declare_class): Updated argument name.
1970 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1972 * c-common.h (c_common_init_ts): Declare.
1973 * c-common.c (c_common_init_ts): Define.
1975 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1977 * c-objc.h (objc_build_message_expr): Updated prototype.
1978 * stub-objc.c (objc_build_message_expr): Likewise.
1980 2011-04-12 Martin Jambor <mjambor@suse.cz>
1982 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1985 2011-04-11 Richard Guenther <rguenther@suse.de>
1987 * c-common.c (complete_array_type): Build a range type of
1990 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1992 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1993 (handle_type_generic_attribute): Likewise.
1995 2011-04-07 Jason Merrill <jason@redhat.com>
1998 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1999 conversion from C++0x scoped enum.
2001 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2003 * c-target-def.h: New file.
2004 * c-target.def: New file.
2005 * c-target.h: New file.
2006 * c-common.c (targetcm): Don't define here.
2007 * c-common.h (default_handle_c_option): Declare.
2008 * c-format.c: Include c-target.h instead of target.h.
2009 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2011 (default_handle_c_option): Move from targhooks.c.
2013 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2015 PR preprocessor/48248
2016 * c-ppoutput.c (print): Add src_file field.
2017 (init_pp_output): Initialize it.
2018 (maybe_print_line): Don't optimize by adding up to 8 newlines
2019 if map->to_file and print.src_file are different file.
2020 (print_line): Update print.src_file.
2022 2011-03-25 Kai Tietz <ktietz@redhat.com>
2024 * c-ada-spec.c (compare_comment): Use filename_cmp
2025 instead of strcmp for filename.
2027 2011-03-25 Jeff Law <law@redhat.com>
2029 * c-family/c-common.c (def_fn_type): Add missing va_end.
2031 2011-03-25 Jason Merrill <jason@redhat.com>
2033 * c.opt: Add -std=c++03.
2035 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2037 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2039 2011-03-17 Kai Tietz
2042 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2043 Display allowed attributes for function pointer types.
2044 (pp_c_attributes_display): New function to display
2045 attributes having affects_type_identity flag set to true.
2046 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2048 * c-common.c (c_common_attribute_table):
2050 (c_common_format_attribute_table): Likewise.
2052 2011-03-18 Jason Merrill <jason@redhat.com>
2054 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2055 * c-common.h: Don't declare it here.
2056 * c-common.c: Or define it here.
2057 * c-opts.c (c_common_handle_option): Or set it here.
2060 * c-common.c (handle_transparent_union_attribute): Don't
2061 make a duplicate type in C++.
2063 2011-03-15 Jason Merrill <jason@redhat.com>
2065 * c-common.c (max_constexpr_depth): New.
2066 * c-common.h: Declare it.
2067 * c-opts.c (c_common_handle_option): Set it.
2068 * c.opt (fconstexpr-depth): New option.
2070 2011-03-11 Jason Merrill <jason@redhat.com>
2072 * c-common.c (attribute_takes_identifier_p): Add missing const.
2075 * c-common.c (attribute_takes_identifier_p): Assume that an
2076 unknown attribute takes an identifier.
2078 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2081 * c-common.c (c_type_hash): Call list_length instead of iterating
2082 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2084 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2087 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2089 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2091 * c.opt (fobjc-abi-version=) New.
2092 (fobjc-nilcheck): New.
2094 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2097 * c-common.h (keyword_is_decl_specifier): Declare.
2098 * c-common.c (keyword_is_decl_specifier): Define.
2099 (keyword_is_function_specifier): New function.
2101 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2104 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2105 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2108 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2110 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2112 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2115 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2116 after init_c_lex if pch_file is set.
2118 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2121 * c.opt (-fkeep-inline-dllexport): New switch.
2123 2011-01-12 Richard Guenther <rguenther@suse.de>
2126 * c-common.c (handle_weak_attribute): Warn instead of error
2127 on declaring an inline function weak.
2129 2011-01-05 Tom Tromey <tromey@redhat.com>
2131 * c-common.h (lvalue_error): Update.
2132 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2135 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2138 * c-objc.h (objc_finish_message_expr): Added argument to
2141 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2143 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2146 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2148 * c-objc.h (objc_maybe_warn_exceptions): New.
2149 * stub-objc.c (objc_maybe_warn_exceptions): New.
2151 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2153 * c-common.h (readonly_error): Declare.
2154 * c-common.c (readonly_error): Define.
2156 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2158 * c-common.h (invalid_indirection_error): Declare.
2159 * c-common.c (invalid_indirection_error): Define.
2161 2010-12-03 Richard Guenther <rguenther@suse.de>
2164 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2165 (pp_c_unary_expression): Likewise.
2166 (pp_c_expression): Likewise.
2168 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2170 * c-common.h (objc_finish_function): New.
2171 (objc_non_volatilized_type): Removed.
2172 (objc_type_quals_match): Removed.
2173 * stub-objc.c (objc_finish_function): New.
2174 (objc_non_volatilized_type): Removed.
2175 (objc_type_quals_match): Removed.
2177 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2179 * c-common.h (parse_optimize_options): Declare.
2180 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2181 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2183 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2185 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2187 * c-pch.c (O_BINARY): Don't define here.
2188 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2190 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2192 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2193 targetm.except_unwind_info.
2195 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2197 * c-opts.c (c_common_handle_option): Pass location to
2198 set_struct_debug_option.
2200 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2202 * c-common.c (visibility_options): Move from ../opts.c.
2203 * c-common.h (struct visibility_flags, visibility_options):
2205 * c-opts.c (finish_options): Rename to c_finish_options.
2206 (c_common_init): Update call to finish_options.
2208 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2211 * c-lex.c (lex_string): Check that each string in an Objective-C
2212 string concat sequence starts with either one or zero '@', and
2213 that there are no spurious '@' signs at the end.
2215 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2217 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2218 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2219 HANDLE_PRAGMA_VISIBILITY.
2220 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2221 HANDLE_PRAGMA_VISIBILITY): Don't define.
2222 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2224 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2229 * c-common.h (keyword_begins_type_specifier): Declare.
2230 (keyword_is_storage_class_specifier): Declare.
2231 (keyword_is_type_qualifier): Declare.
2232 * c-common.c (keyword_begins_type_specifier): New function.
2233 (keyword_is_storage_class_specifier): New function.
2234 (keyword_is_type_qualifier): Declare.
2236 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2239 * c-common.c (in_late_binary_op): Define.
2240 (c_common_truthvalue_conversion): Check in_late_binary_op before
2241 calling c_save_expr.
2242 * c-common.h (in_late_binary_op): Declare.
2244 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2246 * c-opts.c (c_common_handle_option): Update calls to
2247 set_struct_debug_option.
2249 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2251 * c-common.h (objc_declare_protocols): Added additional argument.
2252 * stub-objc.c (objc_declare_protocol): Same change.
2254 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2257 * c-common.h (build_real_imag_expr): Declare.
2258 * c-semantics.c (build_real_imag_expr): Define.
2260 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2262 * c-opts.c (c_common_parse_file): Take no arguments.
2263 * c-common.h (c_common_parse_file): Update prototype.
2265 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2268 * c-common.c (warning_candidate_p): Don't track non-const calls
2271 2010-11-15 Ian Lance Taylor <iant@google.com>
2273 * c-lex.c (init_c_lex): Set macro debug callbacks if
2274 flag_dump_go_spec is set.
2276 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2278 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2279 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2281 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2283 PR preprocessor/45038
2284 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2287 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2289 * c-common.h (c_family_lang_mask): Declare.
2290 * c-opts.c (c_family_lang_mask): Make extern.
2291 * c-pragma.c (handle_pragma_diagnostic): Use
2292 control_warning_option.
2294 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2296 * c-common.c (parse_optimize_options): Update call to
2298 * c-common.h (c_common_handle_option): Update prototype.
2299 * c-opts.c (c_common_handle_option): Take location_t parameter and
2300 pass it to other functions.
2302 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2304 * c-opts.c (warning_as_error_callback): Remove.
2305 (c_common_initialize_diagnostics): Don't call
2306 register_warning_as_error_callback.
2307 (c_common_handle_option): Handle -Werror=normalized= here.
2309 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2311 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2313 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2315 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2316 Remove trailing '.' from diagnostics.
2317 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2319 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2321 * c-common.c (parse_optimize_options): Pass global_dc to
2323 * c-opts.c (c_common_handle_option): Pass &global_options to
2324 set_Wstrict_aliasing.
2325 * c.opt (v): Don't mark Common or document here.
2327 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2330 * c-format.c (format_type): New type gcc_objc_string_format_type.
2331 (valid_stringptr_type_p): New.
2332 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2333 (check_format_string): Pass expected type, use
2334 valid_stringptr_type_p (), check that the format string types are
2335 consistent with the format specification.
2336 (decode_format_attr): Warn if NSString is used outside objective-c.
2337 (format_types_orig): Add NSString.
2339 (format_flags): New.
2340 (check_format_arg): Handle format strings requiring an external parser.
2341 first_target_format_type: New variable.
2342 (handle_format_attribute): Set up first_target_format_type, pass the
2343 expected format arg string type to check_format_string().
2344 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2345 * stub-objc.c (objc_string_ref_type_p): New.
2346 (objc_check_format_arg): New.
2348 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2350 Fixed using the Objective-C 2.0 dot-syntax with class names.
2351 * c-common.h (objc_build_class_component_ref): New.
2352 * stub-objc.c (objc_build_class_component_ref): New.
2354 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2356 * c.opt (Wproperty-assign-default): New option.
2358 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2360 Implemented -fobjc-std=objc1 flag.
2361 * c.opt (fobjc-std=objc1): New option.
2363 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2365 Implemented format and noreturn attributes for Objective-C methods.
2366 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2367 attribute for Objective-C methods.
2369 2010-10-31 Jason Merrill <jason@redhat.com>
2371 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2374 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2376 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2377 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2378 (objc_add_property_declaration): Removed arguments for copies and
2380 (objc_build_getter_call): Renamed to
2381 objc_maybe_build_component_ref.
2382 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2383 (objc_is_property_ref): New.
2384 * c-common.c (c_common_reswords): Removed copies and ivar.
2385 * stub-objc.c (objc_add_property_declaration): Removed arguments
2386 for copies and ivar.
2387 (objc_build_getter_call): Renamed to
2388 objc_maybe_build_component_ref.
2389 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2390 (objc_is_property_ref): New.
2392 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2393 Matthew Gingell <gingell@adacore.com>
2395 * c-ada-spec.c (separate_class_package): New function.
2396 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2397 name of their enclosing package.
2398 (print_ada_declaration): Use separate_class_package.
2400 2010-10-27 Jason Merrill <jason@redhat.com>
2402 * c-common.c (c_common_reswords): Add __is_literal_type.
2403 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2405 * c-common.c (check_case_value): Remove special C++ code.
2407 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2409 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2410 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2412 (objc_add_property_declaration): Added additional arguments.
2413 (objc_property_attribute_kind): Removed.
2414 (objc_set_property_attr): Removed.
2415 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2417 * stub-objc.c (objc_add_property_declaration): Added additional
2419 (objc_set_property_attr): Removed.
2421 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2423 * c-common.h (objc_add_property_variable): Renamed to
2424 objc_add_property_declaration. Added location argument.
2425 * stub-objc.c (objc_add_property_variable): Same change.
2427 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2429 * c-common.h (objc_maybe_printable_name): New.
2430 * stub-objc.c (objc_maybe_printable_name): New.
2432 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2433 Andrew Pinski <pinskia@gmail.com>
2435 * c-common.h (c_common_mark_addressable_vec): Declare.
2436 * c-common.c (c_common_mark_addressable_vec): New function.
2438 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2440 * c-common.h (objc_set_method_type): Removed.
2441 (objc_add_method_declaration): Added boolean argument.
2442 (objc_start_method_definition): Same change.
2443 (objc_build_method_signature): Same change.
2444 * stub-objc.c (objc_set_method_type): Removed.
2445 (objc_add_method_declaration): Added boolean argument.
2446 (objc_start_method_definition): Same change.
2447 (objc_build_method_signature): Same change.
2449 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2451 * c-common.h (finish_file): Removed.
2452 (objc_write_global_declarations): New.
2453 * c-opts.c (c_common_parse_file): Do not call finish_file.
2454 * stub-objc.c (objc_write_global_declarations): New.
2456 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2458 Implemented parsing @synthesize and @dynamic for
2459 Objective-C/Objective-C++.
2460 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2461 (objc_add_synthesize_declaration): New.
2462 (objc_add_dynamic_declaration): New.
2463 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2464 * stub-objc.c (objc_add_synthesize_declaration): New.
2465 (objc_add_dynamic_declaration): New.
2467 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2470 * c-cppbuiltin.c (mode_has_fma): Move function here from
2471 builtins.c. Don't use the fma optab, instead just use the
2472 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2475 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2477 Merge from 'apple/trunk' branch on FSF servers.
2479 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2482 * c-common.h (objc_non_volatilized_type): New declaration
2483 * stub-objc.c (objc_non_volatilized_type): New stub.
2485 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2487 Merge from 'apple/trunk' branch on FSF servers.
2489 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2492 * c-common.h (objc_diagnose_private_ivar): New decl.
2493 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2495 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2497 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2498 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2499 (objc_ivar_visibility_kind): New enum.
2500 (objc_set_visibility): Adjust prototype to use visibility enum.
2501 * stub-objc.c (objc_set_visibility): Adjust stub to use
2504 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2506 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2507 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2508 has the appropriate fma builtins.
2509 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2511 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2513 merge from FSF apple 'trunk' branch.
2514 2006 Fariborz Jahanian <fjahanian@apple.com>
2516 Radars 4436866, 4505126, 4506903, 4517826
2517 * c-common.c (c_common_resword): Define @property and its attributes.
2518 * c-common.h: Define property attribute enum entries.
2519 (OBJC_IS_PATTR_KEYWORD): New.
2520 (objc_property_attribute_kind): New enum.
2521 Declare objc_set_property_attr (), objc_add_property_variable (),
2522 objc_build_getter_call () and objc_build_setter_call ().
2523 * stub-objc.c (objc_set_property_attr): New stub.
2524 (objc_add_property_variable): Likewise.
2525 (objc_build_getter_call): Likewise.
2526 (objc_build_setter_call) Likewise.
2528 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2530 merge from FSF apple 'trunk' branch.
2531 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2533 Radar 3803157 (method attributes)
2534 * c-common.c (handle_deprecated_attribute): Recognize
2535 objc methods as valid declarations.
2536 * c-common.h: Declare objc_method_decl ().
2537 * stub-objc.c (objc_method_decl): New stub.
2539 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2541 * c-common.c (parse_optimize_options): Call
2542 decode_cmdline_options_to_array_default_mask before
2543 decode_options. Update arguments to decode_options.
2544 * c-common.h (c_common_init_options_struct): Declare.
2545 * c-opts.c (c_common_init_options_struct): New. Split out from
2546 c_common_init_options.
2548 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2550 Implemented fast enumeration for Objective-C.
2551 * c-common.h (objc_finish_foreach_loop): New.
2552 * stub-objc.c (objc_finish_foreach_loop): New.
2554 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2556 * c-common.h (struct diagnostic_context): Don't declare here.
2557 (c_common_initialize_diagnostics): Declare using
2558 diagnostic_context typedef.
2559 * c-opts.c (c_common_handle_option): Pass global_dc to
2560 handle_generated_option.
2562 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2564 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2565 handle_generated_option.
2567 2010-10-03 Ian Lance Taylor <iant@google.com>
2569 * c.opt (-fplan9-extensions): New option.
2571 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2573 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2575 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2576 of duplicating code.
2578 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2580 * c-common.c: Add two new entries for @optional
2581 and @required keywords.
2583 merge from FSF 'apple/trunk' branch.
2584 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2587 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2588 objective-c keywords.
2589 (objc_set_method_opt): New declaration.
2590 * stub-objc.c (objc_set_method_opt): New stub.
2592 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2594 * c-common.c (handle_optimize_attribute): Pass &global_options to
2595 cl_optimization_save and cl_optimization_restore.
2596 * c-opts.c (c_common_handle_option): Pass &global_options to
2597 handle_generated_option.
2598 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2599 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2600 &global_options to cl_optimization_restore.
2602 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2604 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2605 Objective-C/Objective-C++ keywords.
2607 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2609 Merge from 'apple/trunk' branch on FSF servers.
2611 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2614 * c-common.h (objc_check_global_decl): New declaration.
2615 * stub-objc.c (objc_check_global_decl): New stub.
2617 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2619 * c.opt: Don't use VarExists.
2621 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2623 * c-common.c (c_cpp_error): Update names of diagnostic_context
2625 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2626 cl_optimization members.
2627 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2628 sanitize_cpp_opts, finish_options): Update names of cpp_options
2631 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2633 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2634 (objc_is_reserved_word): Removed.
2635 * c-common.c: Updated comments.
2636 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2637 objc_is_reserved_word.
2638 * stub-objc.c (objc_is_reserved_word): Removed.
2640 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2642 * c-common.h (objc_add_method_declaration): Adjust prototype to
2644 (objc_start_method_definition): Likewise.
2645 (objc_build_keyword_decl): Likewise.
2646 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2647 (objc_start_method_definition): Likewise.
2648 (objc_build_keyword_decl): Likewise.
2650 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2652 * c-common.h (objc_start_class_interface): Adjust prototype.
2653 (objc_start_category_interface): Likewise.
2654 (objc_start_protocol): Likewise.
2655 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2656 (objc_start_class_interface): Likewise.
2657 (objc_start_category_interface): Likewise.
2659 2010-09-27 Ian Lance Taylor <iant@google.com>
2661 * c-common.c (c_common_attribute_table): Add no_split_stack.
2662 (handle_no_split_stack_attribute): New static function.
2664 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2666 Merge from 'apple/trunk' branch on FSF servers.
2668 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2671 * c-common.h (objc_have_common_type): New declaration.
2672 * stub-objc.c (objc_have_common_type): New stub.
2674 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2677 * c-common.h (objc_common_type): New prototype.
2678 * stub-objc.c (objc_common_type): New stub.
2680 2010-09-24 Jan Hubicka <jh@suse.cz>
2682 * c-common.c (handle_leaf_attribute): New function.
2683 (struct attribute_spec c_common_att): Add leaf.
2685 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2687 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2688 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2689 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2690 -include-barrier, -include-directory, -include-directory=,
2691 -include-directory-after, -include-directory-after=,
2692 -include-prefix, -include-prefix=, -include-with-prefix,
2693 -include-with-prefix=, -include-with-prefix-after,
2694 -include-with-prefix-after=, -include-with-prefix-before,
2695 -include-with-prefix-before=, -no-integrated-cpp,
2696 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2697 -output=, -pedantic, -pedantic-errors, -preprocess,
2698 -print-missing-file-dependencies, -trace-includes, -traditional,
2699 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2700 -user-dependencies, -verbose, -write-dependencies,
2701 -write-user-dependencies, no-integrated-cpp, traditional): New.
2703 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2706 * c-common.h (objc_start_method_definition): Return bool instead
2708 * stub-objc.c (objc_start_method_definition): Return bool instead
2711 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2714 * c-common.h (objc_get_interface_ivars): New declaration.
2715 * stub-objc.c (objc_get_interface_ivars): New stub.
2717 2010-09-15 Ian Lance Taylor <iant@google.com>
2719 * c-common.c (parse_optimize_options): Do not capitalize warning
2720 messages. Remove period at end of warning message.
2722 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2724 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2725 (handle_alias_attribute): ... here.
2726 (handle_ifunc_attribute): New.
2728 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2730 * c-common.h (do_warn_double_promotion): Declare.
2731 * c-common.c (do_warn_double_promotion): Define.
2733 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2735 * c.opt (Wdouble-promotion): New.
2737 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2739 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2740 fvtable-thunks, fxref): Mark no longer supported in help text.
2742 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2744 * c.opt (Wimport, fall-virtual, falt-external-templates,
2745 fdefault-inline, fenum-int-equiv, fexternal-templates,
2746 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2747 fname-mangling-version-, fnew-abi, fnonnull-objects,
2748 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2749 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2751 (fhandle-exceptions): Mark with Alias and Warn.
2752 * c-opts.c (c_common_handle_option): Don't handle options marked
2755 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2757 * c.opt (Wcomments, Werror-implicit-function-declaration,
2758 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2759 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2761 * c-common.c (option_codes): Use OPT_Wcomment instead of
2763 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2764 Don't handle options marked as aliases.
2766 2010-08-25 Richard Guenther <rguenther@suse.de>
2768 * c-common.c (c_common_get_alias_set): Remove special
2769 handling for pointers.
2771 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2773 * c-common.c: Use FOR_EACH_VEC_ELT.
2774 * c-gimplify.c: Likewise.
2775 * c-pragma.c: Likewise.
2777 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2779 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2781 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2783 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2784 instead of OPT_MDX and OPT_MMDX.
2786 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2788 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2790 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2792 * c.opt (MD, MMD): Change to MDX and MMDX.
2793 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2795 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2797 * c-opts.c (c_common_handle_option): Call handle_generated_option
2798 instead of handle_option.
2800 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2802 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2803 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2805 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2807 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2808 (pending_redefine_extname): Change type to a VEC.
2809 (add_to_renaming_pragma_list): Update for new type of
2810 pending_redefine_extname.
2811 (maybe_apply_renaming_pragma): Likewise.
2813 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2815 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2817 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2818 decide whether a type has already been declared/seen.
2819 Do not go to the original type.
2820 (dump_nested_types): New parameter forward.
2821 Generate forward declaration if needed and mark type as visited.
2822 (print_ada_declaration): Call dump_nested_types if not already done.
2823 Mark types as visited.
2825 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2827 * c.opt (-print-pch-checksum): Remove option.
2828 * c-opts.c (c_common_handle_option): Don't handle
2829 OPT_print_pch_checksum.
2831 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2833 * c-common.h (c_common_handle_option): Update prototype and return
2835 * c-opts.c (c_common_handle_option): Update prototype and return
2836 value type. Update calls to handle_option and
2837 enable_warning_as_error.
2839 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2842 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2844 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2846 * c-common.h (c_common_missing_argument): Remove.
2847 * c-opts.c (c_common_missing_argument): Remove.
2848 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2849 idirafter, imacros, include, isysroot, isystem, iquote): Add
2851 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2853 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2855 * c-common.h (c_common_option_lang_mask,
2856 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2858 (c_common_init_options): Update prototype.
2859 * c-opts.c (c_common_option_lang_mask): New.
2860 (c_common_initialize_diagnostics): Split out of
2861 c_common_init_options.
2862 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2864 (c_common_init_options): Update prototype. Use decoded options in
2865 search for -lang-asm.
2867 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2869 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2870 * c-format.c: Likewise.
2872 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2874 * c-common.h: Include diagnostic-core.h. Error if already
2876 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2878 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2880 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2881 Do not include expr.h
2882 (vector_mode_valid_p): Move here.
2884 2010-06-21 DJ Delorie <dj@redhat.com>
2886 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2887 allow these pragmas anywhere.
2889 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2892 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2893 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2894 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2895 ggc_strdup instead of xstrdup.
2897 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2899 * c-cppbuiltin.c: Include cpp-id-data.h.
2900 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2901 (lazy_hex_fp_value): New function.
2902 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2904 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2906 * c-gimplify.c: Do not include tree-flow.h
2908 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2911 * c-common.c: Rename targetm member:
2912 targetm.enum_va_list -> targetm.enum_va_list_p
2914 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2916 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2918 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2920 * c-cppbuiltin.c: Do not include except.h.
2922 2010-06-24 Andi Kleen <ak@linux.intel.com>
2924 * c-common.c (warn_for_omitted_condop): New.
2925 * c-common.h (warn_for_omitted_condop): Add prototype.
2927 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2929 * c.opt (lang-objc): Remove.
2930 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2932 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2934 * c-opts.c: Include "tm_p.h".
2936 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2938 * c-common.c (parse_optimize_options): Update call to
2941 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2943 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2944 new type of types_used_by_cur_var_decl.
2946 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2949 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2950 for C++ standard compliance.
2952 2010-06-16 Jason Merrill <jason@redhat.com>
2954 * c.opt: Add -Wnoexcept.
2956 2010-06-16 Richard Guenther <rguenther@suse.de>
2959 * c-common.c (c_common_truthvalue_conversion): Remove
2960 premature and wrong optimization concering ADDR_EXPRs.
2962 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2964 * c-ada-spec.c (dump_sloc): Remove column info.
2965 (is_simple_enum): New function.
2966 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2967 enum types when relevant.
2969 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2971 * c-common.c (conversion_warning): Warn at expression
2974 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2976 * c-opts.c (c_common_handle_option): Don't handle
2979 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2981 * c-pragma.c (push_alignment): Use typed GC allocation.
2982 (handle_pragma_push_options): Likewise.
2984 * c-common.c (parse_optimize_options): Likewise.
2986 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2989 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2991 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2992 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2993 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2994 flag_signed_bitfields, warn_strict_null_sentinel,
2995 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2996 flag_gen_declaration, flag_no_gnu_keywords,
2997 flag_implement_inlines, flag_implicit_templates,
2998 flag_implicit_inline_templates, flag_optional_diags,
2999 flag_elide_constructors, flag_default_inline, flag_rtti,
3000 flag_conserve_space, flag_access_control, flag_check_new,
3001 flag_new_for_scope, flag_weak, flag_working_directory,
3002 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3003 flag_enforce_eh_specs, flag_threadsafe_statics,
3004 flag_pretty_templates): Remove.
3005 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3006 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3007 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3008 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3009 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3010 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3011 flag_no_gnu_keywords, flag_implement_inlines,
3012 flag_implicit_templates, flag_implicit_inline_templates,
3013 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3014 flag_rtti, flag_conserve_space, flag_access_control,
3015 flag_check_new, flag_new_for_scope, flag_weak,
3016 flag_working_directory, flag_use_cxa_atexit,
3017 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3018 flag_threadsafe_statics, flag_pretty_templates,
3019 warn_strict_null_sentinel): Remove.
3020 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3021 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3022 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3023 fimplicit-inline-templates, fimplicit-templates,
3024 flax-vector-conversions, fms-extensions, fnil-receivers,
3025 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3026 frtti, fshort-double, fshort-enums, fshort-wchar,
3027 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3028 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3029 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3030 gen-decls, undef): Use Var.
3031 (fdefault-inline, foptional-diags): Document as doing nothing.
3032 * c-opts.c (c_common_handle_option): Remove cases for options now
3033 using Var. Mark ignored options as such.
3035 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3037 * c-common.c: Moved to here from parent directory.
3038 * c-common.def: Likewise.
3039 * c-common.h: Likewise.
3040 * c-cppbuiltin.c: Likewise.
3041 * c-dump.c: Likewise.
3042 * c-format.c: Likewise.
3043 * c-format.h : Likewise.
3044 * c-gimplify.c: Likewise.
3045 * c-lex.c: Likewise.
3046 * c-omp.c: Likewise.
3048 * c-opts.c: Likewise.
3049 * c-pch.c: Likewise.
3050 * c-ppoutput.c: Likewise.
3051 * c-pragma.c: Likewise.
3052 * c-pragma.h: Likewise.
3053 * c-pretty-print.c: Likewise.
3054 * c-pretty-print.h: Likewise.
3055 * c-semantics.c: Likewise.
3056 * stub-objc.c: Likewise.
3058 * c-common.c: Include gt-c-family-c-common.h.
3059 * c-pragma.c: Include gt-c-family-c-pragma.h.
3061 Copyright (C) 2010-2013 Free Software Foundation, Inc.
3063 Copying and distribution of this file, with or without modification,
3064 are permitted in any medium without royalty provided the copyright
3065 notice and this notice are preserved.