Added support for Cilk Plus SIMD-enabled function for C.
[official-gcc.git] / gcc / c-family / ChangeLog
blobffd8eff13242a5dbfe52fc9695e21cb2c2f57a3b
1 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3         * c-common.c (c_common_attribute_table): Added "cilk simd function"
4         attribute.
5         * c-pragma.h (enum pragma_cilk_clause): Remove.
6         (enum pragma_omp_clause):  Added the following fields:
7         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
8         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
9         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
10         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
11         PRAGMA_CILK_CLAUSE_UNIFORM.
13         
14 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
16         * cilk.c (cilk_outline): Made this function non-static.
17         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
18         (create_cilk_wrapper): Added a new parameter: a function pointer.
19         (c_install_body_w_frame_cleanup): Remove
20         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
21         * c-common.h (cilk_outline): New prototype.
22         (gimplify_cilk_spawn): Removed two parameters.
23         (cilk_install_body_with_frame_cleanup): New prototype.
24         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
25         CILK_SPAWN_STMT case.
27 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
29         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
31         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
32         (int_array_type_node): Remove.
33         * c-common.c (c_common_nodes_and_builtins): Don't build it.
35 2013-12-05  Marek Polacek  <polacek@redhat.com>
37         PR c/52023
38         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
39         [ADJUST_FIELD_ALIGN].
41 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
43         PR c/52023
44         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
45         and check field alignment if set.
46         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
47         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
49 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
50             Marek Polacek  <polacek@redhat.com>
52         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
53         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
55 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
57         PR c/59309
58         * cilk.c (gimplify_cilk_spawn): Properly handle function without
59         arguments.
61 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
63         PR c/59280
64         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
65         goto invalid.  If it is error_mark_node, don't issue further
66         diagnostics.
68 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
70         * c.opt (Wopenmp-simd): New.
72 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
74         * c-ubsan.h (ubsan_instrument_return): New prototype.
75         * c-ubsan.c (ubsan_instrument_return): New function.
77 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
79         * c-common.c: Add required include files from gimple.h.
80         * c-gimplify.c: Likewise
81         * cilk.c: Likewise
83 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
85         * c-common.c (unsafe_conversion_p): Remove use of
86         EXPR_LOC_OR_HERE macro.
87         (conversion_warning): Likewise.
88         (warnings_for_convert_and_check): Likewise.
89         (warn_for_collisions_1): Likewise.
90         (shorten_compare): Likewise, and remove use of in_system_header
91         macro, using the location from the former.
92         * c-lex.c (dump_one_header): Remove use of input_filename macro.
93         (cb_def_pragma): Remove use of in_system_header macro.
94         (lex_string): Likewise.
95         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
97 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
98             Mike Stump  <mikestump@comcast.net>
99             Richard Sandiford  <rdsandiford@googlemail.com>
101         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
102         instead of TREE_INT_CST_LOW, in cases where there is a protecting
103         tree_fits_shwi_p or tree_fits_uhwi_p.
104         (dump_generic_ada_node): Likewise.
105         * c-format.c (check_format_arg): Likewise.
106         * c-pretty-print.c (pp_c_integer_constant): Likewise.
108 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
110         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
112 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
114         PR c/53001
115         * c-common.c (unsafe_conversion_p): Make this function
116         return an enumeration with more detail.
117         (conversion_warning): Use the new return type of
118         unsafe_conversion_p to separately warn either about conversions
119         that lower floating point number precision or about the other
120         kinds of conversions.
121         * c-common.h (enum conversion_safety): New enumeration.
122         (unsafe_conversion_p): switching return type to
123         conversion_safety enumeration.
124         * c.opt: Adding new warning -Wfloat-conversion and
125         enabling it with -Wconversion.
127 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
129         * c-opts.c: Include plugin.h.
130         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
132 2013-11-19  Marek Polacek  <polacek@redhat.com>
134         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
135         call.
136         (ubsan_instrument_shift): Likewise.
137         (ubsan_instrument_vla): Likewise.
139 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
141         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
142         cast to unsigned type.
144 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
146         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
147         tree_low_cst.
148         (complete_array_type): Update comment to refer to tree_to_[su]hwi
149         rather than tree_low_cst.
151 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
153         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
154         tree_to_uhwi throughout.
156 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
158         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
159         tree_low_cst (..., 0) with tree_to_shwi throughout.
161 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
163         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
164         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
166 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
168         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
169         host_integerp (..., 0) with tree_fits_shwi_p throughout.
171 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
173         * c-cilkplus.c: New file.
174         * c-common.c (readonly_error): Add location argument.
175         * c-common.h (readonly_error): Same.
176         (c_finish_cilk_clauses): Protoize.
177         (c_check_cilk_loop): Same.
178         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
179         Do not fail on error_mark_node.
180         Abstract increment canonicalization to here...
181         (c_omp_for_incr_canonicalize_ptr): New.
182         c-pragma.c (init_pragma): Register "simd" pragma.
183         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
184         (enum pragma_cilk_clause): New.
186 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
188         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
189         wchar_type and host_integerp checks.
191 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
193         * c-common.c: Likewise.
194         * c-gimplify.c: Likewise.
195         * cilk.c: Likewise.
197 2013-11-14  Diego Novillo  <dnovillo@google.com>
199         * c-common.c: Include fold-const.h.
200         Include stor-layout.h.
201         Include calls.h.
202         Include stringpool.h.
203         Include attribs.h.
204         Include varasm.h.
205         Include trans-mem.h.
206         * c-cppbuiltin.c: Include stor-layout.h.
207         Include stringpool.h.
208         * c-format.c: Include stringpool.h.
209         * c-lex.c: Include stringpool.h.
210         Include stor-layout.h.
211         * c-pragma.c: Include stringpool.h.
212         Include attribs.h.
213         Include varasm.h.
214         Include gcc-symtab.h.
215         * c-pretty-print.c: Include stor-layout.h.
216         Include attribs.h.
217         * cilk.c: Include stringpool.h.
218         Include calls.h.
220 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
222         * c-common.h (enum rid): Add RID_AUTO_TYPE.
223         * c-common.c (c_common_reswords): Add __auto_type.
224         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
226 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
228         * c-common.c: Include gimplify.h.
229         * c-gimplify.c: Likewise.
230         * cilk.c: Likewise.
231         * c-omp.c: Include gimple-expr.h instead of gimple.h.
232         * c-ubsan.c: Don't include gimple.h.
234 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
236         * c-common.c (c_common_reswords): Add _Thread_local.
238 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
240         * c-common.c (atomic_size_supported_p): New function.
241         (resolve_overloaded_atomic_exchange)
242         (resolve_overloaded_atomic_compare_exchange)
243         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
244         Use it instead of comparing size with a local list of sizes.
246 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
247             Joseph Myers  <joseph@codesourcery.com>
249         * c-common.h (enum rid): Add RID_ATOMIC.
250         * c-common.c (c_common_reswords): Add _Atomic.
251         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
252         (keyword_is_type_qualifier): Accept RID_ATOMIC.
253         * c-format.c (check_format_types): Check for extra _Atomic
254         qualifiers in format argument.
255         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
256         (pp_c_type_qualifier_list): Mention _Atomic in comment.
258 2013-11-06  Tobias Burnus  <burnus@net-b.de>
260         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
262 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
264         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
265         standards modes.
266         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
267         to mean lack of IEEE 754 support.
269 2013-11-05  Tobias Burnus  <burnus@net-b.de>
271         * c.opt (-Wdate-time): New option
272         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
274 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
276         * c-cppbuiltin.c (cpp_iec_559_value): Test
277         flag_excess_precision_cmdline not flag_excess_precision.
279 2013-11-05  Tobias Burnus  <burnus@net-b.de>
281         * c.opt (fopenmp-simd): New option.
282         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
283         (omp_pragmas): ... this new struct.
284         (c_pp_lookup_pragma): Also walk omp_pragmas.
285         (init_pragma): Init pragmas for -fopenmp-simd.
287 2013-11-04  Marek Polacek  <polacek@redhat.com>
289         PR c++/58979
290         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
292 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
294         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
295         New functions.
296         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
298 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
300         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
301         (dump_ada_specs): Adjust prototype of second callback.
302         * c-ada-spec.c (cpp_check): New global variable.
303         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
304         (print_generic_ada_decl): Likewise.
305         (has_static_fields): Change return type to bool and add guard.
306         (has_nontrivial_methods): New predicate.
307         (is_tagged_type): Change return type to bool.
308         (separate_class_package): Call has_nontrivial_methods.
309         (pp_ada_tree_identifier): Minor tweaks.
310         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
311         (dump_ada_array_domains): Likewise.
312         (dump_ada_array_type): Likewise.
313         (dump_template_types): Remove cpp_check parameter and do not pass it to
314         dump_generic_ada_node.
315         (dump_ada_template): Likewise.
316         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
317         recursively.
318         (print_ada_methods): Change return type to integer.  Remove cpp_check
319         parameter and do not pass it down.
320         (dump_nested_types): Remove cpp_check parameter and do not pass it to
321         dump_generic_ada_node.
322         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
323         accessing methods.
324         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
325         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
326         value of print_ada_methods.
327         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
328         Set cpp_check to it before invoking dump_ada_nodes.
329         (dump_ada_specs): Likewise.
331 2013-11-03  Marek Polacek  <polacek@redhat.com>
333         * c-ubsan.c: Don't include hash-table.h.
334         (ubsan_instrument_vla): New function.
335         * c-ubsan.h: Declare it.
337 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
339         Automated part of renaming of symtab_node_base to symtab_node.
341         Patch autogenerated by rename_symtab.py from
342         https://github.com/davidmalcolm/gcc-refactoring-scripts
343         revision 58bb219cc090b2f4516a9297d868c245495ee622
345         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
346         symtab_node_base to symtab_node.
348 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
350         Implement C++14 digit separators.
351         * c-lex.c (interpret_float): Remove digit separators from scratch string
352         before building real literal.
354 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
356         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
358 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
360         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
361         fields.
362         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
363         enabled.
364         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
365         (insert_cilk_frame): New prototype.
366         (cilk_init_builtins): Likewise.
367         (gimplify_cilk_spawn): Likewise.
368         (c_cilk_install_body_w_frame_cleanup): Likewise.
369         (cilk_detect_spawn_and_unwrap): Likewise.
370         (cilk_set_spawn_marker): Likewise.
371         (build_cilk_sync): Likewise.
372         (build_cilk_spawn): Likewise.
373         * cilk.c: New file.
375 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
377         Patch autogenerated by refactor_symtab.py from
378         https://github.com/davidmalcolm/gcc-refactoring-scripts
379         revision 58bb219cc090b2f4516a9297d868c245495ee622
381         * c-gimplify.c (c_genericize): Update for conversion of symtab types
382         to a true class hierarchy.
383         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
385 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
387         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
389 2013-10-26  Jeff Law  <law@redhat.com>
391         * c-family/c-common.c (c_define_builtins): Remove mudflap support.
392         * c-family/c.opt: Ignore and warn for mudflap options.
394 2013-10-24  Tobias Burnus  <burnus@net-b.de>
396         PR other/33426
397         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
398         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
400 2013-10-23  Jason Merrill  <jason@redhat.com>
402         * c-format.c (gcc_cxxdiag_char_table): Add %X.
404 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
406         * c-common.h (omp_clause_mask::operator !=): New method.
407         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
408         instead of if (mask & something) tests everywhere.
410         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
411         201307 instead of 201107.
412         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
413         (c_common_attribute_table): Add "omp declare target" and
414         "omp declare simd" attributes.
415         (handle_omp_declare_target_attribute,
416         handle_omp_declare_simd_attribute): New functions.
417         * c-omp.c: Include c-pragma.h.
418         (c_finish_omp_taskgroup): New function.
419         (c_finish_omp_atomic): Add swapped argument, if true,
420         build the operation first with rhs, lhs arguments and use NOP_EXPR
421         build_modify_expr.
422         (c_finish_omp_for): Add code argument, pass it down to make_code.
423         (c_omp_split_clauses): New function.
424         (c_split_parallel_clauses): Removed.
425         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
426         c_omp_declare_simd_clauses_to_decls): New functions.
427         * c-common.h (omp_clause_mask): New type.
428         (OMP_CLAUSE_MASK_1): Define.
429         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
430         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
431         omp_clause_mask::operator |, omp_clause_mask::operator &,
432         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
433         omp_clause_mask::operator ==): New methods.
434         (enum c_omp_clause_split): New.
435         (c_finish_omp_taskgroup): New prototype.
436         (c_finish_omp_atomic): Add swapped argument.
437         (c_finish_omp_for): Add code argument.
438         (c_omp_split_clauses): New prototype.
439         (c_split_parallel_clauses): Removed.
440         (c_omp_declare_simd_clauses_to_numbers,
441         c_omp_declare_simd_clauses_to_decls): New prototypes.
442         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
443         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
444         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
445         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
446         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
447         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
448         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
449         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
450         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
451         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
452         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
453         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
454         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
455         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
456         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
457         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
458         PRAGMA_OMP_CLAUSE_UNIFORM.
460 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
462         PR tree-optimization/20318
463         * c-common.c (handle_returns_nonnull_attribute): New function.
464         (c_common_attribute_table): Add returns_nonnull.
466 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
468         PR c++/19476
469         * c.opt (fcheck-new): Move to common.opt.
471 2013-09-25  Marek Polacek  <polacek@redhat.com>
472             Jakub Jelinek  <jakub@redhat.com>
474         PR sanitizer/58413
475         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
476         an expression if we can prove it is correct.
477         (ubsan_instrument_division): Likewise.  Remove unnecessary
478         check.
480 2013-09-18  Marek Polacek  <polacek@redhat.com>
482         PR sanitizer/58411
483         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
484         Declare it.
485         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
487 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
489         PR target/48094
490         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
491         fobjc-gc, freplace-objc-classes): Accept for LTO.
493 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
495         * c-target.def: New hook
497 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
499         PR c++/43452
500         * c.opt (Wdelete-incomplete): Add.
502 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
504         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
505         (vector_types_compatible_elements_p): New function.
506         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
507         declaration.
508         (vector_types_compatible_elements_p): Declare.
510 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
512         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
513         a virtual member function.
514         (pp_simple_type_specifier): Remove.
515         (pp_c_type_specifier): Likewise.
516         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
517         Rename from pp_c_type_specifier.  Adjust.
518         (c_pretty_printer::c_pretty_printer): Do not assign to
519         simple_type_specifier.
521 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
523         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
524         member function.
525         (c_pretty_printer::storage_class_specifier): Likewise.
526         (c_pretty_printer::initializer): Likewise.
527         (pp_declaration): Remove.
528         (pp_declaration_specifiers): Likewise.
529         (pp_abstract_declarator): Likewise.
530         (pp_declarator): Likewise.
531         (pp_type_id): Likewise.
532         (pp_statement): Likewise.
533         (pp_constant): Likewise.
534         (pp_id_expression): Likewise.
535         (pp_primary_expression): Likewise.
536         (pp_unary_expression): Likewise.
537         (pp_multiplicative_expression): Likewise.
538         (pp_conditional_expression): Likewise.
539         (pp_assignment_expression): Likewise.
540         (pp_expression): Likewise.
541         (pp_c_type_id): Likewise.
542         (pp_c_storage_class_specifier): Likewise.
543         * c-pretty-print.c (pp_c_type_cast): Tidy.
544         (pp_c_pointer): Likewise.
545         (pp_c_type_specifier): Likewise.
546         (pp_c_parameter_type_list): Likewise.
547         (pp_c_function_definition): Likewise.
548         (pp_c_init_declarator): Likewise.
549         (pp_c_initializer_list): Likewise.
550         (pp_c_constructor_elts): Likewise.
551         (c_pretty_printer::direct_abstract_declarator): Likewise.
552         (c_pretty_printer::declaration_specifiers): Likewise.
553         (c_pretty_printer::primary_expression): Likewise.
554         (c_pretty_printer::postfix_expression): Likewise.
555         (c_pretty_printer::type_id): Rename from pp_c_type_id.
556         (c_pretty_printer::storage_class_specifier): Rename from
557         pp_c_storage_class_specifier.
558         (c_pretty_printer::initializer): Rename from pp_c_initializer.
559         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
560         storage_class_specifier, initializer, offset_list, flags.
562 2013-08-30  Marek Polacek  <polacek@redhat.com>
564         * c-ubsan.c: New file.
565         * c-ubsan.h: New file.
567 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
569         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
570         member function.
571         (c_pretty_printer::declaration_specifiers): Likewise.
572         (c_pretty_printer::declarator): Likewise.
573         (c_pretty_printer::abstract_declarator): Likewise.
574         (c_pretty_printer::direct_abstract_declarator): Likewise.
575         (c_pretty_printer::direct_declarator): Likewise.
576         (c_pretty_printer::function_specifier): Likewise.
577         (pp_declaration): Adjust.
578         (pp_declaration_specifiers): Likewise.
579         (pp_abstract_declarator): Likewise.
580         (pp_direct_declarator): Likewise.
581         (pp_function_specifier): Likewise.
582         (pp_direct_abstract_declarator): Remove as unused.
583         (pp_c_declaration): Remove.
584         (pp_c_declaration_specifiers): Likewise.
585         (pp_c_declarator): Likewise.
586         (pp_c_direct_declarator): Likewise.
587         (pp_c_function_specifier): Likewise.
588         (pp_c_direct_abstract_declarator): Likewise.
589         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
590         from pp_c_abstract_declarator.  Adjust.
591         (c_pretty_printer::direct_abstract_declarator):  Rename from
592         pp_c_direct_abstract_declarator.  Adjust.
593         (c_pretty_printer::function_specifier): Rename from
594         pp_c_function_specifier.  Adjust.
595         (c_pretty_printer::declaration_specifiers): Rename from
596         pp_c_declaration_specifiers.  Adjust.
597         (c_pretty_printer::direct_declarator): Rename from
598         pp_c_direct_declarator.  Adjust.
599         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
600         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
601         (c_pretty_printer::c_pretty_printer): Do not assign to
602         declaration, declaration_specifiers, declarator,
603         direct_declarator, direct_abstract_declarator, function_specifier.
605 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
607         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
608         virtual member function.
609         (c_pretty_printer::multiplicative_expression): Likewise.
610         (c_pretty_printer::conditional_expression): Likewise.
611         (c_pretty_printer::assignment_expression): Likewise.
612         (c_pretty_printer::expression): Likewise.
613         (pp_unary_expression): Adjust.
614         (pp_multiplicative_expression): Likewise.
615         (pp_assignment_expression): Likewise.
616         (pp_conditional_expression): Likewise.
617         (pp_expression): Likewise.
618         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
619         from pp_c_unary_expression.  Adjust.
620         (c_pretty_printer::multiplicative_expression): Rename from
621         pp_c_multiplicative_expression.  Adjust.
622         (c_pretty_printer::conditional_expression): Rename from
623         pp_c_conditional_expression.  Adjust.
624         (c_pretty_printer::assignment_expression): Rename from
625         pp_c_assignment_expression.  Adjust.
626         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
627         (c_pretty_printer::c_pretty_printer): Do not assign to
628         unary_expression, multiplicative_expression,
629         conditional_expression, expression.
631 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
633         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
634         virtual member function.
635         (pp_postfix_expression): Adjust.
636         (pp_c_postfix_expression): Remove.
637         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
638         from pp_c_postfix_expression.  Adjust.
639         (c_pretty_printer::c_pretty_printer): Do not assign to
640         postfix_expression.
642 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
644         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
645         virtua member function.
646         (pp_primary_expression): Adjust.
647         (pp_c_primary_expression): Remove.
648         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
649         from pp_c_primary_expression.  Adjust.
650         (pp_c_initializer_list): Use pp_primary_expression.
651         (c_pretty_printer::c_pretty_printer): Do not assign to
652         primary_expression.
654 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
656         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
657         * c-pretty-print.c (M_): Remove.
658         (c_pretty_printer::translate_string): Define.
659         (pp_c_type_specifier): Use it.
660         (pp_c_primary_expression): Likewise.
661         (pp_c_expression): Likewise.
663 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
665         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
666         virtual function.
667         (pp_c_id_expression): Remove.
668         (pp_id_expression): Adjust.
669         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
670         pp_c_id_expression.  Adjust.
671         (pp_c_postfix_expression): Use pp_id_expression.
672         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
674 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
676         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
677         member function.
678         (pp_constant): Adjust.
679         (pp_c_constant): Remove.
680         * c-pretty-print.c (c_pretty_printer::constant): Rename from
681         pp_c_constant.  Adjust.
682         (pp_c_constant)
683         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
684         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
686 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
688         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
689         (c_pretty_printer::c_pretty_printer): Declare.
690         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
691         c_pretty_printer_init.  Adjust.
692         (print_c_tree): Do not call c_pretty_printer_init.
693         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
695 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
697         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
699 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
701         PR c++/58080
702         * c-common.c (pointer_int_sum): Add bool parameter.
703         * c-common.h (pointer_int_sum): Adjust declaration.
705 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
707         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
708         c_pretty_printer variable.
710 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
712         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
713         (pp_base): Remove.
714         (pp_c_base): Likewise.  Adjust users.
715         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
716         (pp_c_whitespace): Do not call pp_base.
717         (pp_c_left_paren): Likewise.
718         (pp_c_right_paren): Likewise.
719         (pp_c_left_brace): Likewise.
720         (pp_c_right_brace): Likewise.
721         (pp_c_left_bracket): Likewise.
722         (pp_c_right_bracket): Likewise.
723         (pp_c_dot): Likewise.
724         (pp_c_ampersand): Likewise.
725         (pp_c_star): Likewise.
726         (pp_c_arrow): Likewise.
727         (pp_c_semicolon): Likewise.
728         (pp_c_complement): Likewise.
729         (pp_c_exclamation): Likewise.
730         (pp_c_direct_declarator): Likewise.
731         (pp_c_ws_string): Likewise.
732         (pp_c_identifier): Likewise.
733         (pp_c_statement): Likewise.
734         (print_c_tree): Likewise.
736 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
738         PR c++/58072
739         * c-common.c (c_parse_error): Catch user-defined literal tokens and
740         provide useful error strings.
742 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
744         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
745         printer functions instead of pp_string or operators and punctuators.
746         (dump_generic_ada_node): Likewise.
747         * c-pretty-print.c (pp_c_type_specifier): Likewise.
748         (pp_c_relational_expression): Likewise.
749         (pp_c_logical_or_expression): Likewise.
751 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
753         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
754         functions instead of pp_character.
755         (pp_ada_tree_identifier): Likewise.
756         (dump_ada_double_name): Likewise.
757         (dump_ada_function_declaration): Likewise.
758         (dump_ada_array_domains): Likewise.
759         (dump_template_types): Likewise.
760         (dump_generic_ada_node): Likewise.
761         (print_ada_declaration): Likewise.
762         (print_ada_struct_decl): Likewise.
763         * c-pretty-print.c (pp_c_integer_constant): Likewise.
765 2013-07-23  Tom Tromey  <tromey@redhat.com>
767         * c-common.h (enum rid) <RID_GENERIC>: New constant.
768         * c-common.c (c_common_reswords): Add _Generic.
770 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
772         * c-common.c: Fix typos.
773         * c-common.h: Likewise.
775 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
777         PR c++/55203
778         * c-common.c (c_common_attribute_table): Add warn_unused.
779         (handle_warn_unused_attribute): New.
781 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
783         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
784         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
786 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
788         PR c++/57869
789         * c.opt: Add Wconditionally-supported.
791 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
793         * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
794         unused variables l_length and l_node.
796 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
798         PR c/57821
799         * c-common.c (complete_array_type): Delay folding first index
800         like other indices.  When folding, check for index overflow.
802 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
804         PR c++/57509
805         * c-common.h (c_build_vec_perm_expr): New complain argument.
806         * c-common.c (c_build_vec_perm_expr): Likewise.
807         Use save_expr also in C++.
809 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
811         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
812         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
813         * c-opts.c (c_common_post_options): Likewise.
815 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
817         * array-notation-common.c (length_mismatch_in_expr): Changed the
818         parameter type's from a dynamic array to a vec_tree.  Also removed
819         the size parameters.
820         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
821         the change above.
823 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
825         * c-common.h (struct cilkplus_an_parts): New structure.
826         (struct cilkplus_an_loop_parts): Likewise.
827         (cilkplus_extract_an_triplets): New prototype.
828         (fix_sec_implicit_args): Likewise.
829         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
830         (fix_sec_implicit_args): Likewise.
832 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
834         * array-notation-common.c (find_inv_trees): Removed an unwanted
835         typecasting.
836         * c-common.h (struct inv_list::additional_tcodes): Changed type from
837         enum rid to enum tree_code.
839 2013-06-11  Jan Hubicka  <jh@suse.cz>
841         * c-common.c (handle_alias_ifunc_attribute): Do not set
842         DECL_EXTERNAL for weakref variables.
843         * c-pragma.c (handle_pragma_weak): Make sure aliases
844         are not declared as external.
846 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
848         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
849         function from c/c-array-notation.c.
850         (is_cilkplus_reduce_builtin): Likewise.
851         (find_rank): Likewise.
852         (extract_array_notation_exprs): Likewise.
853         (replace_array_notations): Likewise.
854         (find_inv_trees): Likewise.
855         (replace_inv_trees): Likewise.
856         (contains_array_notation_expr): Likewise.
857         (find_correct_array_notation_type): Likewise.
858         * c-common.h (struct inv_list): Moved this struct from the file
859         c/c-array-notation.c and added a new field called additional tcodes.
860         (length_mismatch_in_expr_p): New prototype.
861         (is_cilkplus_reduce_builtin): Likewise.
862         (find_rank): Likewise.
863         (extract_array_notation_exprs): Likewise.
864         (replace_array_notation): Likewise.
865         (find_inv_trees): Likewise.
866         (replace_inv_trees): Likewise.
867         (find_correct_array_notation_type): Likewise.
869 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
871         * c-common.c (c_define_builtins): When cilkplus is enabled, the
872         function array_notation_init_builtins is called.
873         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
874         * c-common.def (ARRAY_NOTATION_REF): New tree.
875         * c-common.h (build_array_notation_expr): New function declaration.
876         (build_array_notation_ref): Likewise.
877         (extract_sec_implicit_index_arg): New extern declaration.
878         (is_sec_implicit_index_fn): Likewise.
879         (ARRAY_NOTATION_CHECK): New define.
880         (ARRAY_NOTATION_ARRAY): Likewise.
881         (ARRAY_NOTATION_START): Likewise.
882         (ARRAY_NOTATION_LENGTH): Likewise.
883         (ARRAY_NOTATION_STRIDE): Likewise.
884         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
885         ARRAY_NOTATION_REF.
886         (pp_c_expression): Likewise.
887         * c.opt (flag_enable_cilkplus): New flag.
888         * array-notation-common.c: New file.
890 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
892         PR c++/57274
893         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
895 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
897         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
898         vectors.
900 2013-05-07  Han Shen  <shenhan@google.com>
902         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
904 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
906         * c-common.c (check_user_alignment): Emit error for negative values.
908 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
910         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
912 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
914         * c-cppbuiltin.c (c_cpp_builtins): Do not define
915         __GXX_EXPERIMENTAL_CXX1Y__.
917 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
918             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
920         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
921         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
922         to simply use OPT_Wpointer_arith.
923         (c_sizeof_or_alignof_type): Likewise.
925 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
927         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
929 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
931         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
932         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
933         specifiers.
935 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
937         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
939 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
941         * c-common.c (pointer_int_sum): Remove dead code.
943 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
945         PR middle-end/56524
946         * c-common.c (handle_optimize_attribute): Don't call
947         save_optabs_if_changed.
949 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
951         PR middle-end/56461
952         * c-pch.c (pch_init): Free target_validity at the end.
954 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
956         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
958 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
959             Jakub Jelinek  <jakub@redhat.com>
961         PR sanitizer/56454
962         * c-common.c (handle_no_sanitize_address_attribute): New function.
963         (c_common_attribute_table): Add no_sanitize_address attribute.
964         (handle_no_address_safety_analysis_attribute): Add
965         no_sanitize_address attribute, not no_address_safety_analysis
966         attribute.
968 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
970         PR target/52555
971         * c-common.c (handle_optimize_attribute): Call
972         save_optabs_if_changed.
974 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
975             Steven Bosscher  <steven@gcc.gnu.org>
977         PR pch/54117
978         * c-opts.c (c_common_post_options): If debug info is enabled
979         and non-dwarf*, refuse to load PCH files and when writing PCH
980         file warn.
982 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
984         PR middle-end/56167
985         * c-common.c (handle_error_attribute): Fix condition.
987 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
989         PR c++/55742
990         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
992 2013-01-18  Jason Merrill  <jason@redhat.com>
994         PR target/54908
995         * c.opt (-fextern-tls-init): New.
996         * c-opts.c (c_common_post_options): Handle it.
998 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
1000         PR c/48418
1001         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1002         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1003         and is either negative or bigger or equal to type precision
1004         of the first operand.
1006 2012-12-03  Marek Polacek  <polacek@redhat.com>
1008         PR c/55570
1009         * c-common.c (check_user_alignment): Swap order of tests,
1010         check TREE_CODE first.
1012 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
1014         PR c++/52654
1015         * c-common.h (overflow_type): New enum.
1016         (build_userdef_literal): Add overflow_type argument.
1017         (tree_userdef_literal): Add overflow_type.
1018         (USERDEF_LITERAL_OVERFLOW): New access macro.
1019         * c-common.c (build_userdef_literal): Add overflow_type
1020         argument.
1021         * c-lex.c (c_lex_with_flags): Add overflow_type to
1022         build_userdef_literal calls.
1023         (interpret_integer, interpret_float): Add overflow_type argument.
1025 2012-11-28  Richard Biener  <rguenther@suse.de>
1027         PR c/35634
1028         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1029         here and use a type with proper overflow behavior for types that would
1030         need to be promoted for the arithmetic.
1032 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
1034         PR sanitizer/55435
1035         * c-common.c (handle_no_address_safety_analysis_attribute): New
1036         function.
1037         (c_common_attribute_table): Add no_address_safety_analysis.
1039 2012-11-16  Simon Baldwin  <simonb@google.com>
1041         * c.opt: Add f[no-]canonical-system-headers.
1042         * c-opts.c (c_common_handle_option): Handle
1043         OPT_fcanonical_system_headers.
1045 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
1047         PR c++/54413
1048         * c-opts.c (c_common_handle_option): Set new flags.
1049         * c.opt: Describe new flags.
1051 2012-11-09  Jason Merrill  <jason@redhat.com>
1053         * c.opt (Wabi-tag): New.
1055 2012-11-09  Andi Kleen  <ak@linux.intel.com>
1057         PR 55139
1058         * c-common.c (get_atomic_generic_size): Mask with
1059         MEMMODEL_MASK
1061 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1063         PR c/53063
1064         * c.opt (Wformat): Make it Alias Wformat=1.
1065         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1066         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1067         LangEnabledBy.
1068         (Wformat=): RejectNegative. Use LangEnabledBy.
1069         (Wnonnull): Use LangEnabledBy.
1070         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1071         * c-format.c (set_Wformat): Delete.
1072         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1073         (maybe_read_dollar_number):  Likewise.
1074         (avoid_dollar_number):  Likewise.
1075         (finish_dollar_format_checking):  Likewise.
1076         (check_format_info):  Likewise.
1077         (check_format_info_main):  Likewise.
1078         (check_format_types):  Likewise.
1079         (format_type_warning):  Likewise.
1080         * c-common.c (int):  Likewise.
1081         (check_function_sentinel):  Likewise.
1082         * c-common.h (warn_format,set_Wformat): Do not declare here.
1084 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1086         PR c/53063
1087         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1088         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1089         Use LangEnabledBy.
1090         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1091         common.opt.
1092         (Wvariadic-macros): Init(1).
1093         * c-opts.c (c_common_handle_option): Do not handle them
1094         explicitly.
1095         (c_common_post_options): Likewise.
1096         (sanitize_cpp_opts): warn_unused_macros is now
1097         cpp_warn_unused_macros.
1098         (push_command_line_include): Likewise.
1099         * c-common.c (warn_unknown_pragmas): Do not define.
1100         * c-common.h (warn_unknown_pragmas): Do not declare.
1102 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1104         PR c/51294
1105         * c-common.c (conversion_warning): Handle conditional expressions.
1107 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
1109         PR c++/54930
1110         * c.opt (Wreturn_local_addr): Define new option.
1112 2012-10-25  Jason Merrill  <jason@redhat.com>
1114         * c.opt (Wvirtual-move-assign): New.
1116         * c.opt (Winherited-variadic-ctor): New.
1118 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
1120         PR c++/54427
1121         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1123 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1125         * c-common.h (pch_cpp_save_state): Declare.
1126         * c-target.def (c_preinclude): New hook.
1127         * c-opts.c (done_preinclude): New.
1128         (push_command_line_include): Handle default preincluded header.
1129         (cb_file_change): Call pch_cpp_save_state when calling
1130         push_command_line_include.
1131         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1132         (pch_cpp_save_state): New.
1133         (pch_init): Call pch_cpp_save_state conditionally, instead of
1134         calling cpp_save_state.
1136 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1138         PR c/53063
1139         PR c/40989
1140         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1141         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1142         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1143         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1144         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1145         * c-opts.c (c_common_handle_option): Remove explicit handling from
1146         here.
1147         (c_common_post_options): Likewise.
1149 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
1151         * c-ada-spec.c (LOCATION_COL): Delete.
1152         (compare_location): New function.
1153         (compare_node): Use it.
1154         (compare_comment): Likewise.
1156 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1158         PR c/53063
1159         PR c/40989
1160         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1161         * c-opts.c (c_common_handle_option): Do not set them here. Add
1162         comment.
1163         (c_common_post_options): Likewise.
1165 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1167         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1168         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1169         Remove POINTER_TYPE handling, add large unsigned handling and use
1170         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1172 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
1174         PR c/54381
1175         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1176         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1177         locs and array of 3 trees instead of just single loc and single
1178         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
1179         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1180         For *cmp* builtins that take two sources strings report warnings
1181         about first and second source, not about destination and source.
1183 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
1185         PR c++/53055
1186         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1188 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1190         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1191         declaring something coming from another file.
1193 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
1195         PR ada/54845
1196         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1198 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
1200         PR c++/54194
1201         * c-common.c (warn_about_parentheses): Add location_t parameter;
1202         use EXPR_LOC_OR_LOC.
1203         * c-common.h: Update declaration.
1205 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
1207         PR c++/54427
1208         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1209         more operations. Make error messages optional.
1210         * c-common.h (enum stv_conv): Moved from c-typeck.c.
1211         (scalar_to_vector): Declare.
1213 2012-10-08  Jason Merrill  <jason@redhat.com>
1215         * c-common.c (c_common_reswords): Add thread_local.
1217 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
1219         PR c++/53528 C++11 attribute support
1220         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1221         new functions.
1222         * c-common.c (check_cxx_fundamental_alignment_constraints): New
1223         static function.
1224         (handle_aligned_attribute): In choose strictest alignment
1225         among many.  Use new check_cxx_fundamental_alignment_constraints.
1226         (handle_transparent_union_attribute): In c++11 attribute syntax,
1227         don't look through typedefs.
1229 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
1231         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1232         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1233         out of dumpfile.h.
1235 2012-09-25  Dehao Chen  <dehao@google.com>
1237         PR middle-end/54645
1238         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
1239         map when read in the pch.
1241 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
1243         * c-ada-spec.c: Style fixes.
1245 2012-09-18 Thomas Quinot  <quinot@adacore.com>
1247         * c.opt (-fada-spec-parent): Define new command line switch.
1248         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1249         is specified, generate binding spec as a child of the specified unit.
1251 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
1252             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1254         PR c++/53210
1255         * c.opt ([Winit-self]): Enabled by -Wall in C++.
1257 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
1259         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1260         for pointers, and add missing Convention C pragma.
1261         (print_ada_struct_decl): Add missing aliased keyword.
1262         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1264 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
1266         * c-common.c (sizeof_pointer_memaccess_warning): New function.
1267         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1268         * c-opts.c (c_common_handle_option): Enable it for -Wall.
1269         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1270         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1272 2012-08-10  Richard Guenther  <rguenther@suse.de>
1274         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1276 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
1278         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1279         instead of separate pp_newline and pp_flush.
1280         (print_c_tree): Likewise.
1282 2012-07-26  Richard Henderson  <rth@redhat.com>
1284         * c-common.c (handle_hot_attribute): Allow labels.
1285         (handle_cold_attribute): Likewise.
1287 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
1289         PR c++/28656
1290         * c-common.c (check_function_nonnull): Handle multiple nonnull
1291         attributes properly.
1293 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
1295         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1296         * c-ada-spec.c: Likewise.
1297         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1299 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
1301         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1302         Remove code conditional on it.
1304 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
1306         * c-gimplify.c: Do not include basic-block.h.
1307         * c-common.c: Do not include linfuncs.h.
1309 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1311         * c-common.h: Include tree.h.
1313 2012-07-02  Jason Merrill  <jason@redhat.com>
1315         PR c++/53524
1316         * c-common.c (get_priority): Call default_conversion.
1318 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
1320         * c-pch.c (c_common_write_pch): Remove unused variables.
1322 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1324         * cppspec.c: Moved from gcc/ to here.
1326 2012-06-27  Kai Tietz  <ktietz@redhat.com>
1328         PR preprocessor/37215
1329         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1331 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
1333         * c-common.h (c_common_print_pch_checksum): Remove.
1334         * c-pch.c: Do not include output.h.
1335         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1336         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1337         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1338         (struct c_pch_header): Remove.
1339         (get_ident): Update gpch version.
1340         (pch_init): Do not print executable_checksum to asm_out_file.
1341         Do not fail if there is no asm_out_file to read back from.  Set
1342         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1343         (c_common_write_pch): Verify that nothing was written to asm_out_file
1344         since pch_init was called.  Do not write a c_pch_header, and do not
1345         copy from asm_out_file to the PCH.
1346         (c_common_read_pch): Do not read a c_pch_header, and do not restore
1347         the content of asm_out_file from the PCH.
1348         (c_common_print_pch_checksum): Remove.
1349         * c-opts.c (c_common_init): Print out executable_checksum directly.
1351 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
1353         * c-target.def (objc_declare_unresolved_class_reference,
1354         objc_declare_class_definition): Add new hooks.
1356 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
1358         * c-lex.c: Do not include output.h.
1359         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1360         Remove uses of ASM_OUTPUT_IDENT.
1362 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
1364         PR c++/51033
1365         * c-common.h (c_build_vec_perm_expr): Move decl here.
1366         * c-common.c (c_build_vec_perm_expr): Move definition
1367         here.
1369 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
1371         * c.opt (fconserve-space): Turn into a no-op.
1373 2012-06-04  Sterling Augustine  <saugustine@google.com>
1375         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1376         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1377         both the start and end of the function.
1379 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
1381         * c-common.c: Do not include output.h.
1382         * c-pragma.c: Likewise.
1384 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
1386         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1387         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1388         (lang_decl_name): Handle namespace decls.
1390 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
1392         * c-ada-spec.c: Do not include output.h.
1393         * c-semantics.c: Likewise.
1395 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
1397         * c-common.c: Fix typo.
1399 2012-05-29  Michael Matz  <matz@suse.de>
1401         * c-common.h (c_expand_decl): Remove prototype.
1403 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1405         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1406         * c-opts.c (c_common_handle_option): Remove code handling
1407         warn_missing_braces.
1409 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
1411         PR c++/25137
1412         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1413         -Wmissing_braces.
1415 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
1417         PR c++/53322
1418         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1420 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1422         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1423         * c-opts.c (c_common_handle_option): Do not handle explicitly
1424         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1426 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
1428         PR preprocessor/7263
1429         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
1430         to cpp_classify_number.  For diagnostics, use the precise location
1431         instead of the global input_location.
1433 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
1435         PR c++/11856
1436         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1438 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
1440         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1442 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1444         PR 53063
1445         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1446         Wreorder): Use LangEnabledBy.
1447         * c-opts.c (c_common_handle_option): Do not enable them
1448         explicitly. Call lang-specific generated functions.
1449         (c_common_post_options): Do not set them here.
1451 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1453         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1454         Wmissing-field-initializers,Wmissing-parameter-type,
1455         Wold-style-declaration,Woverride-init): Use EnabledBy.
1456         * c-opts.c (c_common_post_options): Do not set here explicitly.
1458 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1460         PR 53063
1461         * c-opts.c (c_common_handle_option): Use handle_generated_option
1462         to enable sub-options.
1464 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
1466         PR c++/53158
1467         * c-common.c (warnings_for_convert_and_check): Use warning_at.
1469 2012-05-10  Richard Guenther  <rguenther@suse.de>
1471         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1472         adjust commentary about TYPE_IS_SIZETYPE types.
1474 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1476         PR c++/53261
1477         * c-common.c (warn_logical_operator): Check that argument of
1478         integer_zerop is not NULL.
1480 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1482         PR c/43772
1483         * c-common.c (warn_logical_operator): Do not warn if either side
1484         is already true or false.
1486 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1488         PR c/51712
1489         * c-common.c (expr_original_type): New.
1490         (shorten_compare): Do not warn for enumeration types.
1492 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1494         * c.opt (fpermissive): Add Var(flag_permissive).
1496 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
1498         PR c++/51033
1499         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1500         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1502 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
1504         Add -Wvarargs option
1505         * c.opt (Wvarargs):  Define new option.
1507 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1509         * c-common.c (check_function_arguments): Replace
1510         Wmissing-format-attribute with Wsuggest-attribute=format.
1512 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1514         * c.opt (Wsuggest-attribute=format): New. Alias of
1515         Wmissing-format-attribute.
1516         * c-format.c (decode_format_type): Replace
1517         Wmissing-format-attribute with Wsuggest-attribute=format.
1518         (check_function_format): Likewise.
1520 2012-04-27  Ollie Wild  <aaw@google.com>
1522         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1523         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1524         * c.opt: Add Wliteral-suffix.
1526 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1528         PR c/44774
1529         * c.opt (Wpedantic): New.
1530         (pedantic): Alias Wpedantic.
1531         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1532         (c_common_post_options): Likewise.
1533         (sanitize_cpp_opts): Likewise.
1534         * c-lex.c (interpret_float): Likewise.
1535         * c-format.c (check_format_types): Likewise.
1536         * c-common.c (pointer_int_sum): Likewise.
1537         (c_sizeof_or_alignof_type): Likewise.
1538         (c_add_case_label): Likewise.
1539         (c_do_switch_warnings): Likewise.
1540         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1542 2012-04-15  Jason Merrill  <jason@redhat.com>
1544         PR c++/52818
1545         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1546         (C_STD_NAME): Distinguish between C++98 and C++11.
1548 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1550         PR target/52624
1551         * c-common.h (uint16_type_node): Rename into...
1552         (c_uint16_type_node): ...this.
1553         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1554         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1556 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1558         * c-common.c (warn_if_unused_value): Move definition to here.
1559         * c-common.h (warn_if_unused_value): Move declaration to here.
1561 2012-03-23  William Bader  <williambader@hotmail.com>
1563         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1565 2012-03-20  Jason Merrill  <jason@redhat.com>
1567         * c-common.h (enum cxx_dialect): Add cxx1y.
1568         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1569         test.
1570         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1571         * c-opts.c (c_common_post_options): Likewise.
1572         (set_std_cxx1y): New.
1573         (c_common_handle_option): Call it.
1574         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1576 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
1578         PR c++/14710
1579         * c.opt ([Wuseless-cast]): Add.
1581 2012-03-16  Richard Guenther  <rguenther@suse.de>
1583         * c-pretty-print.c (pp_c_initializer_list): Adjust.
1585 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1587         PR c++/44783
1588         * c.opt (ftemplate-backtrace-limit) Add.
1590 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1592         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1593         handling.
1594         * c-pragma.c (handle_pragma_extern_prefix): Remove.
1595         (init_pragma): Don't register extern_prefix.
1597 2012-03-12  Richard Guenther  <rguenther@suse.de>
1599         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1600         (builtin_type_for_size): Likewise.
1602 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
1604         PR c++/52215
1605         * c-common.c (sync_resolve_params): Don't decide whether to convert
1606         or not based on TYPE_SIZE comparison, convert whenever arg_type
1607         is unsigned INTEGER_TYPE.
1609 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
1611         PR c/52118
1612         * c.opt ([Wunused-local-typedefs]): Fix description.
1614 2012-01-24  Mike Stump  <mikestump@comcast.net>
1616         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1617         exactly.
1619 2012-01-18  Richard Guenther  <rguenther@suse.de>
1621         * c-opts.c (c_common_post_options): Reset LTO flags if
1622         we are about to generate a PCH.
1624 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
1626         PR c++/51777
1627         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1628         use pp_unsigned_wide_integer.
1630 2012-01-10  Richard Guenther  <rguenther@suse.de>
1632         PR middle-end/51806
1633         * c-opts.c (c_common_handle_option): Move -Werror handling
1634         to language independent code.
1636 2012-01-05  Richard Guenther  <rguenther@suse.de>
1638         PR middle-end/51764
1639         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1640         from common.opt.
1642 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
1644         PR c++/51316
1645         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1646         of array types with an unknown bound.
1648 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
1650         * c-common.c (flag_isoc99): Update comment to refer to C11.
1651         (flag_isoc1x): Change to flag_isoc11.
1652         * c-common.h (flag_isoc99): Update comment to refer to C11.
1653         (flag_isoc1x): Change to flag_isoc11.
1654         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1655         C11.
1656         * c-opts.c (set_std_c1x): Change to set_std_c11.
1657         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1658         Call set_std_c11.
1659         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1660         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1661         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
1662         standard.
1663         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1664         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
1665         (std=gnu1x): Make alias of std=gnu11.
1667 2011-12-19  Jason Merrill  <jason@redhat.com>
1669         PR c++/51228
1670         * c-common.c (handle_transparent_union_attribute): Check the first
1671         field if the type is complete.
1673 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
1675         PR libstdc++/51365
1676         * c-common.c (RID_IS_FINAL): Add.
1677         * c-common.h (RID_IS_FINAL): Add.
1679 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
1681         * c.opt (fgnu-runtime): Provide full description.
1682         (fnext-runtime): Likewise.
1683         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1685 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
1687         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
1688         predefines in one place.  Add LOCK_FREE predefines.
1689         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1690         new func.
1692 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
1694         PR c/51256
1695         * c-common.c (get_atomic_generic_size): Check for various error
1696         conditions
1697         (resolve_overloaded_atomic_exchange,
1698         resolve_overloaded_atomic_compare_exchange,
1699         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1700         error_mark_node for error conditions.
1702 2011-11-08  Richard Guenther  <rguenther@suse.de>
1704         PR middle-end/51010
1705         c-family/
1707 2011-11-07  Richard Henderson  <rth@redhat.com>
1708             Aldy Hernandez  <aldyh@redhat.com>
1709             Torvald Riegel  <triegel@redhat.com>
1711         Merged from transactional-memory.
1713         * c-common.c (handle_tm_wrap_attribute,
1714         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1715         (struct c_common_reswords): Added __transaction* keywords.
1716         (struct c_common_attribute_table): Added transaction* and tm_regparm
1717         attributes.
1718         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1719         masks.
1720         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1721         find_tm_attribute): Declare.
1723 2011-11-07  Jason Merrill  <jason@redhat.com>
1725         PR c++/35688
1726         * c-common.c, c-common.h: Revert yesterday's changes.
1728 2011-11-06  Jason Merrill  <jason@redhat.com>
1730         PR c++/35688
1731         * c-common.c (decl_has_visibility_attr): Split out from...
1732         (c_determine_visibility): ...here.
1733         * c-common.h: Declare it.
1735 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
1737         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1738         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1739         type.
1740         (check_user_alignment): New.  Split out of
1741         handle_aligned_attribute.  Disallow integer constants with
1742         noninteger types.  Conditionally allow zero.
1743         (handle_aligned_attribute): Use check_user_alignment.
1744         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1746 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
1747             Richard Henderson  <rth@redhat.com>
1749         Merged from cxx-mem-model.
1751         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1752         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1753         parameters that are the same type size.
1754         (get_atomic_generic_size): New.  Find size of generic
1755         atomic function parameters and do typechecking.
1756         (add_atomic_size_parameter): New.  Insert size into parameter list.
1757         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1758         either __atomic_exchange_n or external library call.
1759         (resolve_overloaded_atomic_compare_exchange): Restructure
1760         __atomic_compare_exchange to either _n variant or external library call.
1761         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1762         __atomic_load_n or an external library call.
1763         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1764         __atomic_store_n or an external library call.
1765         (resolve_overloaded_builtin): Handle new __atomic builtins.
1767 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1769         PR c++/50608
1770         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1771         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
1772         <INDIRECT_REF>: Return the argument.
1773         <ARRAY_REF>: Remove special code for negative offset.
1774         Call fold_build_pointer_plus instead of size_binop.
1775         (fold_offsetof): Remove STOP_REF argument and adjust.
1776         * c-common.h (fold_offsetof_1): Declare.
1777         (fold_offsetof): Remove STOP_REF argument.
1779 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
1781         PR c++/50810
1782         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1783         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1784         Wnarrowing for C++0x and C++98.
1785         * c.opt ([Wnarrowing]): Update.
1787 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
1789         PR c++/44277
1790         * c.opt: Add Wzero-as-null-pointer-constant.
1792 2011-10-31  Jason Merrill  <jason@redhat.com>
1794         * c.opt (-fdeduce-init-list): Off by default.
1796         PR c++/50920
1797         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1798         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1799         and -Wc++11-compat.
1800         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1802 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
1804         PR c++/30066
1805         * c.opt (fvisibility-inlines-hidden): Description change.
1807 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
1809         Implement C++11 user-defined literals.
1810         * c-common.c (build_userdef_literal): New.
1811         * c-common.def: New tree code.
1812         * c-common.h (tree_userdef_literal): New tree struct and accessors.
1813         * c-lex.c (interpret_float): Add suffix parm.
1814         (c_lex_with_flags): Build literal tokens.
1816 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
1818         PR c++/50841
1819         Revert:
1820         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
1822         PR c++/50810
1823         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1824         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1825         Wnarrowing for C++0x and C++98.
1826         * c.opt ([Wnarrowing]): Update.
1828 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
1830         PR c++/50810
1831         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1832         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1833         Wnarrowing for C++0x and C++98.
1834         * c.opt ([Wnarrowing]): Update.
1836 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
1838         PR c++/45385
1839         * c-common.c (conversion_warning): Remove code looking for
1840         artificial operands.
1842 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
1844         PR bootstrap/50760
1845         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1846         !NO_IMPLICIT_EXTERN_C.
1848 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
1850         * c-common.c (c_common_reswords): Add __bases,
1851         __direct_bases.
1852         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1854 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
1856         PR c++/50757
1857         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1859 2011-10-15  Tom Tromey  <tromey@redhat.com>
1860             Dodji Seketeli  <dodji@redhat.com>
1862         * c.opt (fdebug-cpp): New option.
1863         * c-opts.c (c_common_handle_option): Handle the option.
1864         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1865         output stream in parameter. Factorized from ...
1866         (maybe_print_line): ... this. Dump location debug information when
1867         -fdebug-cpp is in effect.
1868         (print_line_1): New static function. Takes an output stream in
1869         parameter. Factorized from ...
1870         (print_line): ... here. Dump location information when -fdebug-cpp
1871         is in effect.
1872         (scan_translation_unit): Dump location information when
1873         -fdebug-cpp is in effect.
1875 2011-10-15  Tom Tromey  <tromey@redhat.com>
1876             Dodji Seketeli  <dodji@redhat.com>
1878         * c.opt (ftrack-macro-expansion): New option. Handle it with and
1879         without argument.
1880         * c-opts.c (c_common_handle_option)<case
1881         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1882         cases. Handle -ftrack-macro-expansion with and without argument.
1884 2011-10-15  Tom Tromey  <tromey@redhat.com>
1885             Dodji Seketeli  <dodji@redhat.com>
1887         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1888         (print_line, cb_define, do_line_change): Adjust to avoid touching
1889         the internals of struct line_map.  Use the public API instead.
1890         * c-pch.c (c_common_read_pch): Likewise.
1891         * c-lex.c (fe_file_change): Likewise.
1893 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
1895         PR c++/17212
1896         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1898 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
1900         PR c++/33067
1901         * c-pretty-print.c (pp_c_floating_constant): Output
1902         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1904 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1906         * c-common.c (def_builtin_1): Delete old interface with two
1907         parallel arrays to hold standard builtin declarations, and replace
1908         it with a function based interface that can support creating
1909         builtins on the fly in the future.  Change all uses, and poison
1910         the old names.  Make sure 0 is not a legitimate builtin index.
1911         * c-omp.c (c_finish_omp_barrier): Ditto.
1912         (c_finish_omp_taskwait): Ditto.
1913         (c_finish_omp_flush): Ditto.
1915 2011-10-11  Tristan Gingold  <gingold@adacore.com>
1917         * c.opt: (fallow-parameterless-variadic-functions): New.
1919 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
1921         PR c++/33255 - Support -Wunused-local-typedefs warning
1922         * c-common.h (struct c_language_function::local_typedefs): New
1923         field.
1924         (record_locally_defined_typedef, maybe_record_typedef_use)
1925         (maybe_warn_unused_local_typedefs): Declare new functions.
1926         * c-common.c (record_locally_defined_typedef)
1927         (maybe_record_typedef_use)
1928         (maybe_warn_unused_local_typedefs): Define new functions.
1929         * c.opt: Declare new -Wunused-local-typedefs flag.
1931 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
1933         PR middle-end/50266
1934         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1935         computations.
1937 2011-09-05  Richard Guenther  <rguenther@suse.de>
1939         * c-common.c (complete_array_type): Use ssize_int (-1) instead
1940         of integer_minus_one_node for empty array upper bounds.
1942 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
1944         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1945         it's the first time it's being called on this main TU.
1947 2011-08-24  Richard Guenther  <rguenther@suse.de>
1949         PR c/49396
1950         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1952 2011-08-22  Gabriel Charette  <gchare@google.com>
1954         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1955         defined in cpp_init_builtins and c_cpp_builtins.
1957 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1959         * c-common.c (c_common_reswords): Add __builtin_complex.
1960         * c-common.h (RID_BUILTIN_COMPLEX): New.
1962 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
1964         * c-common.c (c_common_reswords): Add _Noreturn.
1965         (keyword_is_function_specifier): Handle RID_NORETURN.
1966         * c-common.h (RID_NORETURN): New.
1968 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1970         * c-common.c (unsafe_conversion_p): New function. Check if it is
1971         unsafe to convert an expression to the type.
1972         (conversion_warning): Adjust, use unsafe_conversion_p.
1973         * c-common.h (unsafe_conversion_p): New function declaration.
1975 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
1977         * c-common.h (c_finish_omp_atomic): Adjust prototype.
1978         (c_finish_omp_taskyield): New prototype.
1979         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1980         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1981         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
1982         or RHS1 have side-effects, evaluate those too in the right spot,
1983         if it is a decl and LHS is also a decl, error out if they
1984         aren't the same.
1985         (c_finish_omp_taskyield): New function.
1986         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1987         * c-pragma.c (omp_pragmas): Add taskyield.
1988         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1989         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1990         PRAGMA_OMP_CLAUSE_MERGEABLE.
1992 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
1994         * c-common.h (set_underlying_type): Remove parm name from
1995         declaration.
1997 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
1999         * c-pretty-print.h: Search c-common.h in c-family.
2001 2011-07-22  Jason Merrill  <jason@redhat.com>
2003         PR c++/49793
2004         * c.opt (Wnarrowing): New.
2006         PR c++/30112
2007         * c-common.h: Declare c_linkage_bindings.
2008         * c-pragma.c (handle_pragma_redefine_extname): Use it.
2010         PR c++/49813
2011         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2012         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2013         as flag_isoc99 for 'restrict'.
2014         (pp_c_specifier_qualifier_list): Likewise for _Complex.
2016 2011-07-21  Ian Lance Taylor  <iant@google.com>
2018         PR middle-end/49705
2019         * c-common.c (c_disable_warnings): New static function.
2020         (c_enable_warnings): New static function.
2021         (c_fully_fold_internal): Change local unused_p to bool.  Call
2022         c_disable_warnings and c_enable_warnings rather than change
2023         c_inhibit_evaluation_warnings.
2025 2011-07-20  Jason Merrill  <jason@redhat.com>
2027         PR c++/6709 (DR 743)
2028         PR c++/42603 (DR 950)
2029         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2030         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2031         (CPP_DECLTYPE): New.
2032         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2034 2011-07-19  Richard Guenther  <rguenther@suse.de>
2036         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2037         * c-omp.c (c_finish_omp_for): Likewise.
2039 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
2041         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2042         body on the next line.
2044 2011-07-08  Jason Merrill  <jason@redhat.com>
2046         PR c++/45437
2047         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2049         PR c++/49673
2050         * c-common.c (c_apply_type_quals_to_decl): Don't check
2051         TYPE_NEEDS_CONSTRUCTING.
2053 2011-07-06  Richard Guenther  <rguenther@suse.de>
2055         * c-common.c (c_common_nodes_and_builtins):
2056         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2058 2011-07-05  Richard Guenther  <rguenther@suse.de>
2060         * c-common.c (c_common_nodes_and_builtins): Build all common
2061         tree nodes first.
2063 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
2065         * c-common.h (c_tree_chain_next): New static inline function.
2067         * c-common.c (check_builtin_function_arguments): Handle
2068         BUILT_IN_ASSUME_ALIGNED.
2070 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
2072         * c-common.c: Add sync_ or SYNC__ to builtin names.
2073         * c-omp.c: Add sync_ or SYNC__ to builtin names.
2075 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
2077         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2078         handler.
2079         (gen_pragma_handler): New union.
2080         (internal_pragma_handler): New type.
2081         (c_register_pragma_with_data)
2082         (c_register_pragma_with_expansion_and_data): New functions.
2084         * c-pragma.c (registered_pragmas, c_register_pragma_1)
2085         (c_register_pragma, c_register_pragma_with_expansion)
2086         (c_invoke_pragma_handler): Changed to work with
2087         internal_pragma_handler.
2088         (c_register_pragma_with_data)
2089         (c_register_pragma_with_expansion_and_data): New functions.
2091 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
2093         * c-common.c: Include common/common-target.h.
2094         (handle_section_attribute): Use
2095         targetm_common.have_named_sections.
2096         * c-cppbuiltin.c: Include common/common-target.h.
2097         (c_cpp_builtins): Use targetm_common.except_unwind_info.
2099 2011-06-10  Richard Guenther  <rguenther@suse.de>
2101         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2102         to print a IDENTIFIER_NODE.
2104 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2105             Joseph Myers  <joseph@codesourcery.com>
2107         * c.opt (fbuilding-libgcc): New option.
2108         * c-cppbuiltin.c (c_cpp_builtins): Define
2109         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2111 2011-06-07  Jason Merrill  <jason@redhat.com>
2113         * c-common.c (max_tinst_depth): Lower default to 900.
2115         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2117 2011-06-07  Richard Guenther  <rguenther@suse.de>
2119         * c-common.c (c_common_nodes_and_builtins): Do not set
2120         size_type_node or call set_sizetype.
2122 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
2124         PR debug/49130
2125         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
2126         type when using pointer comparison to compare types.
2128 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
2130         * c.opt: Add -Wdelete-non-virtual-dtor.
2131         * c-opts.c (c_common_handle_option): Include it in -Wall.
2133 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
2135         PR bootstrap/49190
2137         Revert:
2138         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2140         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2141         not tree_common.
2143 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
2145         PR c++/49165
2146         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2147         C++ don't call c_common_truthvalue_conversion on void type arms.
2149 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
2151         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2152         (stmt_list_stack): Define.
2153         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2154         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2156 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2158         * c-common.c (warning_candidate_p): Check for BLOCKs.
2160 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2162         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2163         not tree_common.
2165 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
2167         * c-common.c (def_fn_type): Remove extra va_end.
2169 2011-05-23  Jason Merrill  <jason@redhat.com>
2171         PR c++/48106
2172         * c-common.c (c_common_get_narrower): New.
2173         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2175 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
2177         * c-common.h (check_function_arguments): Tweak prototype of
2178         check_function_arguments.
2179         * c-common.c (check_function_arguments): Likewise.  Adjust
2180         calls to check_function_nonnull, check_function_format, and
2181         check_function_sentinel.
2182         (check_function_sentinel): Take a FUNCTION_TYPE rather than
2183         separate attributes and typelist arguments.  Use
2184         FOREACH_FUNCTION_ARGS to iterate over argument types.
2186 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
2188         * c-common.c (c_common_reswords): Reorder.
2189         * c-common.h (rid): Likewise.
2191 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
2193         * c-common.c (def_fn_type): Don't call build_function_type, call
2194         build_function_type_array or build_varargs_function_type_array
2195         instead.
2196         (c_common_nodes_and_builtins): Likewise.
2198 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2200         * c-common.c (c_add_case_label): Omit the loc argument to
2201         build_case_label.
2202         * c-common.h (build_case_label): Remove.
2203         * c-semantics.c (build_case_label): Remove.
2205 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2207         * c-objc.h (objc_start_method_definition): Update prototype.
2208         * stub-objc.c (objc_start_method_definition): Add extra parameter.
2210 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2212         * c-common.c (check_main_parameter_types): Reindent.  Don't use
2213         TYPE_ARG_TYPES directly.
2214         (handle_nonnull_attribute): Likewise.
2215         (sync_resolve_params): Likewise.
2216         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
2217         to check_format_string.
2218         (handle_format_attribute): Likewise.
2219         (check_format_string): Take a function type to examine instead of
2220         a type list.  Use a function_arg_iterator to step through argument
2221         types.
2223 2011-05-04  Richard Guenther  <rguenther@suse.de>
2225         * c-common.c (fix_string_type): Use size_int for index type bounds.
2226         (start_fname_decls): Do not pass NULL to build_int_cst.
2227         (c_init_attributes): Likewise.
2228         * c-lex.c (c_lex_with_flags): Likewise.
2230 2011-04-27  Jason Merrill  <jason@redhat.com>
2232         * c-common.c (make_tree_vector_from_list): New.
2233         * c-common.h: Declare it.
2235 2011-04-26  Richard Guenther  <rguenther@suse.de>
2237         PR preprocessor/48248
2238         * c-ppoutput.c (maybe_print_line): Always optimize newlines
2239         for output size with -P.
2241 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2243         * c-common.c (struct c_common_resword): Add __underlying_type.
2244         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2246 2011-04-20  Jim Meyering  <meyering@redhat.com>
2248         * c-format.c (init_dollar_format_checking): Remove useless
2249         if-before-free.
2251 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2253         * c-objc.h (objc_get_interface_ivars): Removed.
2254         (objc_detect_field_duplicates): New.
2255         * stub-objc.c: Likewise.
2257 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
2259         * stub-objc.c (objc_declare_protocols): Renamed to
2260         objc_declare_protocol.
2261         * c-objc.h: Likewise.
2263 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
2265         * stub-objc.c (objc_declare_class): Updated argument name.
2267 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
2269         * c-common.h (c_common_init_ts): Declare.
2270         * c-common.c (c_common_init_ts): Define.
2272 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2274         * c-objc.h (objc_build_message_expr): Updated prototype.
2275         * stub-objc.c (objc_build_message_expr): Likewise.
2277 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2279         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2280         of cgraph_node.
2282 2011-04-11  Richard Guenther  <rguenther@suse.de>
2284         * c-common.c (complete_array_type): Build a range type of
2285         proper type.
2287 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2289         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2290         (handle_type_generic_attribute): Likewise.
2292 2011-04-07  Jason Merrill  <jason@redhat.com>
2294         PR c++/48450
2295         * c-common.c (c_common_truthvalue_conversion): Don't ignore
2296         conversion from C++0x scoped enum.
2298 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2300         * c-target-def.h: New file.
2301         * c-target.def: New file.
2302         * c-target.h: New file.
2303         * c-common.c (targetcm): Don't define here.
2304         * c-common.h (default_handle_c_option): Declare.
2305         * c-format.c: Include c-target.h instead of target.h.
2306         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
2307         include tm.h.
2308         (default_handle_c_option): Move from targhooks.c.
2310 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
2312         PR preprocessor/48248
2313         * c-ppoutput.c (print): Add src_file field.
2314         (init_pp_output): Initialize it.
2315         (maybe_print_line): Don't optimize by adding up to 8 newlines
2316         if map->to_file and print.src_file are different file.
2317         (print_line): Update print.src_file.
2319 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2321         * c-ada-spec.c (compare_comment): Use filename_cmp
2322         instead of strcmp for filename.
2324 2011-03-25  Jeff Law  <law@redhat.com>
2326         * c-family/c-common.c (def_fn_type): Add missing va_end.
2328 2011-03-25  Jason Merrill  <jason@redhat.com>
2330         * c.opt: Add -std=c++03.
2332 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
2334         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2336 2011-03-17  Kai Tietz
2338         PR target/12171
2339         * c-pretty-print.c (pp_c_specifier_qualifier_list):
2340         Display allowed attributes for function pointer types.
2341         (pp_c_attributes_display): New function to display
2342         attributes having affects_type_identity flag set to true.
2343         * c-pretty-print.h (pp_c_attributes_display): New prototype.
2345         * c-common.c (c_common_attribute_table):
2346         Add new element.
2347         (c_common_format_attribute_table): Likewise.
2349 2011-03-18  Jason Merrill  <jason@redhat.com>
2351         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2352         * c-common.h: Don't declare it here.
2353         * c-common.c: Or define it here.
2354         * c-opts.c (c_common_handle_option): Or set it here.
2356         PR c++/35315
2357         * c-common.c (handle_transparent_union_attribute): Don't
2358         make a duplicate type in C++.
2360 2011-03-15  Jason Merrill  <jason@redhat.com>
2362         * c-common.c (max_constexpr_depth): New.
2363         * c-common.h: Declare it.
2364         * c-opts.c (c_common_handle_option): Set it.
2365         * c.opt (fconstexpr-depth): New option.
2367 2011-03-11  Jason Merrill  <jason@redhat.com>
2369         * c-common.c (attribute_takes_identifier_p): Add missing const.
2371         PR c++/46803
2372         * c-common.c (attribute_takes_identifier_p): Assume that an
2373         unknown attribute takes an identifier.
2375 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
2377         PR c/47786
2378         * c-common.c (c_type_hash): Call list_length instead of iterating
2379         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
2381 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
2383         PR c/47809
2384         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2386 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
2388         * c.opt (fobjc-abi-version=) New.
2389         (fobjc-nilcheck): New.
2391 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
2393         PR c++/46890
2394         * c-common.h (keyword_is_decl_specifier): Declare.
2395         * c-common.c (keyword_is_decl_specifier): Define.
2396         (keyword_is_function_specifier): New function.
2398 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
2400         PR c/47473
2401         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2402         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2403         REAL_TYPE.
2405 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
2407         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2409 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
2411         PR pch/47430
2412         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2413         after init_c_lex if pch_file is set.
2415 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
2417         PR c++/43601
2418         * c.opt (-fkeep-inline-dllexport): New switch.
2420 2011-01-12  Richard Guenther  <rguenther@suse.de>
2422         PR middle-end/32511
2423         * c-common.c (handle_weak_attribute): Warn instead of error
2424         on declaring an inline function weak.
2426 2011-01-05  Tom Tromey  <tromey@redhat.com>
2428         * c-common.h (lvalue_error): Update.
2429         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
2430         not error.
2432 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2434         PR objc/47075
2435         * c-objc.h (objc_finish_message_expr): Added argument to
2436         prototype.
2438 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
2440         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2441         Use prototype_p.
2443 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2445         * c-objc.h (objc_maybe_warn_exceptions): New.
2446         * stub-objc.c (objc_maybe_warn_exceptions): New.
2448 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
2450         * c-common.h (readonly_error): Declare.
2451         * c-common.c (readonly_error): Define.
2453 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
2455         * c-common.h (invalid_indirection_error): Declare.
2456         * c-common.c (invalid_indirection_error): Define.
2458 2010-12-03  Richard Guenther  <rguenther@suse.de>
2460         PR c/46745
2461         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2462         (pp_c_unary_expression): Likewise.
2463         (pp_c_expression): Likewise.
2465 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2467         * c-common.h (objc_finish_function): New.
2468         (objc_non_volatilized_type): Removed.
2469         (objc_type_quals_match): Removed.
2470         * stub-objc.c (objc_finish_function): New.
2471         (objc_non_volatilized_type): Removed.
2472         (objc_type_quals_match): Removed.
2474 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
2476         * c-common.h (parse_optimize_options): Declare.
2477         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2478         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2480 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
2482         * c-opts.c (check_deps_environment_vars): Use getenv instead of
2483         GET_ENVIRONMENT.
2484         * c-pch.c (O_BINARY): Don't define here.
2485         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2487 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
2489         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2490         targetm.except_unwind_info.
2492 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2494         * c-opts.c (c_common_handle_option): Pass location to
2495         set_struct_debug_option.
2497 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2499         * c-common.c (visibility_options): Move from ../opts.c.
2500         * c-common.h (struct visibility_flags, visibility_options):
2501         Declare here.
2502         * c-opts.c (finish_options): Rename to c_finish_options.
2503         (c_common_init): Update call to finish_options.
2505 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
2507         PR objc/34033
2508         * c-lex.c (lex_string): Check that each string in an Objective-C
2509         string concat sequence starts with either one or zero '@', and
2510         that there are no spurious '@' signs at the end.
2512 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
2514         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2515         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2516         HANDLE_PRAGMA_VISIBILITY.
2517         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2518         HANDLE_PRAGMA_VISIBILITY): Don't define.
2519         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2521 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
2523         PR c++/16189
2524         PR c++/36888
2525         PR c++/45331
2526         * c-common.h (keyword_begins_type_specifier): Declare.
2527         (keyword_is_storage_class_specifier): Declare.
2528         (keyword_is_type_qualifier): Declare.
2529         * c-common.c (keyword_begins_type_specifier): New function.
2530         (keyword_is_storage_class_specifier): New function.
2531         (keyword_is_type_qualifier): Declare.
2533 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2535         PR c/46547
2536         * c-common.c (in_late_binary_op): Define.
2537         (c_common_truthvalue_conversion): Check in_late_binary_op before
2538         calling c_save_expr.
2539         * c-common.h (in_late_binary_op): Declare.
2541 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2543         * c-opts.c (c_common_handle_option): Update calls to
2544         set_struct_debug_option.
2546 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2548         * c-common.h (objc_declare_protocols): Added additional argument.
2549         * stub-objc.c (objc_declare_protocol): Same change.
2551 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
2553         PR c/33193
2554         * c-common.h (build_real_imag_expr): Declare.
2555         * c-semantics.c (build_real_imag_expr): Define.
2557 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2559         * c-opts.c (c_common_parse_file): Take no arguments.
2560         * c-common.h (c_common_parse_file): Update prototype.
2562 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
2564         PR c++/46401
2565         * c-common.c (warning_candidate_p): Don't track non-const calls
2566         or STRING_CSTs.
2568 2010-11-15  Ian Lance Taylor  <iant@google.com>
2570         * c-lex.c (init_c_lex): Set macro debug callbacks if
2571         flag_dump_go_spec is set.
2573 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2575         * c-common.h (objc_build_incr_expr_for_property_ref): New.
2576         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2578 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
2580         PR preprocessor/45038
2581         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2582         dialects.
2584 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2586         * c-common.h (c_family_lang_mask): Declare.
2587         * c-opts.c (c_family_lang_mask): Make extern.
2588         * c-pragma.c (handle_pragma_diagnostic): Use
2589         control_warning_option.
2591 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2593         * c-common.c (parse_optimize_options): Update call to
2594         decode_options.
2595         * c-common.h (c_common_handle_option): Update prototype.
2596         * c-opts.c (c_common_handle_option): Take location_t parameter and
2597         pass it to other functions.
2599 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
2601         * c-opts.c (warning_as_error_callback): Remove.
2602         (c_common_initialize_diagnostics): Don't call
2603         register_warning_as_error_callback.
2604         (c_common_handle_option): Handle -Werror=normalized= here.
2606 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
2608         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2609         in diagnostic.
2610         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2611         letter.
2612         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2613         Remove trailing '.' from diagnostics.
2614         * c.opt (Wwrite-strings_: Avoid '`' in help text.
2616 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
2618         * c-common.c (parse_optimize_options): Pass global_dc to
2619         decode_options.
2620         * c-opts.c (c_common_handle_option): Pass &global_options to
2621         set_Wstrict_aliasing.
2622         * c.opt (v): Don't mark Common or document here.
2624 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
2626         PR target/44981
2627         * c-format.c (format_type): New type gcc_objc_string_format_type.
2628         (valid_stringptr_type_p): New.
2629         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2630         (check_format_string): Pass expected type, use
2631         valid_stringptr_type_p (), check that the format string types are
2632         consistent with the format specification.
2633         (decode_format_attr): Warn if NSString is used outside objective-c.
2634         (format_types_orig): Add NSString.
2635         (format_name): New.
2636         (format_flags): New.
2637         (check_format_arg): Handle format strings requiring an external parser.
2638         first_target_format_type: New variable.
2639         (handle_format_attribute): Set up first_target_format_type, pass the
2640         expected format arg string type to check_format_string().
2641         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
2642         * stub-objc.c (objc_string_ref_type_p): New.
2643         (objc_check_format_arg): New.
2645 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
2647         Fixed using the Objective-C 2.0 dot-syntax with class names.
2648         * c-common.h (objc_build_class_component_ref): New.
2649         * stub-objc.c (objc_build_class_component_ref): New.
2651 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
2653         * c.opt (Wproperty-assign-default): New option.
2655 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
2657         Implemented -fobjc-std=objc1 flag.
2658         * c.opt (fobjc-std=objc1): New option.
2660 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
2662         Implemented format and noreturn attributes for Objective-C methods.
2663         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2664         attribute for Objective-C methods.
2666 2010-10-31  Jason Merrill  <jason@redhat.com>
2668         * c-common.c (conversion_warning, warn_for_collisions_1): Use
2669         EXPR_LOC_OR_HERE.
2671 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2673         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2674         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2675         (objc_add_property_declaration): Removed arguments for copies and
2676         ivar.
2677         (objc_build_getter_call): Renamed to
2678         objc_maybe_build_component_ref.
2679         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2680         (objc_is_property_ref): New.
2681         * c-common.c (c_common_reswords): Removed copies and ivar.
2682         * stub-objc.c (objc_add_property_declaration): Removed arguments
2683         for copies and ivar.
2684         (objc_build_getter_call): Renamed to
2685         objc_maybe_build_component_ref.
2686         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2687         (objc_is_property_ref): New.
2689 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
2690             Matthew Gingell  <gingell@adacore.com>
2692         * c-ada-spec.c (separate_class_package): New function.
2693         (pp_ada_tree_identifier): Prefix references to C++ classes with the
2694         name of their enclosing package.
2695         (print_ada_declaration): Use separate_class_package.
2697 2010-10-27  Jason Merrill  <jason@redhat.com>
2699         * c-common.c (c_common_reswords): Add __is_literal_type.
2700         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2702         * c-common.c (check_case_value): Remove special C++ code.
2704 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2706         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2707         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
2708         and RID_LAST_PATTR.
2709         (objc_add_property_declaration): Added additional arguments.
2710         (objc_property_attribute_kind): Removed.
2711         (objc_set_property_attr): Removed.
2712         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2713         copy and nonatomic.
2714         * stub-objc.c (objc_add_property_declaration): Added additional
2715         arguments.
2716         (objc_set_property_attr): Removed.
2718 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2720         * c-common.h (objc_add_property_variable): Renamed to
2721         objc_add_property_declaration.  Added location argument.
2722         * stub-objc.c (objc_add_property_variable): Same change.
2723         
2724 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
2726         * c-common.h (objc_maybe_printable_name): New.
2727         * stub-objc.c (objc_maybe_printable_name): New.
2729 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2730         Andrew Pinski <pinskia@gmail.com>
2732         * c-common.h (c_common_mark_addressable_vec): Declare.
2733         * c-common.c (c_common_mark_addressable_vec): New function.
2735 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2737         * c-common.h (objc_set_method_type): Removed.
2738         (objc_add_method_declaration): Added boolean argument.
2739         (objc_start_method_definition): Same change.
2740         (objc_build_method_signature): Same change.
2741         * stub-objc.c (objc_set_method_type): Removed.
2742         (objc_add_method_declaration): Added boolean argument.
2743         (objc_start_method_definition): Same change.
2744         (objc_build_method_signature): Same change.
2746 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2748         * c-common.h (finish_file): Removed.
2749         (objc_write_global_declarations): New.
2750         * c-opts.c (c_common_parse_file): Do not call finish_file.
2751         * stub-objc.c (objc_write_global_declarations): New.
2753 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2755         Implemented parsing @synthesize and @dynamic for
2756         Objective-C/Objective-C++.
2757         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2758         (objc_add_synthesize_declaration): New.
2759         (objc_add_dynamic_declaration): New.
2760         * c-common.c (c_common_reswords): Add synthesize and dynamic.
2761         * stub-objc.c (objc_add_synthesize_declaration): New.
2762         (objc_add_dynamic_declaration): New.
2764 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2766         PR target/46041
2767         * c-cppbuiltin.c (mode_has_fma): Move function here from
2768         builtins.c.  Don't use the fma optab, instead just use the
2769         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2770         using -save-temps.
2772 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2774         Merge from 'apple/trunk' branch on FSF servers.
2776         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
2778         Radar 4330422
2779         * c-common.h (objc_non_volatilized_type): New declaration
2780         * stub-objc.c (objc_non_volatilized_type): New stub.
2782 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
2784         Merge from 'apple/trunk' branch on FSF servers.
2786         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2788         Radar 4133425
2789         * c-common.h (objc_diagnose_private_ivar): New decl.
2790         * stub-objc.c (objc_diagnose_private_ivar): New stub.
2792 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
2794         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2795         * c-common.h (enum rid): Add RID_AT_PACKAGE.
2796         (objc_ivar_visibility_kind): New enum.
2797         (objc_set_visibility): Adjust prototype to use visibility enum.
2798         * stub-objc.c (objc_set_visibility): Adjust stub to use
2799         visibility enum.
2801 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2803         * c-cppbuiltin.c (builtin_define_float_constants): Emit
2804         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2805         has the appropriate fma builtins.
2806         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2808 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
2810         merge from FSF apple 'trunk' branch.
2811         2006 Fariborz Jahanian <fjahanian@apple.com>
2813         Radars 4436866, 4505126, 4506903, 4517826
2814         * c-common.c (c_common_resword): Define @property and its attributes.
2815         * c-common.h: Define property attribute enum entries.
2816         (OBJC_IS_PATTR_KEYWORD): New.
2817         (objc_property_attribute_kind): New enum.
2818         Declare objc_set_property_attr (), objc_add_property_variable (),
2819         objc_build_getter_call () and objc_build_setter_call ().
2820         * stub-objc.c (objc_set_property_attr): New stub.
2821         (objc_add_property_variable): Likewise.
2822         (objc_build_getter_call): Likewise.
2823         (objc_build_setter_call) Likewise.
2825 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
2827         merge from FSF apple 'trunk' branch.
2828         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2830         Radar 3803157 (method attributes)
2831         * c-common.c (handle_deprecated_attribute): Recognize
2832         objc methods as valid declarations.
2833         * c-common.h: Declare objc_method_decl ().
2834         * stub-objc.c (objc_method_decl): New stub.
2836 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
2838         * c-common.c (parse_optimize_options): Call
2839         decode_cmdline_options_to_array_default_mask before
2840         decode_options.  Update arguments to decode_options.
2841         * c-common.h (c_common_init_options_struct): Declare.
2842         * c-opts.c (c_common_init_options_struct): New.  Split out from
2843         c_common_init_options.
2845 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
2847         Implemented fast enumeration for Objective-C.
2848         * c-common.h (objc_finish_foreach_loop): New.
2849         * stub-objc.c (objc_finish_foreach_loop): New.
2851 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
2853         * c-common.h (struct diagnostic_context): Don't declare here.
2854         (c_common_initialize_diagnostics): Declare using
2855         diagnostic_context typedef.
2856         * c-opts.c (c_common_handle_option): Pass global_dc to
2857         handle_generated_option.
2859 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
2861         * c-opts.c (c_common_handle_option): Pass &global_options_set to
2862         handle_generated_option.
2864 2010-10-03  Ian Lance Taylor  <iant@google.com>
2866         * c.opt (-fplan9-extensions): New option.
2868 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2870         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2871         Remove.
2872         (c_cpp_builtins): Call functions from cppbuiltin.c instead
2873         of duplicating code.
2875 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
2877         * c-common.c: Add two new entries for @optional
2878         and @required keywords.
2880         merge from FSF 'apple/trunk' branch.
2881         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
2883         Radar 4386773
2884         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2885         objective-c keywords.
2886         (objc_set_method_opt): New declaration.
2887         * stub-objc.c (objc_set_method_opt): New stub.
2889 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
2891         * c-common.c (handle_optimize_attribute): Pass &global_options to
2892         cl_optimization_save and cl_optimization_restore.
2893         * c-opts.c (c_common_handle_option): Pass &global_options to
2894         handle_generated_option.
2895         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2896         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2897         &global_options to cl_optimization_restore.
2899 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2901         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2902         Objective-C/Objective-C++ keywords.
2904 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2906         Merge from 'apple/trunk' branch on FSF servers.
2908         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
2910         Radar 4281748
2911         * c-common.h (objc_check_global_decl): New declaration.
2912         * stub-objc.c (objc_check_global_decl): New stub.
2914 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
2916         * c.opt: Don't use VarExists.
2918 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
2920         * c-common.c (c_cpp_error): Update names of diagnostic_context
2921         members.
2922         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2923         cl_optimization members.
2924         * c-opts.c (warning_as_error_callback, c_common_handle_option,
2925         sanitize_cpp_opts, finish_options): Update names of cpp_options
2926         members.
2928 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2930         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
2931         (objc_is_reserved_word): Removed.
2932         * c-common.c: Updated comments.
2933         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2934         objc_is_reserved_word.
2935         * stub-objc.c (objc_is_reserved_word): Removed.
2937 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
2939         * c-common.h (objc_add_method_declaration): Adjust prototype to
2940         include attributes.
2941         (objc_start_method_definition): Likewise.
2942         (objc_build_keyword_decl): Likewise.
2943         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2944         (objc_start_method_definition): Likewise.
2945         (objc_build_keyword_decl): Likewise.
2947 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
2949         * c-common.h (objc_start_class_interface): Adjust prototype.
2950         (objc_start_category_interface): Likewise.
2951         (objc_start_protocol): Likewise.
2952         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2953         (objc_start_class_interface): Likewise.
2954         (objc_start_category_interface): Likewise.
2956 2010-09-27  Ian Lance Taylor  <iant@google.com>
2958         * c-common.c (c_common_attribute_table): Add no_split_stack.
2959         (handle_no_split_stack_attribute): New static function.
2961 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2963         Merge from 'apple/trunk' branch on FSF servers.
2965         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
2967         Radar 4229905
2968         * c-common.h (objc_have_common_type): New declaration.
2969         * stub-objc.c (objc_have_common_type): New stub.
2971         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
2973         Radar 4154928
2974         * c-common.h (objc_common_type): New prototype.
2975         * stub-objc.c (objc_common_type): New stub.
2977 2010-09-24  Jan Hubicka  <jh@suse.cz>
2979         * c-common.c (handle_leaf_attribute): New function.
2980         (struct attribute_spec c_common_att): Add leaf.
2982 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
2984         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2985         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2986         -dump, -dump=, -imacros, -imacros=, -include, -include=,
2987         -include-barrier, -include-directory, -include-directory=,
2988         -include-directory-after, -include-directory-after=,
2989         -include-prefix, -include-prefix=, -include-with-prefix,
2990         -include-with-prefix=, -include-with-prefix-after,
2991         -include-with-prefix-after=, -include-with-prefix-before,
2992         -include-with-prefix-before=, -no-integrated-cpp,
2993         -no-line-commands, -no-standard-includes, -no-warnings, -output,
2994         -output=, -pedantic, -pedantic-errors, -preprocess,
2995         -print-missing-file-dependencies, -trace-includes, -traditional,
2996         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2997         -user-dependencies, -verbose, -write-dependencies,
2998         -write-user-dependencies, no-integrated-cpp, traditional): New.
3000 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3002         PR objc/23710
3003         * c-common.h (objc_start_method_definition): Return bool instead
3004         of void.
3005         * stub-objc.c (objc_start_method_definition): Return bool instead
3006         of void.
3008 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3010         PR objc/25965
3011         * c-common.h (objc_get_interface_ivars): New declaration.
3012         * stub-objc.c (objc_get_interface_ivars): New stub.
3014 2010-09-15  Ian Lance Taylor  <iant@google.com>
3016         * c-common.c (parse_optimize_options): Do not capitalize warning
3017         messages.  Remove period at end of warning message.
3019 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3021         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3022         (handle_alias_attribute): ... here.
3023         (handle_ifunc_attribute): New.
3025 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3027         * c-common.h (do_warn_double_promotion): Declare.
3028         * c-common.c (do_warn_double_promotion): Define.
3030 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
3032         * c.opt (Wdouble-promotion): New.
3034 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3036         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3037         fvtable-thunks, fxref): Mark no longer supported in help text.
3039 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3041         * c.opt (Wimport, fall-virtual, falt-external-templates,
3042         fdefault-inline, fenum-int-equiv, fexternal-templates,
3043         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3044         fname-mangling-version-, fnew-abi, fnonnull-objects,
3045         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3046         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3047         applicable.
3048         (fhandle-exceptions): Mark with Alias and Warn.
3049         * c-opts.c (c_common_handle_option): Don't handle options marked
3050         as ignored.
3052 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3054         * c.opt (Wcomments, Werror-implicit-function-declaration,
3055         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3056         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3057         aliases.
3058         * c-common.c (option_codes): Use OPT_Wcomment instead of
3059         OPT_Wcomments.
3060         * c-opts.c (warning_as_error_callback, c_common_handle_option):
3061         Don't handle options marked as aliases.
3063 2010-08-25  Richard Guenther  <rguenther@suse.de>
3065         * c-common.c (c_common_get_alias_set): Remove special
3066         handling for pointers.
3068 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
3070         * c-common.c: Use FOR_EACH_VEC_ELT.
3071         * c-gimplify.c: Likewise.
3072         * c-pragma.c: Likewise.
3074 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3076         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
3077         RejectDriver.
3078         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
3079         RejectDriver.
3080         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3081         instead of OPT_MDX and OPT_MMDX.
3083 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3085         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3087 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
3089         * c.opt (MD, MMD): Change to MDX and MMDX.
3090         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3092 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
3094         * c-opts.c (c_common_handle_option): Call handle_generated_option
3095         instead of handle_option.
3097 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3099         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3100         (maybe_apply_renaming_pragma): Delete unneeded declarations.
3102 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3104         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
3105         (pending_redefine_extname): Change type to a VEC.
3106         (add_to_renaming_pragma_list): Update for new type of
3107         pending_redefine_extname.
3108         (maybe_apply_renaming_pragma): Likewise.
3110 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
3112         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3113         visited.
3114         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3115         decide whether a type has already been declared/seen.
3116         Do not go to the original type.
3117         (dump_nested_types): New parameter forward.
3118         Generate forward declaration if needed and mark type as visited.
3119         (print_ada_declaration): Call dump_nested_types if not already done.
3120         Mark types as visited.
3122 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
3124         * c.opt (-print-pch-checksum): Remove option.
3125         * c-opts.c (c_common_handle_option): Don't handle
3126         OPT_print_pch_checksum.
3128 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3130         * c-common.h (c_common_handle_option): Update prototype and return
3131         value type.
3132         * c-opts.c (c_common_handle_option): Update prototype and return
3133         value type.  Update calls to handle_option and
3134         enable_warning_as_error.
3136 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3138         PR c/45079
3139         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3141 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3143         * c-common.h (c_common_missing_argument): Remove.
3144         * c-opts.c (c_common_missing_argument): Remove.
3145         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3146         idirafter, imacros, include, isysroot, isystem, iquote): Add
3147         MissingArgError.
3148         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3150 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3152         * c-common.h (c_common_option_lang_mask,
3153         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3154         New.
3155         (c_common_init_options): Update prototype.
3156         * c-opts.c (c_common_option_lang_mask): New.
3157         (c_common_initialize_diagnostics): Split out of
3158         c_common_init_options.
3159         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3160         New.
3161         (c_common_init_options): Update prototype.  Use decoded options in
3162         search for -lang-asm.
3164 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3166         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3167         * c-format.c: Likewise.
3169 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3171         * c-common.h: Include diagnostic-core.h. Error if already
3172         included.
3173         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3175 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3177         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3178         Do not include expr.h
3179         (vector_mode_valid_p): Move here.
3181 2010-06-21  DJ Delorie  <dj@redhat.com>
3183         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3184         allow these pragmas anywhere.
3186 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3188         PR bootstrap/44509
3189         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3190         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3191         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3192         ggc_strdup instead of xstrdup.
3194 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
3196         * c-cppbuiltin.c: Include cpp-id-data.h.
3197         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3198         (lazy_hex_fp_value): New function.
3199         (builtin_define_with_hex_fp_value): Provide definitions lazily.
3201 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3203         * c-gimplify.c: Do not include tree-flow.h
3205 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
3207         PR other/44034
3208         * c-common.c: Rename targetm member:
3209         targetm.enum_va_list -> targetm.enum_va_list_p
3211 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
3213         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3215 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
3217         * c-cppbuiltin.c: Do not include except.h.
3219 2010-06-24  Andi Kleen  <ak@linux.intel.com>
3221         * c-common.c (warn_for_omitted_condop): New.
3222         * c-common.h (warn_for_omitted_condop): Add prototype.
3224 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
3226         * c.opt (lang-objc): Remove.
3227         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3229 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
3231         * c-opts.c: Include "tm_p.h".
3233 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
3235         * c-common.c (parse_optimize_options): Update call to
3236         decode_options.
3238 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
3240         * c-common.c (record_types_used_by_current_var_decl): Adjust for
3241         new type of types_used_by_cur_var_decl.
3243 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
3245         PR bootstrap/44512
3246         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3247         for C++ standard compliance.
3249 2010-06-16  Jason Merrill  <jason@redhat.com>
3251         * c.opt: Add -Wnoexcept.
3253 2010-06-16  Richard Guenther  <rguenther@suse.de>
3255         PR c/44555
3256         * c-common.c (c_common_truthvalue_conversion): Remove
3257         premature and wrong optimization concering ADDR_EXPRs.
3259 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
3261         * c-ada-spec.c (dump_sloc): Remove column info.
3262         (is_simple_enum): New function.
3263         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3264         enum types when relevant.
3266 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3268         * c-common.c (conversion_warning): Warn at expression
3269         location.
3271 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
3273         * c-opts.c (c_common_handle_option): Don't handle
3274         OPT_fshow_column.
3276 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3278         * c-pragma.c (push_alignment): Use typed GC allocation.
3279         (handle_pragma_push_options): Likewise.
3281         * c-common.c (parse_optimize_options): Likewise.
3283         * c-common.h (struct sorted_fields_type): Add variable_size GTY
3284         option.
3286 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
3288         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3289         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3290         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3291         flag_signed_bitfields, warn_strict_null_sentinel,
3292         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3293         flag_gen_declaration, flag_no_gnu_keywords,
3294         flag_implement_inlines, flag_implicit_templates,
3295         flag_implicit_inline_templates, flag_optional_diags,
3296         flag_elide_constructors, flag_default_inline, flag_rtti,
3297         flag_conserve_space, flag_access_control, flag_check_new,
3298         flag_new_for_scope, flag_weak, flag_working_directory,
3299         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3300         flag_enforce_eh_specs, flag_threadsafe_statics,
3301         flag_pretty_templates): Remove.
3302         * c-common.h (flag_preprocess_only, flag_nil_receivers,
3303         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3304         flag_replace_objc_classes, flag_undef, flag_no_builtin,
3305         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3306         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3307         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3308         flag_no_gnu_keywords, flag_implement_inlines,
3309         flag_implicit_templates, flag_implicit_inline_templates,
3310         flag_optional_diags, flag_elide_constructors, flag_default_inline,
3311         flag_rtti, flag_conserve_space, flag_access_control,
3312         flag_check_new, flag_new_for_scope, flag_weak,
3313         flag_working_directory, flag_use_cxa_atexit,
3314         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3315         flag_threadsafe_statics, flag_pretty_templates,
3316         warn_strict_null_sentinel): Remove.
3317         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3318         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3319         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3320         fimplicit-inline-templates, fimplicit-templates,
3321         flax-vector-conversions, fms-extensions, fnil-receivers,
3322         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3323         frtti, fshort-double, fshort-enums, fshort-wchar,
3324         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3325         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3326         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3327         gen-decls, undef): Use Var.
3328         (fdefault-inline, foptional-diags): Document as doing nothing.
3329         * c-opts.c (c_common_handle_option): Remove cases for options now
3330         using Var.  Mark ignored options as such.
3332 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
3334         * c-common.c: Moved to here from parent directory.
3335         * c-common.def: Likewise.
3336         * c-common.h: Likewise.
3337         * c-cppbuiltin.c: Likewise.
3338         * c-dump.c: Likewise.
3339         * c-format.c: Likewise.
3340         * c-format.h : Likewise.
3341         * c-gimplify.c: Likewise.
3342         * c-lex.c: Likewise.
3343         * c-omp.c: Likewise.
3344         * c.opt: Likewise.
3345         * c-opts.c: Likewise.
3346         * c-pch.c: Likewise.
3347         * c-ppoutput.c: Likewise.
3348         * c-pragma.c: Likewise.
3349         * c-pragma.h: Likewise.
3350         * c-pretty-print.c: Likewise.
3351         * c-pretty-print.h: Likewise.
3352         * c-semantics.c: Likewise.
3353         * stub-objc.c: Likewise.
3355         * c-common.c: Include gt-c-family-c-common.h.
3356         * c-pragma.c: Include gt-c-family-c-pragma.h.
3358 Copyright (C) 2010-2013 Free Software Foundation, Inc.
3360 Copying and distribution of this file, with or without modification,
3361 are permitted in any medium without royalty provided the copyright
3362 notice and this notice are preserved.