re PR libstdc++/43622 (Incomplete C++ library support for __float128)
[official-gcc.git] / gcc / c-family / ChangeLog
blob66158caa6a95be31836fc78c608dd51a7b45007a
1 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
3         PR libstdc++/43622
4         * c-common.c (registered_builtin_types): Make non-static.
5         * c-common.h (registered_builtin_types): Declare.
7 2014-04-14  Richard Biener  <rguenther@suse.de>
8         Marc Glisse  <marc.glisse@inria.fr>
10         PR c/60819
11         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
12         apply may-alias the scalar pointer type when applicable.
14 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
16         PR middle-end/60467
17         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
18         as possible argument for Cilk_spawn.
20 2014-04-11  Tobias Burnus  <burnus@net-b.de>
22         PR c/60194
23         * c.opt (Wformat-signedness): Add
24         * c-format.c(check_format_types): Use it.
26 2014-04-11  Jason Merrill  <jason@redhat.com>
28         PR c++/57926
29         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
30         default_conversion for an array argument.
32 2014-04-08  Marek Polacek  <polacek@redhat.com>
34         PR sanitizer/60745
35         * c-ubsan.c: Include asan.h.
36         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
38 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
40         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
42 2014-04-02  Marek Polacek  <polacek@redhat.com>
44         * c-common.h (c_expand_expr): Remove declaration.
46 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
48         PR c++/60689
49         * c-common.c (add_atomic_size_parameter): When creating new
50         params vector, push the size argument first.
52 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
54         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
55         ubsan_instrument_vla, ubsan_instrument_return): Adjust
56         ubsan_create_data callers.
58 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
60         PR debug/60603
61         * c-opts.c (c_finish_options): Restore cb_file_change call to
62         <built-in>.
64 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
66         PR middle-end/36282
67         * c-pragma.c (apply_pragma_weak): Only look at
68         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
69         DECL_ASSEMBLER_NAME_SET_P (decl).
70         (maybe_apply_pending_pragma_weaks): Exit early if
71         vec_safe_is_empty (pending_weaks) rather than only when
72         !pending_weaks.
73         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
74         set assembler name back to NULL afterwards.
76 2014-03-11  Jason Merrill  <jason@redhat.com>
78         * c.opt: Add -std=gnu++14.
80 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
82         * c-opts.c (c_common_post_options): Don't override
83         -ffp-contract=fast if unsafe-math-optimizations is on.
85 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
87     * c.opt: Enable LTO FE for fshort-double.
89 2014-03-07  Jason Merrill  <jason@redhat.com>
91         * c.opt: Add -std=c++14.
93 2014-03-06  Marek Polacek  <polacek@redhat.com>
95         PR c/60197
96         * cilk.c (contains_cilk_spawn_stmt): New function.
97         (contains_cilk_spawn_stmt_walker): Likewise.
98         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
99         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
101 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
103         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
104         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
105         even when flag_preprocess_only.
107 2014-02-26  Jason Merrill  <jason@redhat.com>
109         PR c++/59231
110         PR c++/11586
111         * c-common.c (shorten_compare): Don't check
112         c_inhibit_evaluation_warnings.
114 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
116         PR c/37743
117         * c-common.c (c_common_nodes_and_builtins): When initializing
118         c_uint{16,32,64}_type_node, also set corresponding
119         uint{16,32,64}_type_node to the same value.
121         PR c++/60267
122         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
123         for PRAGMA_IVDEP if flag_preprocess_only.
125 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
127         PR c/60101
128         * c-common.c (merge_tlist): If copy is true, call new_tlist,
129         if false, add ADD itself, rather than vice versa.
130         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
131         copy.  For SAVE_EXPR, only call merge_tlist once.
133 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
135         PR middle-end/60092
136         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
137         and tree_to_uhwi.
138         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
139         functions.
140         (c_common_attribute_table): Add alloc_align and assume_aligned
141         attributes.
143 2014-02-06  Marek Polacek  <polacek@redhat.com>
145         PR c/60087
146         * c-common.c (warn_for_sign_compare): Call warning_at with location
147         instead of warning.
149 2014-02-05  Marek Polacek  <polacek@redhat.com>
151         PR c/53123
152         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
153         statement.
155 2014-02-04  Marek Polacek  <polacek@redhat.com>
157         PR c/60036
158         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
159         SAVE_EXPR.
161 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
163         PR c++/53017
164         PR c++/59211
165         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
166         handle_vector_size_attribute, handle_nonnull_attribute): Call
167         default_conversion on the attribute argument.
168         (handle_nonnull_attribute): Increment the argument number.
170 2014-01-31  Marek Polacek  <polacek@redhat.com>
172         PR c/59963
173         * c-common.c (add_atomic_size_parameter): Pass vNULL to
174         build_function_call_vec.
175         (resolve_overloaded_builtin): Likewise.
176         * c-common.h (build_function_call_vec): Adjust declaration.
178 2014-01-30  Marek Polacek  <polacek@redhat.com>
180         PR c/59940
181         * c-common.h (unsafe_conversion_p): Adjust declaration.
182         (warnings_for_convert_and_check): Likewise.
183         (convert_and_check): Likewise.
184         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
185         expansion_point_location_if_in_system_header on it.
186         (warnings_for_convert_and_check): Add location parameter.  Call
187         expansion_point_location_if_in_system_header on it.  Use it.
188         (convert_and_check): Add location parameter.  Use it.
189         (conversion_warning): Likewise.
190         (c_add_case_label): Adjust convert_and_check calls.
191         (scalar_to_vector): Adjust unsafe_conversion_p calls.
193 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
195         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
196         flag_cilkplus.
197         * c-pragma.c (init_pragma): Likewise.
198         * c.opt: Likewise.
200 2014-01-23  Marek Polacek  <polacek@redhat.com>
202         PR c/59846
203         * c-common.c (shorten_compare): Add location_t parameter.
204         * c-common.h (shorten_binary_op): Adjust declaration.
206 2014-01-23  Marek Polacek  <polacek@redhat.com>
208         PR c/58346
209         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
210         * c-common.h: Declare it.
212 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
214         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
215         * c-ada-spec.c (dump_ads): Likewise.
216         (cpp_check): Likewise.
217         (dump_ada_specs): Likewise.
219 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
221         PR c++/49718
222         * c-common.c (handle_no_instrument_function_attribute): Allow
223         no_instrument_function attribute in class member
224         definition/declaration.
226 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
228         PR c/58943
229         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
230         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
231         being COMPOUND_EXPR.
232         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
233         operand a SAVE_EXPR and second MODIFY_EXPR.
235 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
237         PR target/58115
238         * c-pch.c (c_common_write_pch): Call
239         prepare_target_option_nodes_for_pch.
241 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
243         Update copyright years
245 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
247         * array-notation-common.c, c-cilkplus.c: Use the standard form for
248         the copyright notice.
250 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
252         * c-ada-spec.c (print_constructor): New function.
253         (print_destructor): Retrieve the origin of the destructor.
254         (print_ada_declaration): Revamp handling of constructors/destructors.
256 2013-12-23  Stuart Hastings <stuart@apple.com>
257             Bill Maddox  <maddox@google.com>
258             Jason Merrill  <jason@redhat.com>
260         * c.opt: Add -fdeclone-ctor-dtor.
261         * c-opts.c (c_common_post_options): Default to on iff -Os.
263 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
265         * c-common.c (c_common_attribute_table): Added "cilk simd function"
266         attribute.
267         * c-pragma.h (enum pragma_cilk_clause): Remove.
268         (enum pragma_omp_clause):  Added the following fields:
269         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
270         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
271         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
272         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
273         PRAGMA_CILK_CLAUSE_UNIFORM.
275         
276 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
278         * cilk.c (cilk_outline): Made this function non-static.
279         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
280         (create_cilk_wrapper): Added a new parameter: a function pointer.
281         (c_install_body_w_frame_cleanup): Remove
282         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
283         * c-common.h (cilk_outline): New prototype.
284         (gimplify_cilk_spawn): Removed two parameters.
285         (cilk_install_body_with_frame_cleanup): New prototype.
286         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
287         CILK_SPAWN_STMT case.
289 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
291         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
293         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
294         (int_array_type_node): Remove.
295         * c-common.c (c_common_nodes_and_builtins): Don't build it.
297 2013-12-05  Marek Polacek  <polacek@redhat.com>
299         PR c/52023
300         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
301         [ADJUST_FIELD_ALIGN].
303 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
305         PR c/52023
306         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
307         and check field alignment if set.
308         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
309         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
311 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
312             Marek Polacek  <polacek@redhat.com>
314         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
315         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
317 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
319         PR c/59309
320         * cilk.c (gimplify_cilk_spawn): Properly handle function without
321         arguments.
323 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
325         PR c/59280
326         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
327         goto invalid.  If it is error_mark_node, don't issue further
328         diagnostics.
330 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
332         * c.opt (Wopenmp-simd): New.
334 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
336         * c-ubsan.h (ubsan_instrument_return): New prototype.
337         * c-ubsan.c (ubsan_instrument_return): New function.
339 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
341         * c-common.c: Add required include files from gimple.h.
342         * c-gimplify.c: Likewise
343         * cilk.c: Likewise
345 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
347         * c-common.c (unsafe_conversion_p): Remove use of
348         EXPR_LOC_OR_HERE macro.
349         (conversion_warning): Likewise.
350         (warnings_for_convert_and_check): Likewise.
351         (warn_for_collisions_1): Likewise.
352         (shorten_compare): Likewise, and remove use of in_system_header
353         macro, using the location from the former.
354         * c-lex.c (dump_one_header): Remove use of input_filename macro.
355         (cb_def_pragma): Remove use of in_system_header macro.
356         (lex_string): Likewise.
357         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
359 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
360             Mike Stump  <mikestump@comcast.net>
361             Richard Sandiford  <rdsandiford@googlemail.com>
363         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
364         instead of TREE_INT_CST_LOW, in cases where there is a protecting
365         tree_fits_shwi_p or tree_fits_uhwi_p.
366         (dump_generic_ada_node): Likewise.
367         * c-format.c (check_format_arg): Likewise.
368         * c-pretty-print.c (pp_c_integer_constant): Likewise.
370 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
372         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
374 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
376         PR c/53001
377         * c-common.c (unsafe_conversion_p): Make this function
378         return an enumeration with more detail.
379         (conversion_warning): Use the new return type of
380         unsafe_conversion_p to separately warn either about conversions
381         that lower floating point number precision or about the other
382         kinds of conversions.
383         * c-common.h (enum conversion_safety): New enumeration.
384         (unsafe_conversion_p): switching return type to
385         conversion_safety enumeration.
386         * c.opt: Adding new warning -Wfloat-conversion and
387         enabling it with -Wconversion.
389 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
391         * c-opts.c: Include plugin.h.
392         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
394 2013-11-19  Marek Polacek  <polacek@redhat.com>
396         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
397         call.
398         (ubsan_instrument_shift): Likewise.
399         (ubsan_instrument_vla): Likewise.
401 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
403         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
404         cast to unsigned type.
406 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
408         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
409         tree_low_cst.
410         (complete_array_type): Update comment to refer to tree_to_[su]hwi
411         rather than tree_low_cst.
413 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
415         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
416         tree_to_uhwi throughout.
418 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
420         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
421         tree_low_cst (..., 0) with tree_to_shwi throughout.
423 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
425         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
426         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
428 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
430         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
431         host_integerp (..., 0) with tree_fits_shwi_p throughout.
433 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
435         * c-cilkplus.c: New file.
436         * c-common.c (readonly_error): Add location argument.
437         * c-common.h (readonly_error): Same.
438         (c_finish_cilk_clauses): Protoize.
439         (c_check_cilk_loop): Same.
440         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
441         Do not fail on error_mark_node.
442         Abstract increment canonicalization to here...
443         (c_omp_for_incr_canonicalize_ptr): New.
444         c-pragma.c (init_pragma): Register "simd" pragma.
445         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
446         (enum pragma_cilk_clause): New.
448 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
450         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
451         wchar_type and host_integerp checks.
453 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
455         * c-common.c: Likewise.
456         * c-gimplify.c: Likewise.
457         * cilk.c: Likewise.
459 2013-11-14  Diego Novillo  <dnovillo@google.com>
461         * c-common.c: Include fold-const.h.
462         Include stor-layout.h.
463         Include calls.h.
464         Include stringpool.h.
465         Include attribs.h.
466         Include varasm.h.
467         Include trans-mem.h.
468         * c-cppbuiltin.c: Include stor-layout.h.
469         Include stringpool.h.
470         * c-format.c: Include stringpool.h.
471         * c-lex.c: Include stringpool.h.
472         Include stor-layout.h.
473         * c-pragma.c: Include stringpool.h.
474         Include attribs.h.
475         Include varasm.h.
476         Include gcc-symtab.h.
477         * c-pretty-print.c: Include stor-layout.h.
478         Include attribs.h.
479         * cilk.c: Include stringpool.h.
480         Include calls.h.
482 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
484         * c-common.h (enum rid): Add RID_AUTO_TYPE.
485         * c-common.c (c_common_reswords): Add __auto_type.
486         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
488 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
490         * c-common.c: Include gimplify.h.
491         * c-gimplify.c: Likewise.
492         * cilk.c: Likewise.
493         * c-omp.c: Include gimple-expr.h instead of gimple.h.
494         * c-ubsan.c: Don't include gimple.h.
496 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
498         * c-common.c (c_common_reswords): Add _Thread_local.
500 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
502         * c-common.c (atomic_size_supported_p): New function.
503         (resolve_overloaded_atomic_exchange)
504         (resolve_overloaded_atomic_compare_exchange)
505         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
506         Use it instead of comparing size with a local list of sizes.
508 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
509             Joseph Myers  <joseph@codesourcery.com>
511         * c-common.h (enum rid): Add RID_ATOMIC.
512         * c-common.c (c_common_reswords): Add _Atomic.
513         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
514         (keyword_is_type_qualifier): Accept RID_ATOMIC.
515         * c-format.c (check_format_types): Check for extra _Atomic
516         qualifiers in format argument.
517         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
518         (pp_c_type_qualifier_list): Mention _Atomic in comment.
520 2013-11-06  Tobias Burnus  <burnus@net-b.de>
522         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
524 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
526         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
527         standards modes.
528         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
529         to mean lack of IEEE 754 support.
531 2013-11-05  Tobias Burnus  <burnus@net-b.de>
533         * c.opt (-Wdate-time): New option
534         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
536 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
538         * c-cppbuiltin.c (cpp_iec_559_value): Test
539         flag_excess_precision_cmdline not flag_excess_precision.
541 2013-11-05  Tobias Burnus  <burnus@net-b.de>
543         * c.opt (fopenmp-simd): New option.
544         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
545         (omp_pragmas): ... this new struct.
546         (c_pp_lookup_pragma): Also walk omp_pragmas.
547         (init_pragma): Init pragmas for -fopenmp-simd.
549 2013-11-04  Marek Polacek  <polacek@redhat.com>
551         PR c++/58979
552         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
554 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
556         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
557         New functions.
558         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
560 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
562         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
563         (dump_ada_specs): Adjust prototype of second callback.
564         * c-ada-spec.c (cpp_check): New global variable.
565         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
566         (print_generic_ada_decl): Likewise.
567         (has_static_fields): Change return type to bool and add guard.
568         (has_nontrivial_methods): New predicate.
569         (is_tagged_type): Change return type to bool.
570         (separate_class_package): Call has_nontrivial_methods.
571         (pp_ada_tree_identifier): Minor tweaks.
572         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
573         (dump_ada_array_domains): Likewise.
574         (dump_ada_array_type): Likewise.
575         (dump_template_types): Remove cpp_check parameter and do not pass it to
576         dump_generic_ada_node.
577         (dump_ada_template): Likewise.
578         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
579         recursively.
580         (print_ada_methods): Change return type to integer.  Remove cpp_check
581         parameter and do not pass it down.
582         (dump_nested_types): Remove cpp_check parameter and do not pass it to
583         dump_generic_ada_node.
584         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
585         accessing methods.
586         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
587         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
588         value of print_ada_methods.
589         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
590         Set cpp_check to it before invoking dump_ada_nodes.
591         (dump_ada_specs): Likewise.
593 2013-11-03  Marek Polacek  <polacek@redhat.com>
595         * c-ubsan.c: Don't include hash-table.h.
596         (ubsan_instrument_vla): New function.
597         * c-ubsan.h: Declare it.
599 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
601         Automated part of renaming of symtab_node_base to symtab_node.
603         Patch autogenerated by rename_symtab.py from
604         https://github.com/davidmalcolm/gcc-refactoring-scripts
605         revision 58bb219cc090b2f4516a9297d868c245495ee622
607         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
608         symtab_node_base to symtab_node.
610 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
612         Implement C++14 digit separators.
613         * c-lex.c (interpret_float): Remove digit separators from scratch string
614         before building real literal.
616 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
618         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
620 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
622         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
623         fields.
624         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
625         enabled.
626         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
627         (insert_cilk_frame): New prototype.
628         (cilk_init_builtins): Likewise.
629         (gimplify_cilk_spawn): Likewise.
630         (c_cilk_install_body_w_frame_cleanup): Likewise.
631         (cilk_detect_spawn_and_unwrap): Likewise.
632         (cilk_set_spawn_marker): Likewise.
633         (build_cilk_sync): Likewise.
634         (build_cilk_spawn): Likewise.
635         * cilk.c: New file.
637 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
639         Patch autogenerated by refactor_symtab.py from
640         https://github.com/davidmalcolm/gcc-refactoring-scripts
641         revision 58bb219cc090b2f4516a9297d868c245495ee622
643         * c-gimplify.c (c_genericize): Update for conversion of symtab types
644         to a true class hierarchy.
645         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
647 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
649         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
651 2013-10-26  Jeff Law  <law@redhat.com>
653         * c-family/c-common.c (c_define_builtins): Remove mudflap support.
654         * c-family/c.opt: Ignore and warn for mudflap options.
656 2013-10-24  Tobias Burnus  <burnus@net-b.de>
658         PR other/33426
659         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
660         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
662 2013-10-23  Jason Merrill  <jason@redhat.com>
664         * c-format.c (gcc_cxxdiag_char_table): Add %X.
666 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
668         * c-common.h (omp_clause_mask::operator !=): New method.
669         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
670         instead of if (mask & something) tests everywhere.
672         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
673         201307 instead of 201107.
674         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
675         (c_common_attribute_table): Add "omp declare target" and
676         "omp declare simd" attributes.
677         (handle_omp_declare_target_attribute,
678         handle_omp_declare_simd_attribute): New functions.
679         * c-omp.c: Include c-pragma.h.
680         (c_finish_omp_taskgroup): New function.
681         (c_finish_omp_atomic): Add swapped argument, if true,
682         build the operation first with rhs, lhs arguments and use NOP_EXPR
683         build_modify_expr.
684         (c_finish_omp_for): Add code argument, pass it down to make_code.
685         (c_omp_split_clauses): New function.
686         (c_split_parallel_clauses): Removed.
687         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
688         c_omp_declare_simd_clauses_to_decls): New functions.
689         * c-common.h (omp_clause_mask): New type.
690         (OMP_CLAUSE_MASK_1): Define.
691         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
692         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
693         omp_clause_mask::operator |, omp_clause_mask::operator &,
694         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
695         omp_clause_mask::operator ==): New methods.
696         (enum c_omp_clause_split): New.
697         (c_finish_omp_taskgroup): New prototype.
698         (c_finish_omp_atomic): Add swapped argument.
699         (c_finish_omp_for): Add code argument.
700         (c_omp_split_clauses): New prototype.
701         (c_split_parallel_clauses): Removed.
702         (c_omp_declare_simd_clauses_to_numbers,
703         c_omp_declare_simd_clauses_to_decls): New prototypes.
704         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
705         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
706         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
707         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
708         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
709         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
710         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
711         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
712         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
713         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
714         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
715         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
716         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
717         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
718         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
719         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
720         PRAGMA_OMP_CLAUSE_UNIFORM.
722 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
724         PR tree-optimization/20318
725         * c-common.c (handle_returns_nonnull_attribute): New function.
726         (c_common_attribute_table): Add returns_nonnull.
728 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
730         PR c++/19476
731         * c.opt (fcheck-new): Move to common.opt.
733 2013-09-25  Marek Polacek  <polacek@redhat.com>
734             Jakub Jelinek  <jakub@redhat.com>
736         PR sanitizer/58413
737         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
738         an expression if we can prove it is correct.
739         (ubsan_instrument_division): Likewise.  Remove unnecessary
740         check.
742 2013-09-18  Marek Polacek  <polacek@redhat.com>
744         PR sanitizer/58411
745         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
746         Declare it.
747         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
749 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
751         PR target/48094
752         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
753         fobjc-gc, freplace-objc-classes): Accept for LTO.
755 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
757         * c-target.def: New hook
759 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
761         PR c++/43452
762         * c.opt (Wdelete-incomplete): Add.
764 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
766         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
767         (vector_types_compatible_elements_p): New function.
768         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
769         declaration.
770         (vector_types_compatible_elements_p): Declare.
772 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
774         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
775         a virtual member function.
776         (pp_simple_type_specifier): Remove.
777         (pp_c_type_specifier): Likewise.
778         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
779         Rename from pp_c_type_specifier.  Adjust.
780         (c_pretty_printer::c_pretty_printer): Do not assign to
781         simple_type_specifier.
783 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
785         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
786         member function.
787         (c_pretty_printer::storage_class_specifier): Likewise.
788         (c_pretty_printer::initializer): Likewise.
789         (pp_declaration): Remove.
790         (pp_declaration_specifiers): Likewise.
791         (pp_abstract_declarator): Likewise.
792         (pp_declarator): Likewise.
793         (pp_type_id): Likewise.
794         (pp_statement): Likewise.
795         (pp_constant): Likewise.
796         (pp_id_expression): Likewise.
797         (pp_primary_expression): Likewise.
798         (pp_unary_expression): Likewise.
799         (pp_multiplicative_expression): Likewise.
800         (pp_conditional_expression): Likewise.
801         (pp_assignment_expression): Likewise.
802         (pp_expression): Likewise.
803         (pp_c_type_id): Likewise.
804         (pp_c_storage_class_specifier): Likewise.
805         * c-pretty-print.c (pp_c_type_cast): Tidy.
806         (pp_c_pointer): Likewise.
807         (pp_c_type_specifier): Likewise.
808         (pp_c_parameter_type_list): Likewise.
809         (pp_c_function_definition): Likewise.
810         (pp_c_init_declarator): Likewise.
811         (pp_c_initializer_list): Likewise.
812         (pp_c_constructor_elts): Likewise.
813         (c_pretty_printer::direct_abstract_declarator): Likewise.
814         (c_pretty_printer::declaration_specifiers): Likewise.
815         (c_pretty_printer::primary_expression): Likewise.
816         (c_pretty_printer::postfix_expression): Likewise.
817         (c_pretty_printer::type_id): Rename from pp_c_type_id.
818         (c_pretty_printer::storage_class_specifier): Rename from
819         pp_c_storage_class_specifier.
820         (c_pretty_printer::initializer): Rename from pp_c_initializer.
821         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
822         storage_class_specifier, initializer, offset_list, flags.
824 2013-08-30  Marek Polacek  <polacek@redhat.com>
826         * c-ubsan.c: New file.
827         * c-ubsan.h: New file.
829 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
831         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
832         member function.
833         (c_pretty_printer::declaration_specifiers): Likewise.
834         (c_pretty_printer::declarator): Likewise.
835         (c_pretty_printer::abstract_declarator): Likewise.
836         (c_pretty_printer::direct_abstract_declarator): Likewise.
837         (c_pretty_printer::direct_declarator): Likewise.
838         (c_pretty_printer::function_specifier): Likewise.
839         (pp_declaration): Adjust.
840         (pp_declaration_specifiers): Likewise.
841         (pp_abstract_declarator): Likewise.
842         (pp_direct_declarator): Likewise.
843         (pp_function_specifier): Likewise.
844         (pp_direct_abstract_declarator): Remove as unused.
845         (pp_c_declaration): Remove.
846         (pp_c_declaration_specifiers): Likewise.
847         (pp_c_declarator): Likewise.
848         (pp_c_direct_declarator): Likewise.
849         (pp_c_function_specifier): Likewise.
850         (pp_c_direct_abstract_declarator): Likewise.
851         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
852         from pp_c_abstract_declarator.  Adjust.
853         (c_pretty_printer::direct_abstract_declarator):  Rename from
854         pp_c_direct_abstract_declarator.  Adjust.
855         (c_pretty_printer::function_specifier): Rename from
856         pp_c_function_specifier.  Adjust.
857         (c_pretty_printer::declaration_specifiers): Rename from
858         pp_c_declaration_specifiers.  Adjust.
859         (c_pretty_printer::direct_declarator): Rename from
860         pp_c_direct_declarator.  Adjust.
861         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
862         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
863         (c_pretty_printer::c_pretty_printer): Do not assign to
864         declaration, declaration_specifiers, declarator,
865         direct_declarator, direct_abstract_declarator, function_specifier.
867 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
869         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
870         virtual member function.
871         (c_pretty_printer::multiplicative_expression): Likewise.
872         (c_pretty_printer::conditional_expression): Likewise.
873         (c_pretty_printer::assignment_expression): Likewise.
874         (c_pretty_printer::expression): Likewise.
875         (pp_unary_expression): Adjust.
876         (pp_multiplicative_expression): Likewise.
877         (pp_assignment_expression): Likewise.
878         (pp_conditional_expression): Likewise.
879         (pp_expression): Likewise.
880         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
881         from pp_c_unary_expression.  Adjust.
882         (c_pretty_printer::multiplicative_expression): Rename from
883         pp_c_multiplicative_expression.  Adjust.
884         (c_pretty_printer::conditional_expression): Rename from
885         pp_c_conditional_expression.  Adjust.
886         (c_pretty_printer::assignment_expression): Rename from
887         pp_c_assignment_expression.  Adjust.
888         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
889         (c_pretty_printer::c_pretty_printer): Do not assign to
890         unary_expression, multiplicative_expression,
891         conditional_expression, expression.
893 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
895         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
896         virtual member function.
897         (pp_postfix_expression): Adjust.
898         (pp_c_postfix_expression): Remove.
899         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
900         from pp_c_postfix_expression.  Adjust.
901         (c_pretty_printer::c_pretty_printer): Do not assign to
902         postfix_expression.
904 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
906         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
907         virtua member function.
908         (pp_primary_expression): Adjust.
909         (pp_c_primary_expression): Remove.
910         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
911         from pp_c_primary_expression.  Adjust.
912         (pp_c_initializer_list): Use pp_primary_expression.
913         (c_pretty_printer::c_pretty_printer): Do not assign to
914         primary_expression.
916 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
918         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
919         * c-pretty-print.c (M_): Remove.
920         (c_pretty_printer::translate_string): Define.
921         (pp_c_type_specifier): Use it.
922         (pp_c_primary_expression): Likewise.
923         (pp_c_expression): Likewise.
925 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
927         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
928         virtual function.
929         (pp_c_id_expression): Remove.
930         (pp_id_expression): Adjust.
931         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
932         pp_c_id_expression.  Adjust.
933         (pp_c_postfix_expression): Use pp_id_expression.
934         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
936 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
938         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
939         member function.
940         (pp_constant): Adjust.
941         (pp_c_constant): Remove.
942         * c-pretty-print.c (c_pretty_printer::constant): Rename from
943         pp_c_constant.  Adjust.
944         (pp_c_constant)
945         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
946         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
948 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
950         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
951         (c_pretty_printer::c_pretty_printer): Declare.
952         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
953         c_pretty_printer_init.  Adjust.
954         (print_c_tree): Do not call c_pretty_printer_init.
955         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
957 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
959         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
961 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
963         PR c++/58080
964         * c-common.c (pointer_int_sum): Add bool parameter.
965         * c-common.h (pointer_int_sum): Adjust declaration.
967 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
969         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
970         c_pretty_printer variable.
972 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
974         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
975         (pp_base): Remove.
976         (pp_c_base): Likewise.  Adjust users.
977         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
978         (pp_c_whitespace): Do not call pp_base.
979         (pp_c_left_paren): Likewise.
980         (pp_c_right_paren): Likewise.
981         (pp_c_left_brace): Likewise.
982         (pp_c_right_brace): Likewise.
983         (pp_c_left_bracket): Likewise.
984         (pp_c_right_bracket): Likewise.
985         (pp_c_dot): Likewise.
986         (pp_c_ampersand): Likewise.
987         (pp_c_star): Likewise.
988         (pp_c_arrow): Likewise.
989         (pp_c_semicolon): Likewise.
990         (pp_c_complement): Likewise.
991         (pp_c_exclamation): Likewise.
992         (pp_c_direct_declarator): Likewise.
993         (pp_c_ws_string): Likewise.
994         (pp_c_identifier): Likewise.
995         (pp_c_statement): Likewise.
996         (print_c_tree): Likewise.
998 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
1000         PR c++/58072
1001         * c-common.c (c_parse_error): Catch user-defined literal tokens and
1002         provide useful error strings.
1004 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1006         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1007         printer functions instead of pp_string or operators and punctuators.
1008         (dump_generic_ada_node): Likewise.
1009         * c-pretty-print.c (pp_c_type_specifier): Likewise.
1010         (pp_c_relational_expression): Likewise.
1011         (pp_c_logical_or_expression): Likewise.
1013 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1015         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1016         functions instead of pp_character.
1017         (pp_ada_tree_identifier): Likewise.
1018         (dump_ada_double_name): Likewise.
1019         (dump_ada_function_declaration): Likewise.
1020         (dump_ada_array_domains): Likewise.
1021         (dump_template_types): Likewise.
1022         (dump_generic_ada_node): Likewise.
1023         (print_ada_declaration): Likewise.
1024         (print_ada_struct_decl): Likewise.
1025         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1027 2013-07-23  Tom Tromey  <tromey@redhat.com>
1029         * c-common.h (enum rid) <RID_GENERIC>: New constant.
1030         * c-common.c (c_common_reswords): Add _Generic.
1032 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
1034         * c-common.c: Fix typos.
1035         * c-common.h: Likewise.
1037 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
1039         PR c++/55203
1040         * c-common.c (c_common_attribute_table): Add warn_unused.
1041         (handle_warn_unused_attribute): New.
1043 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
1045         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1046         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1048 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
1050         PR c++/57869
1051         * c.opt: Add Wconditionally-supported.
1053 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
1055         * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1056         unused variables l_length and l_node.
1058 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
1060         PR c/57821
1061         * c-common.c (complete_array_type): Delay folding first index
1062         like other indices.  When folding, check for index overflow.
1064 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
1066         PR c++/57509
1067         * c-common.h (c_build_vec_perm_expr): New complain argument.
1068         * c-common.c (c_build_vec_perm_expr): Likewise.
1069         Use save_expr also in C++.
1071 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1073         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1074         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1075         * c-opts.c (c_common_post_options): Likewise.
1077 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1079         * array-notation-common.c (length_mismatch_in_expr): Changed the
1080         parameter type's from a dynamic array to a vec_tree.  Also removed
1081         the size parameters.
1082         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1083         the change above.
1085 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1087         * c-common.h (struct cilkplus_an_parts): New structure.
1088         (struct cilkplus_an_loop_parts): Likewise.
1089         (cilkplus_extract_an_triplets): New prototype.
1090         (fix_sec_implicit_args): Likewise.
1091         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1092         (fix_sec_implicit_args): Likewise.
1094 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1096         * array-notation-common.c (find_inv_trees): Removed an unwanted
1097         typecasting.
1098         * c-common.h (struct inv_list::additional_tcodes): Changed type from
1099         enum rid to enum tree_code.
1101 2013-06-11  Jan Hubicka  <jh@suse.cz>
1103         * c-common.c (handle_alias_ifunc_attribute): Do not set
1104         DECL_EXTERNAL for weakref variables.
1105         * c-pragma.c (handle_pragma_weak): Make sure aliases
1106         are not declared as external.
1108 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1110         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1111         function from c/c-array-notation.c.
1112         (is_cilkplus_reduce_builtin): Likewise.
1113         (find_rank): Likewise.
1114         (extract_array_notation_exprs): Likewise.
1115         (replace_array_notations): Likewise.
1116         (find_inv_trees): Likewise.
1117         (replace_inv_trees): Likewise.
1118         (contains_array_notation_expr): Likewise.
1119         (find_correct_array_notation_type): Likewise.
1120         * c-common.h (struct inv_list): Moved this struct from the file
1121         c/c-array-notation.c and added a new field called additional tcodes.
1122         (length_mismatch_in_expr_p): New prototype.
1123         (is_cilkplus_reduce_builtin): Likewise.
1124         (find_rank): Likewise.
1125         (extract_array_notation_exprs): Likewise.
1126         (replace_array_notation): Likewise.
1127         (find_inv_trees): Likewise.
1128         (replace_inv_trees): Likewise.
1129         (find_correct_array_notation_type): Likewise.
1131 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1133         * c-common.c (c_define_builtins): When cilkplus is enabled, the
1134         function array_notation_init_builtins is called.
1135         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1136         * c-common.def (ARRAY_NOTATION_REF): New tree.
1137         * c-common.h (build_array_notation_expr): New function declaration.
1138         (build_array_notation_ref): Likewise.
1139         (extract_sec_implicit_index_arg): New extern declaration.
1140         (is_sec_implicit_index_fn): Likewise.
1141         (ARRAY_NOTATION_CHECK): New define.
1142         (ARRAY_NOTATION_ARRAY): Likewise.
1143         (ARRAY_NOTATION_START): Likewise.
1144         (ARRAY_NOTATION_LENGTH): Likewise.
1145         (ARRAY_NOTATION_STRIDE): Likewise.
1146         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1147         ARRAY_NOTATION_REF.
1148         (pp_c_expression): Likewise.
1149         * c.opt (flag_enable_cilkplus): New flag.
1150         * array-notation-common.c: New file.
1152 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
1154         PR c++/57274
1155         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1157 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
1159         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1160         vectors.
1162 2013-05-07  Han Shen  <shenhan@google.com>
1164         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1166 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1168         * c-common.c (check_user_alignment): Emit error for negative values.
1170 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1172         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1174 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1176         * c-cppbuiltin.c (c_cpp_builtins): Do not define
1177         __GXX_EXPERIMENTAL_CXX1Y__.
1179 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1180             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1182         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1183         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1184         to simply use OPT_Wpointer_arith.
1185         (c_sizeof_or_alignof_type): Likewise.
1187 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1189         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1191 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
1193         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1194         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1195         specifiers.
1197 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
1199         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1201 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
1203         * c-common.c (pointer_int_sum): Remove dead code.
1205 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
1207         PR middle-end/56524
1208         * c-common.c (handle_optimize_attribute): Don't call
1209         save_optabs_if_changed.
1211 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
1213         PR middle-end/56461
1214         * c-pch.c (pch_init): Free target_validity at the end.
1216 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
1218         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1220 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
1221             Jakub Jelinek  <jakub@redhat.com>
1223         PR sanitizer/56454
1224         * c-common.c (handle_no_sanitize_address_attribute): New function.
1225         (c_common_attribute_table): Add no_sanitize_address attribute.
1226         (handle_no_address_safety_analysis_attribute): Add
1227         no_sanitize_address attribute, not no_address_safety_analysis
1228         attribute.
1230 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
1232         PR target/52555
1233         * c-common.c (handle_optimize_attribute): Call
1234         save_optabs_if_changed.
1236 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
1237             Steven Bosscher  <steven@gcc.gnu.org>
1239         PR pch/54117
1240         * c-opts.c (c_common_post_options): If debug info is enabled
1241         and non-dwarf*, refuse to load PCH files and when writing PCH
1242         file warn.
1244 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
1246         PR middle-end/56167
1247         * c-common.c (handle_error_attribute): Fix condition.
1249 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
1251         PR c++/55742
1252         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1254 2013-01-18  Jason Merrill  <jason@redhat.com>
1256         PR target/54908
1257         * c.opt (-fextern-tls-init): New.
1258         * c-opts.c (c_common_post_options): Handle it.
1260 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
1262         PR c/48418
1263         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1264         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1265         and is either negative or bigger or equal to type precision
1266         of the first operand.
1268 2012-12-03  Marek Polacek  <polacek@redhat.com>
1270         PR c/55570
1271         * c-common.c (check_user_alignment): Swap order of tests,
1272         check TREE_CODE first.
1274 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
1276         PR c++/52654
1277         * c-common.h (overflow_type): New enum.
1278         (build_userdef_literal): Add overflow_type argument.
1279         (tree_userdef_literal): Add overflow_type.
1280         (USERDEF_LITERAL_OVERFLOW): New access macro.
1281         * c-common.c (build_userdef_literal): Add overflow_type
1282         argument.
1283         * c-lex.c (c_lex_with_flags): Add overflow_type to
1284         build_userdef_literal calls.
1285         (interpret_integer, interpret_float): Add overflow_type argument.
1287 2012-11-28  Richard Biener  <rguenther@suse.de>
1289         PR c/35634
1290         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1291         here and use a type with proper overflow behavior for types that would
1292         need to be promoted for the arithmetic.
1294 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
1296         PR sanitizer/55435
1297         * c-common.c (handle_no_address_safety_analysis_attribute): New
1298         function.
1299         (c_common_attribute_table): Add no_address_safety_analysis.
1301 2012-11-16  Simon Baldwin  <simonb@google.com>
1303         * c.opt: Add f[no-]canonical-system-headers.
1304         * c-opts.c (c_common_handle_option): Handle
1305         OPT_fcanonical_system_headers.
1307 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
1309         PR c++/54413
1310         * c-opts.c (c_common_handle_option): Set new flags.
1311         * c.opt: Describe new flags.
1313 2012-11-09  Jason Merrill  <jason@redhat.com>
1315         * c.opt (Wabi-tag): New.
1317 2012-11-09  Andi Kleen  <ak@linux.intel.com>
1319         PR 55139
1320         * c-common.c (get_atomic_generic_size): Mask with
1321         MEMMODEL_MASK
1323 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1325         PR c/53063
1326         * c.opt (Wformat): Make it Alias Wformat=1.
1327         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1328         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1329         LangEnabledBy.
1330         (Wformat=): RejectNegative. Use LangEnabledBy.
1331         (Wnonnull): Use LangEnabledBy.
1332         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1333         * c-format.c (set_Wformat): Delete.
1334         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1335         (maybe_read_dollar_number):  Likewise.
1336         (avoid_dollar_number):  Likewise.
1337         (finish_dollar_format_checking):  Likewise.
1338         (check_format_info):  Likewise.
1339         (check_format_info_main):  Likewise.
1340         (check_format_types):  Likewise.
1341         (format_type_warning):  Likewise.
1342         * c-common.c (int):  Likewise.
1343         (check_function_sentinel):  Likewise.
1344         * c-common.h (warn_format,set_Wformat): Do not declare here.
1346 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1348         PR c/53063
1349         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1350         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1351         Use LangEnabledBy.
1352         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1353         common.opt.
1354         (Wvariadic-macros): Init(1).
1355         * c-opts.c (c_common_handle_option): Do not handle them
1356         explicitly.
1357         (c_common_post_options): Likewise.
1358         (sanitize_cpp_opts): warn_unused_macros is now
1359         cpp_warn_unused_macros.
1360         (push_command_line_include): Likewise.
1361         * c-common.c (warn_unknown_pragmas): Do not define.
1362         * c-common.h (warn_unknown_pragmas): Do not declare.
1364 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1366         PR c/51294
1367         * c-common.c (conversion_warning): Handle conditional expressions.
1369 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
1371         PR c++/54930
1372         * c.opt (Wreturn_local_addr): Define new option.
1374 2012-10-25  Jason Merrill  <jason@redhat.com>
1376         * c.opt (Wvirtual-move-assign): New.
1378         * c.opt (Winherited-variadic-ctor): New.
1380 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
1382         PR c++/54427
1383         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1385 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1387         * c-common.h (pch_cpp_save_state): Declare.
1388         * c-target.def (c_preinclude): New hook.
1389         * c-opts.c (done_preinclude): New.
1390         (push_command_line_include): Handle default preincluded header.
1391         (cb_file_change): Call pch_cpp_save_state when calling
1392         push_command_line_include.
1393         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1394         (pch_cpp_save_state): New.
1395         (pch_init): Call pch_cpp_save_state conditionally, instead of
1396         calling cpp_save_state.
1398 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1400         PR c/53063
1401         PR c/40989
1402         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1403         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1404         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1405         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1406         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1407         * c-opts.c (c_common_handle_option): Remove explicit handling from
1408         here.
1409         (c_common_post_options): Likewise.
1411 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
1413         * c-ada-spec.c (LOCATION_COL): Delete.
1414         (compare_location): New function.
1415         (compare_node): Use it.
1416         (compare_comment): Likewise.
1418 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1420         PR c/53063
1421         PR c/40989
1422         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1423         * c-opts.c (c_common_handle_option): Do not set them here. Add
1424         comment.
1425         (c_common_post_options): Likewise.
1427 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1429         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1430         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1431         Remove POINTER_TYPE handling, add large unsigned handling and use
1432         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1434 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
1436         PR c/54381
1437         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1438         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1439         locs and array of 3 trees instead of just single loc and single
1440         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
1441         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1442         For *cmp* builtins that take two sources strings report warnings
1443         about first and second source, not about destination and source.
1445 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
1447         PR c++/53055
1448         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1450 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1452         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1453         declaring something coming from another file.
1455 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
1457         PR ada/54845
1458         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1460 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
1462         PR c++/54194
1463         * c-common.c (warn_about_parentheses): Add location_t parameter;
1464         use EXPR_LOC_OR_LOC.
1465         * c-common.h: Update declaration.
1467 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
1469         PR c++/54427
1470         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1471         more operations. Make error messages optional.
1472         * c-common.h (enum stv_conv): Moved from c-typeck.c.
1473         (scalar_to_vector): Declare.
1475 2012-10-08  Jason Merrill  <jason@redhat.com>
1477         * c-common.c (c_common_reswords): Add thread_local.
1479 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
1481         PR c++/53528 C++11 attribute support
1482         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1483         new functions.
1484         * c-common.c (check_cxx_fundamental_alignment_constraints): New
1485         static function.
1486         (handle_aligned_attribute): In choose strictest alignment
1487         among many.  Use new check_cxx_fundamental_alignment_constraints.
1488         (handle_transparent_union_attribute): In c++11 attribute syntax,
1489         don't look through typedefs.
1491 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
1493         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1494         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1495         out of dumpfile.h.
1497 2012-09-25  Dehao Chen  <dehao@google.com>
1499         PR middle-end/54645
1500         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
1501         map when read in the pch.
1503 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
1505         * c-ada-spec.c: Style fixes.
1507 2012-09-18 Thomas Quinot  <quinot@adacore.com>
1509         * c.opt (-fada-spec-parent): Define new command line switch.
1510         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1511         is specified, generate binding spec as a child of the specified unit.
1513 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
1514             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1516         PR c++/53210
1517         * c.opt ([Winit-self]): Enabled by -Wall in C++.
1519 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
1521         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1522         for pointers, and add missing Convention C pragma.
1523         (print_ada_struct_decl): Add missing aliased keyword.
1524         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1526 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
1528         * c-common.c (sizeof_pointer_memaccess_warning): New function.
1529         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1530         * c-opts.c (c_common_handle_option): Enable it for -Wall.
1531         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1532         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1534 2012-08-10  Richard Guenther  <rguenther@suse.de>
1536         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1538 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
1540         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1541         instead of separate pp_newline and pp_flush.
1542         (print_c_tree): Likewise.
1544 2012-07-26  Richard Henderson  <rth@redhat.com>
1546         * c-common.c (handle_hot_attribute): Allow labels.
1547         (handle_cold_attribute): Likewise.
1549 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
1551         PR c++/28656
1552         * c-common.c (check_function_nonnull): Handle multiple nonnull
1553         attributes properly.
1555 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
1557         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1558         * c-ada-spec.c: Likewise.
1559         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1561 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
1563         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1564         Remove code conditional on it.
1566 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
1568         * c-gimplify.c: Do not include basic-block.h.
1569         * c-common.c: Do not include linfuncs.h.
1571 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1573         * c-common.h: Include tree.h.
1575 2012-07-02  Jason Merrill  <jason@redhat.com>
1577         PR c++/53524
1578         * c-common.c (get_priority): Call default_conversion.
1580 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
1582         * c-pch.c (c_common_write_pch): Remove unused variables.
1584 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1586         * cppspec.c: Moved from gcc/ to here.
1588 2012-06-27  Kai Tietz  <ktietz@redhat.com>
1590         PR preprocessor/37215
1591         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1593 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
1595         * c-common.h (c_common_print_pch_checksum): Remove.
1596         * c-pch.c: Do not include output.h.
1597         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1598         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1599         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1600         (struct c_pch_header): Remove.
1601         (get_ident): Update gpch version.
1602         (pch_init): Do not print executable_checksum to asm_out_file.
1603         Do not fail if there is no asm_out_file to read back from.  Set
1604         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1605         (c_common_write_pch): Verify that nothing was written to asm_out_file
1606         since pch_init was called.  Do not write a c_pch_header, and do not
1607         copy from asm_out_file to the PCH.
1608         (c_common_read_pch): Do not read a c_pch_header, and do not restore
1609         the content of asm_out_file from the PCH.
1610         (c_common_print_pch_checksum): Remove.
1611         * c-opts.c (c_common_init): Print out executable_checksum directly.
1613 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
1615         * c-target.def (objc_declare_unresolved_class_reference,
1616         objc_declare_class_definition): Add new hooks.
1618 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
1620         * c-lex.c: Do not include output.h.
1621         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1622         Remove uses of ASM_OUTPUT_IDENT.
1624 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
1626         PR c++/51033
1627         * c-common.h (c_build_vec_perm_expr): Move decl here.
1628         * c-common.c (c_build_vec_perm_expr): Move definition
1629         here.
1631 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
1633         * c.opt (fconserve-space): Turn into a no-op.
1635 2012-06-04  Sterling Augustine  <saugustine@google.com>
1637         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1638         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1639         both the start and end of the function.
1641 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
1643         * c-common.c: Do not include output.h.
1644         * c-pragma.c: Likewise.
1646 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
1648         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1649         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1650         (lang_decl_name): Handle namespace decls.
1652 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
1654         * c-ada-spec.c: Do not include output.h.
1655         * c-semantics.c: Likewise.
1657 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
1659         * c-common.c: Fix typo.
1661 2012-05-29  Michael Matz  <matz@suse.de>
1663         * c-common.h (c_expand_decl): Remove prototype.
1665 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1667         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1668         * c-opts.c (c_common_handle_option): Remove code handling
1669         warn_missing_braces.
1671 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
1673         PR c++/25137
1674         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1675         -Wmissing_braces.
1677 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
1679         PR c++/53322
1680         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1682 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1684         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1685         * c-opts.c (c_common_handle_option): Do not handle explicitly
1686         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1688 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
1690         PR preprocessor/7263
1691         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
1692         to cpp_classify_number.  For diagnostics, use the precise location
1693         instead of the global input_location.
1695 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
1697         PR c++/11856
1698         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1700 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
1702         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1704 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1706         PR 53063
1707         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1708         Wreorder): Use LangEnabledBy.
1709         * c-opts.c (c_common_handle_option): Do not enable them
1710         explicitly. Call lang-specific generated functions.
1711         (c_common_post_options): Do not set them here.
1713 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1715         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1716         Wmissing-field-initializers,Wmissing-parameter-type,
1717         Wold-style-declaration,Woverride-init): Use EnabledBy.
1718         * c-opts.c (c_common_post_options): Do not set here explicitly.
1720 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1722         PR 53063
1723         * c-opts.c (c_common_handle_option): Use handle_generated_option
1724         to enable sub-options.
1726 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
1728         PR c++/53158
1729         * c-common.c (warnings_for_convert_and_check): Use warning_at.
1731 2012-05-10  Richard Guenther  <rguenther@suse.de>
1733         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1734         adjust commentary about TYPE_IS_SIZETYPE types.
1736 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1738         PR c++/53261
1739         * c-common.c (warn_logical_operator): Check that argument of
1740         integer_zerop is not NULL.
1742 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1744         PR c/43772
1745         * c-common.c (warn_logical_operator): Do not warn if either side
1746         is already true or false.
1748 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1750         PR c/51712
1751         * c-common.c (expr_original_type): New.
1752         (shorten_compare): Do not warn for enumeration types.
1754 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1756         * c.opt (fpermissive): Add Var(flag_permissive).
1758 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
1760         PR c++/51033
1761         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1762         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1764 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
1766         Add -Wvarargs option
1767         * c.opt (Wvarargs):  Define new option.
1769 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1771         * c-common.c (check_function_arguments): Replace
1772         Wmissing-format-attribute with Wsuggest-attribute=format.
1774 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1776         * c.opt (Wsuggest-attribute=format): New. Alias of
1777         Wmissing-format-attribute.
1778         * c-format.c (decode_format_type): Replace
1779         Wmissing-format-attribute with Wsuggest-attribute=format.
1780         (check_function_format): Likewise.
1782 2012-04-27  Ollie Wild  <aaw@google.com>
1784         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1785         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1786         * c.opt: Add Wliteral-suffix.
1788 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1790         PR c/44774
1791         * c.opt (Wpedantic): New.
1792         (pedantic): Alias Wpedantic.
1793         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1794         (c_common_post_options): Likewise.
1795         (sanitize_cpp_opts): Likewise.
1796         * c-lex.c (interpret_float): Likewise.
1797         * c-format.c (check_format_types): Likewise.
1798         * c-common.c (pointer_int_sum): Likewise.
1799         (c_sizeof_or_alignof_type): Likewise.
1800         (c_add_case_label): Likewise.
1801         (c_do_switch_warnings): Likewise.
1802         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1804 2012-04-15  Jason Merrill  <jason@redhat.com>
1806         PR c++/52818
1807         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1808         (C_STD_NAME): Distinguish between C++98 and C++11.
1810 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1812         PR target/52624
1813         * c-common.h (uint16_type_node): Rename into...
1814         (c_uint16_type_node): ...this.
1815         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1816         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1818 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1820         * c-common.c (warn_if_unused_value): Move definition to here.
1821         * c-common.h (warn_if_unused_value): Move declaration to here.
1823 2012-03-23  William Bader  <williambader@hotmail.com>
1825         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1827 2012-03-20  Jason Merrill  <jason@redhat.com>
1829         * c-common.h (enum cxx_dialect): Add cxx1y.
1830         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1831         test.
1832         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1833         * c-opts.c (c_common_post_options): Likewise.
1834         (set_std_cxx1y): New.
1835         (c_common_handle_option): Call it.
1836         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1838 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
1840         PR c++/14710
1841         * c.opt ([Wuseless-cast]): Add.
1843 2012-03-16  Richard Guenther  <rguenther@suse.de>
1845         * c-pretty-print.c (pp_c_initializer_list): Adjust.
1847 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1849         PR c++/44783
1850         * c.opt (ftemplate-backtrace-limit) Add.
1852 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1854         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1855         handling.
1856         * c-pragma.c (handle_pragma_extern_prefix): Remove.
1857         (init_pragma): Don't register extern_prefix.
1859 2012-03-12  Richard Guenther  <rguenther@suse.de>
1861         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1862         (builtin_type_for_size): Likewise.
1864 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
1866         PR c++/52215
1867         * c-common.c (sync_resolve_params): Don't decide whether to convert
1868         or not based on TYPE_SIZE comparison, convert whenever arg_type
1869         is unsigned INTEGER_TYPE.
1871 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
1873         PR c/52118
1874         * c.opt ([Wunused-local-typedefs]): Fix description.
1876 2012-01-24  Mike Stump  <mikestump@comcast.net>
1878         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1879         exactly.
1881 2012-01-18  Richard Guenther  <rguenther@suse.de>
1883         * c-opts.c (c_common_post_options): Reset LTO flags if
1884         we are about to generate a PCH.
1886 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
1888         PR c++/51777
1889         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1890         use pp_unsigned_wide_integer.
1892 2012-01-10  Richard Guenther  <rguenther@suse.de>
1894         PR middle-end/51806
1895         * c-opts.c (c_common_handle_option): Move -Werror handling
1896         to language independent code.
1898 2012-01-05  Richard Guenther  <rguenther@suse.de>
1900         PR middle-end/51764
1901         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1902         from common.opt.
1904 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
1906         PR c++/51316
1907         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1908         of array types with an unknown bound.
1910 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
1912         * c-common.c (flag_isoc99): Update comment to refer to C11.
1913         (flag_isoc1x): Change to flag_isoc11.
1914         * c-common.h (flag_isoc99): Update comment to refer to C11.
1915         (flag_isoc1x): Change to flag_isoc11.
1916         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1917         C11.
1918         * c-opts.c (set_std_c1x): Change to set_std_c11.
1919         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1920         Call set_std_c11.
1921         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1922         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1923         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
1924         standard.
1925         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1926         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
1927         (std=gnu1x): Make alias of std=gnu11.
1929 2011-12-19  Jason Merrill  <jason@redhat.com>
1931         PR c++/51228
1932         * c-common.c (handle_transparent_union_attribute): Check the first
1933         field if the type is complete.
1935 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
1937         PR libstdc++/51365
1938         * c-common.c (RID_IS_FINAL): Add.
1939         * c-common.h (RID_IS_FINAL): Add.
1941 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
1943         * c.opt (fgnu-runtime): Provide full description.
1944         (fnext-runtime): Likewise.
1945         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1947 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
1949         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
1950         predefines in one place.  Add LOCK_FREE predefines.
1951         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1952         new func.
1954 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
1956         PR c/51256
1957         * c-common.c (get_atomic_generic_size): Check for various error
1958         conditions
1959         (resolve_overloaded_atomic_exchange,
1960         resolve_overloaded_atomic_compare_exchange,
1961         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1962         error_mark_node for error conditions.
1964 2011-11-08  Richard Guenther  <rguenther@suse.de>
1966         PR middle-end/51010
1967         c-family/
1969 2011-11-07  Richard Henderson  <rth@redhat.com>
1970             Aldy Hernandez  <aldyh@redhat.com>
1971             Torvald Riegel  <triegel@redhat.com>
1973         Merged from transactional-memory.
1975         * c-common.c (handle_tm_wrap_attribute,
1976         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1977         (struct c_common_reswords): Added __transaction* keywords.
1978         (struct c_common_attribute_table): Added transaction* and tm_regparm
1979         attributes.
1980         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1981         masks.
1982         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1983         find_tm_attribute): Declare.
1985 2011-11-07  Jason Merrill  <jason@redhat.com>
1987         PR c++/35688
1988         * c-common.c, c-common.h: Revert yesterday's changes.
1990 2011-11-06  Jason Merrill  <jason@redhat.com>
1992         PR c++/35688
1993         * c-common.c (decl_has_visibility_attr): Split out from...
1994         (c_determine_visibility): ...here.
1995         * c-common.h: Declare it.
1997 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
1999         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2000         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2001         type.
2002         (check_user_alignment): New.  Split out of
2003         handle_aligned_attribute.  Disallow integer constants with
2004         noninteger types.  Conditionally allow zero.
2005         (handle_aligned_attribute): Use check_user_alignment.
2006         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2008 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
2009             Richard Henderson  <rth@redhat.com>
2011         Merged from cxx-mem-model.
2013         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
2014         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
2015         parameters that are the same type size.
2016         (get_atomic_generic_size): New.  Find size of generic
2017         atomic function parameters and do typechecking.
2018         (add_atomic_size_parameter): New.  Insert size into parameter list.
2019         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2020         either __atomic_exchange_n or external library call.
2021         (resolve_overloaded_atomic_compare_exchange): Restructure
2022         __atomic_compare_exchange to either _n variant or external library call.
2023         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
2024         __atomic_load_n or an external library call.
2025         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2026         __atomic_store_n or an external library call.
2027         (resolve_overloaded_builtin): Handle new __atomic builtins.
2029 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2031         PR c++/50608
2032         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2033         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
2034         <INDIRECT_REF>: Return the argument.
2035         <ARRAY_REF>: Remove special code for negative offset.
2036         Call fold_build_pointer_plus instead of size_binop.
2037         (fold_offsetof): Remove STOP_REF argument and adjust.
2038         * c-common.h (fold_offsetof_1): Declare.
2039         (fold_offsetof): Remove STOP_REF argument.
2041 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2043         PR c++/50810
2044         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2045         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2046         Wnarrowing for C++0x and C++98.
2047         * c.opt ([Wnarrowing]): Update.
2049 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
2051         PR c++/44277
2052         * c.opt: Add Wzero-as-null-pointer-constant.
2054 2011-10-31  Jason Merrill  <jason@redhat.com>
2056         * c.opt (-fdeduce-init-list): Off by default.
2058         PR c++/50920
2059         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2060         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2061         and -Wc++11-compat.
2062         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2064 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
2066         PR c++/30066
2067         * c.opt (fvisibility-inlines-hidden): Description change.
2069 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
2071         Implement C++11 user-defined literals.
2072         * c-common.c (build_userdef_literal): New.
2073         * c-common.def: New tree code.
2074         * c-common.h (tree_userdef_literal): New tree struct and accessors.
2075         * c-lex.c (interpret_float): Add suffix parm.
2076         (c_lex_with_flags): Build literal tokens.
2078 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2080         PR c++/50841
2081         Revert:
2082         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2084         PR c++/50810
2085         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2086         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2087         Wnarrowing for C++0x and C++98.
2088         * c.opt ([Wnarrowing]): Update.
2090 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2092         PR c++/50810
2093         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2094         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2095         Wnarrowing for C++0x and C++98.
2096         * c.opt ([Wnarrowing]): Update.
2098 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
2100         PR c++/45385
2101         * c-common.c (conversion_warning): Remove code looking for
2102         artificial operands.
2104 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
2106         PR bootstrap/50760
2107         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2108         !NO_IMPLICIT_EXTERN_C.
2110 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
2112         * c-common.c (c_common_reswords): Add __bases,
2113         __direct_bases.
2114         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2116 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
2118         PR c++/50757
2119         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2121 2011-10-15  Tom Tromey  <tromey@redhat.com>
2122             Dodji Seketeli  <dodji@redhat.com>
2124         * c.opt (fdebug-cpp): New option.
2125         * c-opts.c (c_common_handle_option): Handle the option.
2126         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2127         output stream in parameter. Factorized from ...
2128         (maybe_print_line): ... this. Dump location debug information when
2129         -fdebug-cpp is in effect.
2130         (print_line_1): New static function. Takes an output stream in
2131         parameter. Factorized from ...
2132         (print_line): ... here. Dump location information when -fdebug-cpp
2133         is in effect.
2134         (scan_translation_unit): Dump location information when
2135         -fdebug-cpp is in effect.
2137 2011-10-15  Tom Tromey  <tromey@redhat.com>
2138             Dodji Seketeli  <dodji@redhat.com>
2140         * c.opt (ftrack-macro-expansion): New option. Handle it with and
2141         without argument.
2142         * c-opts.c (c_common_handle_option)<case
2143         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2144         cases. Handle -ftrack-macro-expansion with and without argument.
2146 2011-10-15  Tom Tromey  <tromey@redhat.com>
2147             Dodji Seketeli  <dodji@redhat.com>
2149         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2150         (print_line, cb_define, do_line_change): Adjust to avoid touching
2151         the internals of struct line_map.  Use the public API instead.
2152         * c-pch.c (c_common_read_pch): Likewise.
2153         * c-lex.c (fe_file_change): Likewise.
2155 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
2157         PR c++/17212
2158         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2160 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
2162         PR c++/33067
2163         * c-pretty-print.c (pp_c_floating_constant): Output
2164         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2166 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2168         * c-common.c (def_builtin_1): Delete old interface with two
2169         parallel arrays to hold standard builtin declarations, and replace
2170         it with a function based interface that can support creating
2171         builtins on the fly in the future.  Change all uses, and poison
2172         the old names.  Make sure 0 is not a legitimate builtin index.
2173         * c-omp.c (c_finish_omp_barrier): Ditto.
2174         (c_finish_omp_taskwait): Ditto.
2175         (c_finish_omp_flush): Ditto.
2177 2011-10-11  Tristan Gingold  <gingold@adacore.com>
2179         * c.opt: (fallow-parameterless-variadic-functions): New.
2181 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
2183         PR c++/33255 - Support -Wunused-local-typedefs warning
2184         * c-common.h (struct c_language_function::local_typedefs): New
2185         field.
2186         (record_locally_defined_typedef, maybe_record_typedef_use)
2187         (maybe_warn_unused_local_typedefs): Declare new functions.
2188         * c-common.c (record_locally_defined_typedef)
2189         (maybe_record_typedef_use)
2190         (maybe_warn_unused_local_typedefs): Define new functions.
2191         * c.opt: Declare new -Wunused-local-typedefs flag.
2193 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
2195         PR middle-end/50266
2196         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2197         computations.
2199 2011-09-05  Richard Guenther  <rguenther@suse.de>
2201         * c-common.c (complete_array_type): Use ssize_int (-1) instead
2202         of integer_minus_one_node for empty array upper bounds.
2204 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
2206         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2207         it's the first time it's being called on this main TU.
2209 2011-08-24  Richard Guenther  <rguenther@suse.de>
2211         PR c/49396
2212         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2214 2011-08-22  Gabriel Charette  <gchare@google.com>
2216         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2217         defined in cpp_init_builtins and c_cpp_builtins.
2219 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2221         * c-common.c (c_common_reswords): Add __builtin_complex.
2222         * c-common.h (RID_BUILTIN_COMPLEX): New.
2224 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
2226         * c-common.c (c_common_reswords): Add _Noreturn.
2227         (keyword_is_function_specifier): Handle RID_NORETURN.
2228         * c-common.h (RID_NORETURN): New.
2230 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2232         * c-common.c (unsafe_conversion_p): New function. Check if it is
2233         unsafe to convert an expression to the type.
2234         (conversion_warning): Adjust, use unsafe_conversion_p.
2235         * c-common.h (unsafe_conversion_p): New function declaration.
2237 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
2239         * c-common.h (c_finish_omp_atomic): Adjust prototype.
2240         (c_finish_omp_taskyield): New prototype.
2241         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2242         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2243         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
2244         or RHS1 have side-effects, evaluate those too in the right spot,
2245         if it is a decl and LHS is also a decl, error out if they
2246         aren't the same.
2247         (c_finish_omp_taskyield): New function.
2248         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2249         * c-pragma.c (omp_pragmas): Add taskyield.
2250         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2251         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2252         PRAGMA_OMP_CLAUSE_MERGEABLE.
2254 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
2256         * c-common.h (set_underlying_type): Remove parm name from
2257         declaration.
2259 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
2261         * c-pretty-print.h: Search c-common.h in c-family.
2263 2011-07-22  Jason Merrill  <jason@redhat.com>
2265         PR c++/49793
2266         * c.opt (Wnarrowing): New.
2268         PR c++/30112
2269         * c-common.h: Declare c_linkage_bindings.
2270         * c-pragma.c (handle_pragma_redefine_extname): Use it.
2272         PR c++/49813
2273         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2274         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2275         as flag_isoc99 for 'restrict'.
2276         (pp_c_specifier_qualifier_list): Likewise for _Complex.
2278 2011-07-21  Ian Lance Taylor  <iant@google.com>
2280         PR middle-end/49705
2281         * c-common.c (c_disable_warnings): New static function.
2282         (c_enable_warnings): New static function.
2283         (c_fully_fold_internal): Change local unused_p to bool.  Call
2284         c_disable_warnings and c_enable_warnings rather than change
2285         c_inhibit_evaluation_warnings.
2287 2011-07-20  Jason Merrill  <jason@redhat.com>
2289         PR c++/6709 (DR 743)
2290         PR c++/42603 (DR 950)
2291         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2292         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2293         (CPP_DECLTYPE): New.
2294         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2296 2011-07-19  Richard Guenther  <rguenther@suse.de>
2298         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2299         * c-omp.c (c_finish_omp_for): Likewise.
2301 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
2303         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2304         body on the next line.
2306 2011-07-08  Jason Merrill  <jason@redhat.com>
2308         PR c++/45437
2309         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2311         PR c++/49673
2312         * c-common.c (c_apply_type_quals_to_decl): Don't check
2313         TYPE_NEEDS_CONSTRUCTING.
2315 2011-07-06  Richard Guenther  <rguenther@suse.de>
2317         * c-common.c (c_common_nodes_and_builtins):
2318         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2320 2011-07-05  Richard Guenther  <rguenther@suse.de>
2322         * c-common.c (c_common_nodes_and_builtins): Build all common
2323         tree nodes first.
2325 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
2327         * c-common.h (c_tree_chain_next): New static inline function.
2329         * c-common.c (check_builtin_function_arguments): Handle
2330         BUILT_IN_ASSUME_ALIGNED.
2332 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
2334         * c-common.c: Add sync_ or SYNC__ to builtin names.
2335         * c-omp.c: Add sync_ or SYNC__ to builtin names.
2337 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
2339         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2340         handler.
2341         (gen_pragma_handler): New union.
2342         (internal_pragma_handler): New type.
2343         (c_register_pragma_with_data)
2344         (c_register_pragma_with_expansion_and_data): New functions.
2346         * c-pragma.c (registered_pragmas, c_register_pragma_1)
2347         (c_register_pragma, c_register_pragma_with_expansion)
2348         (c_invoke_pragma_handler): Changed to work with
2349         internal_pragma_handler.
2350         (c_register_pragma_with_data)
2351         (c_register_pragma_with_expansion_and_data): New functions.
2353 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
2355         * c-common.c: Include common/common-target.h.
2356         (handle_section_attribute): Use
2357         targetm_common.have_named_sections.
2358         * c-cppbuiltin.c: Include common/common-target.h.
2359         (c_cpp_builtins): Use targetm_common.except_unwind_info.
2361 2011-06-10  Richard Guenther  <rguenther@suse.de>
2363         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2364         to print a IDENTIFIER_NODE.
2366 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2367             Joseph Myers  <joseph@codesourcery.com>
2369         * c.opt (fbuilding-libgcc): New option.
2370         * c-cppbuiltin.c (c_cpp_builtins): Define
2371         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2373 2011-06-07  Jason Merrill  <jason@redhat.com>
2375         * c-common.c (max_tinst_depth): Lower default to 900.
2377         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2379 2011-06-07  Richard Guenther  <rguenther@suse.de>
2381         * c-common.c (c_common_nodes_and_builtins): Do not set
2382         size_type_node or call set_sizetype.
2384 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
2386         PR debug/49130
2387         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
2388         type when using pointer comparison to compare types.
2390 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
2392         * c.opt: Add -Wdelete-non-virtual-dtor.
2393         * c-opts.c (c_common_handle_option): Include it in -Wall.
2395 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
2397         PR bootstrap/49190
2399         Revert:
2400         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2402         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2403         not tree_common.
2405 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
2407         PR c++/49165
2408         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2409         C++ don't call c_common_truthvalue_conversion on void type arms.
2411 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
2413         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2414         (stmt_list_stack): Define.
2415         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2416         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2418 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2420         * c-common.c (warning_candidate_p): Check for BLOCKs.
2422 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2424         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2425         not tree_common.
2427 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
2429         * c-common.c (def_fn_type): Remove extra va_end.
2431 2011-05-23  Jason Merrill  <jason@redhat.com>
2433         PR c++/48106
2434         * c-common.c (c_common_get_narrower): New.
2435         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2437 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
2439         * c-common.h (check_function_arguments): Tweak prototype of
2440         check_function_arguments.
2441         * c-common.c (check_function_arguments): Likewise.  Adjust
2442         calls to check_function_nonnull, check_function_format, and
2443         check_function_sentinel.
2444         (check_function_sentinel): Take a FUNCTION_TYPE rather than
2445         separate attributes and typelist arguments.  Use
2446         FOREACH_FUNCTION_ARGS to iterate over argument types.
2448 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
2450         * c-common.c (c_common_reswords): Reorder.
2451         * c-common.h (rid): Likewise.
2453 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
2455         * c-common.c (def_fn_type): Don't call build_function_type, call
2456         build_function_type_array or build_varargs_function_type_array
2457         instead.
2458         (c_common_nodes_and_builtins): Likewise.
2460 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2462         * c-common.c (c_add_case_label): Omit the loc argument to
2463         build_case_label.
2464         * c-common.h (build_case_label): Remove.
2465         * c-semantics.c (build_case_label): Remove.
2467 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2469         * c-objc.h (objc_start_method_definition): Update prototype.
2470         * stub-objc.c (objc_start_method_definition): Add extra parameter.
2472 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2474         * c-common.c (check_main_parameter_types): Reindent.  Don't use
2475         TYPE_ARG_TYPES directly.
2476         (handle_nonnull_attribute): Likewise.
2477         (sync_resolve_params): Likewise.
2478         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
2479         to check_format_string.
2480         (handle_format_attribute): Likewise.
2481         (check_format_string): Take a function type to examine instead of
2482         a type list.  Use a function_arg_iterator to step through argument
2483         types.
2485 2011-05-04  Richard Guenther  <rguenther@suse.de>
2487         * c-common.c (fix_string_type): Use size_int for index type bounds.
2488         (start_fname_decls): Do not pass NULL to build_int_cst.
2489         (c_init_attributes): Likewise.
2490         * c-lex.c (c_lex_with_flags): Likewise.
2492 2011-04-27  Jason Merrill  <jason@redhat.com>
2494         * c-common.c (make_tree_vector_from_list): New.
2495         * c-common.h: Declare it.
2497 2011-04-26  Richard Guenther  <rguenther@suse.de>
2499         PR preprocessor/48248
2500         * c-ppoutput.c (maybe_print_line): Always optimize newlines
2501         for output size with -P.
2503 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2505         * c-common.c (struct c_common_resword): Add __underlying_type.
2506         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2508 2011-04-20  Jim Meyering  <meyering@redhat.com>
2510         * c-format.c (init_dollar_format_checking): Remove useless
2511         if-before-free.
2513 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2515         * c-objc.h (objc_get_interface_ivars): Removed.
2516         (objc_detect_field_duplicates): New.
2517         * stub-objc.c: Likewise.
2519 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
2521         * stub-objc.c (objc_declare_protocols): Renamed to
2522         objc_declare_protocol.
2523         * c-objc.h: Likewise.
2525 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
2527         * stub-objc.c (objc_declare_class): Updated argument name.
2529 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
2531         * c-common.h (c_common_init_ts): Declare.
2532         * c-common.c (c_common_init_ts): Define.
2534 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2536         * c-objc.h (objc_build_message_expr): Updated prototype.
2537         * stub-objc.c (objc_build_message_expr): Likewise.
2539 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2541         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2542         of cgraph_node.
2544 2011-04-11  Richard Guenther  <rguenther@suse.de>
2546         * c-common.c (complete_array_type): Build a range type of
2547         proper type.
2549 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2551         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2552         (handle_type_generic_attribute): Likewise.
2554 2011-04-07  Jason Merrill  <jason@redhat.com>
2556         PR c++/48450
2557         * c-common.c (c_common_truthvalue_conversion): Don't ignore
2558         conversion from C++0x scoped enum.
2560 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2562         * c-target-def.h: New file.
2563         * c-target.def: New file.
2564         * c-target.h: New file.
2565         * c-common.c (targetcm): Don't define here.
2566         * c-common.h (default_handle_c_option): Declare.
2567         * c-format.c: Include c-target.h instead of target.h.
2568         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
2569         include tm.h.
2570         (default_handle_c_option): Move from targhooks.c.
2572 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
2574         PR preprocessor/48248
2575         * c-ppoutput.c (print): Add src_file field.
2576         (init_pp_output): Initialize it.
2577         (maybe_print_line): Don't optimize by adding up to 8 newlines
2578         if map->to_file and print.src_file are different file.
2579         (print_line): Update print.src_file.
2581 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2583         * c-ada-spec.c (compare_comment): Use filename_cmp
2584         instead of strcmp for filename.
2586 2011-03-25  Jeff Law  <law@redhat.com>
2588         * c-family/c-common.c (def_fn_type): Add missing va_end.
2590 2011-03-25  Jason Merrill  <jason@redhat.com>
2592         * c.opt: Add -std=c++03.
2594 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
2596         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2598 2011-03-17  Kai Tietz
2600         PR target/12171
2601         * c-pretty-print.c (pp_c_specifier_qualifier_list):
2602         Display allowed attributes for function pointer types.
2603         (pp_c_attributes_display): New function to display
2604         attributes having affects_type_identity flag set to true.
2605         * c-pretty-print.h (pp_c_attributes_display): New prototype.
2607         * c-common.c (c_common_attribute_table):
2608         Add new element.
2609         (c_common_format_attribute_table): Likewise.
2611 2011-03-18  Jason Merrill  <jason@redhat.com>
2613         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2614         * c-common.h: Don't declare it here.
2615         * c-common.c: Or define it here.
2616         * c-opts.c (c_common_handle_option): Or set it here.
2618         PR c++/35315
2619         * c-common.c (handle_transparent_union_attribute): Don't
2620         make a duplicate type in C++.
2622 2011-03-15  Jason Merrill  <jason@redhat.com>
2624         * c-common.c (max_constexpr_depth): New.
2625         * c-common.h: Declare it.
2626         * c-opts.c (c_common_handle_option): Set it.
2627         * c.opt (fconstexpr-depth): New option.
2629 2011-03-11  Jason Merrill  <jason@redhat.com>
2631         * c-common.c (attribute_takes_identifier_p): Add missing const.
2633         PR c++/46803
2634         * c-common.c (attribute_takes_identifier_p): Assume that an
2635         unknown attribute takes an identifier.
2637 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
2639         PR c/47786
2640         * c-common.c (c_type_hash): Call list_length instead of iterating
2641         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
2643 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
2645         PR c/47809
2646         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2648 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
2650         * c.opt (fobjc-abi-version=) New.
2651         (fobjc-nilcheck): New.
2653 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
2655         PR c++/46890
2656         * c-common.h (keyword_is_decl_specifier): Declare.
2657         * c-common.c (keyword_is_decl_specifier): Define.
2658         (keyword_is_function_specifier): New function.
2660 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
2662         PR c/47473
2663         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2664         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2665         REAL_TYPE.
2667 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
2669         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2671 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
2673         PR pch/47430
2674         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2675         after init_c_lex if pch_file is set.
2677 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
2679         PR c++/43601
2680         * c.opt (-fkeep-inline-dllexport): New switch.
2682 2011-01-12  Richard Guenther  <rguenther@suse.de>
2684         PR middle-end/32511
2685         * c-common.c (handle_weak_attribute): Warn instead of error
2686         on declaring an inline function weak.
2688 2011-01-05  Tom Tromey  <tromey@redhat.com>
2690         * c-common.h (lvalue_error): Update.
2691         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
2692         not error.
2694 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2696         PR objc/47075
2697         * c-objc.h (objc_finish_message_expr): Added argument to
2698         prototype.
2700 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
2702         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2703         Use prototype_p.
2705 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2707         * c-objc.h (objc_maybe_warn_exceptions): New.
2708         * stub-objc.c (objc_maybe_warn_exceptions): New.
2710 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
2712         * c-common.h (readonly_error): Declare.
2713         * c-common.c (readonly_error): Define.
2715 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
2717         * c-common.h (invalid_indirection_error): Declare.
2718         * c-common.c (invalid_indirection_error): Define.
2720 2010-12-03  Richard Guenther  <rguenther@suse.de>
2722         PR c/46745
2723         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2724         (pp_c_unary_expression): Likewise.
2725         (pp_c_expression): Likewise.
2727 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2729         * c-common.h (objc_finish_function): New.
2730         (objc_non_volatilized_type): Removed.
2731         (objc_type_quals_match): Removed.
2732         * stub-objc.c (objc_finish_function): New.
2733         (objc_non_volatilized_type): Removed.
2734         (objc_type_quals_match): Removed.
2736 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
2738         * c-common.h (parse_optimize_options): Declare.
2739         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2740         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2742 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
2744         * c-opts.c (check_deps_environment_vars): Use getenv instead of
2745         GET_ENVIRONMENT.
2746         * c-pch.c (O_BINARY): Don't define here.
2747         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2749 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
2751         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2752         targetm.except_unwind_info.
2754 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2756         * c-opts.c (c_common_handle_option): Pass location to
2757         set_struct_debug_option.
2759 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2761         * c-common.c (visibility_options): Move from ../opts.c.
2762         * c-common.h (struct visibility_flags, visibility_options):
2763         Declare here.
2764         * c-opts.c (finish_options): Rename to c_finish_options.
2765         (c_common_init): Update call to finish_options.
2767 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
2769         PR objc/34033
2770         * c-lex.c (lex_string): Check that each string in an Objective-C
2771         string concat sequence starts with either one or zero '@', and
2772         that there are no spurious '@' signs at the end.
2774 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
2776         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2777         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2778         HANDLE_PRAGMA_VISIBILITY.
2779         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2780         HANDLE_PRAGMA_VISIBILITY): Don't define.
2781         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2783 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
2785         PR c++/16189
2786         PR c++/36888
2787         PR c++/45331
2788         * c-common.h (keyword_begins_type_specifier): Declare.
2789         (keyword_is_storage_class_specifier): Declare.
2790         (keyword_is_type_qualifier): Declare.
2791         * c-common.c (keyword_begins_type_specifier): New function.
2792         (keyword_is_storage_class_specifier): New function.
2793         (keyword_is_type_qualifier): Declare.
2795 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2797         PR c/46547
2798         * c-common.c (in_late_binary_op): Define.
2799         (c_common_truthvalue_conversion): Check in_late_binary_op before
2800         calling c_save_expr.
2801         * c-common.h (in_late_binary_op): Declare.
2803 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2805         * c-opts.c (c_common_handle_option): Update calls to
2806         set_struct_debug_option.
2808 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2810         * c-common.h (objc_declare_protocols): Added additional argument.
2811         * stub-objc.c (objc_declare_protocol): Same change.
2813 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
2815         PR c/33193
2816         * c-common.h (build_real_imag_expr): Declare.
2817         * c-semantics.c (build_real_imag_expr): Define.
2819 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2821         * c-opts.c (c_common_parse_file): Take no arguments.
2822         * c-common.h (c_common_parse_file): Update prototype.
2824 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
2826         PR c++/46401
2827         * c-common.c (warning_candidate_p): Don't track non-const calls
2828         or STRING_CSTs.
2830 2010-11-15  Ian Lance Taylor  <iant@google.com>
2832         * c-lex.c (init_c_lex): Set macro debug callbacks if
2833         flag_dump_go_spec is set.
2835 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2837         * c-common.h (objc_build_incr_expr_for_property_ref): New.
2838         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2840 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
2842         PR preprocessor/45038
2843         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2844         dialects.
2846 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2848         * c-common.h (c_family_lang_mask): Declare.
2849         * c-opts.c (c_family_lang_mask): Make extern.
2850         * c-pragma.c (handle_pragma_diagnostic): Use
2851         control_warning_option.
2853 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2855         * c-common.c (parse_optimize_options): Update call to
2856         decode_options.
2857         * c-common.h (c_common_handle_option): Update prototype.
2858         * c-opts.c (c_common_handle_option): Take location_t parameter and
2859         pass it to other functions.
2861 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
2863         * c-opts.c (warning_as_error_callback): Remove.
2864         (c_common_initialize_diagnostics): Don't call
2865         register_warning_as_error_callback.
2866         (c_common_handle_option): Handle -Werror=normalized= here.
2868 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
2870         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2871         in diagnostic.
2872         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2873         letter.
2874         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2875         Remove trailing '.' from diagnostics.
2876         * c.opt (Wwrite-strings_: Avoid '`' in help text.
2878 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
2880         * c-common.c (parse_optimize_options): Pass global_dc to
2881         decode_options.
2882         * c-opts.c (c_common_handle_option): Pass &global_options to
2883         set_Wstrict_aliasing.
2884         * c.opt (v): Don't mark Common or document here.
2886 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
2888         PR target/44981
2889         * c-format.c (format_type): New type gcc_objc_string_format_type.
2890         (valid_stringptr_type_p): New.
2891         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2892         (check_format_string): Pass expected type, use
2893         valid_stringptr_type_p (), check that the format string types are
2894         consistent with the format specification.
2895         (decode_format_attr): Warn if NSString is used outside objective-c.
2896         (format_types_orig): Add NSString.
2897         (format_name): New.
2898         (format_flags): New.
2899         (check_format_arg): Handle format strings requiring an external parser.
2900         first_target_format_type: New variable.
2901         (handle_format_attribute): Set up first_target_format_type, pass the
2902         expected format arg string type to check_format_string().
2903         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
2904         * stub-objc.c (objc_string_ref_type_p): New.
2905         (objc_check_format_arg): New.
2907 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
2909         Fixed using the Objective-C 2.0 dot-syntax with class names.
2910         * c-common.h (objc_build_class_component_ref): New.
2911         * stub-objc.c (objc_build_class_component_ref): New.
2913 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
2915         * c.opt (Wproperty-assign-default): New option.
2917 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
2919         Implemented -fobjc-std=objc1 flag.
2920         * c.opt (fobjc-std=objc1): New option.
2922 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
2924         Implemented format and noreturn attributes for Objective-C methods.
2925         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2926         attribute for Objective-C methods.
2928 2010-10-31  Jason Merrill  <jason@redhat.com>
2930         * c-common.c (conversion_warning, warn_for_collisions_1): Use
2931         EXPR_LOC_OR_HERE.
2933 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2935         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2936         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2937         (objc_add_property_declaration): Removed arguments for copies and
2938         ivar.
2939         (objc_build_getter_call): Renamed to
2940         objc_maybe_build_component_ref.
2941         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2942         (objc_is_property_ref): New.
2943         * c-common.c (c_common_reswords): Removed copies and ivar.
2944         * stub-objc.c (objc_add_property_declaration): Removed arguments
2945         for copies and ivar.
2946         (objc_build_getter_call): Renamed to
2947         objc_maybe_build_component_ref.
2948         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2949         (objc_is_property_ref): New.
2951 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
2952             Matthew Gingell  <gingell@adacore.com>
2954         * c-ada-spec.c (separate_class_package): New function.
2955         (pp_ada_tree_identifier): Prefix references to C++ classes with the
2956         name of their enclosing package.
2957         (print_ada_declaration): Use separate_class_package.
2959 2010-10-27  Jason Merrill  <jason@redhat.com>
2961         * c-common.c (c_common_reswords): Add __is_literal_type.
2962         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2964         * c-common.c (check_case_value): Remove special C++ code.
2966 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2968         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2969         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
2970         and RID_LAST_PATTR.
2971         (objc_add_property_declaration): Added additional arguments.
2972         (objc_property_attribute_kind): Removed.
2973         (objc_set_property_attr): Removed.
2974         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2975         copy and nonatomic.
2976         * stub-objc.c (objc_add_property_declaration): Added additional
2977         arguments.
2978         (objc_set_property_attr): Removed.
2980 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2982         * c-common.h (objc_add_property_variable): Renamed to
2983         objc_add_property_declaration.  Added location argument.
2984         * stub-objc.c (objc_add_property_variable): Same change.
2985         
2986 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
2988         * c-common.h (objc_maybe_printable_name): New.
2989         * stub-objc.c (objc_maybe_printable_name): New.
2991 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2992         Andrew Pinski <pinskia@gmail.com>
2994         * c-common.h (c_common_mark_addressable_vec): Declare.
2995         * c-common.c (c_common_mark_addressable_vec): New function.
2997 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2999         * c-common.h (objc_set_method_type): Removed.
3000         (objc_add_method_declaration): Added boolean argument.
3001         (objc_start_method_definition): Same change.
3002         (objc_build_method_signature): Same change.
3003         * stub-objc.c (objc_set_method_type): Removed.
3004         (objc_add_method_declaration): Added boolean argument.
3005         (objc_start_method_definition): Same change.
3006         (objc_build_method_signature): Same change.
3008 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3010         * c-common.h (finish_file): Removed.
3011         (objc_write_global_declarations): New.
3012         * c-opts.c (c_common_parse_file): Do not call finish_file.
3013         * stub-objc.c (objc_write_global_declarations): New.
3015 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3017         Implemented parsing @synthesize and @dynamic for
3018         Objective-C/Objective-C++.
3019         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3020         (objc_add_synthesize_declaration): New.
3021         (objc_add_dynamic_declaration): New.
3022         * c-common.c (c_common_reswords): Add synthesize and dynamic.
3023         * stub-objc.c (objc_add_synthesize_declaration): New.
3024         (objc_add_dynamic_declaration): New.
3026 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3028         PR target/46041
3029         * c-cppbuiltin.c (mode_has_fma): Move function here from
3030         builtins.c.  Don't use the fma optab, instead just use the
3031         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3032         using -save-temps.
3034 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3036         Merge from 'apple/trunk' branch on FSF servers.
3038         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
3040         Radar 4330422
3041         * c-common.h (objc_non_volatilized_type): New declaration
3042         * stub-objc.c (objc_non_volatilized_type): New stub.
3044 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3046         Merge from 'apple/trunk' branch on FSF servers.
3048         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3050         Radar 4133425
3051         * c-common.h (objc_diagnose_private_ivar): New decl.
3052         * stub-objc.c (objc_diagnose_private_ivar): New stub.
3054 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
3056         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3057         * c-common.h (enum rid): Add RID_AT_PACKAGE.
3058         (objc_ivar_visibility_kind): New enum.
3059         (objc_set_visibility): Adjust prototype to use visibility enum.
3060         * stub-objc.c (objc_set_visibility): Adjust stub to use
3061         visibility enum.
3063 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3065         * c-cppbuiltin.c (builtin_define_float_constants): Emit
3066         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3067         has the appropriate fma builtins.
3068         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3070 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3072         merge from FSF apple 'trunk' branch.
3073         2006 Fariborz Jahanian <fjahanian@apple.com>
3075         Radars 4436866, 4505126, 4506903, 4517826
3076         * c-common.c (c_common_resword): Define @property and its attributes.
3077         * c-common.h: Define property attribute enum entries.
3078         (OBJC_IS_PATTR_KEYWORD): New.
3079         (objc_property_attribute_kind): New enum.
3080         Declare objc_set_property_attr (), objc_add_property_variable (),
3081         objc_build_getter_call () and objc_build_setter_call ().
3082         * stub-objc.c (objc_set_property_attr): New stub.
3083         (objc_add_property_variable): Likewise.
3084         (objc_build_getter_call): Likewise.
3085         (objc_build_setter_call) Likewise.
3087 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
3089         merge from FSF apple 'trunk' branch.
3090         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3092         Radar 3803157 (method attributes)
3093         * c-common.c (handle_deprecated_attribute): Recognize
3094         objc methods as valid declarations.
3095         * c-common.h: Declare objc_method_decl ().
3096         * stub-objc.c (objc_method_decl): New stub.
3098 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
3100         * c-common.c (parse_optimize_options): Call
3101         decode_cmdline_options_to_array_default_mask before
3102         decode_options.  Update arguments to decode_options.
3103         * c-common.h (c_common_init_options_struct): Declare.
3104         * c-opts.c (c_common_init_options_struct): New.  Split out from
3105         c_common_init_options.
3107 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3109         Implemented fast enumeration for Objective-C.
3110         * c-common.h (objc_finish_foreach_loop): New.
3111         * stub-objc.c (objc_finish_foreach_loop): New.
3113 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
3115         * c-common.h (struct diagnostic_context): Don't declare here.
3116         (c_common_initialize_diagnostics): Declare using
3117         diagnostic_context typedef.
3118         * c-opts.c (c_common_handle_option): Pass global_dc to
3119         handle_generated_option.
3121 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
3123         * c-opts.c (c_common_handle_option): Pass &global_options_set to
3124         handle_generated_option.
3126 2010-10-03  Ian Lance Taylor  <iant@google.com>
3128         * c.opt (-fplan9-extensions): New option.
3130 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3132         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3133         Remove.
3134         (c_cpp_builtins): Call functions from cppbuiltin.c instead
3135         of duplicating code.
3137 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
3139         * c-common.c: Add two new entries for @optional
3140         and @required keywords.
3142         merge from FSF 'apple/trunk' branch.
3143         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
3145         Radar 4386773
3146         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3147         objective-c keywords.
3148         (objc_set_method_opt): New declaration.
3149         * stub-objc.c (objc_set_method_opt): New stub.
3151 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
3153         * c-common.c (handle_optimize_attribute): Pass &global_options to
3154         cl_optimization_save and cl_optimization_restore.
3155         * c-opts.c (c_common_handle_option): Pass &global_options to
3156         handle_generated_option.
3157         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3158         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3159         &global_options to cl_optimization_restore.
3161 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3163         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3164         Objective-C/Objective-C++ keywords.
3166 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3168         Merge from 'apple/trunk' branch on FSF servers.
3170         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
3172         Radar 4281748
3173         * c-common.h (objc_check_global_decl): New declaration.
3174         * stub-objc.c (objc_check_global_decl): New stub.
3176 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3178         * c.opt: Don't use VarExists.
3180 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3182         * c-common.c (c_cpp_error): Update names of diagnostic_context
3183         members.
3184         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3185         cl_optimization members.
3186         * c-opts.c (warning_as_error_callback, c_common_handle_option,
3187         sanitize_cpp_opts, finish_options): Update names of cpp_options
3188         members.
3190 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3192         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
3193         (objc_is_reserved_word): Removed.
3194         * c-common.c: Updated comments.
3195         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3196         objc_is_reserved_word.
3197         * stub-objc.c (objc_is_reserved_word): Removed.
3199 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3201         * c-common.h (objc_add_method_declaration): Adjust prototype to
3202         include attributes.
3203         (objc_start_method_definition): Likewise.
3204         (objc_build_keyword_decl): Likewise.
3205         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3206         (objc_start_method_definition): Likewise.
3207         (objc_build_keyword_decl): Likewise.
3209 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3211         * c-common.h (objc_start_class_interface): Adjust prototype.
3212         (objc_start_category_interface): Likewise.
3213         (objc_start_protocol): Likewise.
3214         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3215         (objc_start_class_interface): Likewise.
3216         (objc_start_category_interface): Likewise.
3218 2010-09-27  Ian Lance Taylor  <iant@google.com>
3220         * c-common.c (c_common_attribute_table): Add no_split_stack.
3221         (handle_no_split_stack_attribute): New static function.
3223 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3225         Merge from 'apple/trunk' branch on FSF servers.
3227         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
3229         Radar 4229905
3230         * c-common.h (objc_have_common_type): New declaration.
3231         * stub-objc.c (objc_have_common_type): New stub.
3233         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
3235         Radar 4154928
3236         * c-common.h (objc_common_type): New prototype.
3237         * stub-objc.c (objc_common_type): New stub.
3239 2010-09-24  Jan Hubicka  <jh@suse.cz>
3241         * c-common.c (handle_leaf_attribute): New function.
3242         (struct attribute_spec c_common_att): Add leaf.
3244 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
3246         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3247         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3248         -dump, -dump=, -imacros, -imacros=, -include, -include=,
3249         -include-barrier, -include-directory, -include-directory=,
3250         -include-directory-after, -include-directory-after=,
3251         -include-prefix, -include-prefix=, -include-with-prefix,
3252         -include-with-prefix=, -include-with-prefix-after,
3253         -include-with-prefix-after=, -include-with-prefix-before,
3254         -include-with-prefix-before=, -no-integrated-cpp,
3255         -no-line-commands, -no-standard-includes, -no-warnings, -output,
3256         -output=, -pedantic, -pedantic-errors, -preprocess,
3257         -print-missing-file-dependencies, -trace-includes, -traditional,
3258         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3259         -user-dependencies, -verbose, -write-dependencies,
3260         -write-user-dependencies, no-integrated-cpp, traditional): New.
3262 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3264         PR objc/23710
3265         * c-common.h (objc_start_method_definition): Return bool instead
3266         of void.
3267         * stub-objc.c (objc_start_method_definition): Return bool instead
3268         of void.
3270 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3272         PR objc/25965
3273         * c-common.h (objc_get_interface_ivars): New declaration.
3274         * stub-objc.c (objc_get_interface_ivars): New stub.
3276 2010-09-15  Ian Lance Taylor  <iant@google.com>
3278         * c-common.c (parse_optimize_options): Do not capitalize warning
3279         messages.  Remove period at end of warning message.
3281 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3283         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3284         (handle_alias_attribute): ... here.
3285         (handle_ifunc_attribute): New.
3287 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3289         * c-common.h (do_warn_double_promotion): Declare.
3290         * c-common.c (do_warn_double_promotion): Define.
3292 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
3294         * c.opt (Wdouble-promotion): New.
3296 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3298         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3299         fvtable-thunks, fxref): Mark no longer supported in help text.
3301 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3303         * c.opt (Wimport, fall-virtual, falt-external-templates,
3304         fdefault-inline, fenum-int-equiv, fexternal-templates,
3305         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3306         fname-mangling-version-, fnew-abi, fnonnull-objects,
3307         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3308         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3309         applicable.
3310         (fhandle-exceptions): Mark with Alias and Warn.
3311         * c-opts.c (c_common_handle_option): Don't handle options marked
3312         as ignored.
3314 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3316         * c.opt (Wcomments, Werror-implicit-function-declaration,
3317         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3318         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3319         aliases.
3320         * c-common.c (option_codes): Use OPT_Wcomment instead of
3321         OPT_Wcomments.
3322         * c-opts.c (warning_as_error_callback, c_common_handle_option):
3323         Don't handle options marked as aliases.
3325 2010-08-25  Richard Guenther  <rguenther@suse.de>
3327         * c-common.c (c_common_get_alias_set): Remove special
3328         handling for pointers.
3330 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
3332         * c-common.c: Use FOR_EACH_VEC_ELT.
3333         * c-gimplify.c: Likewise.
3334         * c-pragma.c: Likewise.
3336 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3338         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
3339         RejectDriver.
3340         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
3341         RejectDriver.
3342         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3343         instead of OPT_MDX and OPT_MMDX.
3345 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3347         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3349 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
3351         * c.opt (MD, MMD): Change to MDX and MMDX.
3352         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3354 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
3356         * c-opts.c (c_common_handle_option): Call handle_generated_option
3357         instead of handle_option.
3359 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3361         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3362         (maybe_apply_renaming_pragma): Delete unneeded declarations.
3364 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3366         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
3367         (pending_redefine_extname): Change type to a VEC.
3368         (add_to_renaming_pragma_list): Update for new type of
3369         pending_redefine_extname.
3370         (maybe_apply_renaming_pragma): Likewise.
3372 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
3374         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3375         visited.
3376         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3377         decide whether a type has already been declared/seen.
3378         Do not go to the original type.
3379         (dump_nested_types): New parameter forward.
3380         Generate forward declaration if needed and mark type as visited.
3381         (print_ada_declaration): Call dump_nested_types if not already done.
3382         Mark types as visited.
3384 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
3386         * c.opt (-print-pch-checksum): Remove option.
3387         * c-opts.c (c_common_handle_option): Don't handle
3388         OPT_print_pch_checksum.
3390 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3392         * c-common.h (c_common_handle_option): Update prototype and return
3393         value type.
3394         * c-opts.c (c_common_handle_option): Update prototype and return
3395         value type.  Update calls to handle_option and
3396         enable_warning_as_error.
3398 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3400         PR c/45079
3401         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3403 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3405         * c-common.h (c_common_missing_argument): Remove.
3406         * c-opts.c (c_common_missing_argument): Remove.
3407         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3408         idirafter, imacros, include, isysroot, isystem, iquote): Add
3409         MissingArgError.
3410         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3412 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3414         * c-common.h (c_common_option_lang_mask,
3415         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3416         New.
3417         (c_common_init_options): Update prototype.
3418         * c-opts.c (c_common_option_lang_mask): New.
3419         (c_common_initialize_diagnostics): Split out of
3420         c_common_init_options.
3421         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3422         New.
3423         (c_common_init_options): Update prototype.  Use decoded options in
3424         search for -lang-asm.
3426 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3428         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3429         * c-format.c: Likewise.
3431 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3433         * c-common.h: Include diagnostic-core.h. Error if already
3434         included.
3435         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3437 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3439         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3440         Do not include expr.h
3441         (vector_mode_valid_p): Move here.
3443 2010-06-21  DJ Delorie  <dj@redhat.com>
3445         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3446         allow these pragmas anywhere.
3448 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3450         PR bootstrap/44509
3451         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3452         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3453         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3454         ggc_strdup instead of xstrdup.
3456 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
3458         * c-cppbuiltin.c: Include cpp-id-data.h.
3459         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3460         (lazy_hex_fp_value): New function.
3461         (builtin_define_with_hex_fp_value): Provide definitions lazily.
3463 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3465         * c-gimplify.c: Do not include tree-flow.h
3467 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
3469         PR other/44034
3470         * c-common.c: Rename targetm member:
3471         targetm.enum_va_list -> targetm.enum_va_list_p
3473 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
3475         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3477 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
3479         * c-cppbuiltin.c: Do not include except.h.
3481 2010-06-24  Andi Kleen  <ak@linux.intel.com>
3483         * c-common.c (warn_for_omitted_condop): New.
3484         * c-common.h (warn_for_omitted_condop): Add prototype.
3486 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
3488         * c.opt (lang-objc): Remove.
3489         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3491 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
3493         * c-opts.c: Include "tm_p.h".
3495 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
3497         * c-common.c (parse_optimize_options): Update call to
3498         decode_options.
3500 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
3502         * c-common.c (record_types_used_by_current_var_decl): Adjust for
3503         new type of types_used_by_cur_var_decl.
3505 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
3507         PR bootstrap/44512
3508         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3509         for C++ standard compliance.
3511 2010-06-16  Jason Merrill  <jason@redhat.com>
3513         * c.opt: Add -Wnoexcept.
3515 2010-06-16  Richard Guenther  <rguenther@suse.de>
3517         PR c/44555
3518         * c-common.c (c_common_truthvalue_conversion): Remove
3519         premature and wrong optimization concering ADDR_EXPRs.
3521 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
3523         * c-ada-spec.c (dump_sloc): Remove column info.
3524         (is_simple_enum): New function.
3525         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3526         enum types when relevant.
3528 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3530         * c-common.c (conversion_warning): Warn at expression
3531         location.
3533 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
3535         * c-opts.c (c_common_handle_option): Don't handle
3536         OPT_fshow_column.
3538 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3540         * c-pragma.c (push_alignment): Use typed GC allocation.
3541         (handle_pragma_push_options): Likewise.
3543         * c-common.c (parse_optimize_options): Likewise.
3545         * c-common.h (struct sorted_fields_type): Add variable_size GTY
3546         option.
3548 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
3550         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3551         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3552         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3553         flag_signed_bitfields, warn_strict_null_sentinel,
3554         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3555         flag_gen_declaration, flag_no_gnu_keywords,
3556         flag_implement_inlines, flag_implicit_templates,
3557         flag_implicit_inline_templates, flag_optional_diags,
3558         flag_elide_constructors, flag_default_inline, flag_rtti,
3559         flag_conserve_space, flag_access_control, flag_check_new,
3560         flag_new_for_scope, flag_weak, flag_working_directory,
3561         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3562         flag_enforce_eh_specs, flag_threadsafe_statics,
3563         flag_pretty_templates): Remove.
3564         * c-common.h (flag_preprocess_only, flag_nil_receivers,
3565         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3566         flag_replace_objc_classes, flag_undef, flag_no_builtin,
3567         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3568         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3569         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3570         flag_no_gnu_keywords, flag_implement_inlines,
3571         flag_implicit_templates, flag_implicit_inline_templates,
3572         flag_optional_diags, flag_elide_constructors, flag_default_inline,
3573         flag_rtti, flag_conserve_space, flag_access_control,
3574         flag_check_new, flag_new_for_scope, flag_weak,
3575         flag_working_directory, flag_use_cxa_atexit,
3576         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3577         flag_threadsafe_statics, flag_pretty_templates,
3578         warn_strict_null_sentinel): Remove.
3579         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3580         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3581         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3582         fimplicit-inline-templates, fimplicit-templates,
3583         flax-vector-conversions, fms-extensions, fnil-receivers,
3584         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3585         frtti, fshort-double, fshort-enums, fshort-wchar,
3586         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3587         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3588         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3589         gen-decls, undef): Use Var.
3590         (fdefault-inline, foptional-diags): Document as doing nothing.
3591         * c-opts.c (c_common_handle_option): Remove cases for options now
3592         using Var.  Mark ignored options as such.
3594 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
3596         * c-common.c: Moved to here from parent directory.
3597         * c-common.def: Likewise.
3598         * c-common.h: Likewise.
3599         * c-cppbuiltin.c: Likewise.
3600         * c-dump.c: Likewise.
3601         * c-format.c: Likewise.
3602         * c-format.h : Likewise.
3603         * c-gimplify.c: Likewise.
3604         * c-lex.c: Likewise.
3605         * c-omp.c: Likewise.
3606         * c.opt: Likewise.
3607         * c-opts.c: Likewise.
3608         * c-pch.c: Likewise.
3609         * c-ppoutput.c: Likewise.
3610         * c-pragma.c: Likewise.
3611         * c-pragma.h: Likewise.
3612         * c-pretty-print.c: Likewise.
3613         * c-pretty-print.h: Likewise.
3614         * c-semantics.c: Likewise.
3615         * stub-objc.c: Likewise.
3617         * c-common.c: Include gt-c-family-c-common.h.
3618         * c-pragma.c: Include gt-c-family-c-pragma.h.
3620 Copyright (C) 2010-2014 Free Software Foundation, Inc.
3622 Copying and distribution of this file, with or without modification,
3623 are permitted in any medium without royalty provided the copyright
3624 notice and this notice are preserved.