Avoid unnecessary work when -Wmisleading-indentation isn't enabled
[official-gcc.git] / gcc / c-family / ChangeLog
blob8fc0281d41c3018196bb351b24e54fa90877547f
1 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
3         * c-indentation.c (warn_for_misleading_indentation): Bail out
4         immediately if -Wmisleading-indentation isn't enabled.
6 2015-06-01  Martin Liska  <mliska@suse.cz>
8         * c-format.c (check_format_arg):Use new type-based pool allocator.
9         (check_format_info_main) Likewise.
11 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
13         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
14         (has_nontrivial_methods): Likewise.
16 2015-05-25  Marek Polacek  <polacek@redhat.com>
18         * c-ubsan.c (ubsan_instrument_shift): Use type0.
20 2015-05-22  Marek Polacek  <polacek@redhat.com>
22         PR c/47043
23         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
25 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
28         STACK_GROWS_DOWNWARD.
30 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
33         STACK_GROWS_DOWNWARD rather than if it is defined.
35 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36         
37         PR c/52952
38         * c-format.c (location_column_from_byte_offset): New.
39         (location_from_offset): New.
40         (struct format_wanted_type): Add offset_loc field.
41         (check_format_info): Move handling of location for extra arguments
42         closer to the point of warning.
43         (check_format_info_main): Pass the result of location_from_offset
44         to warning_at.
45         (format_type_warning): Pass the result of location_from_offset
46         to warning_at.
48 2015-05-20  Marek Polacek  <polacek@redhat.com>
50         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
52 2015-05-20  Marek Polacek  <polacek@redhat.com>
54         * c-ada-spec.c (dump_sloc): Use DECL_P.
56 2015-05-20  Marek Polacek  <polacek@redhat.com>
58         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
59         * c-common.c: Likewise.
61 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
63         * c-common.h (fe_file_change): Strengthen param from
64         const line_map * to const line_map_ordinary *.
65         (pp_file_change): Likewise.
66         * c-lex.c (fe_file_change): Likewise.
67         (cb_define): Use linemap_check_ordinary when invoking
68         SOURCE_LINE.
69         (cb_undef): Likewise.
70         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
71         invoking cb_file_change.
72         (c_finish_options): Likewise.
73         (push_command_line_include): Likewise.
74         (cb_file_change): Strengthen param "new_map" from
75         const line_map * to const line_map_ordinary *.
76         * c-ppoutput.c (cb_define): Likewise for local "map".
77         (pp_file_change): Likewise for param "map" and local "from".
79 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
81         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
83 2015-05-18  Tom de Vries  <tom@codesourcery.com>
85         * c-common.c (build_va_arg_1): New function.
86         (build_va_arg): Add address operator to va_list operand if necessary.
88 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
90         PR c/48956
91         * c-common.c (int_safely_convertible_to_real_p): Define.
92         (unsafe_conversion_p): Check conversions involving complex types.
93         (conversion_warning): Add new warning message for conversions which
94         discard imaginary component.
95         * c-common.h: (enum conversion_safety): Add new enumerator for such
96         conversions.
98 2015-05-14  Marek Polacek  <polacek@redhat.com>
100         PR c/66066
101         PR c/66127
102         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
103         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
104         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
105         use it.  If FOR_INT_CONST, require that all evaluated operands be
106         INTEGER_CSTs.
108 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
110         * c-common.h (warn_for_misleading_indentation): New prototype.
111         * c-indentation.c: New file.
112         * c.opt (Wmisleading-indentation): New option.
114 2015-05-12  Tom de Vries  <tom@codesourcery.com>
116         PR tree-optimization/66010
117         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
119 2015-05-09  Jason Merrill  <jason@redhat.com>
121         * c-opts.c (c_common_post_options): Also clear
122         cpp_opts->cpp_warn_cxx11_compat.
124         * c-common.h (enum cxx_dialect): Add cxx_unset.
125         * c-common.c (cxx_dialect): Initialize to cxx_unset.
126         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
128         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
129         (std=gnu++0x): Mark as Undocumented.
130         (std=gnu++1y): Add deprecated message.
132 2015-05-08  Jason Merrill  <jason@redhat.com>
134         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
135         * c-opts.c: Adjust.
137         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
139 2015-05-08  Marek Polacek  <polacek@redhat.com>
141         PR c/64918
142         * c.opt (Woverride-init-side-effects): New option.
144 2015-05-07  Marek Polacek  <polacek@redhat.com>
146         PR c/65179
147         * c-common.c (c_fully_fold_internal): Warn when left shifting a
148         negative value.
149         * c.opt (Wshift-negative-value): New option.
150         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
151         when -Wextra and C99/C++11 mode.
153 2015-05-07  Marek Polacek  <polacek@redhat.com>
154             Martin Uecker  <uecker@eecs.berkeley.edu>
156         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
157         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
159 2015-05-05  Jason Merrill  <jason@redhat.com>
161         * c.opt (Wterminate): New.
163 2015-04-30  Marek Polacek  <polacek@redhat.com>
165         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
166         require that the non-constant be of a boolean type.
168 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
170         * c-common.c (handle_section_attribute): Refactor to reduce
171         nesting and distinguish between error cases.
173 2015-04-29  Marek Polacek  <polacek@redhat.com>
175         PR c/64610
176         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
177         with 0/1.
179 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
181         * c-common.h (omp_clause_mask): Unconditionally define as a class.
182         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
183         HOST_BITS_PER_WIDE_INT.
185 2015-04-28  Tom de Vries  <tom@codesourcery.com>
187         PR tree-optimization/65887
188         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
190 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
191             Pierre-Marie de Rodat  <derodat@adacore.com>
193         * c-ada-spec.c (in_function): Delete.
194         (dump_generic_ada_node): Do not change in_function and remove the
195         redundant code dealing with it.
196         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
197         (print_ada_methods): Output the static member functions in a nested
198         package after the regular methods as well as associated renamings.
200 2015-04-24  Marek Polacek  <polacek@redhat.com>
202         PR c/65830
203         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
204         and OPT_Wshift_count_overflow.
206         PR c/63357
207         * c-common.c (warn_logical_operator): Warn if the operands have the
208         same expressions.
210 2015-04-24  Marek Polacek  <polacek@redhat.com>
212         PR c/61534
213         * c-common.c (warn_logical_operator): Bail if either operand comes
214         from a macro expansion.
216 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
218         PR target/55143
219         * c-common.c (c_default_pointer_mode): Add definition.
220         * c-common.h (c_default_pointer_mode): Add declaration.
222 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
224         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
225         on record_builtin_type argument.
227 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
229         PR c/65120
230         * c-common.c (warn_logical_not_parentheses): Don't warn for
231         !x == 0 or !x != 0.
233 2015-03-07  Marek Polacek  <polacek@redhat.com>
235         PR sanitizer/65280
236         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
237         before trying to figure out whether we have a flexible array member.
239 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
240             Jonathan Wakely  <jwakely.gcc@gmail.com>
242         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
244 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
246         PR ada/65319
247         * c-ada-spec.c (print_destructor): Remove obsolete code.
249 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
251         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
252         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
253         DECL_TEMPLATE_RESULT emulations.
254         (dump_ada_template)): Add guard for TYPE_METHODS.
256 2015-02-27  Marek Polacek  <polacek@redhat.com>
258         PR c/65040
259         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
261 2015-02-27  Kai Tietz  <ktietz@redhat.com>
263         PR c/35330
264         * c-pragma.c (handle_pragma_weak): Do not try to create
265         weak/alias of declarations not being function, or variable
266         declarations.
268 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
270         PR libgomp/64625
271         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
272         Remove macros.
273         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
275 2015-02-16  Marek Polacek  <polacek@redhat.com>
277         PR c/65066
278         * c-format.c (check_format_types): Handle null param.
280 2015-02-13  Marek Polacek  <polacek@redhat.com>
282         PR c/65040
283         * c-format.c (check_format_types): Don't warn about different
284         signedness if the original value is in the range of WANTED_TYPE.
286 2015-02-12  Jason Merrill  <jason@redhat.com>
288         PR c++/64956
289         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
290         to the current highest version.
291         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
293 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
295         PR c/64824
296         PR c/64868
297         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
298         instead of RDIV_EXPR.  Use build_binary_op instead of
299         build2_loc.
301 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
303         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
304         to pass input_location as first argument.
306 2015-01-23  Tom de Vries  <tom@codesourcery.com>
308         PR libgomp/64672
309         * c.opt (fopenacc): Mark as LTO option.
311 2015-01-23  Tom de Vries  <tom@codesourcery.com>
313         PR libgomp/64707
314         * c.opt (fopenmp): Mark as LTO option.
316 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
318         PR c/63307
319         * cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
320         (compare_decls): Fix up formatting.
322 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
324         PR c/63307
325         * cilk.c: Include vec.h.
326         (struct cilk_decls): New structure.
327         (wrapper_parm_cb): Split this function to...
328         (fill_decls_vec): ...this...
329         (create_parm_list): ...and this.
330         (compare_decls): New function.
331         (for_local_cb): Remove.
332         (wrapper_local_cb): Ditto.
333         (build_wrapper_type): For now first traverse and fill vector of
334         declarations then sort it and then deal with sorted vector.
335         (cilk_outline): Ditto.
336         (declare_one_free_variable): Ditto.
338 2015-01-21  Jason Merrill  <jason@redhat.com>
340         PR c++/64629
341         * c-format.c (check_format_arg): Call decl_constant_value.
343 2015-01-19  Martin Liska  <mliska@suse.cz>
345         * c-common.c (handle_noicf_attribute): New function.
347 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
348             Bernd Schmidt  <bernds@codesourcery.com>
349             James Norris  <jnorris@codesourcery.com>
350             Cesar Philippidis  <cesar@codesourcery.com>
351             Ilmir Usmanov  <i.usmanov@samsung.com>
352             Jakub Jelinek  <jakub@redhat.com>
354         * c.opt (fopenacc): New option.
355         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
356         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
357         New macros.
358         * c-common.h (c_finish_oacc_wait): New prototype.
359         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
360         (c_finish_oacc_wait): New function.
361         * c-pragma.c (oacc_pragmas): New variable.
362         (c_pp_lookup_pragma, init_pragma): Handle it.
363         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
364         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
365         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
366         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
367         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
368         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
369         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
370         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
371         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
372         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
373         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
374         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
375         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
376         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
377         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
378         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
379         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
380         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
381         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
382         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
383         PRAGMA_OACC_CLAUSE_WORKER.
385 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
387         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
388         for the new option fstack-protector_explicit.
389         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
390         (handle_stack_protect_attribute): New function.
392 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
394         * c.opt: New option -Warray-bounds=.
396 2015-01-09  Michael Collison  <michael.collison@linaro.org>
398         * array-notation-common.c: Include hash-set.h, machmode.h,
399         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
400         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
401         * c-ada-spec.c: Ditto.
402         * c-cilkplus.c: Ditto.
403         * c-common.c: Include input.h due to flattening of tree.h.
404         Define macro GCC_C_COMMON_C.
405         * c-common.h: Flatten tree.h header files into c-common.h.
406         Remove include of tree-core.h.
407         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
408         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
409         fold-const.h, wide-int.h, and inchash.h due to
410         flattening of tree.h.
411         * c-dump.c: Ditto.
412         * c-format.c: Flatten tree.h header files into c-common.h.
413         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
414         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
415         fold-const.h, wide-int.h, and inchash.h due to
416         flattening of tree.h.
417         * c-dump.c: Include hash-set.h, machmode.h,
418         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
419         fold-const.h, wide-int.h, and inchash.h due to
420         flattening of tree.h.
421         * c-format.c: Include hash-set.h, machmode.h,
422         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
423         fold-const.h, wide-int.h, inchash.h and real.h due to
424         flattening of tree.h.
425         * c-gimplify.c: Include hash-set.h, machmode.h,
426         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
427         fold-const.h, wide-int.h, and inchash.h due to
428         flattening of tree.h.
429         * cilk.c: Ditto.
430         * c-lex.c: Ditto.
431         * c-omp.c: Ditto.
432         * c-opts.c: Ditto.
433         * c-pch.c: Ditto.
434         * c-ppoutput.c: Ditto.
435         * c-pragma.c: Ditto.
436         * c-pretty-print.c: Ditto.
437         * c-semantics.c: Ditto.
438         * c-ubsan.c: Ditto.
439         * stub-objc.c: Ditto.
441 2015-01-08  Jason Merrill  <jason@redhat.com>
443         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
444         do_ubsan_in_current_function.
445         (ubsan_maybe_instrument_reference_or_call): Likewise.
446         * c-ubsan.h: Declare it.
448 2015-01-08  Mike Stump  <mikestump@comcast.net>
450         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
452 2015-01-07  Marek Polacek  <polacek@redhat.com>
454         PR c/64440
455         * c-common.c (c_fully_fold_internal): Warn for division and modulo
456         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
458 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
460         PR c++/31397
461         * c.opt (Wsuggest-override): New option.
463 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
465         Update copyright years.
467 2015-01-05  Marek Polacek  <polacek@redhat.com>
469         PR c/64423
470         * c-common.c (warn_array_subscript_with_type_char): Add location_t
471         parameter.  Use it.
472         * c-common.h (warn_array_subscript_with_type_char): Update
473         declaration.
475 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
477         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
478         Control macro with flag_sized_deallocation.
480 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
482         * c.opt (Wdiscarded-array-qualifiers): New option.
484 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
486         PR preprocessor/63831
487         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
488         and __has_cpp_attribute here.
489         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
490         c_common_has_attribute.
491         * c-common.h (c_common_has_attribute): New prototype.
492         * c-lex.c (init_c_lex): Set cb->has_attribute to
493         c_common_has_attribute instead of cb_has_attribute.
494         (get_token_no_padding): New function.
495         (cb_has_attribute): Renamed to ...
496         (c_common_has_attribute): ... this.  No longer static.  Use
497         get_token_no_padding, require ()s, don't build TREE_LIST
498         unnecessarily, fix up formatting, adjust diagnostics, call
499         init_attributes.
501 2014-12-15  Jason Merrill  <jason@redhat.com>
503         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
504         (-Wsized-deallocation): New.
505         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
506         to on in C++14 and up.
508 2014-12-11  Jason Merrill  <jason@redhat.com>
510         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
512         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
513         we aren't complaining about VLAs.
515 2014-12-06  Marek Polacek  <polacek@redhat.com>
517         PR tree-optimization/64183
518         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
519         shift-expression if it is integer_type_node.  Use types_compatible_p.
521 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
523         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
524         last argument from create_tmp_var_raw and create_tmp_var calls.
525         * cilk.c (gimplify_cilk_spawn): Likewise.
526         * c-omp.c (c_finish_omp_atomic): Likewise.
528 2014-11-28  Marek Polacek  <polacek@redhat.com>
530         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
531         instead of unsigned_type_node.
533 2014-11-28  Marek Polacek  <polacek@redhat.com>
535         PR c/63862
536         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
537         to op1_utype.
538         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
539         expression to unsigned_type_node.
541 2014-11-20  Mark Wielaard  <mjw@redhat.com>
543         PR debug/38757
544         * c-opts.c (set_std_c89): Set lang_hooks.name.
545         (set_std_c99): Likewise.
546         (set_std_c11): Likewise.
547         (set_std_cxx98): Likewise.
548         (set_std_cxx11): Likewise.
549         (set_std_cxx14): Likewise.
550         (set_std_cxx1z): Likewise.
552 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
554         PR target/63764
555         * c-common.h (convert_vector_to_pointer_for_subscript): Change
556         return type to bool.
557         * c-common.c: Include gimple-expr.h.
558         (convert_vector_to_pointer_for_subscript): Change return type to
559         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
560         and copy it into a TARGET_EXPR and use that instead of *vecp
561         directly.
563 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
565         Merger of git branch "gimple-classes-v2-option-3".
566         * ChangeLog.gimple-classes: New.
567         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
568         from being just a vec<gimple> to a vec<gbind *>.
570 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
572         PR sanitizer/63813
573         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
574         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
575         get_pointer_alignment for non-pointers.  Use ptype, or if it is
576         reference type, corresponding pointer type, as type of kind
577         argument.
578         (ubsan_maybe_instrument_reference,
579         ubsan_maybe_instrument_member_call): Adjust callers.
581 2014-11-15  Marek Polacek  <polacek@redhat.com>
583         PR middle-end/63884
584         * array-notation-common.c (is_sec_implicit_index_fn): Return false
585         for NULL fndecl.
586         (extract_array_notation_exprs): Return for NULL node.
588 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
590         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
591         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
593 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
595         PR c/59708
596         * c-common.c (check_builtin_function_arguments): Handle
597         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
599 2014-11-10  Andi Kleen  <ak@linux.intel.com>
601         PR c/60804
602         * c-common.h (check_no_cilk): Declare.
603         * cilk.c (get_error_location): New function.
604         (check_no_cilk): Dito.
606 2014-11-10  Andi Kleen  <ak@linux.intel.com>
608         * cilk.c (recognize_spawn): Use expression location
609         for error message.
611 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
613         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
615 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
617         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
618         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
619         (__cpp_range_based_for, __cpp_initializer_lists,
620         __cpp_delegating_constructors, __cpp_nsdmi,
621         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
622         for C++11; (__cpp_attribute_deprecated): Remove in favor of
623         __has_cpp_attribute.
624         * c-lex.c (cb_has_attribute): New callback CPP function;
625         (init_c_lex): Set has_attribute callback.
627 2014-11-04  Richard Biener  <rguenther@suse.de>
629         * c-common.c (shorten_compare): Do not shorten mixed
630         DFP and non-DFP compares.
632 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
634         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
635         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
636         Commentary and rearrangement of tests.
637         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
638         Commentary and rearrangement of tests.
639         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
640         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
642 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
644         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
645         enum from machine_mode.
647 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
649         * c-common.c: Adjust include files.
650         * c-gimplify.c: Ditto.
651         * cilk.c: Ditto.
652         * c-pragma.c: Ditto.
653         * c-ubsan.c: Ditto.
655 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
657         * c-gimplify.c: Adjust include files.
659 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
661         PR c++/53061
662         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
663         c_common_initialize_diagnostics.
664         * c-common.h: Likewise.
666 2014-10-24  Marek Polacek  <polacek@redhat.com>
668         PR c/56980
669         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
670         print "struct"/"union"/"enum" for typedefed names.
672 2014-10-23  Marek Polacek  <polacek@redhat.com>
674         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
675         in unsigned type.
677 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
678             Yury Gribov  <y.gribov@samsung.com>
680         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
681         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
682         instead of flag_sanitize_recover as bool flag.
684 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
686         * cilk.c: Revert previous change.
688 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
690         PR c/63307
691         * cilk.c: Include vec.h.
692         (struct cilk_decls): New structure.
693         (wrapper_parm_cb): Split this function to...
694         (fill_decls_vec): ...this...
695         (create_parm_list): ...and this.
696         (compare_decls): New function.
697         (for_local_cb): Remove.
698         (wrapper_local_cb): Ditto.
699         (build_wrapper_type): For now first traverse and fill vector of
700         declarations then sort it and then deal with sorted vector.
701         (cilk_outline): Ditto.
702         (declare_one_free_variable): Ditto.
704 2014-10-17  Marek Polacek  <polacek@redhat.com>
706         * c-opts.c (c_common_post_options): Set warn_implicit_int.
707         * c.opt (Wimplicit-int): Initialize to -1.
709 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
711         * c-pragma.c: Adjust include files.
712         * c-semantics.c: Likewise.
714 2014-10-16  DJ Delorie  <dj@redhat.com>
716         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
717         multiples of bytes.
719 2014-10-14  Jason Merrill  <jason@redhat.com>
721         PR c++/63455
722         * c-common.h (CPP_PREPARSED_EXPR): New.
723         (N_CP_TTYPES): Adjust.
725 2014-10-15  Marek Polacek  <polacek@redhat.com>
727         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
729 2014-10-14  DJ Delorie  <dj@redhat.com>
731         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
732         types, not just __int128.
733         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
734         types, not just __int128.
735         (cpp_atomic_builtins): Round pointer sizes up.
736         (type_suffix): Use type precision, not specific types.
737         * c-common.c (c_common_reswords): Remove __int128 special case.
738         (c_common_type_for_size): Check for all __intN types, not just
739         __int128.
740         (c_common_type_for_mode): Likewise.
741         (c_common_signed_or_unsigned_type): Likewise.
742         (c_build_bitfield_integer_type): Likewise.
743         (c_common_nodes_and_builtins): Likewise.
744         (keyword_begins_type_specifier): Likewise.
745         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
746         __intN variants.
748 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
750         * c-common.c: Use hash_table instead of hashtab.
752 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
754         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
755         C++11 section.
757 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
759         PR c++/54427
760         PR c++/57198
761         PR c++/58845
762         * c-common.c (warn_logical_operator): Punt for vectors.
764 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
766         Implement SD-6: SG10 Feature Test Recommendations
767         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
768         macros and the __has_header macro.
770 2014-09-30  Jason Merrill  <jason@redhat.com>
772         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
773         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
774         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
776         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
777         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
779         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
780         * c-common.c (c_common_reswords): Remove __is_convertible_to.
782 2014-09-24  Marek Polacek  <polacek@redhat.com>
784         PR c/61405
785         PR c/53874
786         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
788 2014-09-23  Andi Kleen  <ak@linux.intel.com>
790         * c-common.c (handle_no_reorder_attribute): New function.
791         (c_common_attribute_table): Add no_reorder attribute.
793 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
795         * c-cppbuiltin.c (c_cpp_builtins): Define
796         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
797         modes.
799 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
801         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
802         for supported floating-point modes.
804 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
806         * c.opt (Wpsabi): Use LangEnabledBy.
807         * c-opts.c (c_common_handle_option): Do not handle here.
809 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
811         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
812         macros for floating-point modes.
814 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
816         PR target/58757
817         * c-cppbuiltin.c (builtin_define_float_constants): Correct
818         __*_DENORM_MIN__ without denormals.
820 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
822         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
823         ubsan_instrument_vla, ubsan_instrument_return): Adjust
824         ubsan_create_data callers.
825         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
826         index is constant or BIT_AND_EXPR with constant mask and is
827         small enough for the bound.
828         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
829         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
831 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
833         * c.opt: Add CppReason to various flags.
834         (Wdate-time): Re-sort.
835         * c-common.c: Include c-common.h earlier.
836         (struct reason_option_codes_t): Delete.
837         (c_option_controlling_cpp_error): Prefix global type and struct
838         with cpp_.
840 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
842         * c.opt (Wnormalized): New.
843         (Wnormalized=): Use Enum and Reject Negative.
844         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
846 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
848         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
849         digits of floating-point modes if -fbuilding-libgcc.
851 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
853         * c-cppbuiltin.c (c_cpp_builtins): Also define
854         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
855         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
856         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
857         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
858         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
859         __LIBGCC_STACK_GROWS_DOWNWARD__,
860         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
861         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
862         __LIBGCC_DWARF_FRAME_REGISTERS__,
863         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
864         __LIBGCC_STACK_POINTER_REGNUM__ and
865         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
866         (builtin_define_with_value): Handle backslash-escaping in string
867         macro values.
869 2014-09-05  Richard Biener  <rguenther@suse.de>
871         PR middle-end/63148
872         * c-format.c (check_format_arg): Properly handle
873         effectively signed POINTER_PLUS_EXPR offset.
875 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
877         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
878         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
879         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
880         and Init.
881         * c-opts.c (c_common_handle_option): Do not handle here.
882         (sanitize_cpp_opts): Likewise.
883         * c-common.c (struct reason_option_codes_t): Handle
884         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
886 2014-09-03  Marek Polacek  <polacek@redhat.com>
888         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
890 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
891             Balaji V. Iyer  <balaji.v.iyer@intel.com>
892             Igor Zamyatin  <igor.zamyatin@intel.com>
894         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
895         * c-common.c (c_common_reswords): Added _Cilk_for.
896         * c-common.h (enum rid): Added RID_CILK_FOR.
897         (cilk_for_number_of_iterations): Add declaration.
898         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
899         CILK_FOR.
900         * c-pragma.c (init_pragma): Register "grainsize" pragma.
901         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
903 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
905         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
906         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
907         Wundef): Use CPP, Var and Init.
908         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
910 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
912         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
913         * c-opts.c (c_common_handle_option): Do not handle here.
915 2014-08-25  Jason Merrill  <jason@redhat.com>
917         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
918         -std=c++14 and -std=gnu++14, rather than the reverse.
919         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
920         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
921         * c-common.h (cxx_dialect): Remove cxx1y.
923 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
925         * c-common.h (enum cxx_dialect): Add cxx14.
926         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
927         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
928         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
930 2014-08-22  Jason Merrill  <jason@redhat.com>
932         * c.opt (std=gnu++17): Fix alias.
934 2014-08-22  Marek Polacek  <polacek@redhat.com>
936         PR c++/62199
937         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
938         check for vector types.  Drop LHS argument.
939         * c-common.h (warn_logical_not_parentheses): Adjust.
941 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
943         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
944         (Wmultichar): Likewise.
945         (Wdate-time): Use C-family languages instead of Common. Use CPP
946         and Var.
947         * c-opts.c (c_common_handle_option): Do not handle the above
948         options here.
949         (sanitize_cpp_opts): Likewise.
951 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
953         PR fortran/44054
954         * c-opts.c: Include tree-diagnostics.h.
955         (c_diagnostic_finalizer): New.
956         (c_common_initialize_diagnostics): Use it.
958 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
960         PR preprocessor/51303
961         * c-common.c (struct reason_option_codes_t option_codes):
962         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
964 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
966         PR c/60975
967         PR c/53063
968         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
969         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
970         (c_common_post_options): Call init_global_opts_from_cpp.
971         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
973 2014-08-19  Marek Polacek  <polacek@redhat.com>
975         PR c++/62153
976         * c-common.c (maybe_warn_bool_compare): New function.
977         * c-common.h (maybe_warn_bool_compare): Declare.
978         * c.opt (Wbool-compare): New option.
980 2014-08-19  Marek Polacek  <polacek@redhat.com>
982         * c.opt (Wc99-c11-compat): New option.
984 2014-08-19  Marek Polacek  <polacek@redhat.com>
986         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
987         to warn_c90_c99_compat.
988         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
989         to -1.
991 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
992             Steven Bosscher  <steven@gcc.gnu.org>
994         PR c/52952
995         * c-format.c: Add extra_arg_loc and format_string_loc to struct
996         format_check_results.
997         (check_function_format): Use true and add comment for boolean
998         argument.
999         (finish_dollar_format_checking): Use explicit location when warning.
1000         (check_format_info): Likewise.
1001         (check_format_arg): Set extra_arg_loc and format_string_loc.
1002         (check_format_info_main): Use explicit location when warning.
1003         (check_format_types): Pass explicit location.
1004         (format_type_warning): Likewise.
1006 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1008         PR fortran/44054
1009         * c-format.c: Handle Fortran flags.
1011 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1013         PR other/61962
1014         * array-notation-common.c (find_rank): Added handling for other
1015         types of references.
1017 2014-08-10  Marek Polacek  <polacek@redhat.com>
1019         PR c/51849
1020         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1021         * c.opt (Wc90-c99-compat): Add option.
1023 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
1025         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1027 2014-08-03  Marek Polacek  <polacek@redhat.com>
1029         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
1030         (c_add_case_label): Pass loc to check_case_value.
1032 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1034         * cilk.c: Use hash_map instead of pointer_map.
1036 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1038         * c-gimplify.c: Use hash_set instead of pointer_set.
1040 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
1042         PR middle-end/61455
1043         * array-notation-common.c (extract_array_notation_exprs): Handling
1044         of DECL_EXPR added.
1046 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
1048         * c-common.h (min_align_of_type): Removed prototype.
1049         * c-common.c (min_align_of_type): Removed.
1050         * c-ubsan.h (ubsan_maybe_instrument_reference,
1051         ubsan_maybe_instrument_member_call): New prototypes.
1052         * c-ubsan.c: Include stor-layout.h and builtins.h.
1053         (ubsan_maybe_instrument_reference_or_call,
1054         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1055         functions.
1057 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
1059         PR c++/60517
1060         * c.opt (-Wreturn-local-addr): Move to common.opt.
1062 2014-07-30  Jason Merrill  <jason@redhat.com>
1064         PR c++/61659
1065         PR c++/61687
1066         Revert:
1067         * c.opt (-fuse-all-virtuals): New.
1069 2014-07-30  Tom Tromey  <tromey@redhat.com>
1071         PR c/59855
1072         * c.opt (Wdesignated-init): New option.
1073         * c-common.c (c_common_attribute_table): Add "designated_init".
1074         (handle_designated_init): New function.
1076 2014-07-24  Marek Polacek  <polacek@redhat.com>
1078         PR c/57653
1079         * c-opts.c (c_finish_options): If -imacros is in effect, return.
1081 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
1083         PR preprocessor/60723 - missing system-ness marks for macro tokens
1084         * c-ppoutput.c (struct print::prev_was_system_token): New data
1085         member.
1086         (init_pp_output): Initialize it.
1087         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1088         (do_line_change): Return a flag saying if a line marker was
1089         emitted or not.
1090         (scan_translation_unit): Detect if the system-ness of the token we
1091         are about to emit is different from the one of the previously
1092         emitted token.  If so, emit a line marker.  Avoid emitting useless
1093         adjacent line markers.  Avoid emitting line markers for tokens
1094         originating from the expansion of built-in macros.
1095         (scan_translation_unit_directives_only): Adjust.
1097 2014-07-15  Marek Polacek  <polacek@redhat.com>
1099         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1100         TYPE_MAX_VALUE is NULL.
1102 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
1104         PR middle-end/61294
1105         * c.opt (Wmemset-transposed-args): New warning.
1107 2014-07-10  Jason Merrill  <jason@redhat.com>
1109         PR c++/61659
1110         PR c++/61687
1111         * c.opt (-fuse-all-virtuals): New.
1113 2014-07-09  Richard Biener  <rguenther@suse.de>
1115         PR c-family/61741
1116         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1117         using unsigned arithmetic if overflow does not wrap instead of
1118         if overflow is undefined.
1120 2014-07-06  Marek Polacek  <polacek@redhat.com>
1122         PR c/6940
1123         * c.opt (Wsizeof-array-argument): New option.
1125 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
1127         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
1128         comments->count <= 1, as comments->entries might be NULL.
1130 2014-07-01  Marek Polacek  <polacek@redhat.com>
1132         * c.opt (Wint-conversion): New option.
1134 2014-07-01  Marek Polacek  <polacek@redhat.com>
1136         PR c/58286
1137         * c.opt (Wincompatible-pointer-types): New option.
1139 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
1141         PR c++/51400
1142         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1143         Do not discard TYPE_QUALS of type.
1145 2014-06-26  Jason Merrill  <jason@redhat.com>
1147         * c-common.h (enum cxx_dialect): Add cxx1z.
1148         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1149         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1151 2014-06-26  Teresa Johnson  <tejohnson@google.com>
1153         * c-common.h (get_dump_info): Declare.
1154         * c-gimplify.c (c_genericize): Use saved dump files.
1155         * c-opts.c (c_common_parse_file): Begin and end dumps
1156         once around parsing invocation.
1157         (get_dump_info): New function.
1159 2014-06-23  Marek Polacek  <polacek@redhat.com>
1160             Andrew MacLeod  <amacleod@redhat.com>
1162         PR c/61553
1163         * c-common.c (get_atomic_generic_size): Don't segfault if the
1164         type doesn't have a size.
1166 2014-06-20  Marek Polacek  <polacek@redhat.com>
1168         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1169         (ubsan_walk_array_refs_r): New function.
1170         (c_genericize): Instrument array bounds.
1171         * c-ubsan.c: Include "internal-fn.h".
1172         (ubsan_instrument_division): Mark instrumented arrays as having
1173         side effects.  Adjust ubsan_type_descriptor call.
1174         (ubsan_instrument_shift): Likewise.
1175         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1176         (ubsan_instrument_bounds): New function.
1177         (ubsan_array_ref_instrumented_p): New function.
1178         (ubsan_maybe_instrument_array_ref): New function.
1179         * c-ubsan.h (ubsan_instrument_bounds): Declare.
1180         (ubsan_array_ref_instrumented_p): Declare.
1181         (ubsan_maybe_instrument_array_ref): Declare.
1183 2014-06-20  Hale Wang  <hale.wang@arm.com>
1185         PR lto/61123
1186         * c.opt (fshort-enums): Add to LTO.
1187         * c.opt (fshort-wchar): Likewise.
1189 2014-06-16  Marek Polacek  <polacek@redhat.com>
1191         PR c/60439
1192         * c.opt (Wswitch-bool): Add Var.
1194 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
1196         PR middle-end/61486
1197         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1198         #pragma omp target teams or
1199         #pragma omp {,target }teams distribute simd.
1201 2014-06-12  Jason Merrill  <jason@redhat.com>
1203         * c.opt (Wabi=, fabi-compat-version): New.
1204         * c-opts.c (c_common_handle_option): Handle -Wabi=.
1205         (c_common_post_options): Handle flag_abi_compat_version default.
1206         Disallow -fabi-compat-version=1.
1207         * c-common.h (abi_version_crosses): New.
1209 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
1211         * c-common.c (handle_section_attribute): Update handling for
1212         section names that are no longer trees.
1214 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1216         PR fortran/60928
1217         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1218         (omp_pragmas): ... back here.
1220 2014-06-05  Marek Polacek  <polacek@redhat.com>
1222         PR c/49706
1223         * c-common.c (warn_logical_not_parentheses): New function.
1224         * c-common.h (warn_logical_not_parentheses): Declare.
1225         * c.opt (Wlogical-not-parentheses): New option.
1227 2014-06-04  Marek Polacek  <polacek@redhat.com>
1229         PR c/30020
1230         * c-common.c (check_case_bounds): Add location parameter.
1231         Use it.
1232         (c_add_case_label): Pass loc to check_case_bounds.
1234 2014-06-03  Marek Polacek  <polacek@redhat.com>
1236         PR c/60439
1237         * c.opt (Wswitch-bool): New option.
1239 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1241         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1242         Remove prototypes.
1243         (record_types_used_by_current_var_decl): Move prototype to where
1244         it belongs.
1246         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1247         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1248         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1250 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1252         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1253         * c-common.c (c_common_nodes_and_builtins): Don't initialize
1254         void_zero_node.
1255         * c-pretty-print.c (pp_c_void_constant): New function.
1256         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1257         (c_pretty_printer::expression): Handle VOID_CST.
1258         * cilk.c (extract_free_variables): Likewise.
1259         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1260         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1262 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1264         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1265         * c-pragma.c (push_alignment): Adjust.
1266         (handle_pragma_push_options): Likewise.
1268 2014-05-09  Marek Polacek  <polacek@redhat.com>
1270         PR c/50459
1271         * c-common.c (check_user_alignment): Return -1 if alignment is error
1272         node.
1273         (handle_aligned_attribute): Don't call default_conversion on
1274         FUNCTION_DECLs.
1275         (handle_vector_size_attribute): Likewise.
1276         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1277         (handle_sentinel_attribute): Call default_conversion and allow even
1278         integral types as an argument.
1280 2014-05-08  Marek Polacek  <polacek@redhat.com>
1282         PR c/61053
1283         * c-common.c (min_align_of_type): New function factored out from...
1284         (c_sizeof_or_alignof_type): ...here.
1285         * c-common.h (min_align_of_type): Declare.
1287 2014-05-08  Marek Polacek  <polacek@redhat.com>
1289         PR c/61077
1290         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1291         parameter type of main.
1293 2014-05-07  DJ Delorie  <dj@redhat.com>
1295         * c-cppbuiltin.c (print_bits_of_hex): New.
1296         (builtin_define_type_minmax): Print values using hex so as not to
1297         require a pre-computed list of string values.
1299 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1300             Mike Stump  <mikestump@comcast.net>
1301             Richard Sandiford  <rdsandiford@googlemail.com>
1303         * c-ada-spec.c: Include wide-int.h.
1304         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1305         (dump_generic_ada_node): Use wide-int interfaces.
1306         * c-common.c: Include wide-int-print.h.
1307         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1308         (pointer_int_sum): Use wide-int interfaces.
1309         (c_common_nodes_and_builtins): Use make_int_cst.
1310         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1311         (handle_alloc_size_attribute): Use wide-int interfaces.
1312         (get_nonnull_operand): Likewise.
1313         * c-format.c (get_constant): Use tree_fits_uhwi_p.
1314         * c-lex.c: Include wide-int.h.
1315         (narrowest_unsigned_type): Take a widest_int rather than two
1316         HOST_WIDE_INTs.
1317         (narrowest_signed_type): Likewise.
1318         (interpret_integer): Update accordingly.  Use wide-int interfaces.
1319         (lex_charconst): Use wide-int interfaces.
1320         * c-pretty-print.c: Include wide-int.h.
1321         (pp_c_integer_constant): Use wide-int interfaces.
1322         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1323         INT_CST_LT_UNSIGNED.
1325 2014-05-06  Richard Biener  <rguenther@suse.de>
1327         * c-opts.c (c_common_post_options): For -freestanding,
1328         -fno-hosted and -fno-builtin disable pattern recognition
1329         if not enabled explicitely.
1331 2014-05-02  Marek Polacek  <polacek@redhat.com>
1333         * c.opt (Wsizeof-pointer-memaccess): Describe option.
1335 2014-05-01  Marek Polacek  <polacek@redhat.com>
1337         PR c/43245
1338         * c.opt (Wdiscarded-qualifiers): Add.
1340 2014-04-30  Marek Polacek  <polacek@redhat.com>
1342         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
1343         INT_MIN / -1 sanitization only for integer types.
1345 2014-04-25  Marek Polacek  <polacek@redhat.com>
1347         PR c/18079
1348         * c-common.c (handle_noinline_attribute): Warn if the attribute
1349         conflicts with always_inline attribute.
1350         (handle_always_inline_attribute): Warn if the attribute conflicts
1351         with noinline attribute.
1353 2014-04-25  Marek Polacek  <polacek@redhat.com>
1355         PR c/60156
1356         * c-common.c (check_main_parameter_types): Warn about variadic main.
1358 2014-04-24  Mike Stump  <mikestump@comcast.net>
1360         * c.opt (Wshadow-ivar): Default to on.
1362 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
1364         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1366 2014-04-23  Marek Polacek  <polacek@redhat.com>
1368         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1370 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1372         PR sanitizer/60275
1373         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1374         if flag_sanitize_undefined_trap_on_error.
1375         (ubsan_instrument_division, ubsan_instrument_shift,
1376         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
1377         if !flag_sanitize_recover.
1379 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
1381         PR libstdc++/43622
1382         * c-common.c (registered_builtin_types): Make non-static.
1383         * c-common.h (registered_builtin_types): Declare.
1385 2014-04-14  Richard Biener  <rguenther@suse.de>
1386         Marc Glisse  <marc.glisse@inria.fr>
1388         PR c/60819
1389         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1390         apply may-alias the scalar pointer type when applicable.
1392 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1394         PR middle-end/60467
1395         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1396         as possible argument for Cilk_spawn.
1398 2014-04-11  Tobias Burnus  <burnus@net-b.de>
1400         PR c/60194
1401         * c.opt (Wformat-signedness): Add
1402         * c-format.c(check_format_types): Use it.
1404 2014-04-11  Jason Merrill  <jason@redhat.com>
1406         PR c++/57926
1407         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1408         default_conversion for an array argument.
1410 2014-04-08  Marek Polacek  <polacek@redhat.com>
1412         PR sanitizer/60745
1413         * c-ubsan.c: Include asan.h.
1414         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1416 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1418         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1420 2014-04-02  Marek Polacek  <polacek@redhat.com>
1422         * c-common.h (c_expand_expr): Remove declaration.
1424 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1426         PR c++/60689
1427         * c-common.c (add_atomic_size_parameter): When creating new
1428         params vector, push the size argument first.
1430 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
1432         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1433         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1434         ubsan_create_data callers.
1436 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
1438         PR debug/60603
1439         * c-opts.c (c_finish_options): Restore cb_file_change call to
1440         <built-in>.
1442 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
1444         PR middle-end/36282
1445         * c-pragma.c (apply_pragma_weak): Only look at
1446         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1447         DECL_ASSEMBLER_NAME_SET_P (decl).
1448         (maybe_apply_pending_pragma_weaks): Exit early if
1449         vec_safe_is_empty (pending_weaks) rather than only when
1450         !pending_weaks.
1451         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
1452         set assembler name back to NULL afterwards.
1454 2014-03-11  Jason Merrill  <jason@redhat.com>
1456         * c.opt: Add -std=gnu++14.
1458 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
1460         * c-opts.c (c_common_post_options): Don't override
1461         -ffp-contract=fast if unsafe-math-optimizations is on.
1463 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
1465     * c.opt: Enable LTO FE for fshort-double.
1467 2014-03-07  Jason Merrill  <jason@redhat.com>
1469         * c.opt: Add -std=c++14.
1471 2014-03-06  Marek Polacek  <polacek@redhat.com>
1473         PR c/60197
1474         * cilk.c (contains_cilk_spawn_stmt): New function.
1475         (contains_cilk_spawn_stmt_walker): Likewise.
1476         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1477         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1479 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
1481         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1482         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1483         even when flag_preprocess_only.
1485 2014-02-26  Jason Merrill  <jason@redhat.com>
1487         PR c++/59231
1488         PR c++/11586
1489         * c-common.c (shorten_compare): Don't check
1490         c_inhibit_evaluation_warnings.
1492 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
1494         PR c/37743
1495         * c-common.c (c_common_nodes_and_builtins): When initializing
1496         c_uint{16,32,64}_type_node, also set corresponding
1497         uint{16,32,64}_type_node to the same value.
1499         PR c++/60267
1500         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1501         for PRAGMA_IVDEP if flag_preprocess_only.
1503 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
1505         PR c/60101
1506         * c-common.c (merge_tlist): If copy is true, call new_tlist,
1507         if false, add ADD itself, rather than vice versa.
1508         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1509         copy.  For SAVE_EXPR, only call merge_tlist once.
1511 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
1513         PR middle-end/60092
1514         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1515         and tree_to_uhwi.
1516         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1517         functions.
1518         (c_common_attribute_table): Add alloc_align and assume_aligned
1519         attributes.
1521 2014-02-06  Marek Polacek  <polacek@redhat.com>
1523         PR c/60087
1524         * c-common.c (warn_for_sign_compare): Call warning_at with location
1525         instead of warning.
1527 2014-02-05  Marek Polacek  <polacek@redhat.com>
1529         PR c/53123
1530         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1531         statement.
1533 2014-02-04  Marek Polacek  <polacek@redhat.com>
1535         PR c/60036
1536         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1537         SAVE_EXPR.
1539 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
1541         PR c++/53017
1542         PR c++/59211
1543         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1544         handle_vector_size_attribute, handle_nonnull_attribute): Call
1545         default_conversion on the attribute argument.
1546         (handle_nonnull_attribute): Increment the argument number.
1548 2014-01-31  Marek Polacek  <polacek@redhat.com>
1550         PR c/59963
1551         * c-common.c (add_atomic_size_parameter): Pass vNULL to
1552         build_function_call_vec.
1553         (resolve_overloaded_builtin): Likewise.
1554         * c-common.h (build_function_call_vec): Adjust declaration.
1556 2014-01-30  Marek Polacek  <polacek@redhat.com>
1558         PR c/59940
1559         * c-common.h (unsafe_conversion_p): Adjust declaration.
1560         (warnings_for_convert_and_check): Likewise.
1561         (convert_and_check): Likewise.
1562         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
1563         expansion_point_location_if_in_system_header on it.
1564         (warnings_for_convert_and_check): Add location parameter.  Call
1565         expansion_point_location_if_in_system_header on it.  Use it.
1566         (convert_and_check): Add location parameter.  Use it.
1567         (conversion_warning): Likewise.
1568         (c_add_case_label): Adjust convert_and_check calls.
1569         (scalar_to_vector): Adjust unsafe_conversion_p calls.
1571 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1573         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1574         flag_cilkplus.
1575         * c-pragma.c (init_pragma): Likewise.
1576         * c.opt: Likewise.
1578 2014-01-23  Marek Polacek  <polacek@redhat.com>
1580         PR c/59846
1581         * c-common.c (shorten_compare): Add location_t parameter.
1582         * c-common.h (shorten_binary_op): Adjust declaration.
1584 2014-01-23  Marek Polacek  <polacek@redhat.com>
1586         PR c/58346
1587         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1588         * c-common.h: Declare it.
1590 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
1592         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1593         * c-ada-spec.c (dump_ads): Likewise.
1594         (cpp_check): Likewise.
1595         (dump_ada_specs): Likewise.
1597 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
1599         PR c++/49718
1600         * c-common.c (handle_no_instrument_function_attribute): Allow
1601         no_instrument_function attribute in class member
1602         definition/declaration.
1604 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1606         PR c/58943
1607         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1608         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
1609         being COMPOUND_EXPR.
1610         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1611         operand a SAVE_EXPR and second MODIFY_EXPR.
1613 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1615         PR target/58115
1616         * c-pch.c (c_common_write_pch): Call
1617         prepare_target_option_nodes_for_pch.
1619 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1621         Update copyright years
1623 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1625         * array-notation-common.c, c-cilkplus.c: Use the standard form for
1626         the copyright notice.
1628 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
1630         * c-ada-spec.c (print_constructor): New function.
1631         (print_destructor): Retrieve the origin of the destructor.
1632         (print_ada_declaration): Revamp handling of constructors/destructors.
1634 2013-12-23  Stuart Hastings <stuart@apple.com>
1635             Bill Maddox  <maddox@google.com>
1636             Jason Merrill  <jason@redhat.com>
1638         * c.opt: Add -fdeclone-ctor-dtor.
1639         * c-opts.c (c_common_post_options): Default to on iff -Os.
1641 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1643         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1644         attribute.
1645         * c-pragma.h (enum pragma_cilk_clause): Remove.
1646         (enum pragma_omp_clause):  Added the following fields:
1647         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1648         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1649         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1650         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1651         PRAGMA_CILK_CLAUSE_UNIFORM.
1653         
1654 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1656         * cilk.c (cilk_outline): Made this function non-static.
1657         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1658         (create_cilk_wrapper): Added a new parameter: a function pointer.
1659         (c_install_body_w_frame_cleanup): Remove
1660         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1661         * c-common.h (cilk_outline): New prototype.
1662         (gimplify_cilk_spawn): Removed two parameters.
1663         (cilk_install_body_with_frame_cleanup): New prototype.
1664         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1665         CILK_SPAWN_STMT case.
1667 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1669         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1671         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1672         (int_array_type_node): Remove.
1673         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1675 2013-12-05  Marek Polacek  <polacek@redhat.com>
1677         PR c/52023
1678         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1679         [ADJUST_FIELD_ALIGN].
1681 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1683         PR c/52023
1684         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1685         and check field alignment if set.
1686         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1687         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1689 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1690             Marek Polacek  <polacek@redhat.com>
1692         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1693         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1695 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1697         PR c/59309
1698         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1699         arguments.
1701 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1703         PR c/59280
1704         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1705         goto invalid.  If it is error_mark_node, don't issue further
1706         diagnostics.
1708 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1710         * c.opt (Wopenmp-simd): New.
1712 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1714         * c-ubsan.h (ubsan_instrument_return): New prototype.
1715         * c-ubsan.c (ubsan_instrument_return): New function.
1717 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1719         * c-common.c: Add required include files from gimple.h.
1720         * c-gimplify.c: Likewise
1721         * cilk.c: Likewise
1723 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1725         * c-common.c (unsafe_conversion_p): Remove use of
1726         EXPR_LOC_OR_HERE macro.
1727         (conversion_warning): Likewise.
1728         (warnings_for_convert_and_check): Likewise.
1729         (warn_for_collisions_1): Likewise.
1730         (shorten_compare): Likewise, and remove use of in_system_header
1731         macro, using the location from the former.
1732         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1733         (cb_def_pragma): Remove use of in_system_header macro.
1734         (lex_string): Likewise.
1735         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1737 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1738             Mike Stump  <mikestump@comcast.net>
1739             Richard Sandiford  <rdsandiford@googlemail.com>
1741         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1742         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1743         tree_fits_shwi_p or tree_fits_uhwi_p.
1744         (dump_generic_ada_node): Likewise.
1745         * c-format.c (check_format_arg): Likewise.
1746         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1748 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1750         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1752 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1754         PR c/53001
1755         * c-common.c (unsafe_conversion_p): Make this function
1756         return an enumeration with more detail.
1757         (conversion_warning): Use the new return type of
1758         unsafe_conversion_p to separately warn either about conversions
1759         that lower floating point number precision or about the other
1760         kinds of conversions.
1761         * c-common.h (enum conversion_safety): New enumeration.
1762         (unsafe_conversion_p): switching return type to
1763         conversion_safety enumeration.
1764         * c.opt: Adding new warning -Wfloat-conversion and
1765         enabling it with -Wconversion.
1767 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1769         * c-opts.c: Include plugin.h.
1770         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1772 2013-11-19  Marek Polacek  <polacek@redhat.com>
1774         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1775         call.
1776         (ubsan_instrument_shift): Likewise.
1777         (ubsan_instrument_vla): Likewise.
1779 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1781         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1782         cast to unsigned type.
1784 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1786         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1787         tree_low_cst.
1788         (complete_array_type): Update comment to refer to tree_to_[su]hwi
1789         rather than tree_low_cst.
1791 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1793         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1794         tree_to_uhwi throughout.
1796 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1798         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1799         tree_low_cst (..., 0) with tree_to_shwi throughout.
1801 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1803         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1804         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1806 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1808         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1809         host_integerp (..., 0) with tree_fits_shwi_p throughout.
1811 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1813         * c-cilkplus.c: New file.
1814         * c-common.c (readonly_error): Add location argument.
1815         * c-common.h (readonly_error): Same.
1816         (c_finish_cilk_clauses): Protoize.
1817         (c_check_cilk_loop): Same.
1818         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1819         Do not fail on error_mark_node.
1820         Abstract increment canonicalization to here...
1821         (c_omp_for_incr_canonicalize_ptr): New.
1822         c-pragma.c (init_pragma): Register "simd" pragma.
1823         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1824         (enum pragma_cilk_clause): New.
1826 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1828         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1829         wchar_type and host_integerp checks.
1831 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1833         * c-common.c: Likewise.
1834         * c-gimplify.c: Likewise.
1835         * cilk.c: Likewise.
1837 2013-11-14  Diego Novillo  <dnovillo@google.com>
1839         * c-common.c: Include fold-const.h.
1840         Include stor-layout.h.
1841         Include calls.h.
1842         Include stringpool.h.
1843         Include attribs.h.
1844         Include varasm.h.
1845         Include trans-mem.h.
1846         * c-cppbuiltin.c: Include stor-layout.h.
1847         Include stringpool.h.
1848         * c-format.c: Include stringpool.h.
1849         * c-lex.c: Include stringpool.h.
1850         Include stor-layout.h.
1851         * c-pragma.c: Include stringpool.h.
1852         Include attribs.h.
1853         Include varasm.h.
1854         Include gcc-symtab.h.
1855         * c-pretty-print.c: Include stor-layout.h.
1856         Include attribs.h.
1857         * cilk.c: Include stringpool.h.
1858         Include calls.h.
1860 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1862         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1863         * c-common.c (c_common_reswords): Add __auto_type.
1864         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1866 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1868         * c-common.c: Include gimplify.h.
1869         * c-gimplify.c: Likewise.
1870         * cilk.c: Likewise.
1871         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1872         * c-ubsan.c: Don't include gimple.h.
1874 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1876         * c-common.c (c_common_reswords): Add _Thread_local.
1878 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1880         * c-common.c (atomic_size_supported_p): New function.
1881         (resolve_overloaded_atomic_exchange)
1882         (resolve_overloaded_atomic_compare_exchange)
1883         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1884         Use it instead of comparing size with a local list of sizes.
1886 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
1887             Joseph Myers  <joseph@codesourcery.com>
1889         * c-common.h (enum rid): Add RID_ATOMIC.
1890         * c-common.c (c_common_reswords): Add _Atomic.
1891         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1892         (keyword_is_type_qualifier): Accept RID_ATOMIC.
1893         * c-format.c (check_format_types): Check for extra _Atomic
1894         qualifiers in format argument.
1895         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1896         (pp_c_type_qualifier_list): Mention _Atomic in comment.
1898 2013-11-06  Tobias Burnus  <burnus@net-b.de>
1900         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1902 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
1904         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1905         standards modes.
1906         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1907         to mean lack of IEEE 754 support.
1909 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1911         * c.opt (-Wdate-time): New option
1912         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1914 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
1916         * c-cppbuiltin.c (cpp_iec_559_value): Test
1917         flag_excess_precision_cmdline not flag_excess_precision.
1919 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1921         * c.opt (fopenmp-simd): New option.
1922         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1923         (omp_pragmas): ... this new struct.
1924         (c_pp_lookup_pragma): Also walk omp_pragmas.
1925         (init_pragma): Init pragmas for -fopenmp-simd.
1927 2013-11-04  Marek Polacek  <polacek@redhat.com>
1929         PR c++/58979
1930         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1932 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1934         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1935         New functions.
1936         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1938 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1940         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1941         (dump_ada_specs): Adjust prototype of second callback.
1942         * c-ada-spec.c (cpp_check): New global variable.
1943         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1944         (print_generic_ada_decl): Likewise.
1945         (has_static_fields): Change return type to bool and add guard.
1946         (has_nontrivial_methods): New predicate.
1947         (is_tagged_type): Change return type to bool.
1948         (separate_class_package): Call has_nontrivial_methods.
1949         (pp_ada_tree_identifier): Minor tweaks.
1950         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1951         (dump_ada_array_domains): Likewise.
1952         (dump_ada_array_type): Likewise.
1953         (dump_template_types): Remove cpp_check parameter and do not pass it to
1954         dump_generic_ada_node.
1955         (dump_ada_template): Likewise.
1956         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1957         recursively.
1958         (print_ada_methods): Change return type to integer.  Remove cpp_check
1959         parameter and do not pass it down.
1960         (dump_nested_types): Remove cpp_check parameter and do not pass it to
1961         dump_generic_ada_node.
1962         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
1963         accessing methods.
1964         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1965         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
1966         value of print_ada_methods.
1967         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1968         Set cpp_check to it before invoking dump_ada_nodes.
1969         (dump_ada_specs): Likewise.
1971 2013-11-03  Marek Polacek  <polacek@redhat.com>
1973         * c-ubsan.c: Don't include hash-table.h.
1974         (ubsan_instrument_vla): New function.
1975         * c-ubsan.h: Declare it.
1977 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1979         Automated part of renaming of symtab_node_base to symtab_node.
1981         Patch autogenerated by rename_symtab.py from
1982         https://github.com/davidmalcolm/gcc-refactoring-scripts
1983         revision 58bb219cc090b2f4516a9297d868c245495ee622
1985         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1986         symtab_node_base to symtab_node.
1988 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
1990         Implement C++14 digit separators.
1991         * c-lex.c (interpret_float): Remove digit separators from scratch string
1992         before building real literal.
1994 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
1996         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1998 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2000         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2001         fields.
2002         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2003         enabled.
2004         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2005         (insert_cilk_frame): New prototype.
2006         (cilk_init_builtins): Likewise.
2007         (gimplify_cilk_spawn): Likewise.
2008         (c_cilk_install_body_w_frame_cleanup): Likewise.
2009         (cilk_detect_spawn_and_unwrap): Likewise.
2010         (cilk_set_spawn_marker): Likewise.
2011         (build_cilk_sync): Likewise.
2012         (build_cilk_spawn): Likewise.
2013         * cilk.c: New file.
2015 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
2017         Patch autogenerated by refactor_symtab.py from
2018         https://github.com/davidmalcolm/gcc-refactoring-scripts
2019         revision 58bb219cc090b2f4516a9297d868c245495ee622
2021         * c-gimplify.c (c_genericize): Update for conversion of symtab types
2022         to a true class hierarchy.
2023         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2025 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
2027         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2029 2013-10-26  Jeff Law  <law@redhat.com>
2031         * c-common.c (c_define_builtins): Remove mudflap support.
2032         * c.opt: Ignore and warn for mudflap options.
2034 2013-10-24  Tobias Burnus  <burnus@net-b.de>
2036         PR other/33426
2037         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2038         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2040 2013-10-23  Jason Merrill  <jason@redhat.com>
2042         * c-format.c (gcc_cxxdiag_char_table): Add %X.
2044 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
2046         * c-common.h (omp_clause_mask::operator !=): New method.
2047         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2048         instead of if (mask & something) tests everywhere.
2050         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2051         201307 instead of 201107.
2052         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2053         (c_common_attribute_table): Add "omp declare target" and
2054         "omp declare simd" attributes.
2055         (handle_omp_declare_target_attribute,
2056         handle_omp_declare_simd_attribute): New functions.
2057         * c-omp.c: Include c-pragma.h.
2058         (c_finish_omp_taskgroup): New function.
2059         (c_finish_omp_atomic): Add swapped argument, if true,
2060         build the operation first with rhs, lhs arguments and use NOP_EXPR
2061         build_modify_expr.
2062         (c_finish_omp_for): Add code argument, pass it down to make_code.
2063         (c_omp_split_clauses): New function.
2064         (c_split_parallel_clauses): Removed.
2065         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2066         c_omp_declare_simd_clauses_to_decls): New functions.
2067         * c-common.h (omp_clause_mask): New type.
2068         (OMP_CLAUSE_MASK_1): Define.
2069         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2070         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2071         omp_clause_mask::operator |, omp_clause_mask::operator &,
2072         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2073         omp_clause_mask::operator ==): New methods.
2074         (enum c_omp_clause_split): New.
2075         (c_finish_omp_taskgroup): New prototype.
2076         (c_finish_omp_atomic): Add swapped argument.
2077         (c_finish_omp_for): Add code argument.
2078         (c_omp_split_clauses): New prototype.
2079         (c_split_parallel_clauses): Removed.
2080         (c_omp_declare_simd_clauses_to_numbers,
2081         c_omp_declare_simd_clauses_to_decls): New prototypes.
2082         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2083         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2084         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2085         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2086         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2087         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2088         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2089         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2090         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2091         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2092         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2093         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2094         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2095         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2096         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2097         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2098         PRAGMA_OMP_CLAUSE_UNIFORM.
2100 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
2102         PR tree-optimization/20318
2103         * c-common.c (handle_returns_nonnull_attribute): New function.
2104         (c_common_attribute_table): Add returns_nonnull.
2106 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
2108         PR c++/19476
2109         * c.opt (fcheck-new): Move to common.opt.
2111 2013-09-25  Marek Polacek  <polacek@redhat.com>
2112             Jakub Jelinek  <jakub@redhat.com>
2114         PR sanitizer/58413
2115         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2116         an expression if we can prove it is correct.
2117         (ubsan_instrument_division): Likewise.  Remove unnecessary
2118         check.
2120 2013-09-18  Marek Polacek  <polacek@redhat.com>
2122         PR sanitizer/58411
2123         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2124         Declare it.
2125         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2127 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
2129         PR target/48094
2130         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2131         fobjc-gc, freplace-objc-classes): Accept for LTO.
2133 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
2135         * c-target.def: New hook
2137 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
2139         PR c++/43452
2140         * c.opt (Wdelete-incomplete): Add.
2142 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2144         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2145         (vector_types_compatible_elements_p): New function.
2146         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2147         declaration.
2148         (vector_types_compatible_elements_p): Declare.
2150 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2152         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2153         a virtual member function.
2154         (pp_simple_type_specifier): Remove.
2155         (pp_c_type_specifier): Likewise.
2156         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2157         Rename from pp_c_type_specifier.  Adjust.
2158         (c_pretty_printer::c_pretty_printer): Do not assign to
2159         simple_type_specifier.
2161 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2163         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2164         member function.
2165         (c_pretty_printer::storage_class_specifier): Likewise.
2166         (c_pretty_printer::initializer): Likewise.
2167         (pp_declaration): Remove.
2168         (pp_declaration_specifiers): Likewise.
2169         (pp_abstract_declarator): Likewise.
2170         (pp_declarator): Likewise.
2171         (pp_type_id): Likewise.
2172         (pp_statement): Likewise.
2173         (pp_constant): Likewise.
2174         (pp_id_expression): Likewise.
2175         (pp_primary_expression): Likewise.
2176         (pp_unary_expression): Likewise.
2177         (pp_multiplicative_expression): Likewise.
2178         (pp_conditional_expression): Likewise.
2179         (pp_assignment_expression): Likewise.
2180         (pp_expression): Likewise.
2181         (pp_c_type_id): Likewise.
2182         (pp_c_storage_class_specifier): Likewise.
2183         * c-pretty-print.c (pp_c_type_cast): Tidy.
2184         (pp_c_pointer): Likewise.
2185         (pp_c_type_specifier): Likewise.
2186         (pp_c_parameter_type_list): Likewise.
2187         (pp_c_function_definition): Likewise.
2188         (pp_c_init_declarator): Likewise.
2189         (pp_c_initializer_list): Likewise.
2190         (pp_c_constructor_elts): Likewise.
2191         (c_pretty_printer::direct_abstract_declarator): Likewise.
2192         (c_pretty_printer::declaration_specifiers): Likewise.
2193         (c_pretty_printer::primary_expression): Likewise.
2194         (c_pretty_printer::postfix_expression): Likewise.
2195         (c_pretty_printer::type_id): Rename from pp_c_type_id.
2196         (c_pretty_printer::storage_class_specifier): Rename from
2197         pp_c_storage_class_specifier.
2198         (c_pretty_printer::initializer): Rename from pp_c_initializer.
2199         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2200         storage_class_specifier, initializer, offset_list, flags.
2202 2013-08-30  Marek Polacek  <polacek@redhat.com>
2204         * c-ubsan.c: New file.
2205         * c-ubsan.h: New file.
2207 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2209         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2210         member function.
2211         (c_pretty_printer::declaration_specifiers): Likewise.
2212         (c_pretty_printer::declarator): Likewise.
2213         (c_pretty_printer::abstract_declarator): Likewise.
2214         (c_pretty_printer::direct_abstract_declarator): Likewise.
2215         (c_pretty_printer::direct_declarator): Likewise.
2216         (c_pretty_printer::function_specifier): Likewise.
2217         (pp_declaration): Adjust.
2218         (pp_declaration_specifiers): Likewise.
2219         (pp_abstract_declarator): Likewise.
2220         (pp_direct_declarator): Likewise.
2221         (pp_function_specifier): Likewise.
2222         (pp_direct_abstract_declarator): Remove as unused.
2223         (pp_c_declaration): Remove.
2224         (pp_c_declaration_specifiers): Likewise.
2225         (pp_c_declarator): Likewise.
2226         (pp_c_direct_declarator): Likewise.
2227         (pp_c_function_specifier): Likewise.
2228         (pp_c_direct_abstract_declarator): Likewise.
2229         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2230         from pp_c_abstract_declarator.  Adjust.
2231         (c_pretty_printer::direct_abstract_declarator):  Rename from
2232         pp_c_direct_abstract_declarator.  Adjust.
2233         (c_pretty_printer::function_specifier): Rename from
2234         pp_c_function_specifier.  Adjust.
2235         (c_pretty_printer::declaration_specifiers): Rename from
2236         pp_c_declaration_specifiers.  Adjust.
2237         (c_pretty_printer::direct_declarator): Rename from
2238         pp_c_direct_declarator.  Adjust.
2239         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
2240         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
2241         (c_pretty_printer::c_pretty_printer): Do not assign to
2242         declaration, declaration_specifiers, declarator,
2243         direct_declarator, direct_abstract_declarator, function_specifier.
2245 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
2247         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2248         virtual member function.
2249         (c_pretty_printer::multiplicative_expression): Likewise.
2250         (c_pretty_printer::conditional_expression): Likewise.
2251         (c_pretty_printer::assignment_expression): Likewise.
2252         (c_pretty_printer::expression): Likewise.
2253         (pp_unary_expression): Adjust.
2254         (pp_multiplicative_expression): Likewise.
2255         (pp_assignment_expression): Likewise.
2256         (pp_conditional_expression): Likewise.
2257         (pp_expression): Likewise.
2258         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2259         from pp_c_unary_expression.  Adjust.
2260         (c_pretty_printer::multiplicative_expression): Rename from
2261         pp_c_multiplicative_expression.  Adjust.
2262         (c_pretty_printer::conditional_expression): Rename from
2263         pp_c_conditional_expression.  Adjust.
2264         (c_pretty_printer::assignment_expression): Rename from
2265         pp_c_assignment_expression.  Adjust.
2266         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
2267         (c_pretty_printer::c_pretty_printer): Do not assign to
2268         unary_expression, multiplicative_expression,
2269         conditional_expression, expression.
2271 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2273         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2274         virtual member function.
2275         (pp_postfix_expression): Adjust.
2276         (pp_c_postfix_expression): Remove.
2277         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2278         from pp_c_postfix_expression.  Adjust.
2279         (c_pretty_printer::c_pretty_printer): Do not assign to
2280         postfix_expression.
2282 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2284         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2285         virtua member function.
2286         (pp_primary_expression): Adjust.
2287         (pp_c_primary_expression): Remove.
2288         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2289         from pp_c_primary_expression.  Adjust.
2290         (pp_c_initializer_list): Use pp_primary_expression.
2291         (c_pretty_printer::c_pretty_printer): Do not assign to
2292         primary_expression.
2294 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2296         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2297         * c-pretty-print.c (M_): Remove.
2298         (c_pretty_printer::translate_string): Define.
2299         (pp_c_type_specifier): Use it.
2300         (pp_c_primary_expression): Likewise.
2301         (pp_c_expression): Likewise.
2303 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2305         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2306         virtual function.
2307         (pp_c_id_expression): Remove.
2308         (pp_id_expression): Adjust.
2309         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2310         pp_c_id_expression.  Adjust.
2311         (pp_c_postfix_expression): Use pp_id_expression.
2312         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2314 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2316         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2317         member function.
2318         (pp_constant): Adjust.
2319         (pp_c_constant): Remove.
2320         * c-pretty-print.c (c_pretty_printer::constant): Rename from
2321         pp_c_constant.  Adjust.
2322         (pp_c_constant)
2323         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2324         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2326 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2328         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2329         (c_pretty_printer::c_pretty_printer): Declare.
2330         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2331         c_pretty_printer_init.  Adjust.
2332         (print_c_tree): Do not call c_pretty_printer_init.
2333         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2335 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
2337         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2339 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2341         PR c++/58080
2342         * c-common.c (pointer_int_sum): Add bool parameter.
2343         * c-common.h (pointer_int_sum): Adjust declaration.
2345 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2347         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
2348         c_pretty_printer variable.
2350 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2352         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2353         (pp_base): Remove.
2354         (pp_c_base): Likewise.  Adjust users.
2355         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2356         (pp_c_whitespace): Do not call pp_base.
2357         (pp_c_left_paren): Likewise.
2358         (pp_c_right_paren): Likewise.
2359         (pp_c_left_brace): Likewise.
2360         (pp_c_right_brace): Likewise.
2361         (pp_c_left_bracket): Likewise.
2362         (pp_c_right_bracket): Likewise.
2363         (pp_c_dot): Likewise.
2364         (pp_c_ampersand): Likewise.
2365         (pp_c_star): Likewise.
2366         (pp_c_arrow): Likewise.
2367         (pp_c_semicolon): Likewise.
2368         (pp_c_complement): Likewise.
2369         (pp_c_exclamation): Likewise.
2370         (pp_c_direct_declarator): Likewise.
2371         (pp_c_ws_string): Likewise.
2372         (pp_c_identifier): Likewise.
2373         (pp_c_statement): Likewise.
2374         (print_c_tree): Likewise.
2376 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
2378         PR c++/58072
2379         * c-common.c (c_parse_error): Catch user-defined literal tokens and
2380         provide useful error strings.
2382 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2384         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2385         printer functions instead of pp_string or operators and punctuators.
2386         (dump_generic_ada_node): Likewise.
2387         * c-pretty-print.c (pp_c_type_specifier): Likewise.
2388         (pp_c_relational_expression): Likewise.
2389         (pp_c_logical_or_expression): Likewise.
2391 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2393         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2394         functions instead of pp_character.
2395         (pp_ada_tree_identifier): Likewise.
2396         (dump_ada_double_name): Likewise.
2397         (dump_ada_function_declaration): Likewise.
2398         (dump_ada_array_domains): Likewise.
2399         (dump_template_types): Likewise.
2400         (dump_generic_ada_node): Likewise.
2401         (print_ada_declaration): Likewise.
2402         (print_ada_struct_decl): Likewise.
2403         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2405 2013-07-23  Tom Tromey  <tromey@redhat.com>
2407         * c-common.h (enum rid) <RID_GENERIC>: New constant.
2408         * c-common.c (c_common_reswords): Add _Generic.
2410 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
2412         * c-common.c: Fix typos.
2413         * c-common.h: Likewise.
2415 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
2417         PR c++/55203
2418         * c-common.c (c_common_attribute_table): Add warn_unused.
2419         (handle_warn_unused_attribute): New.
2421 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
2423         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2424         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2426 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
2428         PR c++/57869
2429         * c.opt: Add Wconditionally-supported.
2431 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
2433         * array-notation-common.c (length_mismatch_in_expr_p): Delete
2434         unused variables l_length and l_node.
2436 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2438         PR c/57821
2439         * c-common.c (complete_array_type): Delay folding first index
2440         like other indices.  When folding, check for index overflow.
2442 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
2444         PR c++/57509
2445         * c-common.h (c_build_vec_perm_expr): New complain argument.
2446         * c-common.c (c_build_vec_perm_expr): Likewise.
2447         Use save_expr also in C++.
2449 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2451         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2452         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2453         * c-opts.c (c_common_post_options): Likewise.
2455 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2457         * array-notation-common.c (length_mismatch_in_expr): Changed the
2458         parameter type's from a dynamic array to a vec_tree.  Also removed
2459         the size parameters.
2460         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2461         the change above.
2463 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2465         * c-common.h (struct cilkplus_an_parts): New structure.
2466         (struct cilkplus_an_loop_parts): Likewise.
2467         (cilkplus_extract_an_triplets): New prototype.
2468         (fix_sec_implicit_args): Likewise.
2469         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2470         (fix_sec_implicit_args): Likewise.
2472 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2474         * array-notation-common.c (find_inv_trees): Removed an unwanted
2475         typecasting.
2476         * c-common.h (struct inv_list::additional_tcodes): Changed type from
2477         enum rid to enum tree_code.
2479 2013-06-11  Jan Hubicka  <jh@suse.cz>
2481         * c-common.c (handle_alias_ifunc_attribute): Do not set
2482         DECL_EXTERNAL for weakref variables.
2483         * c-pragma.c (handle_pragma_weak): Make sure aliases
2484         are not declared as external.
2486 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2488         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2489         function from c/c-array-notation.c.
2490         (is_cilkplus_reduce_builtin): Likewise.
2491         (find_rank): Likewise.
2492         (extract_array_notation_exprs): Likewise.
2493         (replace_array_notations): Likewise.
2494         (find_inv_trees): Likewise.
2495         (replace_inv_trees): Likewise.
2496         (contains_array_notation_expr): Likewise.
2497         (find_correct_array_notation_type): Likewise.
2498         * c-common.h (struct inv_list): Moved this struct from the file
2499         c/c-array-notation.c and added a new field called additional tcodes.
2500         (length_mismatch_in_expr_p): New prototype.
2501         (is_cilkplus_reduce_builtin): Likewise.
2502         (find_rank): Likewise.
2503         (extract_array_notation_exprs): Likewise.
2504         (replace_array_notation): Likewise.
2505         (find_inv_trees): Likewise.
2506         (replace_inv_trees): Likewise.
2507         (find_correct_array_notation_type): Likewise.
2509 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2511         * c-common.c (c_define_builtins): When cilkplus is enabled, the
2512         function array_notation_init_builtins is called.
2513         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2514         * c-common.def (ARRAY_NOTATION_REF): New tree.
2515         * c-common.h (build_array_notation_expr): New function declaration.
2516         (build_array_notation_ref): Likewise.
2517         (extract_sec_implicit_index_arg): New extern declaration.
2518         (is_sec_implicit_index_fn): Likewise.
2519         (ARRAY_NOTATION_CHECK): New define.
2520         (ARRAY_NOTATION_ARRAY): Likewise.
2521         (ARRAY_NOTATION_START): Likewise.
2522         (ARRAY_NOTATION_LENGTH): Likewise.
2523         (ARRAY_NOTATION_STRIDE): Likewise.
2524         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2525         ARRAY_NOTATION_REF.
2526         (pp_c_expression): Likewise.
2527         * c.opt (flag_enable_cilkplus): New flag.
2528         * array-notation-common.c: New file.
2530 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2532         PR c++/57274
2533         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2535 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
2537         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2538         vectors.
2540 2013-05-07  Han Shen  <shenhan@google.com>
2542         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2544 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2546         * c-common.c (check_user_alignment): Emit error for negative values.
2548 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2550         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2552 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2554         * c-cppbuiltin.c (c_cpp_builtins): Do not define
2555         __GXX_EXPERIMENTAL_CXX1Y__.
2557 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2558             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2560         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2561         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2562         to simply use OPT_Wpointer_arith.
2563         (c_sizeof_or_alignof_type): Likewise.
2565 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2567         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2569 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2571         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2572         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2573         specifiers.
2575 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
2577         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2579 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
2581         * c-common.c (pointer_int_sum): Remove dead code.
2583 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2585         PR middle-end/56524
2586         * c-common.c (handle_optimize_attribute): Don't call
2587         save_optabs_if_changed.
2589 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2591         PR middle-end/56461
2592         * c-pch.c (pch_init): Free target_validity at the end.
2594 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2596         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2598 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2599             Jakub Jelinek  <jakub@redhat.com>
2601         PR sanitizer/56454
2602         * c-common.c (handle_no_sanitize_address_attribute): New function.
2603         (c_common_attribute_table): Add no_sanitize_address attribute.
2604         (handle_no_address_safety_analysis_attribute): Add
2605         no_sanitize_address attribute, not no_address_safety_analysis
2606         attribute.
2608 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2610         PR target/52555
2611         * c-common.c (handle_optimize_attribute): Call
2612         save_optabs_if_changed.
2614 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
2615             Steven Bosscher  <steven@gcc.gnu.org>
2617         PR pch/54117
2618         * c-opts.c (c_common_post_options): If debug info is enabled
2619         and non-dwarf*, refuse to load PCH files and when writing PCH
2620         file warn.
2622 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
2624         PR middle-end/56167
2625         * c-common.c (handle_error_attribute): Fix condition.
2627 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
2629         PR c++/55742
2630         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2632 2013-01-18  Jason Merrill  <jason@redhat.com>
2634         PR target/54908
2635         * c.opt (-fextern-tls-init): New.
2636         * c-opts.c (c_common_post_options): Handle it.
2638 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
2640         PR c/48418
2641         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2642         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2643         and is either negative or bigger or equal to type precision
2644         of the first operand.
2646 2012-12-03  Marek Polacek  <polacek@redhat.com>
2648         PR c/55570
2649         * c-common.c (check_user_alignment): Swap order of tests,
2650         check TREE_CODE first.
2652 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2654         PR c++/52654
2655         * c-common.h (overflow_type): New enum.
2656         (build_userdef_literal): Add overflow_type argument.
2657         (tree_userdef_literal): Add overflow_type.
2658         (USERDEF_LITERAL_OVERFLOW): New access macro.
2659         * c-common.c (build_userdef_literal): Add overflow_type
2660         argument.
2661         * c-lex.c (c_lex_with_flags): Add overflow_type to
2662         build_userdef_literal calls.
2663         (interpret_integer, interpret_float): Add overflow_type argument.
2665 2012-11-28  Richard Biener  <rguenther@suse.de>
2667         PR c/35634
2668         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2669         here and use a type with proper overflow behavior for types that would
2670         need to be promoted for the arithmetic.
2672 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2674         PR sanitizer/55435
2675         * c-common.c (handle_no_address_safety_analysis_attribute): New
2676         function.
2677         (c_common_attribute_table): Add no_address_safety_analysis.
2679 2012-11-16  Simon Baldwin  <simonb@google.com>
2681         * c.opt: Add f[no-]canonical-system-headers.
2682         * c-opts.c (c_common_handle_option): Handle
2683         OPT_fcanonical_system_headers.
2685 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2687         PR c++/54413
2688         * c-opts.c (c_common_handle_option): Set new flags.
2689         * c.opt: Describe new flags.
2691 2012-11-09  Jason Merrill  <jason@redhat.com>
2693         * c.opt (Wabi-tag): New.
2695 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2697         PR 55139
2698         * c-common.c (get_atomic_generic_size): Mask with
2699         MEMMODEL_MASK
2701 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2703         PR c/53063
2704         * c.opt (Wformat): Make it Alias Wformat=1.
2705         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2706         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2707         LangEnabledBy.
2708         (Wformat=): RejectNegative. Use LangEnabledBy.
2709         (Wnonnull): Use LangEnabledBy.
2710         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2711         * c-format.c (set_Wformat): Delete.
2712         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2713         (maybe_read_dollar_number):  Likewise.
2714         (avoid_dollar_number):  Likewise.
2715         (finish_dollar_format_checking):  Likewise.
2716         (check_format_info):  Likewise.
2717         (check_format_info_main):  Likewise.
2718         (check_format_types):  Likewise.
2719         (format_type_warning):  Likewise.
2720         * c-common.c (int):  Likewise.
2721         (check_function_sentinel):  Likewise.
2722         * c-common.h (warn_format,set_Wformat): Do not declare here.
2724 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2726         PR c/53063
2727         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2728         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2729         Use LangEnabledBy.
2730         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2731         common.opt.
2732         (Wvariadic-macros): Init(1).
2733         * c-opts.c (c_common_handle_option): Do not handle them
2734         explicitly.
2735         (c_common_post_options): Likewise.
2736         (sanitize_cpp_opts): warn_unused_macros is now
2737         cpp_warn_unused_macros.
2738         (push_command_line_include): Likewise.
2739         * c-common.c (warn_unknown_pragmas): Do not define.
2740         * c-common.h (warn_unknown_pragmas): Do not declare.
2742 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2744         PR c/51294
2745         * c-common.c (conversion_warning): Handle conditional expressions.
2747 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2749         PR c++/54930
2750         * c.opt (Wreturn_local_addr): Define new option.
2752 2012-10-25  Jason Merrill  <jason@redhat.com>
2754         * c.opt (Wvirtual-move-assign): New.
2756         * c.opt (Winherited-variadic-ctor): New.
2758 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
2760         PR c++/54427
2761         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2763 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2765         * c-common.h (pch_cpp_save_state): Declare.
2766         * c-target.def (c_preinclude): New hook.
2767         * c-opts.c (done_preinclude): New.
2768         (push_command_line_include): Handle default preincluded header.
2769         (cb_file_change): Call pch_cpp_save_state when calling
2770         push_command_line_include.
2771         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2772         (pch_cpp_save_state): New.
2773         (pch_init): Call pch_cpp_save_state conditionally, instead of
2774         calling cpp_save_state.
2776 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2778         PR c/53063
2779         PR c/40989
2780         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2781         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2782         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2783         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2784         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2785         * c-opts.c (c_common_handle_option): Remove explicit handling from
2786         here.
2787         (c_common_post_options): Likewise.
2789 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2791         * c-ada-spec.c (LOCATION_COL): Delete.
2792         (compare_location): New function.
2793         (compare_node): Use it.
2794         (compare_comment): Likewise.
2796 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2798         PR c/53063
2799         PR c/40989
2800         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2801         * c-opts.c (c_common_handle_option): Do not set them here. Add
2802         comment.
2803         (c_common_post_options): Likewise.
2805 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2807         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2808         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2809         Remove POINTER_TYPE handling, add large unsigned handling and use
2810         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2812 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2814         PR c/54381
2815         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2816         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2817         locs and array of 3 trees instead of just single loc and single
2818         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2819         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2820         For *cmp* builtins that take two sources strings report warnings
2821         about first and second source, not about destination and source.
2823 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2825         PR c++/53055
2826         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2828 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2830         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2831         declaring something coming from another file.
2833 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2835         PR ada/54845
2836         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2838 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2840         PR c++/54194
2841         * c-common.c (warn_about_parentheses): Add location_t parameter;
2842         use EXPR_LOC_OR_LOC.
2843         * c-common.h: Update declaration.
2845 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2847         PR c++/54427
2848         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2849         more operations. Make error messages optional.
2850         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2851         (scalar_to_vector): Declare.
2853 2012-10-08  Jason Merrill  <jason@redhat.com>
2855         * c-common.c (c_common_reswords): Add thread_local.
2857 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2859         PR c++/53528 C++11 attribute support
2860         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2861         new functions.
2862         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2863         static function.
2864         (handle_aligned_attribute): In choose strictest alignment
2865         among many.  Use new check_cxx_fundamental_alignment_constraints.
2866         (handle_transparent_union_attribute): In c++11 attribute syntax,
2867         don't look through typedefs.
2869 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2871         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2872         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2873         out of dumpfile.h.
2875 2012-09-25  Dehao Chen  <dehao@google.com>
2877         PR middle-end/54645
2878         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2879         map when read in the pch.
2881 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2883         * c-ada-spec.c: Style fixes.
2885 2012-09-18 Thomas Quinot  <quinot@adacore.com>
2887         * c.opt (-fada-spec-parent): Define new command line switch.
2888         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2889         is specified, generate binding spec as a child of the specified unit.
2891 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
2892             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2894         PR c++/53210
2895         * c.opt ([Winit-self]): Enabled by -Wall in C++.
2897 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
2899         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2900         for pointers, and add missing Convention C pragma.
2901         (print_ada_struct_decl): Add missing aliased keyword.
2902         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2904 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2906         * c-common.c (sizeof_pointer_memaccess_warning): New function.
2907         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2908         * c-opts.c (c_common_handle_option): Enable it for -Wall.
2909         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2910         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2912 2012-08-10  Richard Guenther  <rguenther@suse.de>
2914         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2916 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
2918         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2919         instead of separate pp_newline and pp_flush.
2920         (print_c_tree): Likewise.
2922 2012-07-26  Richard Henderson  <rth@redhat.com>
2924         * c-common.c (handle_hot_attribute): Allow labels.
2925         (handle_cold_attribute): Likewise.
2927 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
2929         PR c++/28656
2930         * c-common.c (check_function_nonnull): Handle multiple nonnull
2931         attributes properly.
2933 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2935         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2936         * c-ada-spec.c: Likewise.
2937         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2939 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
2941         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2942         Remove code conditional on it.
2944 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
2946         * c-gimplify.c: Do not include basic-block.h.
2947         * c-common.c: Do not include linfuncs.h.
2949 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2951         * c-common.h: Include tree.h.
2953 2012-07-02  Jason Merrill  <jason@redhat.com>
2955         PR c++/53524
2956         * c-common.c (get_priority): Call default_conversion.
2958 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
2960         * c-pch.c (c_common_write_pch): Remove unused variables.
2962 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2964         * cppspec.c: Moved from gcc/ to here.
2966 2012-06-27  Kai Tietz  <ktietz@redhat.com>
2968         PR preprocessor/37215
2969         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2971 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2973         * c-common.h (c_common_print_pch_checksum): Remove.
2974         * c-pch.c: Do not include output.h.
2975         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2976         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2977         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2978         (struct c_pch_header): Remove.
2979         (get_ident): Update gpch version.
2980         (pch_init): Do not print executable_checksum to asm_out_file.
2981         Do not fail if there is no asm_out_file to read back from.  Set
2982         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2983         (c_common_write_pch): Verify that nothing was written to asm_out_file
2984         since pch_init was called.  Do not write a c_pch_header, and do not
2985         copy from asm_out_file to the PCH.
2986         (c_common_read_pch): Do not read a c_pch_header, and do not restore
2987         the content of asm_out_file from the PCH.
2988         (c_common_print_pch_checksum): Remove.
2989         * c-opts.c (c_common_init): Print out executable_checksum directly.
2991 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2993         * c-target.def (objc_declare_unresolved_class_reference,
2994         objc_declare_class_definition): Add new hooks.
2996 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2998         * c-lex.c: Do not include output.h.
2999         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3000         Remove uses of ASM_OUTPUT_IDENT.
3002 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
3004         PR c++/51033
3005         * c-common.h (c_build_vec_perm_expr): Move decl here.
3006         * c-common.c (c_build_vec_perm_expr): Move definition
3007         here.
3009 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
3011         * c.opt (fconserve-space): Turn into a no-op.
3013 2012-06-04  Sterling Augustine  <saugustine@google.com>
3015         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3016         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3017         both the start and end of the function.
3019 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3021         * c-common.c: Do not include output.h.
3022         * c-pragma.c: Likewise.
3024 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3026         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3027         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3028         (lang_decl_name): Handle namespace decls.
3030 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
3032         * c-ada-spec.c: Do not include output.h.
3033         * c-semantics.c: Likewise.
3035 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
3037         * c-common.c: Fix typo.
3039 2012-05-29  Michael Matz  <matz@suse.de>
3041         * c-common.h (c_expand_decl): Remove prototype.
3043 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3045         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3046         * c-opts.c (c_common_handle_option): Remove code handling
3047         warn_missing_braces.
3049 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
3051         PR c++/25137
3052         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3053         -Wmissing_braces.
3055 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
3057         PR c++/53322
3058         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3060 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3062         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3063         * c-opts.c (c_common_handle_option): Do not handle explicitly
3064         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3066 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
3068         PR preprocessor/7263
3069         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
3070         to cpp_classify_number.  For diagnostics, use the precise location
3071         instead of the global input_location.
3073 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3075         PR c++/11856
3076         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3078 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
3080         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3082 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3084         PR 53063
3085         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3086         Wreorder): Use LangEnabledBy.
3087         * c-opts.c (c_common_handle_option): Do not enable them
3088         explicitly. Call lang-specific generated functions.
3089         (c_common_post_options): Do not set them here.
3091 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3093         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3094         Wmissing-field-initializers,Wmissing-parameter-type,
3095         Wold-style-declaration,Woverride-init): Use EnabledBy.
3096         * c-opts.c (c_common_post_options): Do not set here explicitly.
3098 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3100         PR 53063
3101         * c-opts.c (c_common_handle_option): Use handle_generated_option
3102         to enable sub-options.
3104 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
3106         PR c++/53158
3107         * c-common.c (warnings_for_convert_and_check): Use warning_at.
3109 2012-05-10  Richard Guenther  <rguenther@suse.de>
3111         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3112         adjust commentary about TYPE_IS_SIZETYPE types.
3114 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3116         PR c++/53261
3117         * c-common.c (warn_logical_operator): Check that argument of
3118         integer_zerop is not NULL.
3120 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3122         PR c/43772
3123         * c-common.c (warn_logical_operator): Do not warn if either side
3124         is already true or false.
3126 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3128         PR c/51712
3129         * c-common.c (expr_original_type): New.
3130         (shorten_compare): Do not warn for enumeration types.
3132 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3134         * c.opt (fpermissive): Add Var(flag_permissive).
3136 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
3138         PR c++/51033
3139         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3140         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3142 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
3144         Add -Wvarargs option
3145         * c.opt (Wvarargs):  Define new option.
3147 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3149         * c-common.c (check_function_arguments): Replace
3150         Wmissing-format-attribute with Wsuggest-attribute=format.
3152 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3154         * c.opt (Wsuggest-attribute=format): New. Alias of
3155         Wmissing-format-attribute.
3156         * c-format.c (decode_format_type): Replace
3157         Wmissing-format-attribute with Wsuggest-attribute=format.
3158         (check_function_format): Likewise.
3160 2012-04-27  Ollie Wild  <aaw@google.com>
3162         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3163         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3164         * c.opt: Add Wliteral-suffix.
3166 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3168         PR c/44774
3169         * c.opt (Wpedantic): New.
3170         (pedantic): Alias Wpedantic.
3171         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3172         (c_common_post_options): Likewise.
3173         (sanitize_cpp_opts): Likewise.
3174         * c-lex.c (interpret_float): Likewise.
3175         * c-format.c (check_format_types): Likewise.
3176         * c-common.c (pointer_int_sum): Likewise.
3177         (c_sizeof_or_alignof_type): Likewise.
3178         (c_add_case_label): Likewise.
3179         (c_do_switch_warnings): Likewise.
3180         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3182 2012-04-15  Jason Merrill  <jason@redhat.com>
3184         PR c++/52818
3185         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3186         (C_STD_NAME): Distinguish between C++98 and C++11.
3188 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3190         PR target/52624
3191         * c-common.h (uint16_type_node): Rename into...
3192         (c_uint16_type_node): ...this.
3193         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3194         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3196 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3198         * c-common.c (warn_if_unused_value): Move definition to here.
3199         * c-common.h (warn_if_unused_value): Move declaration to here.
3201 2012-03-23  William Bader  <williambader@hotmail.com>
3203         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3205 2012-03-20  Jason Merrill  <jason@redhat.com>
3207         * c-common.h (enum cxx_dialect): Add cxx1y.
3208         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3209         test.
3210         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3211         * c-opts.c (c_common_post_options): Likewise.
3212         (set_std_cxx1y): New.
3213         (c_common_handle_option): Call it.
3214         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3216 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
3218         PR c++/14710
3219         * c.opt ([Wuseless-cast]): Add.
3221 2012-03-16  Richard Guenther  <rguenther@suse.de>
3223         * c-pretty-print.c (pp_c_initializer_list): Adjust.
3225 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3227         PR c++/44783
3228         * c.opt (ftemplate-backtrace-limit) Add.
3230 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3232         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3233         handling.
3234         * c-pragma.c (handle_pragma_extern_prefix): Remove.
3235         (init_pragma): Don't register extern_prefix.
3237 2012-03-12  Richard Guenther  <rguenther@suse.de>
3239         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3240         (builtin_type_for_size): Likewise.
3242 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
3244         PR c++/52215
3245         * c-common.c (sync_resolve_params): Don't decide whether to convert
3246         or not based on TYPE_SIZE comparison, convert whenever arg_type
3247         is unsigned INTEGER_TYPE.
3249 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
3251         PR c/52118
3252         * c.opt ([Wunused-local-typedefs]): Fix description.
3254 2012-01-24  Mike Stump  <mikestump@comcast.net>
3256         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3257         exactly.
3259 2012-01-18  Richard Guenther  <rguenther@suse.de>
3261         * c-opts.c (c_common_post_options): Reset LTO flags if
3262         we are about to generate a PCH.
3264 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
3266         PR c++/51777
3267         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3268         use pp_unsigned_wide_integer.
3270 2012-01-10  Richard Guenther  <rguenther@suse.de>
3272         PR middle-end/51806
3273         * c-opts.c (c_common_handle_option): Move -Werror handling
3274         to language independent code.
3276 2012-01-05  Richard Guenther  <rguenther@suse.de>
3278         PR middle-end/51764
3279         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3280         from common.opt.
3282 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
3284         PR c++/51316
3285         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3286         of array types with an unknown bound.
3288 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
3290         * c-common.c (flag_isoc99): Update comment to refer to C11.
3291         (flag_isoc1x): Change to flag_isoc11.
3292         * c-common.h (flag_isoc99): Update comment to refer to C11.
3293         (flag_isoc1x): Change to flag_isoc11.
3294         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3295         C11.
3296         * c-opts.c (set_std_c1x): Change to set_std_c11.
3297         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3298         Call set_std_c11.
3299         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3300         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3301         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
3302         standard.
3303         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3304         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
3305         (std=gnu1x): Make alias of std=gnu11.
3307 2011-12-19  Jason Merrill  <jason@redhat.com>
3309         PR c++/51228
3310         * c-common.c (handle_transparent_union_attribute): Check the first
3311         field if the type is complete.
3313 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
3315         PR libstdc++/51365
3316         * c-common.c (RID_IS_FINAL): Add.
3317         * c-common.h (RID_IS_FINAL): Add.
3319 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
3321         * c.opt (fgnu-runtime): Provide full description.
3322         (fnext-runtime): Likewise.
3323         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3325 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
3327         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
3328         predefines in one place.  Add LOCK_FREE predefines.
3329         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3330         new func.
3332 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
3334         PR c/51256
3335         * c-common.c (get_atomic_generic_size): Check for various error
3336         conditions
3337         (resolve_overloaded_atomic_exchange,
3338         resolve_overloaded_atomic_compare_exchange,
3339         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3340         error_mark_node for error conditions.
3342 2011-11-08  Richard Guenther  <rguenther@suse.de>
3344         PR middle-end/51010
3345         c-family/
3347 2011-11-07  Richard Henderson  <rth@redhat.com>
3348             Aldy Hernandez  <aldyh@redhat.com>
3349             Torvald Riegel  <triegel@redhat.com>
3351         Merged from transactional-memory.
3353         * c-common.c (handle_tm_wrap_attribute,
3354         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3355         (struct c_common_reswords): Added __transaction* keywords.
3356         (struct c_common_attribute_table): Added transaction* and tm_regparm
3357         attributes.
3358         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3359         masks.
3360         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3361         find_tm_attribute): Declare.
3363 2011-11-07  Jason Merrill  <jason@redhat.com>
3365         PR c++/35688
3366         * c-common.c, c-common.h: Revert yesterday's changes.
3368 2011-11-06  Jason Merrill  <jason@redhat.com>
3370         PR c++/35688
3371         * c-common.c (decl_has_visibility_attr): Split out from...
3372         (c_determine_visibility): ...here.
3373         * c-common.h: Declare it.
3375 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3377         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3378         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3379         type.
3380         (check_user_alignment): New.  Split out of
3381         handle_aligned_attribute.  Disallow integer constants with
3382         noninteger types.  Conditionally allow zero.
3383         (handle_aligned_attribute): Use check_user_alignment.
3384         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3386 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
3387             Richard Henderson  <rth@redhat.com>
3389         Merged from cxx-mem-model.
3391         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3392         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3393         parameters that are the same type size.
3394         (get_atomic_generic_size): New.  Find size of generic
3395         atomic function parameters and do typechecking.
3396         (add_atomic_size_parameter): New.  Insert size into parameter list.
3397         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3398         either __atomic_exchange_n or external library call.
3399         (resolve_overloaded_atomic_compare_exchange): Restructure
3400         __atomic_compare_exchange to either _n variant or external library call.
3401         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3402         __atomic_load_n or an external library call.
3403         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3404         __atomic_store_n or an external library call.
3405         (resolve_overloaded_builtin): Handle new __atomic builtins.
3407 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3409         PR c++/50608
3410         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3411         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
3412         <INDIRECT_REF>: Return the argument.
3413         <ARRAY_REF>: Remove special code for negative offset.
3414         Call fold_build_pointer_plus instead of size_binop.
3415         (fold_offsetof): Remove STOP_REF argument and adjust.
3416         * c-common.h (fold_offsetof_1): Declare.
3417         (fold_offsetof): Remove STOP_REF argument.
3419 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
3421         PR c++/50810
3422         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3423         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3424         Wnarrowing for C++0x and C++98.
3425         * c.opt ([Wnarrowing]): Update.
3427 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3429         PR c++/44277
3430         * c.opt: Add Wzero-as-null-pointer-constant.
3432 2011-10-31  Jason Merrill  <jason@redhat.com>
3434         * c.opt (-fdeduce-init-list): Off by default.
3436         PR c++/50920
3437         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3438         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3439         and -Wc++11-compat.
3440         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3442 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
3444         PR c++/30066
3445         * c.opt (fvisibility-inlines-hidden): Description change.
3447 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
3449         Implement C++11 user-defined literals.
3450         * c-common.c (build_userdef_literal): New.
3451         * c-common.def: New tree code.
3452         * c-common.h (tree_userdef_literal): New tree struct and accessors.
3453         * c-lex.c (interpret_float): Add suffix parm.
3454         (c_lex_with_flags): Build literal tokens.
3456 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3458         PR c++/50841
3459         Revert:
3460         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3462         PR c++/50810
3463         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3464         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3465         Wnarrowing for C++0x and C++98.
3466         * c.opt ([Wnarrowing]): Update.
3468 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3470         PR c++/50810
3471         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3472         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3473         Wnarrowing for C++0x and C++98.
3474         * c.opt ([Wnarrowing]): Update.
3476 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
3478         PR c++/45385
3479         * c-common.c (conversion_warning): Remove code looking for
3480         artificial operands.
3482 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3484         PR bootstrap/50760
3485         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3486         !NO_IMPLICIT_EXTERN_C.
3488 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
3490         * c-common.c (c_common_reswords): Add __bases,
3491         __direct_bases.
3492         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3494 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3496         PR c++/50757
3497         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3499 2011-10-15  Tom Tromey  <tromey@redhat.com>
3500             Dodji Seketeli  <dodji@redhat.com>
3502         * c.opt (fdebug-cpp): New option.
3503         * c-opts.c (c_common_handle_option): Handle the option.
3504         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3505         output stream in parameter. Factorized from ...
3506         (maybe_print_line): ... this. Dump location debug information when
3507         -fdebug-cpp is in effect.
3508         (print_line_1): New static function. Takes an output stream in
3509         parameter. Factorized from ...
3510         (print_line): ... here. Dump location information when -fdebug-cpp
3511         is in effect.
3512         (scan_translation_unit): Dump location information when
3513         -fdebug-cpp is in effect.
3515 2011-10-15  Tom Tromey  <tromey@redhat.com>
3516             Dodji Seketeli  <dodji@redhat.com>
3518         * c.opt (ftrack-macro-expansion): New option. Handle it with and
3519         without argument.
3520         * c-opts.c (c_common_handle_option)<case
3521         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3522         cases. Handle -ftrack-macro-expansion with and without argument.
3524 2011-10-15  Tom Tromey  <tromey@redhat.com>
3525             Dodji Seketeli  <dodji@redhat.com>
3527         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3528         (print_line, cb_define, do_line_change): Adjust to avoid touching
3529         the internals of struct line_map.  Use the public API instead.
3530         * c-pch.c (c_common_read_pch): Likewise.
3531         * c-lex.c (fe_file_change): Likewise.
3533 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3535         PR c++/17212
3536         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3538 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
3540         PR c++/33067
3541         * c-pretty-print.c (pp_c_floating_constant): Output
3542         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3544 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3546         * c-common.c (def_builtin_1): Delete old interface with two
3547         parallel arrays to hold standard builtin declarations, and replace
3548         it with a function based interface that can support creating
3549         builtins on the fly in the future.  Change all uses, and poison
3550         the old names.  Make sure 0 is not a legitimate builtin index.
3551         * c-omp.c (c_finish_omp_barrier): Ditto.
3552         (c_finish_omp_taskwait): Ditto.
3553         (c_finish_omp_flush): Ditto.
3555 2011-10-11  Tristan Gingold  <gingold@adacore.com>
3557         * c.opt: (fallow-parameterless-variadic-functions): New.
3559 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3561         PR c++/33255 - Support -Wunused-local-typedefs warning
3562         * c-common.h (struct c_language_function::local_typedefs): New
3563         field.
3564         (record_locally_defined_typedef, maybe_record_typedef_use)
3565         (maybe_warn_unused_local_typedefs): Declare new functions.
3566         * c-common.c (record_locally_defined_typedef)
3567         (maybe_record_typedef_use)
3568         (maybe_warn_unused_local_typedefs): Define new functions.
3569         * c.opt: Declare new -Wunused-local-typedefs flag.
3571 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3573         PR middle-end/50266
3574         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3575         computations.
3577 2011-09-05  Richard Guenther  <rguenther@suse.de>
3579         * c-common.c (complete_array_type): Use ssize_int (-1) instead
3580         of integer_minus_one_node for empty array upper bounds.
3582 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
3584         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3585         it's the first time it's being called on this main TU.
3587 2011-08-24  Richard Guenther  <rguenther@suse.de>
3589         PR c/49396
3590         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3592 2011-08-22  Gabriel Charette  <gchare@google.com>
3594         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3595         defined in cpp_init_builtins and c_cpp_builtins.
3597 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3599         * c-common.c (c_common_reswords): Add __builtin_complex.
3600         * c-common.h (RID_BUILTIN_COMPLEX): New.
3602 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3604         * c-common.c (c_common_reswords): Add _Noreturn.
3605         (keyword_is_function_specifier): Handle RID_NORETURN.
3606         * c-common.h (RID_NORETURN): New.
3608 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3610         * c-common.c (unsafe_conversion_p): New function. Check if it is
3611         unsafe to convert an expression to the type.
3612         (conversion_warning): Adjust, use unsafe_conversion_p.
3613         * c-common.h (unsafe_conversion_p): New function declaration.
3615 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3617         * c-common.h (c_finish_omp_atomic): Adjust prototype.
3618         (c_finish_omp_taskyield): New prototype.
3619         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3620         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3621         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
3622         or RHS1 have side-effects, evaluate those too in the right spot,
3623         if it is a decl and LHS is also a decl, error out if they
3624         aren't the same.
3625         (c_finish_omp_taskyield): New function.
3626         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3627         * c-pragma.c (omp_pragmas): Add taskyield.
3628         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3629         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3630         PRAGMA_OMP_CLAUSE_MERGEABLE.
3632 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
3634         * c-common.h (set_underlying_type): Remove parm name from
3635         declaration.
3637 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
3639         * c-pretty-print.h: Search c-common.h in c-family.
3641 2011-07-22  Jason Merrill  <jason@redhat.com>
3643         PR c++/49793
3644         * c.opt (Wnarrowing): New.
3646         PR c++/30112
3647         * c-common.h: Declare c_linkage_bindings.
3648         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3650         PR c++/49813
3651         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3652         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3653         as flag_isoc99 for 'restrict'.
3654         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3656 2011-07-21  Ian Lance Taylor  <iant@google.com>
3658         PR middle-end/49705
3659         * c-common.c (c_disable_warnings): New static function.
3660         (c_enable_warnings): New static function.
3661         (c_fully_fold_internal): Change local unused_p to bool.  Call
3662         c_disable_warnings and c_enable_warnings rather than change
3663         c_inhibit_evaluation_warnings.
3665 2011-07-20  Jason Merrill  <jason@redhat.com>
3667         PR c++/6709 (DR 743)
3668         PR c++/42603 (DR 950)
3669         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3670         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3671         (CPP_DECLTYPE): New.
3672         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3674 2011-07-19  Richard Guenther  <rguenther@suse.de>
3676         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3677         * c-omp.c (c_finish_omp_for): Likewise.
3679 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3681         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3682         body on the next line.
3684 2011-07-08  Jason Merrill  <jason@redhat.com>
3686         PR c++/45437
3687         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3689         PR c++/49673
3690         * c-common.c (c_apply_type_quals_to_decl): Don't check
3691         TYPE_NEEDS_CONSTRUCTING.
3693 2011-07-06  Richard Guenther  <rguenther@suse.de>
3695         * c-common.c (c_common_nodes_and_builtins):
3696         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3698 2011-07-05  Richard Guenther  <rguenther@suse.de>
3700         * c-common.c (c_common_nodes_and_builtins): Build all common
3701         tree nodes first.
3703 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3705         * c-common.h (c_tree_chain_next): New static inline function.
3707         * c-common.c (check_builtin_function_arguments): Handle
3708         BUILT_IN_ASSUME_ALIGNED.
3710 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3712         * c-common.c: Add sync_ or SYNC__ to builtin names.
3713         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3715 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3717         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3718         handler.
3719         (gen_pragma_handler): New union.
3720         (internal_pragma_handler): New type.
3721         (c_register_pragma_with_data)
3722         (c_register_pragma_with_expansion_and_data): New functions.
3724         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3725         (c_register_pragma, c_register_pragma_with_expansion)
3726         (c_invoke_pragma_handler): Changed to work with
3727         internal_pragma_handler.
3728         (c_register_pragma_with_data)
3729         (c_register_pragma_with_expansion_and_data): New functions.
3731 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3733         * c-common.c: Include common/common-target.h.
3734         (handle_section_attribute): Use
3735         targetm_common.have_named_sections.
3736         * c-cppbuiltin.c: Include common/common-target.h.
3737         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3739 2011-06-10  Richard Guenther  <rguenther@suse.de>
3741         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3742         to print a IDENTIFIER_NODE.
3744 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3745             Joseph Myers  <joseph@codesourcery.com>
3747         * c.opt (fbuilding-libgcc): New option.
3748         * c-cppbuiltin.c (c_cpp_builtins): Define
3749         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3751 2011-06-07  Jason Merrill  <jason@redhat.com>
3753         * c-common.c (max_tinst_depth): Lower default to 900.
3755         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3757 2011-06-07  Richard Guenther  <rguenther@suse.de>
3759         * c-common.c (c_common_nodes_and_builtins): Do not set
3760         size_type_node or call set_sizetype.
3762 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
3764         PR debug/49130
3765         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3766         type when using pointer comparison to compare types.
3768 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
3770         * c.opt: Add -Wdelete-non-virtual-dtor.
3771         * c-opts.c (c_common_handle_option): Include it in -Wall.
3773 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3775         PR bootstrap/49190
3777         Revert:
3778         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3780         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3781         not tree_common.
3783 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
3785         PR c++/49165
3786         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3787         C++ don't call c_common_truthvalue_conversion on void type arms.
3789 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3791         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3792         (stmt_list_stack): Define.
3793         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3794         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3796 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3798         * c-common.c (warning_candidate_p): Check for BLOCKs.
3800 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3802         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3803         not tree_common.
3805 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3807         * c-common.c (def_fn_type): Remove extra va_end.
3809 2011-05-23  Jason Merrill  <jason@redhat.com>
3811         PR c++/48106
3812         * c-common.c (c_common_get_narrower): New.
3813         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3815 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3817         * c-common.h (check_function_arguments): Tweak prototype of
3818         check_function_arguments.
3819         * c-common.c (check_function_arguments): Likewise.  Adjust
3820         calls to check_function_nonnull, check_function_format, and
3821         check_function_sentinel.
3822         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3823         separate attributes and typelist arguments.  Use
3824         FOREACH_FUNCTION_ARGS to iterate over argument types.
3826 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3828         * c-common.c (c_common_reswords): Reorder.
3829         * c-common.h (rid): Likewise.
3831 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3833         * c-common.c (def_fn_type): Don't call build_function_type, call
3834         build_function_type_array or build_varargs_function_type_array
3835         instead.
3836         (c_common_nodes_and_builtins): Likewise.
3838 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3840         * c-common.c (c_add_case_label): Omit the loc argument to
3841         build_case_label.
3842         * c-common.h (build_case_label): Remove.
3843         * c-semantics.c (build_case_label): Remove.
3845 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3847         * c-objc.h (objc_start_method_definition): Update prototype.
3848         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3850 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3852         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3853         TYPE_ARG_TYPES directly.
3854         (handle_nonnull_attribute): Likewise.
3855         (sync_resolve_params): Likewise.
3856         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3857         to check_format_string.
3858         (handle_format_attribute): Likewise.
3859         (check_format_string): Take a function type to examine instead of
3860         a type list.  Use a function_arg_iterator to step through argument
3861         types.
3863 2011-05-04  Richard Guenther  <rguenther@suse.de>
3865         * c-common.c (fix_string_type): Use size_int for index type bounds.
3866         (start_fname_decls): Do not pass NULL to build_int_cst.
3867         (c_init_attributes): Likewise.
3868         * c-lex.c (c_lex_with_flags): Likewise.
3870 2011-04-27  Jason Merrill  <jason@redhat.com>
3872         * c-common.c (make_tree_vector_from_list): New.
3873         * c-common.h: Declare it.
3875 2011-04-26  Richard Guenther  <rguenther@suse.de>
3877         PR preprocessor/48248
3878         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3879         for output size with -P.
3881 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3883         * c-common.c (struct c_common_resword): Add __underlying_type.
3884         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3886 2011-04-20  Jim Meyering  <meyering@redhat.com>
3888         * c-format.c (init_dollar_format_checking): Remove useless
3889         if-before-free.
3891 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3893         * c-objc.h (objc_get_interface_ivars): Removed.
3894         (objc_detect_field_duplicates): New.
3895         * stub-objc.c: Likewise.
3897 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3899         * stub-objc.c (objc_declare_protocols): Renamed to
3900         objc_declare_protocol.
3901         * c-objc.h: Likewise.
3903 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3905         * stub-objc.c (objc_declare_class): Updated argument name.
3907 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3909         * c-common.h (c_common_init_ts): Declare.
3910         * c-common.c (c_common_init_ts): Define.
3912 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3914         * c-objc.h (objc_build_message_expr): Updated prototype.
3915         * stub-objc.c (objc_build_message_expr): Likewise.
3917 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3919         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3920         of cgraph_node.
3922 2011-04-11  Richard Guenther  <rguenther@suse.de>
3924         * c-common.c (complete_array_type): Build a range type of
3925         proper type.
3927 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3929         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3930         (handle_type_generic_attribute): Likewise.
3932 2011-04-07  Jason Merrill  <jason@redhat.com>
3934         PR c++/48450
3935         * c-common.c (c_common_truthvalue_conversion): Don't ignore
3936         conversion from C++0x scoped enum.
3938 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3940         * c-target-def.h: New file.
3941         * c-target.def: New file.
3942         * c-target.h: New file.
3943         * c-common.c (targetcm): Don't define here.
3944         * c-common.h (default_handle_c_option): Declare.
3945         * c-format.c: Include c-target.h instead of target.h.
3946         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
3947         include tm.h.
3948         (default_handle_c_option): Move from targhooks.c.
3950 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3952         PR preprocessor/48248
3953         * c-ppoutput.c (print): Add src_file field.
3954         (init_pp_output): Initialize it.
3955         (maybe_print_line): Don't optimize by adding up to 8 newlines
3956         if map->to_file and print.src_file are different file.
3957         (print_line): Update print.src_file.
3959 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3961         * c-ada-spec.c (compare_comment): Use filename_cmp
3962         instead of strcmp for filename.
3964 2011-03-25  Jeff Law  <law@redhat.com>
3966         * c-common.c (def_fn_type): Add missing va_end.
3968 2011-03-25  Jason Merrill  <jason@redhat.com>
3970         * c.opt: Add -std=c++03.
3972 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3974         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3976 2011-03-17  Kai Tietz
3978         PR target/12171
3979         * c-pretty-print.c (pp_c_specifier_qualifier_list):
3980         Display allowed attributes for function pointer types.
3981         (pp_c_attributes_display): New function to display
3982         attributes having affects_type_identity flag set to true.
3983         * c-pretty-print.h (pp_c_attributes_display): New prototype.
3985         * c-common.c (c_common_attribute_table):
3986         Add new element.
3987         (c_common_format_attribute_table): Likewise.
3989 2011-03-18  Jason Merrill  <jason@redhat.com>
3991         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3992         * c-common.h: Don't declare it here.
3993         * c-common.c: Or define it here.
3994         * c-opts.c (c_common_handle_option): Or set it here.
3996         PR c++/35315
3997         * c-common.c (handle_transparent_union_attribute): Don't
3998         make a duplicate type in C++.
4000 2011-03-15  Jason Merrill  <jason@redhat.com>
4002         * c-common.c (max_constexpr_depth): New.
4003         * c-common.h: Declare it.
4004         * c-opts.c (c_common_handle_option): Set it.
4005         * c.opt (fconstexpr-depth): New option.
4007 2011-03-11  Jason Merrill  <jason@redhat.com>
4009         * c-common.c (attribute_takes_identifier_p): Add missing const.
4011         PR c++/46803
4012         * c-common.c (attribute_takes_identifier_p): Assume that an
4013         unknown attribute takes an identifier.
4015 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
4017         PR c/47786
4018         * c-common.c (c_type_hash): Call list_length instead of iterating
4019         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
4021 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
4023         PR c/47809
4024         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4026 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
4028         * c.opt (fobjc-abi-version=) New.
4029         (fobjc-nilcheck): New.
4031 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
4033         PR c++/46890
4034         * c-common.h (keyword_is_decl_specifier): Declare.
4035         * c-common.c (keyword_is_decl_specifier): Define.
4036         (keyword_is_function_specifier): New function.
4038 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4040         PR c/47473
4041         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4042         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4043         REAL_TYPE.
4045 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
4047         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4049 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4051         PR pch/47430
4052         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4053         after init_c_lex if pch_file is set.
4055 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
4057         PR c++/43601
4058         * c.opt (-fkeep-inline-dllexport): New switch.
4060 2011-01-12  Richard Guenther  <rguenther@suse.de>
4062         PR middle-end/32511
4063         * c-common.c (handle_weak_attribute): Warn instead of error
4064         on declaring an inline function weak.
4066 2011-01-05  Tom Tromey  <tromey@redhat.com>
4068         * c-common.h (lvalue_error): Update.
4069         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
4070         not error.
4072 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4074         PR objc/47075
4075         * c-objc.h (objc_finish_message_expr): Added argument to
4076         prototype.
4078 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
4080         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4081         Use prototype_p.
4083 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4085         * c-objc.h (objc_maybe_warn_exceptions): New.
4086         * stub-objc.c (objc_maybe_warn_exceptions): New.
4088 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
4090         * c-common.h (readonly_error): Declare.
4091         * c-common.c (readonly_error): Define.
4093 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
4095         * c-common.h (invalid_indirection_error): Declare.
4096         * c-common.c (invalid_indirection_error): Define.
4098 2010-12-03  Richard Guenther  <rguenther@suse.de>
4100         PR c/46745
4101         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4102         (pp_c_unary_expression): Likewise.
4103         (pp_c_expression): Likewise.
4105 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4107         * c-common.h (objc_finish_function): New.
4108         (objc_non_volatilized_type): Removed.
4109         (objc_type_quals_match): Removed.
4110         * stub-objc.c (objc_finish_function): New.
4111         (objc_non_volatilized_type): Removed.
4112         (objc_type_quals_match): Removed.
4114 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
4116         * c-common.h (parse_optimize_options): Declare.
4117         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4118         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4120 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
4122         * c-opts.c (check_deps_environment_vars): Use getenv instead of
4123         GET_ENVIRONMENT.
4124         * c-pch.c (O_BINARY): Don't define here.
4125         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4127 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
4129         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4130         targetm.except_unwind_info.
4132 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4134         * c-opts.c (c_common_handle_option): Pass location to
4135         set_struct_debug_option.
4137 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4139         * c-common.c (visibility_options): Move from ../opts.c.
4140         * c-common.h (struct visibility_flags, visibility_options):
4141         Declare here.
4142         * c-opts.c (finish_options): Rename to c_finish_options.
4143         (c_common_init): Update call to finish_options.
4145 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
4147         PR objc/34033
4148         * c-lex.c (lex_string): Check that each string in an Objective-C
4149         string concat sequence starts with either one or zero '@', and
4150         that there are no spurious '@' signs at the end.
4152 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
4154         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4155         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4156         HANDLE_PRAGMA_VISIBILITY.
4157         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4158         HANDLE_PRAGMA_VISIBILITY): Don't define.
4159         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4161 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
4163         PR c++/16189
4164         PR c++/36888
4165         PR c++/45331
4166         * c-common.h (keyword_begins_type_specifier): Declare.
4167         (keyword_is_storage_class_specifier): Declare.
4168         (keyword_is_type_qualifier): Declare.
4169         * c-common.c (keyword_begins_type_specifier): New function.
4170         (keyword_is_storage_class_specifier): New function.
4171         (keyword_is_type_qualifier): Declare.
4173 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4175         PR c/46547
4176         * c-common.c (in_late_binary_op): Define.
4177         (c_common_truthvalue_conversion): Check in_late_binary_op before
4178         calling c_save_expr.
4179         * c-common.h (in_late_binary_op): Declare.
4181 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4183         * c-opts.c (c_common_handle_option): Update calls to
4184         set_struct_debug_option.
4186 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4188         * c-common.h (objc_declare_protocols): Added additional argument.
4189         * stub-objc.c (objc_declare_protocol): Same change.
4191 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
4193         PR c/33193
4194         * c-common.h (build_real_imag_expr): Declare.
4195         * c-semantics.c (build_real_imag_expr): Define.
4197 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
4199         * c-opts.c (c_common_parse_file): Take no arguments.
4200         * c-common.h (c_common_parse_file): Update prototype.
4202 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
4204         PR c++/46401
4205         * c-common.c (warning_candidate_p): Don't track non-const calls
4206         or STRING_CSTs.
4208 2010-11-15  Ian Lance Taylor  <iant@google.com>
4210         * c-lex.c (init_c_lex): Set macro debug callbacks if
4211         flag_dump_go_spec is set.
4213 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4215         * c-common.h (objc_build_incr_expr_for_property_ref): New.
4216         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4218 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
4220         PR preprocessor/45038
4221         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4222         dialects.
4224 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4226         * c-common.h (c_family_lang_mask): Declare.
4227         * c-opts.c (c_family_lang_mask): Make extern.
4228         * c-pragma.c (handle_pragma_diagnostic): Use
4229         control_warning_option.
4231 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4233         * c-common.c (parse_optimize_options): Update call to
4234         decode_options.
4235         * c-common.h (c_common_handle_option): Update prototype.
4236         * c-opts.c (c_common_handle_option): Take location_t parameter and
4237         pass it to other functions.
4239 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4241         * c-opts.c (warning_as_error_callback): Remove.
4242         (c_common_initialize_diagnostics): Don't call
4243         register_warning_as_error_callback.
4244         (c_common_handle_option): Handle -Werror=normalized= here.
4246 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4248         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4249         in diagnostic.
4250         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4251         letter.
4252         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4253         Remove trailing '.' from diagnostics.
4254         * c.opt (Wwrite-strings_: Avoid '`' in help text.
4256 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4258         * c-common.c (parse_optimize_options): Pass global_dc to
4259         decode_options.
4260         * c-opts.c (c_common_handle_option): Pass &global_options to
4261         set_Wstrict_aliasing.
4262         * c.opt (v): Don't mark Common or document here.
4264 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4266         PR target/44981
4267         * c-format.c (format_type): New type gcc_objc_string_format_type.
4268         (valid_stringptr_type_p): New.
4269         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4270         (check_format_string): Pass expected type, use
4271         valid_stringptr_type_p (), check that the format string types are
4272         consistent with the format specification.
4273         (decode_format_attr): Warn if NSString is used outside objective-c.
4274         (format_types_orig): Add NSString.
4275         (format_name): New.
4276         (format_flags): New.
4277         (check_format_arg): Handle format strings requiring an external parser.
4278         first_target_format_type: New variable.
4279         (handle_format_attribute): Set up first_target_format_type, pass the
4280         expected format arg string type to check_format_string().
4281         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
4282         * stub-objc.c (objc_string_ref_type_p): New.
4283         (objc_check_format_arg): New.
4285 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4287         Fixed using the Objective-C 2.0 dot-syntax with class names.
4288         * c-common.h (objc_build_class_component_ref): New.
4289         * stub-objc.c (objc_build_class_component_ref): New.
4291 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4293         * c.opt (Wproperty-assign-default): New option.
4295 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4297         Implemented -fobjc-std=objc1 flag.
4298         * c.opt (fobjc-std=objc1): New option.
4300 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
4302         Implemented format and noreturn attributes for Objective-C methods.
4303         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4304         attribute for Objective-C methods.
4306 2010-10-31  Jason Merrill  <jason@redhat.com>
4308         * c-common.c (conversion_warning, warn_for_collisions_1): Use
4309         EXPR_LOC_OR_HERE.
4311 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4313         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4314         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4315         (objc_add_property_declaration): Removed arguments for copies and
4316         ivar.
4317         (objc_build_getter_call): Renamed to
4318         objc_maybe_build_component_ref.
4319         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4320         (objc_is_property_ref): New.
4321         * c-common.c (c_common_reswords): Removed copies and ivar.
4322         * stub-objc.c (objc_add_property_declaration): Removed arguments
4323         for copies and ivar.
4324         (objc_build_getter_call): Renamed to
4325         objc_maybe_build_component_ref.
4326         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4327         (objc_is_property_ref): New.
4329 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
4330             Matthew Gingell  <gingell@adacore.com>
4332         * c-ada-spec.c (separate_class_package): New function.
4333         (pp_ada_tree_identifier): Prefix references to C++ classes with the
4334         name of their enclosing package.
4335         (print_ada_declaration): Use separate_class_package.
4337 2010-10-27  Jason Merrill  <jason@redhat.com>
4339         * c-common.c (c_common_reswords): Add __is_literal_type.
4340         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4342         * c-common.c (check_case_value): Remove special C++ code.
4344 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4346         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4347         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
4348         and RID_LAST_PATTR.
4349         (objc_add_property_declaration): Added additional arguments.
4350         (objc_property_attribute_kind): Removed.
4351         (objc_set_property_attr): Removed.
4352         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4353         copy and nonatomic.
4354         * stub-objc.c (objc_add_property_declaration): Added additional
4355         arguments.
4356         (objc_set_property_attr): Removed.
4358 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4360         * c-common.h (objc_add_property_variable): Renamed to
4361         objc_add_property_declaration.  Added location argument.
4362         * stub-objc.c (objc_add_property_variable): Same change.
4363         
4364 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
4366         * c-common.h (objc_maybe_printable_name): New.
4367         * stub-objc.c (objc_maybe_printable_name): New.
4369 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4370         Andrew Pinski <pinskia@gmail.com>
4372         * c-common.h (c_common_mark_addressable_vec): Declare.
4373         * c-common.c (c_common_mark_addressable_vec): New function.
4375 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4377         * c-common.h (objc_set_method_type): Removed.
4378         (objc_add_method_declaration): Added boolean argument.
4379         (objc_start_method_definition): Same change.
4380         (objc_build_method_signature): Same change.
4381         * stub-objc.c (objc_set_method_type): Removed.
4382         (objc_add_method_declaration): Added boolean argument.
4383         (objc_start_method_definition): Same change.
4384         (objc_build_method_signature): Same change.
4386 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4388         * c-common.h (finish_file): Removed.
4389         (objc_write_global_declarations): New.
4390         * c-opts.c (c_common_parse_file): Do not call finish_file.
4391         * stub-objc.c (objc_write_global_declarations): New.
4393 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4395         Implemented parsing @synthesize and @dynamic for
4396         Objective-C/Objective-C++.
4397         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4398         (objc_add_synthesize_declaration): New.
4399         (objc_add_dynamic_declaration): New.
4400         * c-common.c (c_common_reswords): Add synthesize and dynamic.
4401         * stub-objc.c (objc_add_synthesize_declaration): New.
4402         (objc_add_dynamic_declaration): New.
4404 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4406         PR target/46041
4407         * c-cppbuiltin.c (mode_has_fma): Move function here from
4408         builtins.c.  Don't use the fma optab, instead just use the
4409         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4410         using -save-temps.
4412 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4414         Merge from 'apple/trunk' branch on FSF servers.
4416         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
4418         Radar 4330422
4419         * c-common.h (objc_non_volatilized_type): New declaration
4420         * stub-objc.c (objc_non_volatilized_type): New stub.
4422 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4424         Merge from 'apple/trunk' branch on FSF servers.
4426         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4428         Radar 4133425
4429         * c-common.h (objc_diagnose_private_ivar): New decl.
4430         * stub-objc.c (objc_diagnose_private_ivar): New stub.
4432 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4434         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4435         * c-common.h (enum rid): Add RID_AT_PACKAGE.
4436         (objc_ivar_visibility_kind): New enum.
4437         (objc_set_visibility): Adjust prototype to use visibility enum.
4438         * stub-objc.c (objc_set_visibility): Adjust stub to use
4439         visibility enum.
4441 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4443         * c-cppbuiltin.c (builtin_define_float_constants): Emit
4444         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4445         has the appropriate fma builtins.
4446         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4448 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4450         merge from FSF apple 'trunk' branch.
4451         2006 Fariborz Jahanian <fjahanian@apple.com>
4453         Radars 4436866, 4505126, 4506903, 4517826
4454         * c-common.c (c_common_resword): Define @property and its attributes.
4455         * c-common.h: Define property attribute enum entries.
4456         (OBJC_IS_PATTR_KEYWORD): New.
4457         (objc_property_attribute_kind): New enum.
4458         Declare objc_set_property_attr (), objc_add_property_variable (),
4459         objc_build_getter_call () and objc_build_setter_call ().
4460         * stub-objc.c (objc_set_property_attr): New stub.
4461         (objc_add_property_variable): Likewise.
4462         (objc_build_getter_call): Likewise.
4463         (objc_build_setter_call) Likewise.
4465 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
4467         merge from FSF apple 'trunk' branch.
4468         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4470         Radar 3803157 (method attributes)
4471         * c-common.c (handle_deprecated_attribute): Recognize
4472         objc methods as valid declarations.
4473         * c-common.h: Declare objc_method_decl ().
4474         * stub-objc.c (objc_method_decl): New stub.
4476 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4478         * c-common.c (parse_optimize_options): Call
4479         decode_cmdline_options_to_array_default_mask before
4480         decode_options.  Update arguments to decode_options.
4481         * c-common.h (c_common_init_options_struct): Declare.
4482         * c-opts.c (c_common_init_options_struct): New.  Split out from
4483         c_common_init_options.
4485 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4487         Implemented fast enumeration for Objective-C.
4488         * c-common.h (objc_finish_foreach_loop): New.
4489         * stub-objc.c (objc_finish_foreach_loop): New.
4491 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4493         * c-common.h (struct diagnostic_context): Don't declare here.
4494         (c_common_initialize_diagnostics): Declare using
4495         diagnostic_context typedef.
4496         * c-opts.c (c_common_handle_option): Pass global_dc to
4497         handle_generated_option.
4499 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4501         * c-opts.c (c_common_handle_option): Pass &global_options_set to
4502         handle_generated_option.
4504 2010-10-03  Ian Lance Taylor  <iant@google.com>
4506         * c.opt (-fplan9-extensions): New option.
4508 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4510         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4511         Remove.
4512         (c_cpp_builtins): Call functions from cppbuiltin.c instead
4513         of duplicating code.
4515 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
4517         * c-common.c: Add two new entries for @optional
4518         and @required keywords.
4520         merge from FSF 'apple/trunk' branch.
4521         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
4523         Radar 4386773
4524         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4525         objective-c keywords.
4526         (objc_set_method_opt): New declaration.
4527         * stub-objc.c (objc_set_method_opt): New stub.
4529 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4531         * c-common.c (handle_optimize_attribute): Pass &global_options to
4532         cl_optimization_save and cl_optimization_restore.
4533         * c-opts.c (c_common_handle_option): Pass &global_options to
4534         handle_generated_option.
4535         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4536         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4537         &global_options to cl_optimization_restore.
4539 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4541         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4542         Objective-C/Objective-C++ keywords.
4544 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4546         Merge from 'apple/trunk' branch on FSF servers.
4548         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
4550         Radar 4281748
4551         * c-common.h (objc_check_global_decl): New declaration.
4552         * stub-objc.c (objc_check_global_decl): New stub.
4554 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4556         * c.opt: Don't use VarExists.
4558 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4560         * c-common.c (c_cpp_error): Update names of diagnostic_context
4561         members.
4562         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4563         cl_optimization members.
4564         * c-opts.c (warning_as_error_callback, c_common_handle_option,
4565         sanitize_cpp_opts, finish_options): Update names of cpp_options
4566         members.
4568 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4570         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
4571         (objc_is_reserved_word): Removed.
4572         * c-common.c: Updated comments.
4573         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4574         objc_is_reserved_word.
4575         * stub-objc.c (objc_is_reserved_word): Removed.
4577 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4579         * c-common.h (objc_add_method_declaration): Adjust prototype to
4580         include attributes.
4581         (objc_start_method_definition): Likewise.
4582         (objc_build_keyword_decl): Likewise.
4583         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4584         (objc_start_method_definition): Likewise.
4585         (objc_build_keyword_decl): Likewise.
4587 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4589         * c-common.h (objc_start_class_interface): Adjust prototype.
4590         (objc_start_category_interface): Likewise.
4591         (objc_start_protocol): Likewise.
4592         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4593         (objc_start_class_interface): Likewise.
4594         (objc_start_category_interface): Likewise.
4596 2010-09-27  Ian Lance Taylor  <iant@google.com>
4598         * c-common.c (c_common_attribute_table): Add no_split_stack.
4599         (handle_no_split_stack_attribute): New static function.
4601 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4603         Merge from 'apple/trunk' branch on FSF servers.
4605         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
4607         Radar 4229905
4608         * c-common.h (objc_have_common_type): New declaration.
4609         * stub-objc.c (objc_have_common_type): New stub.
4611         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
4613         Radar 4154928
4614         * c-common.h (objc_common_type): New prototype.
4615         * stub-objc.c (objc_common_type): New stub.
4617 2010-09-24  Jan Hubicka  <jh@suse.cz>
4619         * c-common.c (handle_leaf_attribute): New function.
4620         (struct attribute_spec c_common_att): Add leaf.
4622 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4624         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4625         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4626         -dump, -dump=, -imacros, -imacros=, -include, -include=,
4627         -include-barrier, -include-directory, -include-directory=,
4628         -include-directory-after, -include-directory-after=,
4629         -include-prefix, -include-prefix=, -include-with-prefix,
4630         -include-with-prefix=, -include-with-prefix-after,
4631         -include-with-prefix-after=, -include-with-prefix-before,
4632         -include-with-prefix-before=, -no-integrated-cpp,
4633         -no-line-commands, -no-standard-includes, -no-warnings, -output,
4634         -output=, -pedantic, -pedantic-errors, -preprocess,
4635         -print-missing-file-dependencies, -trace-includes, -traditional,
4636         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4637         -user-dependencies, -verbose, -write-dependencies,
4638         -write-user-dependencies, no-integrated-cpp, traditional): New.
4640 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4642         PR objc/23710
4643         * c-common.h (objc_start_method_definition): Return bool instead
4644         of void.
4645         * stub-objc.c (objc_start_method_definition): Return bool instead
4646         of void.
4648 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4650         PR objc/25965
4651         * c-common.h (objc_get_interface_ivars): New declaration.
4652         * stub-objc.c (objc_get_interface_ivars): New stub.
4654 2010-09-15  Ian Lance Taylor  <iant@google.com>
4656         * c-common.c (parse_optimize_options): Do not capitalize warning
4657         messages.  Remove period at end of warning message.
4659 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4661         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4662         (handle_alias_attribute): ... here.
4663         (handle_ifunc_attribute): New.
4665 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4667         * c-common.h (do_warn_double_promotion): Declare.
4668         * c-common.c (do_warn_double_promotion): Define.
4670 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4672         * c.opt (Wdouble-promotion): New.
4674 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4676         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4677         fvtable-thunks, fxref): Mark no longer supported in help text.
4679 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4681         * c.opt (Wimport, fall-virtual, falt-external-templates,
4682         fdefault-inline, fenum-int-equiv, fexternal-templates,
4683         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4684         fname-mangling-version-, fnew-abi, fnonnull-objects,
4685         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4686         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4687         applicable.
4688         (fhandle-exceptions): Mark with Alias and Warn.
4689         * c-opts.c (c_common_handle_option): Don't handle options marked
4690         as ignored.
4692 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4694         * c.opt (Wcomments, Werror-implicit-function-declaration,
4695         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4696         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4697         aliases.
4698         * c-common.c (option_codes): Use OPT_Wcomment instead of
4699         OPT_Wcomments.
4700         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4701         Don't handle options marked as aliases.
4703 2010-08-25  Richard Guenther  <rguenther@suse.de>
4705         * c-common.c (c_common_get_alias_set): Remove special
4706         handling for pointers.
4708 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4710         * c-common.c: Use FOR_EACH_VEC_ELT.
4711         * c-gimplify.c: Likewise.
4712         * c-pragma.c: Likewise.
4714 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4716         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4717         RejectDriver.
4718         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4719         RejectDriver.
4720         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4721         instead of OPT_MDX and OPT_MMDX.
4723 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4725         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4727 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4729         * c.opt (MD, MMD): Change to MDX and MMDX.
4730         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4732 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4734         * c-opts.c (c_common_handle_option): Call handle_generated_option
4735         instead of handle_option.
4737 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4739         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4740         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4742 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4744         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4745         (pending_redefine_extname): Change type to a VEC.
4746         (add_to_renaming_pragma_list): Update for new type of
4747         pending_redefine_extname.
4748         (maybe_apply_renaming_pragma): Likewise.
4750 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4752         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4753         visited.
4754         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4755         decide whether a type has already been declared/seen.
4756         Do not go to the original type.
4757         (dump_nested_types): New parameter forward.
4758         Generate forward declaration if needed and mark type as visited.
4759         (print_ada_declaration): Call dump_nested_types if not already done.
4760         Mark types as visited.
4762 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4764         * c.opt (-print-pch-checksum): Remove option.
4765         * c-opts.c (c_common_handle_option): Don't handle
4766         OPT_print_pch_checksum.
4768 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4770         * c-common.h (c_common_handle_option): Update prototype and return
4771         value type.
4772         * c-opts.c (c_common_handle_option): Update prototype and return
4773         value type.  Update calls to handle_option and
4774         enable_warning_as_error.
4776 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4778         PR c/45079
4779         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4781 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4783         * c-common.h (c_common_missing_argument): Remove.
4784         * c-opts.c (c_common_missing_argument): Remove.
4785         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4786         idirafter, imacros, include, isysroot, isystem, iquote): Add
4787         MissingArgError.
4788         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4790 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4792         * c-common.h (c_common_option_lang_mask,
4793         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4794         New.
4795         (c_common_init_options): Update prototype.
4796         * c-opts.c (c_common_option_lang_mask): New.
4797         (c_common_initialize_diagnostics): Split out of
4798         c_common_init_options.
4799         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4800         New.
4801         (c_common_init_options): Update prototype.  Use decoded options in
4802         search for -lang-asm.
4804 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4806         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4807         * c-format.c: Likewise.
4809 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4811         * c-common.h: Include diagnostic-core.h. Error if already
4812         included.
4813         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4815 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4817         * c-common.c (IN_GCC_FRONTEND): Do not undef.
4818         Do not include expr.h
4819         (vector_mode_valid_p): Move here.
4821 2010-06-21  DJ Delorie  <dj@redhat.com>
4823         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4824         allow these pragmas anywhere.
4826 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4828         PR bootstrap/44509
4829         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4830         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4831         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4832         ggc_strdup instead of xstrdup.
4834 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4836         * c-cppbuiltin.c: Include cpp-id-data.h.
4837         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4838         (lazy_hex_fp_value): New function.
4839         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4841 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4843         * c-gimplify.c: Do not include tree-flow.h
4845 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4847         PR other/44034
4848         * c-common.c: Rename targetm member:
4849         targetm.enum_va_list -> targetm.enum_va_list_p
4851 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4853         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4855 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4857         * c-cppbuiltin.c: Do not include except.h.
4859 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4861         * c-common.c (warn_for_omitted_condop): New.
4862         * c-common.h (warn_for_omitted_condop): Add prototype.
4864 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4866         * c.opt (lang-objc): Remove.
4867         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4869 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4871         * c-opts.c: Include "tm_p.h".
4873 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4875         * c-common.c (parse_optimize_options): Update call to
4876         decode_options.
4878 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4880         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4881         new type of types_used_by_cur_var_decl.
4883 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
4885         PR bootstrap/44512
4886         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4887         for C++ standard compliance.
4889 2010-06-16  Jason Merrill  <jason@redhat.com>
4891         * c.opt: Add -Wnoexcept.
4893 2010-06-16  Richard Guenther  <rguenther@suse.de>
4895         PR c/44555
4896         * c-common.c (c_common_truthvalue_conversion): Remove
4897         premature and wrong optimization concering ADDR_EXPRs.
4899 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
4901         * c-ada-spec.c (dump_sloc): Remove column info.
4902         (is_simple_enum): New function.
4903         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4904         enum types when relevant.
4906 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4908         * c-common.c (conversion_warning): Warn at expression
4909         location.
4911 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4913         * c-opts.c (c_common_handle_option): Don't handle
4914         OPT_fshow_column.
4916 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4918         * c-pragma.c (push_alignment): Use typed GC allocation.
4919         (handle_pragma_push_options): Likewise.
4921         * c-common.c (parse_optimize_options): Likewise.
4923         * c-common.h (struct sorted_fields_type): Add variable_size GTY
4924         option.
4926 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4928         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4929         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4930         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4931         flag_signed_bitfields, warn_strict_null_sentinel,
4932         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4933         flag_gen_declaration, flag_no_gnu_keywords,
4934         flag_implement_inlines, flag_implicit_templates,
4935         flag_implicit_inline_templates, flag_optional_diags,
4936         flag_elide_constructors, flag_default_inline, flag_rtti,
4937         flag_conserve_space, flag_access_control, flag_check_new,
4938         flag_new_for_scope, flag_weak, flag_working_directory,
4939         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4940         flag_enforce_eh_specs, flag_threadsafe_statics,
4941         flag_pretty_templates): Remove.
4942         * c-common.h (flag_preprocess_only, flag_nil_receivers,
4943         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4944         flag_replace_objc_classes, flag_undef, flag_no_builtin,
4945         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4946         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4947         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4948         flag_no_gnu_keywords, flag_implement_inlines,
4949         flag_implicit_templates, flag_implicit_inline_templates,
4950         flag_optional_diags, flag_elide_constructors, flag_default_inline,
4951         flag_rtti, flag_conserve_space, flag_access_control,
4952         flag_check_new, flag_new_for_scope, flag_weak,
4953         flag_working_directory, flag_use_cxa_atexit,
4954         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4955         flag_threadsafe_statics, flag_pretty_templates,
4956         warn_strict_null_sentinel): Remove.
4957         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4958         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4959         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4960         fimplicit-inline-templates, fimplicit-templates,
4961         flax-vector-conversions, fms-extensions, fnil-receivers,
4962         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4963         frtti, fshort-double, fshort-enums, fshort-wchar,
4964         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4965         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4966         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4967         gen-decls, undef): Use Var.
4968         (fdefault-inline, foptional-diags): Document as doing nothing.
4969         * c-opts.c (c_common_handle_option): Remove cases for options now
4970         using Var.  Mark ignored options as such.
4972 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4974         * c-common.c: Moved to here from parent directory.
4975         * c-common.def: Likewise.
4976         * c-common.h: Likewise.
4977         * c-cppbuiltin.c: Likewise.
4978         * c-dump.c: Likewise.
4979         * c-format.c: Likewise.
4980         * c-format.h : Likewise.
4981         * c-gimplify.c: Likewise.
4982         * c-lex.c: Likewise.
4983         * c-omp.c: Likewise.
4984         * c.opt: Likewise.
4985         * c-opts.c: Likewise.
4986         * c-pch.c: Likewise.
4987         * c-ppoutput.c: Likewise.
4988         * c-pragma.c: Likewise.
4989         * c-pragma.h: Likewise.
4990         * c-pretty-print.c: Likewise.
4991         * c-pretty-print.h: Likewise.
4992         * c-semantics.c: Likewise.
4993         * stub-objc.c: Likewise.
4995         * c-common.c: Include gt-c-family-c-common.h.
4996         * c-pragma.c: Include gt-c-family-c-pragma.h.
4998 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5000 Copying and distribution of this file, with or without modification,
5001 are permitted in any medium without royalty provided the copyright
5002 notice and this notice are preserved.