remove most ifdef STACK_GROWS_DOWNWARD
[official-gcc.git] / gcc / c-family / ChangeLog
blob126301bf4cdc8ecabe47f5d42b86e501e245afd3
1 2015-05-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
4         STACK_GROWS_DOWNWARD.
6 2015-05-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
9         STACK_GROWS_DOWNWARD rather than if it is defined.
11 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12         
13         PR c/52952
14         * c-format.c (location_column_from_byte_offset): New.
15         (location_from_offset): New.
16         (struct format_wanted_type): Add offset_loc field.
17         (check_format_info): Move handling of location for extra arguments
18         closer to the point of warning.
19         (check_format_info_main): Pass the result of location_from_offset
20         to warning_at.
21         (format_type_warning): Pass the result of location_from_offset
22         to warning_at.
24 2015-05-20  Marek Polacek  <polacek@redhat.com>
26         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
28 2015-05-20  Marek Polacek  <polacek@redhat.com>
30         * c-ada-spec.c (dump_sloc): Use DECL_P.
32 2015-05-20  Marek Polacek  <polacek@redhat.com>
34         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
35         * c-common.c: Likewise.
37 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
39         * c-common.h (fe_file_change): Strengthen param from
40         const line_map * to const line_map_ordinary *.
41         (pp_file_change): Likewise.
42         * c-lex.c (fe_file_change): Likewise.
43         (cb_define): Use linemap_check_ordinary when invoking
44         SOURCE_LINE.
45         (cb_undef): Likewise.
46         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
47         invoking cb_file_change.
48         (c_finish_options): Likewise.
49         (push_command_line_include): Likewise.
50         (cb_file_change): Strengthen param "new_map" from
51         const line_map * to const line_map_ordinary *.
52         * c-ppoutput.c (cb_define): Likewise for local "map".
53         (pp_file_change): Likewise for param "map" and local "from".
55 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
57         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
59 2015-05-18  Tom de Vries  <tom@codesourcery.com>
61         * c-common.c (build_va_arg_1): New function.
62         (build_va_arg): Add address operator to va_list operand if necessary.
64 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
66         PR c/48956
67         * c-common.c (int_safely_convertible_to_real_p): Define.
68         (unsafe_conversion_p): Check conversions involving complex types.
69         (conversion_warning): Add new warning message for conversions which
70         discard imaginary component.
71         * c-common.h: (enum conversion_safety): Add new enumerator for such
72         conversions.
74 2015-05-14  Marek Polacek  <polacek@redhat.com>
76         PR c/66066
77         PR c/66127
78         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
79         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
80         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
81         use it.  If FOR_INT_CONST, require that all evaluated operands be
82         INTEGER_CSTs.
84 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
86         * c-common.h (warn_for_misleading_indentation): New prototype.
87         * c-indentation.c: New file.
88         * c.opt (Wmisleading-indentation): New option.
90 2015-05-12  Tom de Vries  <tom@codesourcery.com>
92         PR tree-optimization/66010
93         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
95 2015-05-09  Jason Merrill  <jason@redhat.com>
97         * c-opts.c (c_common_post_options): Also clear
98         cpp_opts->cpp_warn_cxx11_compat.
100         * c-common.h (enum cxx_dialect): Add cxx_unset.
101         * c-common.c (cxx_dialect): Initialize to cxx_unset.
102         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
104         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
105         (std=gnu++0x): Mark as Undocumented.
106         (std=gnu++1y): Add deprecated message.
108 2015-05-08  Jason Merrill  <jason@redhat.com>
110         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
111         * c-opts.c: Adjust.
113         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
115 2015-05-08  Marek Polacek  <polacek@redhat.com>
117         PR c/64918
118         * c.opt (Woverride-init-side-effects): New option.
120 2015-05-07  Marek Polacek  <polacek@redhat.com>
122         PR c/65179
123         * c-common.c (c_fully_fold_internal): Warn when left shifting a
124         negative value.
125         * c.opt (Wshift-negative-value): New option.
126         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
127         when -Wextra and C99/C++11 mode.
129 2015-05-07  Marek Polacek  <polacek@redhat.com>
130             Martin Uecker  <uecker@eecs.berkeley.edu>
132         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
133         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
135 2015-05-05  Jason Merrill  <jason@redhat.com>
137         * c.opt (Wterminate): New.
139 2015-04-30  Marek Polacek  <polacek@redhat.com>
141         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
142         require that the non-constant be of a boolean type.
144 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
146         * c-common.c (handle_section_attribute): Refactor to reduce
147         nesting and distinguish between error cases.
149 2015-04-29  Marek Polacek  <polacek@redhat.com>
151         PR c/64610
152         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
153         with 0/1.
155 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
157         * c-common.h (omp_clause_mask): Unconditionally define as a class.
158         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
159         HOST_BITS_PER_WIDE_INT.
161 2015-04-28  Tom de Vries  <tom@codesourcery.com>
163         PR tree-optimization/65887
164         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
166 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
167             Pierre-Marie de Rodat  <derodat@adacore.com>
169         * c-ada-spec.c (in_function): Delete.
170         (dump_generic_ada_node): Do not change in_function and remove the
171         redundant code dealing with it.
172         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
173         (print_ada_methods): Output the static member functions in a nested
174         package after the regular methods as well as associated renamings.
176 2015-04-24  Marek Polacek  <polacek@redhat.com>
178         PR c/65830
179         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
180         and OPT_Wshift_count_overflow.
182         PR c/63357
183         * c-common.c (warn_logical_operator): Warn if the operands have the
184         same expressions.
186 2015-04-24  Marek Polacek  <polacek@redhat.com>
188         PR c/61534
189         * c-common.c (warn_logical_operator): Bail if either operand comes
190         from a macro expansion.
192 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
194         PR target/55143
195         * c-common.c (c_default_pointer_mode): Add definition.
196         * c-common.h (c_default_pointer_mode): Add declaration.
198 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
200         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
201         on record_builtin_type argument.
203 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
205         PR c/65120
206         * c-common.c (warn_logical_not_parentheses): Don't warn for
207         !x == 0 or !x != 0.
209 2015-03-07  Marek Polacek  <polacek@redhat.com>
211         PR sanitizer/65280
212         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
213         before trying to figure out whether we have a flexible array member.
215 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
216             Jonathan Wakely  <jwakely.gcc@gmail.com>
218         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
220 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
222         PR ada/65319
223         * c-ada-spec.c (print_destructor): Remove obsolete code.
225 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
227         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
228         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
229         DECL_TEMPLATE_RESULT emulations.
230         (dump_ada_template)): Add guard for TYPE_METHODS.
232 2015-02-27  Marek Polacek  <polacek@redhat.com>
234         PR c/65040
235         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
237 2015-02-27  Kai Tietz  <ktietz@redhat.com>
239         PR c/35330
240         * c-pragma.c (handle_pragma_weak): Do not try to create
241         weak/alias of declarations not being function, or variable
242         declarations.
244 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
246         PR libgomp/64625
247         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
248         Remove macros.
249         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
251 2015-02-16  Marek Polacek  <polacek@redhat.com>
253         PR c/65066
254         * c-format.c (check_format_types): Handle null param.
256 2015-02-13  Marek Polacek  <polacek@redhat.com>
258         PR c/65040
259         * c-format.c (check_format_types): Don't warn about different
260         signedness if the original value is in the range of WANTED_TYPE.
262 2015-02-12  Jason Merrill  <jason@redhat.com>
264         PR c++/64956
265         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
266         to the current highest version.
267         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
269 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
271         PR c/64824
272         PR c/64868
273         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
274         instead of RDIV_EXPR.  Use build_binary_op instead of
275         build2_loc.
277 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
279         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
280         to pass input_location as first argument.
282 2015-01-23  Tom de Vries  <tom@codesourcery.com>
284         PR libgomp/64672
285         * c.opt (fopenacc): Mark as LTO option.
287 2015-01-23  Tom de Vries  <tom@codesourcery.com>
289         PR libgomp/64707
290         * c.opt (fopenmp): Mark as LTO option.
292 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
294         PR c/63307
295         * cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
296         (compare_decls): Fix up formatting.
298 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
300         PR c/63307
301         * cilk.c: Include vec.h.
302         (struct cilk_decls): New structure.
303         (wrapper_parm_cb): Split this function to...
304         (fill_decls_vec): ...this...
305         (create_parm_list): ...and this.
306         (compare_decls): New function.
307         (for_local_cb): Remove.
308         (wrapper_local_cb): Ditto.
309         (build_wrapper_type): For now first traverse and fill vector of
310         declarations then sort it and then deal with sorted vector.
311         (cilk_outline): Ditto.
312         (declare_one_free_variable): Ditto.
314 2015-01-21  Jason Merrill  <jason@redhat.com>
316         PR c++/64629
317         * c-format.c (check_format_arg): Call decl_constant_value.
319 2015-01-19  Martin Liska  <mliska@suse.cz>
321         * c-common.c (handle_noicf_attribute): New function.
323 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
324             Bernd Schmidt  <bernds@codesourcery.com>
325             James Norris  <jnorris@codesourcery.com>
326             Cesar Philippidis  <cesar@codesourcery.com>
327             Ilmir Usmanov  <i.usmanov@samsung.com>
328             Jakub Jelinek  <jakub@redhat.com>
330         * c.opt (fopenacc): New option.
331         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
332         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
333         New macros.
334         * c-common.h (c_finish_oacc_wait): New prototype.
335         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
336         (c_finish_oacc_wait): New function.
337         * c-pragma.c (oacc_pragmas): New variable.
338         (c_pp_lookup_pragma, init_pragma): Handle it.
339         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
340         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
341         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
342         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
343         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
344         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
345         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
346         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
347         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
348         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
349         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
350         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
351         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
352         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
353         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
354         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
355         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
356         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
357         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
358         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
359         PRAGMA_OACC_CLAUSE_WORKER.
361 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
363         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
364         for the new option fstack-protector_explicit.
365         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
366         (handle_stack_protect_attribute): New function.
368 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
370         * c.opt: New option -Warray-bounds=.
372 2015-01-09  Michael Collison  <michael.collison@linaro.org>
374         * array-notation-common.c: Include hash-set.h, machmode.h,
375         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
376         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
377         * c-ada-spec.c: Ditto.
378         * c-cilkplus.c: Ditto.
379         * c-common.c: Include input.h due to flattening of tree.h.
380         Define macro GCC_C_COMMON_C.
381         * c-common.h: Flatten tree.h header files into c-common.h.
382         Remove include of tree-core.h.
383         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
384         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
385         fold-const.h, wide-int.h, and inchash.h due to
386         flattening of tree.h.
387         * c-dump.c: Ditto.
388         * c-format.c: Flatten tree.h header files into c-common.h.
389         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
390         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
391         fold-const.h, wide-int.h, and inchash.h due to
392         flattening of tree.h.
393         * c-dump.c: Include hash-set.h, machmode.h,
394         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
395         fold-const.h, wide-int.h, and inchash.h due to
396         flattening of tree.h.
397         * c-format.c: Include hash-set.h, machmode.h,
398         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
399         fold-const.h, wide-int.h, inchash.h and real.h due to
400         flattening of tree.h.
401         * c-gimplify.c: Include hash-set.h, machmode.h,
402         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
403         fold-const.h, wide-int.h, and inchash.h due to
404         flattening of tree.h.
405         * cilk.c: Ditto.
406         * c-lex.c: Ditto.
407         * c-omp.c: Ditto.
408         * c-opts.c: Ditto.
409         * c-pch.c: Ditto.
410         * c-ppoutput.c: Ditto.
411         * c-pragma.c: Ditto.
412         * c-pretty-print.c: Ditto.
413         * c-semantics.c: Ditto.
414         * c-ubsan.c: Ditto.
415         * stub-objc.c: Ditto.
417 2015-01-08  Jason Merrill  <jason@redhat.com>
419         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
420         do_ubsan_in_current_function.
421         (ubsan_maybe_instrument_reference_or_call): Likewise.
422         * c-ubsan.h: Declare it.
424 2015-01-08  Mike Stump  <mikestump@comcast.net>
426         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
428 2015-01-07  Marek Polacek  <polacek@redhat.com>
430         PR c/64440
431         * c-common.c (c_fully_fold_internal): Warn for division and modulo
432         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
434 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
436         PR c++/31397
437         * c.opt (Wsuggest-override): New option.
439 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
441         Update copyright years.
443 2015-01-05  Marek Polacek  <polacek@redhat.com>
445         PR c/64423
446         * c-common.c (warn_array_subscript_with_type_char): Add location_t
447         parameter.  Use it.
448         * c-common.h (warn_array_subscript_with_type_char): Update
449         declaration.
451 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
453         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
454         Control macro with flag_sized_deallocation.
456 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
458         * c.opt (Wdiscarded-array-qualifiers): New option.
460 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
462         PR preprocessor/63831
463         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
464         and __has_cpp_attribute here.
465         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
466         c_common_has_attribute.
467         * c-common.h (c_common_has_attribute): New prototype.
468         * c-lex.c (init_c_lex): Set cb->has_attribute to
469         c_common_has_attribute instead of cb_has_attribute.
470         (get_token_no_padding): New function.
471         (cb_has_attribute): Renamed to ...
472         (c_common_has_attribute): ... this.  No longer static.  Use
473         get_token_no_padding, require ()s, don't build TREE_LIST
474         unnecessarily, fix up formatting, adjust diagnostics, call
475         init_attributes.
477 2014-12-15  Jason Merrill  <jason@redhat.com>
479         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
480         (-Wsized-deallocation): New.
481         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
482         to on in C++14 and up.
484 2014-12-11  Jason Merrill  <jason@redhat.com>
486         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
488         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
489         we aren't complaining about VLAs.
491 2014-12-06  Marek Polacek  <polacek@redhat.com>
493         PR tree-optimization/64183
494         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
495         shift-expression if it is integer_type_node.  Use types_compatible_p.
497 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
499         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
500         last argument from create_tmp_var_raw and create_tmp_var calls.
501         * cilk.c (gimplify_cilk_spawn): Likewise.
502         * c-omp.c (c_finish_omp_atomic): Likewise.
504 2014-11-28  Marek Polacek  <polacek@redhat.com>
506         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
507         instead of unsigned_type_node.
509 2014-11-28  Marek Polacek  <polacek@redhat.com>
511         PR c/63862
512         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
513         to op1_utype.
514         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
515         expression to unsigned_type_node.
517 2014-11-20  Mark Wielaard  <mjw@redhat.com>
519         PR debug/38757
520         * c-opts.c (set_std_c89): Set lang_hooks.name.
521         (set_std_c99): Likewise.
522         (set_std_c11): Likewise.
523         (set_std_cxx98): Likewise.
524         (set_std_cxx11): Likewise.
525         (set_std_cxx14): Likewise.
526         (set_std_cxx1z): Likewise.
528 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
530         PR target/63764
531         * c-common.h (convert_vector_to_pointer_for_subscript): Change
532         return type to bool.
533         * c-common.c: Include gimple-expr.h.
534         (convert_vector_to_pointer_for_subscript): Change return type to
535         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
536         and copy it into a TARGET_EXPR and use that instead of *vecp
537         directly.
539 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
541         Merger of git branch "gimple-classes-v2-option-3".
542         * ChangeLog.gimple-classes: New.
543         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
544         from being just a vec<gimple> to a vec<gbind *>.
546 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
548         PR sanitizer/63813
549         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
550         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
551         get_pointer_alignment for non-pointers.  Use ptype, or if it is
552         reference type, corresponding pointer type, as type of kind
553         argument.
554         (ubsan_maybe_instrument_reference,
555         ubsan_maybe_instrument_member_call): Adjust callers.
557 2014-11-15  Marek Polacek  <polacek@redhat.com>
559         PR middle-end/63884
560         * array-notation-common.c (is_sec_implicit_index_fn): Return false
561         for NULL fndecl.
562         (extract_array_notation_exprs): Return for NULL node.
564 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
566         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
567         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
569 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
571         PR c/59708
572         * c-common.c (check_builtin_function_arguments): Handle
573         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
575 2014-11-10  Andi Kleen  <ak@linux.intel.com>
577         PR c/60804
578         * c-common.h (check_no_cilk): Declare.
579         * cilk.c (get_error_location): New function.
580         (check_no_cilk): Dito.
582 2014-11-10  Andi Kleen  <ak@linux.intel.com>
584         * cilk.c (recognize_spawn): Use expression location
585         for error message.
587 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
589         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
591 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
593         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
594         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
595         (__cpp_range_based_for, __cpp_initializer_lists,
596         __cpp_delegating_constructors, __cpp_nsdmi,
597         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
598         for C++11; (__cpp_attribute_deprecated): Remove in favor of
599         __has_cpp_attribute.
600         * c-lex.c (cb_has_attribute): New callback CPP function;
601         (init_c_lex): Set has_attribute callback.
603 2014-11-04  Richard Biener  <rguenther@suse.de>
605         * c-common.c (shorten_compare): Do not shorten mixed
606         DFP and non-DFP compares.
608 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
610         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
611         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
612         Commentary and rearrangement of tests.
613         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
614         Commentary and rearrangement of tests.
615         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
616         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
618 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
620         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
621         enum from machine_mode.
623 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
625         * c-common.c: Adjust include files.
626         * c-gimplify.c: Ditto.
627         * cilk.c: Ditto.
628         * c-pragma.c: Ditto.
629         * c-ubsan.c: Ditto.
631 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
633         * c-gimplify.c: Adjust include files.
635 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
637         PR c++/53061
638         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
639         c_common_initialize_diagnostics.
640         * c-common.h: Likewise.
642 2014-10-24  Marek Polacek  <polacek@redhat.com>
644         PR c/56980
645         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
646         print "struct"/"union"/"enum" for typedefed names.
648 2014-10-23  Marek Polacek  <polacek@redhat.com>
650         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
651         in unsigned type.
653 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
654             Yury Gribov  <y.gribov@samsung.com>
656         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
657         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
658         instead of flag_sanitize_recover as bool flag.
660 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
662         * cilk.c: Revert previous change.
664 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
666         PR c/63307
667         * cilk.c: Include vec.h.
668         (struct cilk_decls): New structure.
669         (wrapper_parm_cb): Split this function to...
670         (fill_decls_vec): ...this...
671         (create_parm_list): ...and this.
672         (compare_decls): New function.
673         (for_local_cb): Remove.
674         (wrapper_local_cb): Ditto.
675         (build_wrapper_type): For now first traverse and fill vector of
676         declarations then sort it and then deal with sorted vector.
677         (cilk_outline): Ditto.
678         (declare_one_free_variable): Ditto.
680 2014-10-17  Marek Polacek  <polacek@redhat.com>
682         * c-opts.c (c_common_post_options): Set warn_implicit_int.
683         * c.opt (Wimplicit-int): Initialize to -1.
685 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
687         * c-pragma.c: Adjust include files.
688         * c-semantics.c: Likewise.
690 2014-10-16  DJ Delorie  <dj@redhat.com>
692         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
693         multiples of bytes.
695 2014-10-14  Jason Merrill  <jason@redhat.com>
697         PR c++/63455
698         * c-common.h (CPP_PREPARSED_EXPR): New.
699         (N_CP_TTYPES): Adjust.
701 2014-10-15  Marek Polacek  <polacek@redhat.com>
703         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
705 2014-10-14  DJ Delorie  <dj@redhat.com>
707         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
708         types, not just __int128.
709         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
710         types, not just __int128.
711         (cpp_atomic_builtins): Round pointer sizes up.
712         (type_suffix): Use type precision, not specific types.
713         * c-common.c (c_common_reswords): Remove __int128 special case.
714         (c_common_type_for_size): Check for all __intN types, not just
715         __int128.
716         (c_common_type_for_mode): Likewise.
717         (c_common_signed_or_unsigned_type): Likewise.
718         (c_build_bitfield_integer_type): Likewise.
719         (c_common_nodes_and_builtins): Likewise.
720         (keyword_begins_type_specifier): Likewise.
721         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
722         __intN variants.
724 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
726         * c-common.c: Use hash_table instead of hashtab.
728 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
730         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
731         C++11 section.
733 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
735         PR c++/54427
736         PR c++/57198
737         PR c++/58845
738         * c-common.c (warn_logical_operator): Punt for vectors.
740 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
742         Implement SD-6: SG10 Feature Test Recommendations
743         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
744         macros and the __has_header macro.
746 2014-09-30  Jason Merrill  <jason@redhat.com>
748         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
749         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
750         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
752         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
753         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
755         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
756         * c-common.c (c_common_reswords): Remove __is_convertible_to.
758 2014-09-24  Marek Polacek  <polacek@redhat.com>
760         PR c/61405
761         PR c/53874
762         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
764 2014-09-23  Andi Kleen  <ak@linux.intel.com>
766         * c-common.c (handle_no_reorder_attribute): New function.
767         (c_common_attribute_table): Add no_reorder attribute.
769 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
771         * c-cppbuiltin.c (c_cpp_builtins): Define
772         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
773         modes.
775 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
777         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
778         for supported floating-point modes.
780 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
782         * c.opt (Wpsabi): Use LangEnabledBy.
783         * c-opts.c (c_common_handle_option): Do not handle here.
785 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
787         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
788         macros for floating-point modes.
790 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
792         PR target/58757
793         * c-cppbuiltin.c (builtin_define_float_constants): Correct
794         __*_DENORM_MIN__ without denormals.
796 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
798         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
799         ubsan_instrument_vla, ubsan_instrument_return): Adjust
800         ubsan_create_data callers.
801         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
802         index is constant or BIT_AND_EXPR with constant mask and is
803         small enough for the bound.
804         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
805         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
807 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
809         * c.opt: Add CppReason to various flags.
810         (Wdate-time): Re-sort.
811         * c-common.c: Include c-common.h earlier.
812         (struct reason_option_codes_t): Delete.
813         (c_option_controlling_cpp_error): Prefix global type and struct
814         with cpp_.
816 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
818         * c.opt (Wnormalized): New.
819         (Wnormalized=): Use Enum and Reject Negative.
820         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
822 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
824         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
825         digits of floating-point modes if -fbuilding-libgcc.
827 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
829         * c-cppbuiltin.c (c_cpp_builtins): Also define
830         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
831         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
832         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
833         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
834         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
835         __LIBGCC_STACK_GROWS_DOWNWARD__,
836         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
837         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
838         __LIBGCC_DWARF_FRAME_REGISTERS__,
839         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
840         __LIBGCC_STACK_POINTER_REGNUM__ and
841         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
842         (builtin_define_with_value): Handle backslash-escaping in string
843         macro values.
845 2014-09-05  Richard Biener  <rguenther@suse.de>
847         PR middle-end/63148
848         * c-format.c (check_format_arg): Properly handle
849         effectively signed POINTER_PLUS_EXPR offset.
851 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
853         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
854         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
855         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
856         and Init.
857         * c-opts.c (c_common_handle_option): Do not handle here.
858         (sanitize_cpp_opts): Likewise.
859         * c-common.c (struct reason_option_codes_t): Handle
860         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
862 2014-09-03  Marek Polacek  <polacek@redhat.com>
864         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
866 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
867             Balaji V. Iyer  <balaji.v.iyer@intel.com>
868             Igor Zamyatin  <igor.zamyatin@intel.com>
870         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
871         * c-common.c (c_common_reswords): Added _Cilk_for.
872         * c-common.h (enum rid): Added RID_CILK_FOR.
873         (cilk_for_number_of_iterations): Add declaration.
874         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
875         CILK_FOR.
876         * c-pragma.c (init_pragma): Register "grainsize" pragma.
877         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
879 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
881         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
882         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
883         Wundef): Use CPP, Var and Init.
884         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
886 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
888         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
889         * c-opts.c (c_common_handle_option): Do not handle here.
891 2014-08-25  Jason Merrill  <jason@redhat.com>
893         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
894         -std=c++14 and -std=gnu++14, rather than the reverse.
895         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
896         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
897         * c-common.h (cxx_dialect): Remove cxx1y.
899 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
901         * c-common.h (enum cxx_dialect): Add cxx14.
902         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
903         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
904         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
906 2014-08-22  Jason Merrill  <jason@redhat.com>
908         * c.opt (std=gnu++17): Fix alias.
910 2014-08-22  Marek Polacek  <polacek@redhat.com>
912         PR c++/62199
913         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
914         check for vector types.  Drop LHS argument.
915         * c-common.h (warn_logical_not_parentheses): Adjust.
917 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
919         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
920         (Wmultichar): Likewise.
921         (Wdate-time): Use C-family languages instead of Common. Use CPP
922         and Var.
923         * c-opts.c (c_common_handle_option): Do not handle the above
924         options here.
925         (sanitize_cpp_opts): Likewise.
927 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
929         PR fortran/44054
930         * c-opts.c: Include tree-diagnostics.h.
931         (c_diagnostic_finalizer): New.
932         (c_common_initialize_diagnostics): Use it.
934 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
936         PR preprocessor/51303
937         * c-common.c (struct reason_option_codes_t option_codes):
938         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
940 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
942         PR c/60975
943         PR c/53063
944         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
945         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
946         (c_common_post_options): Call init_global_opts_from_cpp.
947         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
949 2014-08-19  Marek Polacek  <polacek@redhat.com>
951         PR c++/62153
952         * c-common.c (maybe_warn_bool_compare): New function.
953         * c-common.h (maybe_warn_bool_compare): Declare.
954         * c.opt (Wbool-compare): New option.
956 2014-08-19  Marek Polacek  <polacek@redhat.com>
958         * c.opt (Wc99-c11-compat): New option.
960 2014-08-19  Marek Polacek  <polacek@redhat.com>
962         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
963         to warn_c90_c99_compat.
964         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
965         to -1.
967 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
968             Steven Bosscher  <steven@gcc.gnu.org>
970         PR c/52952
971         * c-format.c: Add extra_arg_loc and format_string_loc to struct
972         format_check_results.
973         (check_function_format): Use true and add comment for boolean
974         argument.
975         (finish_dollar_format_checking): Use explicit location when warning.
976         (check_format_info): Likewise.
977         (check_format_arg): Set extra_arg_loc and format_string_loc.
978         (check_format_info_main): Use explicit location when warning.
979         (check_format_types): Pass explicit location.
980         (format_type_warning): Likewise.
982 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
984         PR fortran/44054
985         * c-format.c: Handle Fortran flags.
987 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
989         PR other/61962
990         * array-notation-common.c (find_rank): Added handling for other
991         types of references.
993 2014-08-10  Marek Polacek  <polacek@redhat.com>
995         PR c/51849
996         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
997         * c.opt (Wc90-c99-compat): Add option.
999 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
1001         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1003 2014-08-03  Marek Polacek  <polacek@redhat.com>
1005         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
1006         (c_add_case_label): Pass loc to check_case_value.
1008 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1010         * cilk.c: Use hash_map instead of pointer_map.
1012 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1014         * c-gimplify.c: Use hash_set instead of pointer_set.
1016 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
1018         PR middle-end/61455
1019         * array-notation-common.c (extract_array_notation_exprs): Handling
1020         of DECL_EXPR added.
1022 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
1024         * c-common.h (min_align_of_type): Removed prototype.
1025         * c-common.c (min_align_of_type): Removed.
1026         * c-ubsan.h (ubsan_maybe_instrument_reference,
1027         ubsan_maybe_instrument_member_call): New prototypes.
1028         * c-ubsan.c: Include stor-layout.h and builtins.h.
1029         (ubsan_maybe_instrument_reference_or_call,
1030         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1031         functions.
1033 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
1035         PR c++/60517
1036         * c.opt (-Wreturn-local-addr): Move to common.opt.
1038 2014-07-30  Jason Merrill  <jason@redhat.com>
1040         PR c++/61659
1041         PR c++/61687
1042         Revert:
1043         * c.opt (-fuse-all-virtuals): New.
1045 2014-07-30  Tom Tromey  <tromey@redhat.com>
1047         PR c/59855
1048         * c.opt (Wdesignated-init): New option.
1049         * c-common.c (c_common_attribute_table): Add "designated_init".
1050         (handle_designated_init): New function.
1052 2014-07-24  Marek Polacek  <polacek@redhat.com>
1054         PR c/57653
1055         * c-opts.c (c_finish_options): If -imacros is in effect, return.
1057 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
1059         PR preprocessor/60723 - missing system-ness marks for macro tokens
1060         * c-ppoutput.c (struct print::prev_was_system_token): New data
1061         member.
1062         (init_pp_output): Initialize it.
1063         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1064         (do_line_change): Return a flag saying if a line marker was
1065         emitted or not.
1066         (scan_translation_unit): Detect if the system-ness of the token we
1067         are about to emit is different from the one of the previously
1068         emitted token.  If so, emit a line marker.  Avoid emitting useless
1069         adjacent line markers.  Avoid emitting line markers for tokens
1070         originating from the expansion of built-in macros.
1071         (scan_translation_unit_directives_only): Adjust.
1073 2014-07-15  Marek Polacek  <polacek@redhat.com>
1075         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1076         TYPE_MAX_VALUE is NULL.
1078 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
1080         PR middle-end/61294
1081         * c.opt (Wmemset-transposed-args): New warning.
1083 2014-07-10  Jason Merrill  <jason@redhat.com>
1085         PR c++/61659
1086         PR c++/61687
1087         * c.opt (-fuse-all-virtuals): New.
1089 2014-07-09  Richard Biener  <rguenther@suse.de>
1091         PR c-family/61741
1092         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1093         using unsigned arithmetic if overflow does not wrap instead of
1094         if overflow is undefined.
1096 2014-07-06  Marek Polacek  <polacek@redhat.com>
1098         PR c/6940
1099         * c.opt (Wsizeof-array-argument): New option.
1101 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
1103         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
1104         comments->count <= 1, as comments->entries might be NULL.
1106 2014-07-01  Marek Polacek  <polacek@redhat.com>
1108         * c.opt (Wint-conversion): New option.
1110 2014-07-01  Marek Polacek  <polacek@redhat.com>
1112         PR c/58286
1113         * c.opt (Wincompatible-pointer-types): New option.
1115 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
1117         PR c++/51400
1118         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1119         Do not discard TYPE_QUALS of type.
1121 2014-06-26  Jason Merrill  <jason@redhat.com>
1123         * c-common.h (enum cxx_dialect): Add cxx1z.
1124         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1125         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1127 2014-06-26  Teresa Johnson  <tejohnson@google.com>
1129         * c-common.h (get_dump_info): Declare.
1130         * c-gimplify.c (c_genericize): Use saved dump files.
1131         * c-opts.c (c_common_parse_file): Begin and end dumps
1132         once around parsing invocation.
1133         (get_dump_info): New function.
1135 2014-06-23  Marek Polacek  <polacek@redhat.com>
1136             Andrew MacLeod  <amacleod@redhat.com>
1138         PR c/61553
1139         * c-common.c (get_atomic_generic_size): Don't segfault if the
1140         type doesn't have a size.
1142 2014-06-20  Marek Polacek  <polacek@redhat.com>
1144         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1145         (ubsan_walk_array_refs_r): New function.
1146         (c_genericize): Instrument array bounds.
1147         * c-ubsan.c: Include "internal-fn.h".
1148         (ubsan_instrument_division): Mark instrumented arrays as having
1149         side effects.  Adjust ubsan_type_descriptor call.
1150         (ubsan_instrument_shift): Likewise.
1151         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1152         (ubsan_instrument_bounds): New function.
1153         (ubsan_array_ref_instrumented_p): New function.
1154         (ubsan_maybe_instrument_array_ref): New function.
1155         * c-ubsan.h (ubsan_instrument_bounds): Declare.
1156         (ubsan_array_ref_instrumented_p): Declare.
1157         (ubsan_maybe_instrument_array_ref): Declare.
1159 2014-06-20  Hale Wang  <hale.wang@arm.com>
1161         PR lto/61123
1162         * c.opt (fshort-enums): Add to LTO.
1163         * c.opt (fshort-wchar): Likewise.
1165 2014-06-16  Marek Polacek  <polacek@redhat.com>
1167         PR c/60439
1168         * c.opt (Wswitch-bool): Add Var.
1170 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
1172         PR middle-end/61486
1173         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1174         #pragma omp target teams or
1175         #pragma omp {,target }teams distribute simd.
1177 2014-06-12  Jason Merrill  <jason@redhat.com>
1179         * c.opt (Wabi=, fabi-compat-version): New.
1180         * c-opts.c (c_common_handle_option): Handle -Wabi=.
1181         (c_common_post_options): Handle flag_abi_compat_version default.
1182         Disallow -fabi-compat-version=1.
1183         * c-common.h (abi_version_crosses): New.
1185 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
1187         * c-common.c (handle_section_attribute): Update handling for
1188         section names that are no longer trees.
1190 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1192         PR fortran/60928
1193         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1194         (omp_pragmas): ... back here.
1196 2014-06-05  Marek Polacek  <polacek@redhat.com>
1198         PR c/49706
1199         * c-common.c (warn_logical_not_parentheses): New function.
1200         * c-common.h (warn_logical_not_parentheses): Declare.
1201         * c.opt (Wlogical-not-parentheses): New option.
1203 2014-06-04  Marek Polacek  <polacek@redhat.com>
1205         PR c/30020
1206         * c-common.c (check_case_bounds): Add location parameter.
1207         Use it.
1208         (c_add_case_label): Pass loc to check_case_bounds.
1210 2014-06-03  Marek Polacek  <polacek@redhat.com>
1212         PR c/60439
1213         * c.opt (Wswitch-bool): New option.
1215 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1217         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1218         Remove prototypes.
1219         (record_types_used_by_current_var_decl): Move prototype to where
1220         it belongs.
1222         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1223         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1224         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1226 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1228         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1229         * c-common.c (c_common_nodes_and_builtins): Don't initialize
1230         void_zero_node.
1231         * c-pretty-print.c (pp_c_void_constant): New function.
1232         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1233         (c_pretty_printer::expression): Handle VOID_CST.
1234         * cilk.c (extract_free_variables): Likewise.
1235         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1236         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1238 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1240         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1241         * c-pragma.c (push_alignment): Adjust.
1242         (handle_pragma_push_options): Likewise.
1244 2014-05-09  Marek Polacek  <polacek@redhat.com>
1246         PR c/50459
1247         * c-common.c (check_user_alignment): Return -1 if alignment is error
1248         node.
1249         (handle_aligned_attribute): Don't call default_conversion on
1250         FUNCTION_DECLs.
1251         (handle_vector_size_attribute): Likewise.
1252         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1253         (handle_sentinel_attribute): Call default_conversion and allow even
1254         integral types as an argument.
1256 2014-05-08  Marek Polacek  <polacek@redhat.com>
1258         PR c/61053
1259         * c-common.c (min_align_of_type): New function factored out from...
1260         (c_sizeof_or_alignof_type): ...here.
1261         * c-common.h (min_align_of_type): Declare.
1263 2014-05-08  Marek Polacek  <polacek@redhat.com>
1265         PR c/61077
1266         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1267         parameter type of main.
1269 2014-05-07  DJ Delorie  <dj@redhat.com>
1271         * c-cppbuiltin.c (print_bits_of_hex): New.
1272         (builtin_define_type_minmax): Print values using hex so as not to
1273         require a pre-computed list of string values.
1275 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1276             Mike Stump  <mikestump@comcast.net>
1277             Richard Sandiford  <rdsandiford@googlemail.com>
1279         * c-ada-spec.c: Include wide-int.h.
1280         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1281         (dump_generic_ada_node): Use wide-int interfaces.
1282         * c-common.c: Include wide-int-print.h.
1283         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1284         (pointer_int_sum): Use wide-int interfaces.
1285         (c_common_nodes_and_builtins): Use make_int_cst.
1286         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1287         (handle_alloc_size_attribute): Use wide-int interfaces.
1288         (get_nonnull_operand): Likewise.
1289         * c-format.c (get_constant): Use tree_fits_uhwi_p.
1290         * c-lex.c: Include wide-int.h.
1291         (narrowest_unsigned_type): Take a widest_int rather than two
1292         HOST_WIDE_INTs.
1293         (narrowest_signed_type): Likewise.
1294         (interpret_integer): Update accordingly.  Use wide-int interfaces.
1295         (lex_charconst): Use wide-int interfaces.
1296         * c-pretty-print.c: Include wide-int.h.
1297         (pp_c_integer_constant): Use wide-int interfaces.
1298         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1299         INT_CST_LT_UNSIGNED.
1301 2014-05-06  Richard Biener  <rguenther@suse.de>
1303         * c-opts.c (c_common_post_options): For -freestanding,
1304         -fno-hosted and -fno-builtin disable pattern recognition
1305         if not enabled explicitely.
1307 2014-05-02  Marek Polacek  <polacek@redhat.com>
1309         * c.opt (Wsizeof-pointer-memaccess): Describe option.
1311 2014-05-01  Marek Polacek  <polacek@redhat.com>
1313         PR c/43245
1314         * c.opt (Wdiscarded-qualifiers): Add.
1316 2014-04-30  Marek Polacek  <polacek@redhat.com>
1318         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
1319         INT_MIN / -1 sanitization only for integer types.
1321 2014-04-25  Marek Polacek  <polacek@redhat.com>
1323         PR c/18079
1324         * c-common.c (handle_noinline_attribute): Warn if the attribute
1325         conflicts with always_inline attribute.
1326         (handle_always_inline_attribute): Warn if the attribute conflicts
1327         with noinline attribute.
1329 2014-04-25  Marek Polacek  <polacek@redhat.com>
1331         PR c/60156
1332         * c-common.c (check_main_parameter_types): Warn about variadic main.
1334 2014-04-24  Mike Stump  <mikestump@comcast.net>
1336         * c.opt (Wshadow-ivar): Default to on.
1338 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
1340         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1342 2014-04-23  Marek Polacek  <polacek@redhat.com>
1344         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1346 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1348         PR sanitizer/60275
1349         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1350         if flag_sanitize_undefined_trap_on_error.
1351         (ubsan_instrument_division, ubsan_instrument_shift,
1352         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
1353         if !flag_sanitize_recover.
1355 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
1357         PR libstdc++/43622
1358         * c-common.c (registered_builtin_types): Make non-static.
1359         * c-common.h (registered_builtin_types): Declare.
1361 2014-04-14  Richard Biener  <rguenther@suse.de>
1362         Marc Glisse  <marc.glisse@inria.fr>
1364         PR c/60819
1365         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1366         apply may-alias the scalar pointer type when applicable.
1368 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1370         PR middle-end/60467
1371         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1372         as possible argument for Cilk_spawn.
1374 2014-04-11  Tobias Burnus  <burnus@net-b.de>
1376         PR c/60194
1377         * c.opt (Wformat-signedness): Add
1378         * c-format.c(check_format_types): Use it.
1380 2014-04-11  Jason Merrill  <jason@redhat.com>
1382         PR c++/57926
1383         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1384         default_conversion for an array argument.
1386 2014-04-08  Marek Polacek  <polacek@redhat.com>
1388         PR sanitizer/60745
1389         * c-ubsan.c: Include asan.h.
1390         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1392 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1394         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1396 2014-04-02  Marek Polacek  <polacek@redhat.com>
1398         * c-common.h (c_expand_expr): Remove declaration.
1400 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1402         PR c++/60689
1403         * c-common.c (add_atomic_size_parameter): When creating new
1404         params vector, push the size argument first.
1406 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
1408         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1409         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1410         ubsan_create_data callers.
1412 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
1414         PR debug/60603
1415         * c-opts.c (c_finish_options): Restore cb_file_change call to
1416         <built-in>.
1418 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
1420         PR middle-end/36282
1421         * c-pragma.c (apply_pragma_weak): Only look at
1422         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1423         DECL_ASSEMBLER_NAME_SET_P (decl).
1424         (maybe_apply_pending_pragma_weaks): Exit early if
1425         vec_safe_is_empty (pending_weaks) rather than only when
1426         !pending_weaks.
1427         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
1428         set assembler name back to NULL afterwards.
1430 2014-03-11  Jason Merrill  <jason@redhat.com>
1432         * c.opt: Add -std=gnu++14.
1434 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
1436         * c-opts.c (c_common_post_options): Don't override
1437         -ffp-contract=fast if unsafe-math-optimizations is on.
1439 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
1441     * c.opt: Enable LTO FE for fshort-double.
1443 2014-03-07  Jason Merrill  <jason@redhat.com>
1445         * c.opt: Add -std=c++14.
1447 2014-03-06  Marek Polacek  <polacek@redhat.com>
1449         PR c/60197
1450         * cilk.c (contains_cilk_spawn_stmt): New function.
1451         (contains_cilk_spawn_stmt_walker): Likewise.
1452         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1453         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1455 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
1457         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1458         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1459         even when flag_preprocess_only.
1461 2014-02-26  Jason Merrill  <jason@redhat.com>
1463         PR c++/59231
1464         PR c++/11586
1465         * c-common.c (shorten_compare): Don't check
1466         c_inhibit_evaluation_warnings.
1468 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
1470         PR c/37743
1471         * c-common.c (c_common_nodes_and_builtins): When initializing
1472         c_uint{16,32,64}_type_node, also set corresponding
1473         uint{16,32,64}_type_node to the same value.
1475         PR c++/60267
1476         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1477         for PRAGMA_IVDEP if flag_preprocess_only.
1479 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
1481         PR c/60101
1482         * c-common.c (merge_tlist): If copy is true, call new_tlist,
1483         if false, add ADD itself, rather than vice versa.
1484         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1485         copy.  For SAVE_EXPR, only call merge_tlist once.
1487 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
1489         PR middle-end/60092
1490         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1491         and tree_to_uhwi.
1492         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1493         functions.
1494         (c_common_attribute_table): Add alloc_align and assume_aligned
1495         attributes.
1497 2014-02-06  Marek Polacek  <polacek@redhat.com>
1499         PR c/60087
1500         * c-common.c (warn_for_sign_compare): Call warning_at with location
1501         instead of warning.
1503 2014-02-05  Marek Polacek  <polacek@redhat.com>
1505         PR c/53123
1506         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1507         statement.
1509 2014-02-04  Marek Polacek  <polacek@redhat.com>
1511         PR c/60036
1512         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1513         SAVE_EXPR.
1515 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
1517         PR c++/53017
1518         PR c++/59211
1519         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1520         handle_vector_size_attribute, handle_nonnull_attribute): Call
1521         default_conversion on the attribute argument.
1522         (handle_nonnull_attribute): Increment the argument number.
1524 2014-01-31  Marek Polacek  <polacek@redhat.com>
1526         PR c/59963
1527         * c-common.c (add_atomic_size_parameter): Pass vNULL to
1528         build_function_call_vec.
1529         (resolve_overloaded_builtin): Likewise.
1530         * c-common.h (build_function_call_vec): Adjust declaration.
1532 2014-01-30  Marek Polacek  <polacek@redhat.com>
1534         PR c/59940
1535         * c-common.h (unsafe_conversion_p): Adjust declaration.
1536         (warnings_for_convert_and_check): Likewise.
1537         (convert_and_check): Likewise.
1538         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
1539         expansion_point_location_if_in_system_header on it.
1540         (warnings_for_convert_and_check): Add location parameter.  Call
1541         expansion_point_location_if_in_system_header on it.  Use it.
1542         (convert_and_check): Add location parameter.  Use it.
1543         (conversion_warning): Likewise.
1544         (c_add_case_label): Adjust convert_and_check calls.
1545         (scalar_to_vector): Adjust unsafe_conversion_p calls.
1547 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1549         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1550         flag_cilkplus.
1551         * c-pragma.c (init_pragma): Likewise.
1552         * c.opt: Likewise.
1554 2014-01-23  Marek Polacek  <polacek@redhat.com>
1556         PR c/59846
1557         * c-common.c (shorten_compare): Add location_t parameter.
1558         * c-common.h (shorten_binary_op): Adjust declaration.
1560 2014-01-23  Marek Polacek  <polacek@redhat.com>
1562         PR c/58346
1563         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1564         * c-common.h: Declare it.
1566 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
1568         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1569         * c-ada-spec.c (dump_ads): Likewise.
1570         (cpp_check): Likewise.
1571         (dump_ada_specs): Likewise.
1573 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
1575         PR c++/49718
1576         * c-common.c (handle_no_instrument_function_attribute): Allow
1577         no_instrument_function attribute in class member
1578         definition/declaration.
1580 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1582         PR c/58943
1583         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1584         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
1585         being COMPOUND_EXPR.
1586         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1587         operand a SAVE_EXPR and second MODIFY_EXPR.
1589 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1591         PR target/58115
1592         * c-pch.c (c_common_write_pch): Call
1593         prepare_target_option_nodes_for_pch.
1595 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1597         Update copyright years
1599 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1601         * array-notation-common.c, c-cilkplus.c: Use the standard form for
1602         the copyright notice.
1604 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
1606         * c-ada-spec.c (print_constructor): New function.
1607         (print_destructor): Retrieve the origin of the destructor.
1608         (print_ada_declaration): Revamp handling of constructors/destructors.
1610 2013-12-23  Stuart Hastings <stuart@apple.com>
1611             Bill Maddox  <maddox@google.com>
1612             Jason Merrill  <jason@redhat.com>
1614         * c.opt: Add -fdeclone-ctor-dtor.
1615         * c-opts.c (c_common_post_options): Default to on iff -Os.
1617 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1619         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1620         attribute.
1621         * c-pragma.h (enum pragma_cilk_clause): Remove.
1622         (enum pragma_omp_clause):  Added the following fields:
1623         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1624         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1625         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1626         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1627         PRAGMA_CILK_CLAUSE_UNIFORM.
1629         
1630 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1632         * cilk.c (cilk_outline): Made this function non-static.
1633         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1634         (create_cilk_wrapper): Added a new parameter: a function pointer.
1635         (c_install_body_w_frame_cleanup): Remove
1636         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1637         * c-common.h (cilk_outline): New prototype.
1638         (gimplify_cilk_spawn): Removed two parameters.
1639         (cilk_install_body_with_frame_cleanup): New prototype.
1640         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1641         CILK_SPAWN_STMT case.
1643 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1645         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1647         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1648         (int_array_type_node): Remove.
1649         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1651 2013-12-05  Marek Polacek  <polacek@redhat.com>
1653         PR c/52023
1654         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1655         [ADJUST_FIELD_ALIGN].
1657 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1659         PR c/52023
1660         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1661         and check field alignment if set.
1662         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1663         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1665 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1666             Marek Polacek  <polacek@redhat.com>
1668         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1669         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1671 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1673         PR c/59309
1674         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1675         arguments.
1677 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1679         PR c/59280
1680         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1681         goto invalid.  If it is error_mark_node, don't issue further
1682         diagnostics.
1684 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1686         * c.opt (Wopenmp-simd): New.
1688 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1690         * c-ubsan.h (ubsan_instrument_return): New prototype.
1691         * c-ubsan.c (ubsan_instrument_return): New function.
1693 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1695         * c-common.c: Add required include files from gimple.h.
1696         * c-gimplify.c: Likewise
1697         * cilk.c: Likewise
1699 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1701         * c-common.c (unsafe_conversion_p): Remove use of
1702         EXPR_LOC_OR_HERE macro.
1703         (conversion_warning): Likewise.
1704         (warnings_for_convert_and_check): Likewise.
1705         (warn_for_collisions_1): Likewise.
1706         (shorten_compare): Likewise, and remove use of in_system_header
1707         macro, using the location from the former.
1708         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1709         (cb_def_pragma): Remove use of in_system_header macro.
1710         (lex_string): Likewise.
1711         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1713 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1714             Mike Stump  <mikestump@comcast.net>
1715             Richard Sandiford  <rdsandiford@googlemail.com>
1717         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1718         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1719         tree_fits_shwi_p or tree_fits_uhwi_p.
1720         (dump_generic_ada_node): Likewise.
1721         * c-format.c (check_format_arg): Likewise.
1722         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1724 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1726         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1728 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1730         PR c/53001
1731         * c-common.c (unsafe_conversion_p): Make this function
1732         return an enumeration with more detail.
1733         (conversion_warning): Use the new return type of
1734         unsafe_conversion_p to separately warn either about conversions
1735         that lower floating point number precision or about the other
1736         kinds of conversions.
1737         * c-common.h (enum conversion_safety): New enumeration.
1738         (unsafe_conversion_p): switching return type to
1739         conversion_safety enumeration.
1740         * c.opt: Adding new warning -Wfloat-conversion and
1741         enabling it with -Wconversion.
1743 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1745         * c-opts.c: Include plugin.h.
1746         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1748 2013-11-19  Marek Polacek  <polacek@redhat.com>
1750         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1751         call.
1752         (ubsan_instrument_shift): Likewise.
1753         (ubsan_instrument_vla): Likewise.
1755 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1757         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1758         cast to unsigned type.
1760 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1762         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1763         tree_low_cst.
1764         (complete_array_type): Update comment to refer to tree_to_[su]hwi
1765         rather than tree_low_cst.
1767 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1769         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1770         tree_to_uhwi throughout.
1772 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1774         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1775         tree_low_cst (..., 0) with tree_to_shwi throughout.
1777 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1779         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1780         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1782 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1784         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1785         host_integerp (..., 0) with tree_fits_shwi_p throughout.
1787 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1789         * c-cilkplus.c: New file.
1790         * c-common.c (readonly_error): Add location argument.
1791         * c-common.h (readonly_error): Same.
1792         (c_finish_cilk_clauses): Protoize.
1793         (c_check_cilk_loop): Same.
1794         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1795         Do not fail on error_mark_node.
1796         Abstract increment canonicalization to here...
1797         (c_omp_for_incr_canonicalize_ptr): New.
1798         c-pragma.c (init_pragma): Register "simd" pragma.
1799         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1800         (enum pragma_cilk_clause): New.
1802 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1804         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1805         wchar_type and host_integerp checks.
1807 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1809         * c-common.c: Likewise.
1810         * c-gimplify.c: Likewise.
1811         * cilk.c: Likewise.
1813 2013-11-14  Diego Novillo  <dnovillo@google.com>
1815         * c-common.c: Include fold-const.h.
1816         Include stor-layout.h.
1817         Include calls.h.
1818         Include stringpool.h.
1819         Include attribs.h.
1820         Include varasm.h.
1821         Include trans-mem.h.
1822         * c-cppbuiltin.c: Include stor-layout.h.
1823         Include stringpool.h.
1824         * c-format.c: Include stringpool.h.
1825         * c-lex.c: Include stringpool.h.
1826         Include stor-layout.h.
1827         * c-pragma.c: Include stringpool.h.
1828         Include attribs.h.
1829         Include varasm.h.
1830         Include gcc-symtab.h.
1831         * c-pretty-print.c: Include stor-layout.h.
1832         Include attribs.h.
1833         * cilk.c: Include stringpool.h.
1834         Include calls.h.
1836 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1838         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1839         * c-common.c (c_common_reswords): Add __auto_type.
1840         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1842 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1844         * c-common.c: Include gimplify.h.
1845         * c-gimplify.c: Likewise.
1846         * cilk.c: Likewise.
1847         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1848         * c-ubsan.c: Don't include gimple.h.
1850 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1852         * c-common.c (c_common_reswords): Add _Thread_local.
1854 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1856         * c-common.c (atomic_size_supported_p): New function.
1857         (resolve_overloaded_atomic_exchange)
1858         (resolve_overloaded_atomic_compare_exchange)
1859         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1860         Use it instead of comparing size with a local list of sizes.
1862 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
1863             Joseph Myers  <joseph@codesourcery.com>
1865         * c-common.h (enum rid): Add RID_ATOMIC.
1866         * c-common.c (c_common_reswords): Add _Atomic.
1867         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1868         (keyword_is_type_qualifier): Accept RID_ATOMIC.
1869         * c-format.c (check_format_types): Check for extra _Atomic
1870         qualifiers in format argument.
1871         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1872         (pp_c_type_qualifier_list): Mention _Atomic in comment.
1874 2013-11-06  Tobias Burnus  <burnus@net-b.de>
1876         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1878 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
1880         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1881         standards modes.
1882         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1883         to mean lack of IEEE 754 support.
1885 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1887         * c.opt (-Wdate-time): New option
1888         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1890 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
1892         * c-cppbuiltin.c (cpp_iec_559_value): Test
1893         flag_excess_precision_cmdline not flag_excess_precision.
1895 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1897         * c.opt (fopenmp-simd): New option.
1898         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1899         (omp_pragmas): ... this new struct.
1900         (c_pp_lookup_pragma): Also walk omp_pragmas.
1901         (init_pragma): Init pragmas for -fopenmp-simd.
1903 2013-11-04  Marek Polacek  <polacek@redhat.com>
1905         PR c++/58979
1906         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1908 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1910         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1911         New functions.
1912         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1914 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1916         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1917         (dump_ada_specs): Adjust prototype of second callback.
1918         * c-ada-spec.c (cpp_check): New global variable.
1919         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1920         (print_generic_ada_decl): Likewise.
1921         (has_static_fields): Change return type to bool and add guard.
1922         (has_nontrivial_methods): New predicate.
1923         (is_tagged_type): Change return type to bool.
1924         (separate_class_package): Call has_nontrivial_methods.
1925         (pp_ada_tree_identifier): Minor tweaks.
1926         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1927         (dump_ada_array_domains): Likewise.
1928         (dump_ada_array_type): Likewise.
1929         (dump_template_types): Remove cpp_check parameter and do not pass it to
1930         dump_generic_ada_node.
1931         (dump_ada_template): Likewise.
1932         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1933         recursively.
1934         (print_ada_methods): Change return type to integer.  Remove cpp_check
1935         parameter and do not pass it down.
1936         (dump_nested_types): Remove cpp_check parameter and do not pass it to
1937         dump_generic_ada_node.
1938         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
1939         accessing methods.
1940         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1941         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
1942         value of print_ada_methods.
1943         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1944         Set cpp_check to it before invoking dump_ada_nodes.
1945         (dump_ada_specs): Likewise.
1947 2013-11-03  Marek Polacek  <polacek@redhat.com>
1949         * c-ubsan.c: Don't include hash-table.h.
1950         (ubsan_instrument_vla): New function.
1951         * c-ubsan.h: Declare it.
1953 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1955         Automated part of renaming of symtab_node_base to symtab_node.
1957         Patch autogenerated by rename_symtab.py from
1958         https://github.com/davidmalcolm/gcc-refactoring-scripts
1959         revision 58bb219cc090b2f4516a9297d868c245495ee622
1961         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1962         symtab_node_base to symtab_node.
1964 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
1966         Implement C++14 digit separators.
1967         * c-lex.c (interpret_float): Remove digit separators from scratch string
1968         before building real literal.
1970 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
1972         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1974 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1976         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1977         fields.
1978         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1979         enabled.
1980         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1981         (insert_cilk_frame): New prototype.
1982         (cilk_init_builtins): Likewise.
1983         (gimplify_cilk_spawn): Likewise.
1984         (c_cilk_install_body_w_frame_cleanup): Likewise.
1985         (cilk_detect_spawn_and_unwrap): Likewise.
1986         (cilk_set_spawn_marker): Likewise.
1987         (build_cilk_sync): Likewise.
1988         (build_cilk_spawn): Likewise.
1989         * cilk.c: New file.
1991 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1993         Patch autogenerated by refactor_symtab.py from
1994         https://github.com/davidmalcolm/gcc-refactoring-scripts
1995         revision 58bb219cc090b2f4516a9297d868c245495ee622
1997         * c-gimplify.c (c_genericize): Update for conversion of symtab types
1998         to a true class hierarchy.
1999         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2001 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
2003         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2005 2013-10-26  Jeff Law  <law@redhat.com>
2007         * c-common.c (c_define_builtins): Remove mudflap support.
2008         * c.opt: Ignore and warn for mudflap options.
2010 2013-10-24  Tobias Burnus  <burnus@net-b.de>
2012         PR other/33426
2013         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2014         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2016 2013-10-23  Jason Merrill  <jason@redhat.com>
2018         * c-format.c (gcc_cxxdiag_char_table): Add %X.
2020 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
2022         * c-common.h (omp_clause_mask::operator !=): New method.
2023         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2024         instead of if (mask & something) tests everywhere.
2026         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2027         201307 instead of 201107.
2028         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2029         (c_common_attribute_table): Add "omp declare target" and
2030         "omp declare simd" attributes.
2031         (handle_omp_declare_target_attribute,
2032         handle_omp_declare_simd_attribute): New functions.
2033         * c-omp.c: Include c-pragma.h.
2034         (c_finish_omp_taskgroup): New function.
2035         (c_finish_omp_atomic): Add swapped argument, if true,
2036         build the operation first with rhs, lhs arguments and use NOP_EXPR
2037         build_modify_expr.
2038         (c_finish_omp_for): Add code argument, pass it down to make_code.
2039         (c_omp_split_clauses): New function.
2040         (c_split_parallel_clauses): Removed.
2041         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2042         c_omp_declare_simd_clauses_to_decls): New functions.
2043         * c-common.h (omp_clause_mask): New type.
2044         (OMP_CLAUSE_MASK_1): Define.
2045         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2046         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2047         omp_clause_mask::operator |, omp_clause_mask::operator &,
2048         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2049         omp_clause_mask::operator ==): New methods.
2050         (enum c_omp_clause_split): New.
2051         (c_finish_omp_taskgroup): New prototype.
2052         (c_finish_omp_atomic): Add swapped argument.
2053         (c_finish_omp_for): Add code argument.
2054         (c_omp_split_clauses): New prototype.
2055         (c_split_parallel_clauses): Removed.
2056         (c_omp_declare_simd_clauses_to_numbers,
2057         c_omp_declare_simd_clauses_to_decls): New prototypes.
2058         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2059         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2060         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2061         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2062         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2063         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2064         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2065         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2066         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2067         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2068         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2069         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2070         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2071         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2072         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2073         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2074         PRAGMA_OMP_CLAUSE_UNIFORM.
2076 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
2078         PR tree-optimization/20318
2079         * c-common.c (handle_returns_nonnull_attribute): New function.
2080         (c_common_attribute_table): Add returns_nonnull.
2082 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
2084         PR c++/19476
2085         * c.opt (fcheck-new): Move to common.opt.
2087 2013-09-25  Marek Polacek  <polacek@redhat.com>
2088             Jakub Jelinek  <jakub@redhat.com>
2090         PR sanitizer/58413
2091         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2092         an expression if we can prove it is correct.
2093         (ubsan_instrument_division): Likewise.  Remove unnecessary
2094         check.
2096 2013-09-18  Marek Polacek  <polacek@redhat.com>
2098         PR sanitizer/58411
2099         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2100         Declare it.
2101         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2103 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
2105         PR target/48094
2106         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2107         fobjc-gc, freplace-objc-classes): Accept for LTO.
2109 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
2111         * c-target.def: New hook
2113 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
2115         PR c++/43452
2116         * c.opt (Wdelete-incomplete): Add.
2118 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2120         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2121         (vector_types_compatible_elements_p): New function.
2122         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2123         declaration.
2124         (vector_types_compatible_elements_p): Declare.
2126 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2128         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2129         a virtual member function.
2130         (pp_simple_type_specifier): Remove.
2131         (pp_c_type_specifier): Likewise.
2132         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2133         Rename from pp_c_type_specifier.  Adjust.
2134         (c_pretty_printer::c_pretty_printer): Do not assign to
2135         simple_type_specifier.
2137 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2139         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2140         member function.
2141         (c_pretty_printer::storage_class_specifier): Likewise.
2142         (c_pretty_printer::initializer): Likewise.
2143         (pp_declaration): Remove.
2144         (pp_declaration_specifiers): Likewise.
2145         (pp_abstract_declarator): Likewise.
2146         (pp_declarator): Likewise.
2147         (pp_type_id): Likewise.
2148         (pp_statement): Likewise.
2149         (pp_constant): Likewise.
2150         (pp_id_expression): Likewise.
2151         (pp_primary_expression): Likewise.
2152         (pp_unary_expression): Likewise.
2153         (pp_multiplicative_expression): Likewise.
2154         (pp_conditional_expression): Likewise.
2155         (pp_assignment_expression): Likewise.
2156         (pp_expression): Likewise.
2157         (pp_c_type_id): Likewise.
2158         (pp_c_storage_class_specifier): Likewise.
2159         * c-pretty-print.c (pp_c_type_cast): Tidy.
2160         (pp_c_pointer): Likewise.
2161         (pp_c_type_specifier): Likewise.
2162         (pp_c_parameter_type_list): Likewise.
2163         (pp_c_function_definition): Likewise.
2164         (pp_c_init_declarator): Likewise.
2165         (pp_c_initializer_list): Likewise.
2166         (pp_c_constructor_elts): Likewise.
2167         (c_pretty_printer::direct_abstract_declarator): Likewise.
2168         (c_pretty_printer::declaration_specifiers): Likewise.
2169         (c_pretty_printer::primary_expression): Likewise.
2170         (c_pretty_printer::postfix_expression): Likewise.
2171         (c_pretty_printer::type_id): Rename from pp_c_type_id.
2172         (c_pretty_printer::storage_class_specifier): Rename from
2173         pp_c_storage_class_specifier.
2174         (c_pretty_printer::initializer): Rename from pp_c_initializer.
2175         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2176         storage_class_specifier, initializer, offset_list, flags.
2178 2013-08-30  Marek Polacek  <polacek@redhat.com>
2180         * c-ubsan.c: New file.
2181         * c-ubsan.h: New file.
2183 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2185         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2186         member function.
2187         (c_pretty_printer::declaration_specifiers): Likewise.
2188         (c_pretty_printer::declarator): Likewise.
2189         (c_pretty_printer::abstract_declarator): Likewise.
2190         (c_pretty_printer::direct_abstract_declarator): Likewise.
2191         (c_pretty_printer::direct_declarator): Likewise.
2192         (c_pretty_printer::function_specifier): Likewise.
2193         (pp_declaration): Adjust.
2194         (pp_declaration_specifiers): Likewise.
2195         (pp_abstract_declarator): Likewise.
2196         (pp_direct_declarator): Likewise.
2197         (pp_function_specifier): Likewise.
2198         (pp_direct_abstract_declarator): Remove as unused.
2199         (pp_c_declaration): Remove.
2200         (pp_c_declaration_specifiers): Likewise.
2201         (pp_c_declarator): Likewise.
2202         (pp_c_direct_declarator): Likewise.
2203         (pp_c_function_specifier): Likewise.
2204         (pp_c_direct_abstract_declarator): Likewise.
2205         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2206         from pp_c_abstract_declarator.  Adjust.
2207         (c_pretty_printer::direct_abstract_declarator):  Rename from
2208         pp_c_direct_abstract_declarator.  Adjust.
2209         (c_pretty_printer::function_specifier): Rename from
2210         pp_c_function_specifier.  Adjust.
2211         (c_pretty_printer::declaration_specifiers): Rename from
2212         pp_c_declaration_specifiers.  Adjust.
2213         (c_pretty_printer::direct_declarator): Rename from
2214         pp_c_direct_declarator.  Adjust.
2215         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
2216         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
2217         (c_pretty_printer::c_pretty_printer): Do not assign to
2218         declaration, declaration_specifiers, declarator,
2219         direct_declarator, direct_abstract_declarator, function_specifier.
2221 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
2223         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2224         virtual member function.
2225         (c_pretty_printer::multiplicative_expression): Likewise.
2226         (c_pretty_printer::conditional_expression): Likewise.
2227         (c_pretty_printer::assignment_expression): Likewise.
2228         (c_pretty_printer::expression): Likewise.
2229         (pp_unary_expression): Adjust.
2230         (pp_multiplicative_expression): Likewise.
2231         (pp_assignment_expression): Likewise.
2232         (pp_conditional_expression): Likewise.
2233         (pp_expression): Likewise.
2234         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2235         from pp_c_unary_expression.  Adjust.
2236         (c_pretty_printer::multiplicative_expression): Rename from
2237         pp_c_multiplicative_expression.  Adjust.
2238         (c_pretty_printer::conditional_expression): Rename from
2239         pp_c_conditional_expression.  Adjust.
2240         (c_pretty_printer::assignment_expression): Rename from
2241         pp_c_assignment_expression.  Adjust.
2242         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
2243         (c_pretty_printer::c_pretty_printer): Do not assign to
2244         unary_expression, multiplicative_expression,
2245         conditional_expression, expression.
2247 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2249         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2250         virtual member function.
2251         (pp_postfix_expression): Adjust.
2252         (pp_c_postfix_expression): Remove.
2253         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2254         from pp_c_postfix_expression.  Adjust.
2255         (c_pretty_printer::c_pretty_printer): Do not assign to
2256         postfix_expression.
2258 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2260         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2261         virtua member function.
2262         (pp_primary_expression): Adjust.
2263         (pp_c_primary_expression): Remove.
2264         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2265         from pp_c_primary_expression.  Adjust.
2266         (pp_c_initializer_list): Use pp_primary_expression.
2267         (c_pretty_printer::c_pretty_printer): Do not assign to
2268         primary_expression.
2270 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2272         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2273         * c-pretty-print.c (M_): Remove.
2274         (c_pretty_printer::translate_string): Define.
2275         (pp_c_type_specifier): Use it.
2276         (pp_c_primary_expression): Likewise.
2277         (pp_c_expression): Likewise.
2279 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2281         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2282         virtual function.
2283         (pp_c_id_expression): Remove.
2284         (pp_id_expression): Adjust.
2285         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2286         pp_c_id_expression.  Adjust.
2287         (pp_c_postfix_expression): Use pp_id_expression.
2288         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2290 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2292         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2293         member function.
2294         (pp_constant): Adjust.
2295         (pp_c_constant): Remove.
2296         * c-pretty-print.c (c_pretty_printer::constant): Rename from
2297         pp_c_constant.  Adjust.
2298         (pp_c_constant)
2299         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2300         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2302 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2304         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2305         (c_pretty_printer::c_pretty_printer): Declare.
2306         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2307         c_pretty_printer_init.  Adjust.
2308         (print_c_tree): Do not call c_pretty_printer_init.
2309         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2311 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
2313         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2315 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2317         PR c++/58080
2318         * c-common.c (pointer_int_sum): Add bool parameter.
2319         * c-common.h (pointer_int_sum): Adjust declaration.
2321 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2323         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
2324         c_pretty_printer variable.
2326 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2328         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2329         (pp_base): Remove.
2330         (pp_c_base): Likewise.  Adjust users.
2331         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2332         (pp_c_whitespace): Do not call pp_base.
2333         (pp_c_left_paren): Likewise.
2334         (pp_c_right_paren): Likewise.
2335         (pp_c_left_brace): Likewise.
2336         (pp_c_right_brace): Likewise.
2337         (pp_c_left_bracket): Likewise.
2338         (pp_c_right_bracket): Likewise.
2339         (pp_c_dot): Likewise.
2340         (pp_c_ampersand): Likewise.
2341         (pp_c_star): Likewise.
2342         (pp_c_arrow): Likewise.
2343         (pp_c_semicolon): Likewise.
2344         (pp_c_complement): Likewise.
2345         (pp_c_exclamation): Likewise.
2346         (pp_c_direct_declarator): Likewise.
2347         (pp_c_ws_string): Likewise.
2348         (pp_c_identifier): Likewise.
2349         (pp_c_statement): Likewise.
2350         (print_c_tree): Likewise.
2352 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
2354         PR c++/58072
2355         * c-common.c (c_parse_error): Catch user-defined literal tokens and
2356         provide useful error strings.
2358 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2360         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2361         printer functions instead of pp_string or operators and punctuators.
2362         (dump_generic_ada_node): Likewise.
2363         * c-pretty-print.c (pp_c_type_specifier): Likewise.
2364         (pp_c_relational_expression): Likewise.
2365         (pp_c_logical_or_expression): Likewise.
2367 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2369         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2370         functions instead of pp_character.
2371         (pp_ada_tree_identifier): Likewise.
2372         (dump_ada_double_name): Likewise.
2373         (dump_ada_function_declaration): Likewise.
2374         (dump_ada_array_domains): Likewise.
2375         (dump_template_types): Likewise.
2376         (dump_generic_ada_node): Likewise.
2377         (print_ada_declaration): Likewise.
2378         (print_ada_struct_decl): Likewise.
2379         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2381 2013-07-23  Tom Tromey  <tromey@redhat.com>
2383         * c-common.h (enum rid) <RID_GENERIC>: New constant.
2384         * c-common.c (c_common_reswords): Add _Generic.
2386 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
2388         * c-common.c: Fix typos.
2389         * c-common.h: Likewise.
2391 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
2393         PR c++/55203
2394         * c-common.c (c_common_attribute_table): Add warn_unused.
2395         (handle_warn_unused_attribute): New.
2397 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
2399         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2400         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2402 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
2404         PR c++/57869
2405         * c.opt: Add Wconditionally-supported.
2407 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
2409         * array-notation-common.c (length_mismatch_in_expr_p): Delete
2410         unused variables l_length and l_node.
2412 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2414         PR c/57821
2415         * c-common.c (complete_array_type): Delay folding first index
2416         like other indices.  When folding, check for index overflow.
2418 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
2420         PR c++/57509
2421         * c-common.h (c_build_vec_perm_expr): New complain argument.
2422         * c-common.c (c_build_vec_perm_expr): Likewise.
2423         Use save_expr also in C++.
2425 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2427         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2428         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2429         * c-opts.c (c_common_post_options): Likewise.
2431 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2433         * array-notation-common.c (length_mismatch_in_expr): Changed the
2434         parameter type's from a dynamic array to a vec_tree.  Also removed
2435         the size parameters.
2436         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2437         the change above.
2439 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2441         * c-common.h (struct cilkplus_an_parts): New structure.
2442         (struct cilkplus_an_loop_parts): Likewise.
2443         (cilkplus_extract_an_triplets): New prototype.
2444         (fix_sec_implicit_args): Likewise.
2445         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2446         (fix_sec_implicit_args): Likewise.
2448 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2450         * array-notation-common.c (find_inv_trees): Removed an unwanted
2451         typecasting.
2452         * c-common.h (struct inv_list::additional_tcodes): Changed type from
2453         enum rid to enum tree_code.
2455 2013-06-11  Jan Hubicka  <jh@suse.cz>
2457         * c-common.c (handle_alias_ifunc_attribute): Do not set
2458         DECL_EXTERNAL for weakref variables.
2459         * c-pragma.c (handle_pragma_weak): Make sure aliases
2460         are not declared as external.
2462 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2464         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2465         function from c/c-array-notation.c.
2466         (is_cilkplus_reduce_builtin): Likewise.
2467         (find_rank): Likewise.
2468         (extract_array_notation_exprs): Likewise.
2469         (replace_array_notations): Likewise.
2470         (find_inv_trees): Likewise.
2471         (replace_inv_trees): Likewise.
2472         (contains_array_notation_expr): Likewise.
2473         (find_correct_array_notation_type): Likewise.
2474         * c-common.h (struct inv_list): Moved this struct from the file
2475         c/c-array-notation.c and added a new field called additional tcodes.
2476         (length_mismatch_in_expr_p): New prototype.
2477         (is_cilkplus_reduce_builtin): Likewise.
2478         (find_rank): Likewise.
2479         (extract_array_notation_exprs): Likewise.
2480         (replace_array_notation): Likewise.
2481         (find_inv_trees): Likewise.
2482         (replace_inv_trees): Likewise.
2483         (find_correct_array_notation_type): Likewise.
2485 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2487         * c-common.c (c_define_builtins): When cilkplus is enabled, the
2488         function array_notation_init_builtins is called.
2489         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2490         * c-common.def (ARRAY_NOTATION_REF): New tree.
2491         * c-common.h (build_array_notation_expr): New function declaration.
2492         (build_array_notation_ref): Likewise.
2493         (extract_sec_implicit_index_arg): New extern declaration.
2494         (is_sec_implicit_index_fn): Likewise.
2495         (ARRAY_NOTATION_CHECK): New define.
2496         (ARRAY_NOTATION_ARRAY): Likewise.
2497         (ARRAY_NOTATION_START): Likewise.
2498         (ARRAY_NOTATION_LENGTH): Likewise.
2499         (ARRAY_NOTATION_STRIDE): Likewise.
2500         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2501         ARRAY_NOTATION_REF.
2502         (pp_c_expression): Likewise.
2503         * c.opt (flag_enable_cilkplus): New flag.
2504         * array-notation-common.c: New file.
2506 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2508         PR c++/57274
2509         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2511 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
2513         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2514         vectors.
2516 2013-05-07  Han Shen  <shenhan@google.com>
2518         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2520 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2522         * c-common.c (check_user_alignment): Emit error for negative values.
2524 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2526         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2528 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2530         * c-cppbuiltin.c (c_cpp_builtins): Do not define
2531         __GXX_EXPERIMENTAL_CXX1Y__.
2533 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2534             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2536         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2537         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2538         to simply use OPT_Wpointer_arith.
2539         (c_sizeof_or_alignof_type): Likewise.
2541 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2543         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2545 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2547         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2548         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2549         specifiers.
2551 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
2553         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2555 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
2557         * c-common.c (pointer_int_sum): Remove dead code.
2559 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2561         PR middle-end/56524
2562         * c-common.c (handle_optimize_attribute): Don't call
2563         save_optabs_if_changed.
2565 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2567         PR middle-end/56461
2568         * c-pch.c (pch_init): Free target_validity at the end.
2570 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2572         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2574 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2575             Jakub Jelinek  <jakub@redhat.com>
2577         PR sanitizer/56454
2578         * c-common.c (handle_no_sanitize_address_attribute): New function.
2579         (c_common_attribute_table): Add no_sanitize_address attribute.
2580         (handle_no_address_safety_analysis_attribute): Add
2581         no_sanitize_address attribute, not no_address_safety_analysis
2582         attribute.
2584 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2586         PR target/52555
2587         * c-common.c (handle_optimize_attribute): Call
2588         save_optabs_if_changed.
2590 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
2591             Steven Bosscher  <steven@gcc.gnu.org>
2593         PR pch/54117
2594         * c-opts.c (c_common_post_options): If debug info is enabled
2595         and non-dwarf*, refuse to load PCH files and when writing PCH
2596         file warn.
2598 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
2600         PR middle-end/56167
2601         * c-common.c (handle_error_attribute): Fix condition.
2603 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
2605         PR c++/55742
2606         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2608 2013-01-18  Jason Merrill  <jason@redhat.com>
2610         PR target/54908
2611         * c.opt (-fextern-tls-init): New.
2612         * c-opts.c (c_common_post_options): Handle it.
2614 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
2616         PR c/48418
2617         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2618         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2619         and is either negative or bigger or equal to type precision
2620         of the first operand.
2622 2012-12-03  Marek Polacek  <polacek@redhat.com>
2624         PR c/55570
2625         * c-common.c (check_user_alignment): Swap order of tests,
2626         check TREE_CODE first.
2628 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2630         PR c++/52654
2631         * c-common.h (overflow_type): New enum.
2632         (build_userdef_literal): Add overflow_type argument.
2633         (tree_userdef_literal): Add overflow_type.
2634         (USERDEF_LITERAL_OVERFLOW): New access macro.
2635         * c-common.c (build_userdef_literal): Add overflow_type
2636         argument.
2637         * c-lex.c (c_lex_with_flags): Add overflow_type to
2638         build_userdef_literal calls.
2639         (interpret_integer, interpret_float): Add overflow_type argument.
2641 2012-11-28  Richard Biener  <rguenther@suse.de>
2643         PR c/35634
2644         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2645         here and use a type with proper overflow behavior for types that would
2646         need to be promoted for the arithmetic.
2648 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2650         PR sanitizer/55435
2651         * c-common.c (handle_no_address_safety_analysis_attribute): New
2652         function.
2653         (c_common_attribute_table): Add no_address_safety_analysis.
2655 2012-11-16  Simon Baldwin  <simonb@google.com>
2657         * c.opt: Add f[no-]canonical-system-headers.
2658         * c-opts.c (c_common_handle_option): Handle
2659         OPT_fcanonical_system_headers.
2661 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2663         PR c++/54413
2664         * c-opts.c (c_common_handle_option): Set new flags.
2665         * c.opt: Describe new flags.
2667 2012-11-09  Jason Merrill  <jason@redhat.com>
2669         * c.opt (Wabi-tag): New.
2671 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2673         PR 55139
2674         * c-common.c (get_atomic_generic_size): Mask with
2675         MEMMODEL_MASK
2677 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2679         PR c/53063
2680         * c.opt (Wformat): Make it Alias Wformat=1.
2681         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2682         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2683         LangEnabledBy.
2684         (Wformat=): RejectNegative. Use LangEnabledBy.
2685         (Wnonnull): Use LangEnabledBy.
2686         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2687         * c-format.c (set_Wformat): Delete.
2688         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2689         (maybe_read_dollar_number):  Likewise.
2690         (avoid_dollar_number):  Likewise.
2691         (finish_dollar_format_checking):  Likewise.
2692         (check_format_info):  Likewise.
2693         (check_format_info_main):  Likewise.
2694         (check_format_types):  Likewise.
2695         (format_type_warning):  Likewise.
2696         * c-common.c (int):  Likewise.
2697         (check_function_sentinel):  Likewise.
2698         * c-common.h (warn_format,set_Wformat): Do not declare here.
2700 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2702         PR c/53063
2703         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2704         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2705         Use LangEnabledBy.
2706         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2707         common.opt.
2708         (Wvariadic-macros): Init(1).
2709         * c-opts.c (c_common_handle_option): Do not handle them
2710         explicitly.
2711         (c_common_post_options): Likewise.
2712         (sanitize_cpp_opts): warn_unused_macros is now
2713         cpp_warn_unused_macros.
2714         (push_command_line_include): Likewise.
2715         * c-common.c (warn_unknown_pragmas): Do not define.
2716         * c-common.h (warn_unknown_pragmas): Do not declare.
2718 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2720         PR c/51294
2721         * c-common.c (conversion_warning): Handle conditional expressions.
2723 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2725         PR c++/54930
2726         * c.opt (Wreturn_local_addr): Define new option.
2728 2012-10-25  Jason Merrill  <jason@redhat.com>
2730         * c.opt (Wvirtual-move-assign): New.
2732         * c.opt (Winherited-variadic-ctor): New.
2734 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
2736         PR c++/54427
2737         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2739 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2741         * c-common.h (pch_cpp_save_state): Declare.
2742         * c-target.def (c_preinclude): New hook.
2743         * c-opts.c (done_preinclude): New.
2744         (push_command_line_include): Handle default preincluded header.
2745         (cb_file_change): Call pch_cpp_save_state when calling
2746         push_command_line_include.
2747         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2748         (pch_cpp_save_state): New.
2749         (pch_init): Call pch_cpp_save_state conditionally, instead of
2750         calling cpp_save_state.
2752 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2754         PR c/53063
2755         PR c/40989
2756         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2757         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2758         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2759         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2760         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2761         * c-opts.c (c_common_handle_option): Remove explicit handling from
2762         here.
2763         (c_common_post_options): Likewise.
2765 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2767         * c-ada-spec.c (LOCATION_COL): Delete.
2768         (compare_location): New function.
2769         (compare_node): Use it.
2770         (compare_comment): Likewise.
2772 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2774         PR c/53063
2775         PR c/40989
2776         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2777         * c-opts.c (c_common_handle_option): Do not set them here. Add
2778         comment.
2779         (c_common_post_options): Likewise.
2781 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2783         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2784         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2785         Remove POINTER_TYPE handling, add large unsigned handling and use
2786         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2788 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2790         PR c/54381
2791         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2792         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2793         locs and array of 3 trees instead of just single loc and single
2794         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2795         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2796         For *cmp* builtins that take two sources strings report warnings
2797         about first and second source, not about destination and source.
2799 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2801         PR c++/53055
2802         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2804 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2806         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2807         declaring something coming from another file.
2809 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2811         PR ada/54845
2812         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2814 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2816         PR c++/54194
2817         * c-common.c (warn_about_parentheses): Add location_t parameter;
2818         use EXPR_LOC_OR_LOC.
2819         * c-common.h: Update declaration.
2821 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2823         PR c++/54427
2824         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2825         more operations. Make error messages optional.
2826         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2827         (scalar_to_vector): Declare.
2829 2012-10-08  Jason Merrill  <jason@redhat.com>
2831         * c-common.c (c_common_reswords): Add thread_local.
2833 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2835         PR c++/53528 C++11 attribute support
2836         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2837         new functions.
2838         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2839         static function.
2840         (handle_aligned_attribute): In choose strictest alignment
2841         among many.  Use new check_cxx_fundamental_alignment_constraints.
2842         (handle_transparent_union_attribute): In c++11 attribute syntax,
2843         don't look through typedefs.
2845 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2847         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2848         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2849         out of dumpfile.h.
2851 2012-09-25  Dehao Chen  <dehao@google.com>
2853         PR middle-end/54645
2854         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2855         map when read in the pch.
2857 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2859         * c-ada-spec.c: Style fixes.
2861 2012-09-18 Thomas Quinot  <quinot@adacore.com>
2863         * c.opt (-fada-spec-parent): Define new command line switch.
2864         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2865         is specified, generate binding spec as a child of the specified unit.
2867 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
2868             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2870         PR c++/53210
2871         * c.opt ([Winit-self]): Enabled by -Wall in C++.
2873 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
2875         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2876         for pointers, and add missing Convention C pragma.
2877         (print_ada_struct_decl): Add missing aliased keyword.
2878         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2880 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2882         * c-common.c (sizeof_pointer_memaccess_warning): New function.
2883         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2884         * c-opts.c (c_common_handle_option): Enable it for -Wall.
2885         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2886         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2888 2012-08-10  Richard Guenther  <rguenther@suse.de>
2890         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2892 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
2894         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2895         instead of separate pp_newline and pp_flush.
2896         (print_c_tree): Likewise.
2898 2012-07-26  Richard Henderson  <rth@redhat.com>
2900         * c-common.c (handle_hot_attribute): Allow labels.
2901         (handle_cold_attribute): Likewise.
2903 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
2905         PR c++/28656
2906         * c-common.c (check_function_nonnull): Handle multiple nonnull
2907         attributes properly.
2909 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2911         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2912         * c-ada-spec.c: Likewise.
2913         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2915 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
2917         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2918         Remove code conditional on it.
2920 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
2922         * c-gimplify.c: Do not include basic-block.h.
2923         * c-common.c: Do not include linfuncs.h.
2925 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2927         * c-common.h: Include tree.h.
2929 2012-07-02  Jason Merrill  <jason@redhat.com>
2931         PR c++/53524
2932         * c-common.c (get_priority): Call default_conversion.
2934 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
2936         * c-pch.c (c_common_write_pch): Remove unused variables.
2938 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2940         * cppspec.c: Moved from gcc/ to here.
2942 2012-06-27  Kai Tietz  <ktietz@redhat.com>
2944         PR preprocessor/37215
2945         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2947 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2949         * c-common.h (c_common_print_pch_checksum): Remove.
2950         * c-pch.c: Do not include output.h.
2951         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2952         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2953         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2954         (struct c_pch_header): Remove.
2955         (get_ident): Update gpch version.
2956         (pch_init): Do not print executable_checksum to asm_out_file.
2957         Do not fail if there is no asm_out_file to read back from.  Set
2958         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2959         (c_common_write_pch): Verify that nothing was written to asm_out_file
2960         since pch_init was called.  Do not write a c_pch_header, and do not
2961         copy from asm_out_file to the PCH.
2962         (c_common_read_pch): Do not read a c_pch_header, and do not restore
2963         the content of asm_out_file from the PCH.
2964         (c_common_print_pch_checksum): Remove.
2965         * c-opts.c (c_common_init): Print out executable_checksum directly.
2967 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2969         * c-target.def (objc_declare_unresolved_class_reference,
2970         objc_declare_class_definition): Add new hooks.
2972 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2974         * c-lex.c: Do not include output.h.
2975         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2976         Remove uses of ASM_OUTPUT_IDENT.
2978 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
2980         PR c++/51033
2981         * c-common.h (c_build_vec_perm_expr): Move decl here.
2982         * c-common.c (c_build_vec_perm_expr): Move definition
2983         here.
2985 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
2987         * c.opt (fconserve-space): Turn into a no-op.
2989 2012-06-04  Sterling Augustine  <saugustine@google.com>
2991         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2992         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2993         both the start and end of the function.
2995 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2997         * c-common.c: Do not include output.h.
2998         * c-pragma.c: Likewise.
3000 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3002         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3003         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3004         (lang_decl_name): Handle namespace decls.
3006 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
3008         * c-ada-spec.c: Do not include output.h.
3009         * c-semantics.c: Likewise.
3011 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
3013         * c-common.c: Fix typo.
3015 2012-05-29  Michael Matz  <matz@suse.de>
3017         * c-common.h (c_expand_decl): Remove prototype.
3019 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3021         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3022         * c-opts.c (c_common_handle_option): Remove code handling
3023         warn_missing_braces.
3025 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
3027         PR c++/25137
3028         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3029         -Wmissing_braces.
3031 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
3033         PR c++/53322
3034         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3036 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3038         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3039         * c-opts.c (c_common_handle_option): Do not handle explicitly
3040         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3042 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
3044         PR preprocessor/7263
3045         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
3046         to cpp_classify_number.  For diagnostics, use the precise location
3047         instead of the global input_location.
3049 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3051         PR c++/11856
3052         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3054 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
3056         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3058 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3060         PR 53063
3061         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3062         Wreorder): Use LangEnabledBy.
3063         * c-opts.c (c_common_handle_option): Do not enable them
3064         explicitly. Call lang-specific generated functions.
3065         (c_common_post_options): Do not set them here.
3067 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3069         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3070         Wmissing-field-initializers,Wmissing-parameter-type,
3071         Wold-style-declaration,Woverride-init): Use EnabledBy.
3072         * c-opts.c (c_common_post_options): Do not set here explicitly.
3074 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3076         PR 53063
3077         * c-opts.c (c_common_handle_option): Use handle_generated_option
3078         to enable sub-options.
3080 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
3082         PR c++/53158
3083         * c-common.c (warnings_for_convert_and_check): Use warning_at.
3085 2012-05-10  Richard Guenther  <rguenther@suse.de>
3087         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3088         adjust commentary about TYPE_IS_SIZETYPE types.
3090 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3092         PR c++/53261
3093         * c-common.c (warn_logical_operator): Check that argument of
3094         integer_zerop is not NULL.
3096 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3098         PR c/43772
3099         * c-common.c (warn_logical_operator): Do not warn if either side
3100         is already true or false.
3102 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3104         PR c/51712
3105         * c-common.c (expr_original_type): New.
3106         (shorten_compare): Do not warn for enumeration types.
3108 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3110         * c.opt (fpermissive): Add Var(flag_permissive).
3112 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
3114         PR c++/51033
3115         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3116         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3118 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
3120         Add -Wvarargs option
3121         * c.opt (Wvarargs):  Define new option.
3123 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3125         * c-common.c (check_function_arguments): Replace
3126         Wmissing-format-attribute with Wsuggest-attribute=format.
3128 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3130         * c.opt (Wsuggest-attribute=format): New. Alias of
3131         Wmissing-format-attribute.
3132         * c-format.c (decode_format_type): Replace
3133         Wmissing-format-attribute with Wsuggest-attribute=format.
3134         (check_function_format): Likewise.
3136 2012-04-27  Ollie Wild  <aaw@google.com>
3138         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3139         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3140         * c.opt: Add Wliteral-suffix.
3142 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3144         PR c/44774
3145         * c.opt (Wpedantic): New.
3146         (pedantic): Alias Wpedantic.
3147         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3148         (c_common_post_options): Likewise.
3149         (sanitize_cpp_opts): Likewise.
3150         * c-lex.c (interpret_float): Likewise.
3151         * c-format.c (check_format_types): Likewise.
3152         * c-common.c (pointer_int_sum): Likewise.
3153         (c_sizeof_or_alignof_type): Likewise.
3154         (c_add_case_label): Likewise.
3155         (c_do_switch_warnings): Likewise.
3156         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3158 2012-04-15  Jason Merrill  <jason@redhat.com>
3160         PR c++/52818
3161         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3162         (C_STD_NAME): Distinguish between C++98 and C++11.
3164 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3166         PR target/52624
3167         * c-common.h (uint16_type_node): Rename into...
3168         (c_uint16_type_node): ...this.
3169         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3170         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3172 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3174         * c-common.c (warn_if_unused_value): Move definition to here.
3175         * c-common.h (warn_if_unused_value): Move declaration to here.
3177 2012-03-23  William Bader  <williambader@hotmail.com>
3179         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3181 2012-03-20  Jason Merrill  <jason@redhat.com>
3183         * c-common.h (enum cxx_dialect): Add cxx1y.
3184         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3185         test.
3186         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3187         * c-opts.c (c_common_post_options): Likewise.
3188         (set_std_cxx1y): New.
3189         (c_common_handle_option): Call it.
3190         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3192 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
3194         PR c++/14710
3195         * c.opt ([Wuseless-cast]): Add.
3197 2012-03-16  Richard Guenther  <rguenther@suse.de>
3199         * c-pretty-print.c (pp_c_initializer_list): Adjust.
3201 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3203         PR c++/44783
3204         * c.opt (ftemplate-backtrace-limit) Add.
3206 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3208         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3209         handling.
3210         * c-pragma.c (handle_pragma_extern_prefix): Remove.
3211         (init_pragma): Don't register extern_prefix.
3213 2012-03-12  Richard Guenther  <rguenther@suse.de>
3215         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3216         (builtin_type_for_size): Likewise.
3218 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
3220         PR c++/52215
3221         * c-common.c (sync_resolve_params): Don't decide whether to convert
3222         or not based on TYPE_SIZE comparison, convert whenever arg_type
3223         is unsigned INTEGER_TYPE.
3225 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
3227         PR c/52118
3228         * c.opt ([Wunused-local-typedefs]): Fix description.
3230 2012-01-24  Mike Stump  <mikestump@comcast.net>
3232         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3233         exactly.
3235 2012-01-18  Richard Guenther  <rguenther@suse.de>
3237         * c-opts.c (c_common_post_options): Reset LTO flags if
3238         we are about to generate a PCH.
3240 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
3242         PR c++/51777
3243         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3244         use pp_unsigned_wide_integer.
3246 2012-01-10  Richard Guenther  <rguenther@suse.de>
3248         PR middle-end/51806
3249         * c-opts.c (c_common_handle_option): Move -Werror handling
3250         to language independent code.
3252 2012-01-05  Richard Guenther  <rguenther@suse.de>
3254         PR middle-end/51764
3255         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3256         from common.opt.
3258 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
3260         PR c++/51316
3261         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3262         of array types with an unknown bound.
3264 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
3266         * c-common.c (flag_isoc99): Update comment to refer to C11.
3267         (flag_isoc1x): Change to flag_isoc11.
3268         * c-common.h (flag_isoc99): Update comment to refer to C11.
3269         (flag_isoc1x): Change to flag_isoc11.
3270         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3271         C11.
3272         * c-opts.c (set_std_c1x): Change to set_std_c11.
3273         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3274         Call set_std_c11.
3275         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3276         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3277         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
3278         standard.
3279         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3280         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
3281         (std=gnu1x): Make alias of std=gnu11.
3283 2011-12-19  Jason Merrill  <jason@redhat.com>
3285         PR c++/51228
3286         * c-common.c (handle_transparent_union_attribute): Check the first
3287         field if the type is complete.
3289 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
3291         PR libstdc++/51365
3292         * c-common.c (RID_IS_FINAL): Add.
3293         * c-common.h (RID_IS_FINAL): Add.
3295 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
3297         * c.opt (fgnu-runtime): Provide full description.
3298         (fnext-runtime): Likewise.
3299         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3301 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
3303         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
3304         predefines in one place.  Add LOCK_FREE predefines.
3305         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3306         new func.
3308 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
3310         PR c/51256
3311         * c-common.c (get_atomic_generic_size): Check for various error
3312         conditions
3313         (resolve_overloaded_atomic_exchange,
3314         resolve_overloaded_atomic_compare_exchange,
3315         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3316         error_mark_node for error conditions.
3318 2011-11-08  Richard Guenther  <rguenther@suse.de>
3320         PR middle-end/51010
3321         c-family/
3323 2011-11-07  Richard Henderson  <rth@redhat.com>
3324             Aldy Hernandez  <aldyh@redhat.com>
3325             Torvald Riegel  <triegel@redhat.com>
3327         Merged from transactional-memory.
3329         * c-common.c (handle_tm_wrap_attribute,
3330         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3331         (struct c_common_reswords): Added __transaction* keywords.
3332         (struct c_common_attribute_table): Added transaction* and tm_regparm
3333         attributes.
3334         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3335         masks.
3336         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3337         find_tm_attribute): Declare.
3339 2011-11-07  Jason Merrill  <jason@redhat.com>
3341         PR c++/35688
3342         * c-common.c, c-common.h: Revert yesterday's changes.
3344 2011-11-06  Jason Merrill  <jason@redhat.com>
3346         PR c++/35688
3347         * c-common.c (decl_has_visibility_attr): Split out from...
3348         (c_determine_visibility): ...here.
3349         * c-common.h: Declare it.
3351 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3353         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3354         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3355         type.
3356         (check_user_alignment): New.  Split out of
3357         handle_aligned_attribute.  Disallow integer constants with
3358         noninteger types.  Conditionally allow zero.
3359         (handle_aligned_attribute): Use check_user_alignment.
3360         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3362 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
3363             Richard Henderson  <rth@redhat.com>
3365         Merged from cxx-mem-model.
3367         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3368         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3369         parameters that are the same type size.
3370         (get_atomic_generic_size): New.  Find size of generic
3371         atomic function parameters and do typechecking.
3372         (add_atomic_size_parameter): New.  Insert size into parameter list.
3373         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3374         either __atomic_exchange_n or external library call.
3375         (resolve_overloaded_atomic_compare_exchange): Restructure
3376         __atomic_compare_exchange to either _n variant or external library call.
3377         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3378         __atomic_load_n or an external library call.
3379         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3380         __atomic_store_n or an external library call.
3381         (resolve_overloaded_builtin): Handle new __atomic builtins.
3383 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3385         PR c++/50608
3386         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3387         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
3388         <INDIRECT_REF>: Return the argument.
3389         <ARRAY_REF>: Remove special code for negative offset.
3390         Call fold_build_pointer_plus instead of size_binop.
3391         (fold_offsetof): Remove STOP_REF argument and adjust.
3392         * c-common.h (fold_offsetof_1): Declare.
3393         (fold_offsetof): Remove STOP_REF argument.
3395 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
3397         PR c++/50810
3398         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3399         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3400         Wnarrowing for C++0x and C++98.
3401         * c.opt ([Wnarrowing]): Update.
3403 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3405         PR c++/44277
3406         * c.opt: Add Wzero-as-null-pointer-constant.
3408 2011-10-31  Jason Merrill  <jason@redhat.com>
3410         * c.opt (-fdeduce-init-list): Off by default.
3412         PR c++/50920
3413         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3414         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3415         and -Wc++11-compat.
3416         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3418 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
3420         PR c++/30066
3421         * c.opt (fvisibility-inlines-hidden): Description change.
3423 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
3425         Implement C++11 user-defined literals.
3426         * c-common.c (build_userdef_literal): New.
3427         * c-common.def: New tree code.
3428         * c-common.h (tree_userdef_literal): New tree struct and accessors.
3429         * c-lex.c (interpret_float): Add suffix parm.
3430         (c_lex_with_flags): Build literal tokens.
3432 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3434         PR c++/50841
3435         Revert:
3436         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3438         PR c++/50810
3439         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3440         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3441         Wnarrowing for C++0x and C++98.
3442         * c.opt ([Wnarrowing]): Update.
3444 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3446         PR c++/50810
3447         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3448         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3449         Wnarrowing for C++0x and C++98.
3450         * c.opt ([Wnarrowing]): Update.
3452 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
3454         PR c++/45385
3455         * c-common.c (conversion_warning): Remove code looking for
3456         artificial operands.
3458 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3460         PR bootstrap/50760
3461         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3462         !NO_IMPLICIT_EXTERN_C.
3464 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
3466         * c-common.c (c_common_reswords): Add __bases,
3467         __direct_bases.
3468         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3470 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3472         PR c++/50757
3473         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3475 2011-10-15  Tom Tromey  <tromey@redhat.com>
3476             Dodji Seketeli  <dodji@redhat.com>
3478         * c.opt (fdebug-cpp): New option.
3479         * c-opts.c (c_common_handle_option): Handle the option.
3480         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3481         output stream in parameter. Factorized from ...
3482         (maybe_print_line): ... this. Dump location debug information when
3483         -fdebug-cpp is in effect.
3484         (print_line_1): New static function. Takes an output stream in
3485         parameter. Factorized from ...
3486         (print_line): ... here. Dump location information when -fdebug-cpp
3487         is in effect.
3488         (scan_translation_unit): Dump location information when
3489         -fdebug-cpp is in effect.
3491 2011-10-15  Tom Tromey  <tromey@redhat.com>
3492             Dodji Seketeli  <dodji@redhat.com>
3494         * c.opt (ftrack-macro-expansion): New option. Handle it with and
3495         without argument.
3496         * c-opts.c (c_common_handle_option)<case
3497         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3498         cases. Handle -ftrack-macro-expansion with and without argument.
3500 2011-10-15  Tom Tromey  <tromey@redhat.com>
3501             Dodji Seketeli  <dodji@redhat.com>
3503         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3504         (print_line, cb_define, do_line_change): Adjust to avoid touching
3505         the internals of struct line_map.  Use the public API instead.
3506         * c-pch.c (c_common_read_pch): Likewise.
3507         * c-lex.c (fe_file_change): Likewise.
3509 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3511         PR c++/17212
3512         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3514 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
3516         PR c++/33067
3517         * c-pretty-print.c (pp_c_floating_constant): Output
3518         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3520 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3522         * c-common.c (def_builtin_1): Delete old interface with two
3523         parallel arrays to hold standard builtin declarations, and replace
3524         it with a function based interface that can support creating
3525         builtins on the fly in the future.  Change all uses, and poison
3526         the old names.  Make sure 0 is not a legitimate builtin index.
3527         * c-omp.c (c_finish_omp_barrier): Ditto.
3528         (c_finish_omp_taskwait): Ditto.
3529         (c_finish_omp_flush): Ditto.
3531 2011-10-11  Tristan Gingold  <gingold@adacore.com>
3533         * c.opt: (fallow-parameterless-variadic-functions): New.
3535 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3537         PR c++/33255 - Support -Wunused-local-typedefs warning
3538         * c-common.h (struct c_language_function::local_typedefs): New
3539         field.
3540         (record_locally_defined_typedef, maybe_record_typedef_use)
3541         (maybe_warn_unused_local_typedefs): Declare new functions.
3542         * c-common.c (record_locally_defined_typedef)
3543         (maybe_record_typedef_use)
3544         (maybe_warn_unused_local_typedefs): Define new functions.
3545         * c.opt: Declare new -Wunused-local-typedefs flag.
3547 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3549         PR middle-end/50266
3550         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3551         computations.
3553 2011-09-05  Richard Guenther  <rguenther@suse.de>
3555         * c-common.c (complete_array_type): Use ssize_int (-1) instead
3556         of integer_minus_one_node for empty array upper bounds.
3558 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
3560         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3561         it's the first time it's being called on this main TU.
3563 2011-08-24  Richard Guenther  <rguenther@suse.de>
3565         PR c/49396
3566         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3568 2011-08-22  Gabriel Charette  <gchare@google.com>
3570         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3571         defined in cpp_init_builtins and c_cpp_builtins.
3573 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3575         * c-common.c (c_common_reswords): Add __builtin_complex.
3576         * c-common.h (RID_BUILTIN_COMPLEX): New.
3578 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3580         * c-common.c (c_common_reswords): Add _Noreturn.
3581         (keyword_is_function_specifier): Handle RID_NORETURN.
3582         * c-common.h (RID_NORETURN): New.
3584 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3586         * c-common.c (unsafe_conversion_p): New function. Check if it is
3587         unsafe to convert an expression to the type.
3588         (conversion_warning): Adjust, use unsafe_conversion_p.
3589         * c-common.h (unsafe_conversion_p): New function declaration.
3591 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3593         * c-common.h (c_finish_omp_atomic): Adjust prototype.
3594         (c_finish_omp_taskyield): New prototype.
3595         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3596         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3597         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
3598         or RHS1 have side-effects, evaluate those too in the right spot,
3599         if it is a decl and LHS is also a decl, error out if they
3600         aren't the same.
3601         (c_finish_omp_taskyield): New function.
3602         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3603         * c-pragma.c (omp_pragmas): Add taskyield.
3604         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3605         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3606         PRAGMA_OMP_CLAUSE_MERGEABLE.
3608 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
3610         * c-common.h (set_underlying_type): Remove parm name from
3611         declaration.
3613 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
3615         * c-pretty-print.h: Search c-common.h in c-family.
3617 2011-07-22  Jason Merrill  <jason@redhat.com>
3619         PR c++/49793
3620         * c.opt (Wnarrowing): New.
3622         PR c++/30112
3623         * c-common.h: Declare c_linkage_bindings.
3624         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3626         PR c++/49813
3627         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3628         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3629         as flag_isoc99 for 'restrict'.
3630         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3632 2011-07-21  Ian Lance Taylor  <iant@google.com>
3634         PR middle-end/49705
3635         * c-common.c (c_disable_warnings): New static function.
3636         (c_enable_warnings): New static function.
3637         (c_fully_fold_internal): Change local unused_p to bool.  Call
3638         c_disable_warnings and c_enable_warnings rather than change
3639         c_inhibit_evaluation_warnings.
3641 2011-07-20  Jason Merrill  <jason@redhat.com>
3643         PR c++/6709 (DR 743)
3644         PR c++/42603 (DR 950)
3645         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3646         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3647         (CPP_DECLTYPE): New.
3648         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3650 2011-07-19  Richard Guenther  <rguenther@suse.de>
3652         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3653         * c-omp.c (c_finish_omp_for): Likewise.
3655 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3657         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3658         body on the next line.
3660 2011-07-08  Jason Merrill  <jason@redhat.com>
3662         PR c++/45437
3663         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3665         PR c++/49673
3666         * c-common.c (c_apply_type_quals_to_decl): Don't check
3667         TYPE_NEEDS_CONSTRUCTING.
3669 2011-07-06  Richard Guenther  <rguenther@suse.de>
3671         * c-common.c (c_common_nodes_and_builtins):
3672         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3674 2011-07-05  Richard Guenther  <rguenther@suse.de>
3676         * c-common.c (c_common_nodes_and_builtins): Build all common
3677         tree nodes first.
3679 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3681         * c-common.h (c_tree_chain_next): New static inline function.
3683         * c-common.c (check_builtin_function_arguments): Handle
3684         BUILT_IN_ASSUME_ALIGNED.
3686 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3688         * c-common.c: Add sync_ or SYNC__ to builtin names.
3689         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3691 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3693         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3694         handler.
3695         (gen_pragma_handler): New union.
3696         (internal_pragma_handler): New type.
3697         (c_register_pragma_with_data)
3698         (c_register_pragma_with_expansion_and_data): New functions.
3700         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3701         (c_register_pragma, c_register_pragma_with_expansion)
3702         (c_invoke_pragma_handler): Changed to work with
3703         internal_pragma_handler.
3704         (c_register_pragma_with_data)
3705         (c_register_pragma_with_expansion_and_data): New functions.
3707 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3709         * c-common.c: Include common/common-target.h.
3710         (handle_section_attribute): Use
3711         targetm_common.have_named_sections.
3712         * c-cppbuiltin.c: Include common/common-target.h.
3713         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3715 2011-06-10  Richard Guenther  <rguenther@suse.de>
3717         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3718         to print a IDENTIFIER_NODE.
3720 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3721             Joseph Myers  <joseph@codesourcery.com>
3723         * c.opt (fbuilding-libgcc): New option.
3724         * c-cppbuiltin.c (c_cpp_builtins): Define
3725         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3727 2011-06-07  Jason Merrill  <jason@redhat.com>
3729         * c-common.c (max_tinst_depth): Lower default to 900.
3731         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3733 2011-06-07  Richard Guenther  <rguenther@suse.de>
3735         * c-common.c (c_common_nodes_and_builtins): Do not set
3736         size_type_node or call set_sizetype.
3738 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
3740         PR debug/49130
3741         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3742         type when using pointer comparison to compare types.
3744 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
3746         * c.opt: Add -Wdelete-non-virtual-dtor.
3747         * c-opts.c (c_common_handle_option): Include it in -Wall.
3749 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3751         PR bootstrap/49190
3753         Revert:
3754         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3756         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3757         not tree_common.
3759 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
3761         PR c++/49165
3762         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3763         C++ don't call c_common_truthvalue_conversion on void type arms.
3765 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3767         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3768         (stmt_list_stack): Define.
3769         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3770         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3772 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3774         * c-common.c (warning_candidate_p): Check for BLOCKs.
3776 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3778         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3779         not tree_common.
3781 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3783         * c-common.c (def_fn_type): Remove extra va_end.
3785 2011-05-23  Jason Merrill  <jason@redhat.com>
3787         PR c++/48106
3788         * c-common.c (c_common_get_narrower): New.
3789         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3791 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3793         * c-common.h (check_function_arguments): Tweak prototype of
3794         check_function_arguments.
3795         * c-common.c (check_function_arguments): Likewise.  Adjust
3796         calls to check_function_nonnull, check_function_format, and
3797         check_function_sentinel.
3798         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3799         separate attributes and typelist arguments.  Use
3800         FOREACH_FUNCTION_ARGS to iterate over argument types.
3802 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3804         * c-common.c (c_common_reswords): Reorder.
3805         * c-common.h (rid): Likewise.
3807 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3809         * c-common.c (def_fn_type): Don't call build_function_type, call
3810         build_function_type_array or build_varargs_function_type_array
3811         instead.
3812         (c_common_nodes_and_builtins): Likewise.
3814 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3816         * c-common.c (c_add_case_label): Omit the loc argument to
3817         build_case_label.
3818         * c-common.h (build_case_label): Remove.
3819         * c-semantics.c (build_case_label): Remove.
3821 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3823         * c-objc.h (objc_start_method_definition): Update prototype.
3824         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3826 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3828         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3829         TYPE_ARG_TYPES directly.
3830         (handle_nonnull_attribute): Likewise.
3831         (sync_resolve_params): Likewise.
3832         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3833         to check_format_string.
3834         (handle_format_attribute): Likewise.
3835         (check_format_string): Take a function type to examine instead of
3836         a type list.  Use a function_arg_iterator to step through argument
3837         types.
3839 2011-05-04  Richard Guenther  <rguenther@suse.de>
3841         * c-common.c (fix_string_type): Use size_int for index type bounds.
3842         (start_fname_decls): Do not pass NULL to build_int_cst.
3843         (c_init_attributes): Likewise.
3844         * c-lex.c (c_lex_with_flags): Likewise.
3846 2011-04-27  Jason Merrill  <jason@redhat.com>
3848         * c-common.c (make_tree_vector_from_list): New.
3849         * c-common.h: Declare it.
3851 2011-04-26  Richard Guenther  <rguenther@suse.de>
3853         PR preprocessor/48248
3854         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3855         for output size with -P.
3857 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3859         * c-common.c (struct c_common_resword): Add __underlying_type.
3860         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3862 2011-04-20  Jim Meyering  <meyering@redhat.com>
3864         * c-format.c (init_dollar_format_checking): Remove useless
3865         if-before-free.
3867 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3869         * c-objc.h (objc_get_interface_ivars): Removed.
3870         (objc_detect_field_duplicates): New.
3871         * stub-objc.c: Likewise.
3873 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3875         * stub-objc.c (objc_declare_protocols): Renamed to
3876         objc_declare_protocol.
3877         * c-objc.h: Likewise.
3879 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3881         * stub-objc.c (objc_declare_class): Updated argument name.
3883 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3885         * c-common.h (c_common_init_ts): Declare.
3886         * c-common.c (c_common_init_ts): Define.
3888 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3890         * c-objc.h (objc_build_message_expr): Updated prototype.
3891         * stub-objc.c (objc_build_message_expr): Likewise.
3893 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3895         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3896         of cgraph_node.
3898 2011-04-11  Richard Guenther  <rguenther@suse.de>
3900         * c-common.c (complete_array_type): Build a range type of
3901         proper type.
3903 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3905         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3906         (handle_type_generic_attribute): Likewise.
3908 2011-04-07  Jason Merrill  <jason@redhat.com>
3910         PR c++/48450
3911         * c-common.c (c_common_truthvalue_conversion): Don't ignore
3912         conversion from C++0x scoped enum.
3914 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3916         * c-target-def.h: New file.
3917         * c-target.def: New file.
3918         * c-target.h: New file.
3919         * c-common.c (targetcm): Don't define here.
3920         * c-common.h (default_handle_c_option): Declare.
3921         * c-format.c: Include c-target.h instead of target.h.
3922         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
3923         include tm.h.
3924         (default_handle_c_option): Move from targhooks.c.
3926 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3928         PR preprocessor/48248
3929         * c-ppoutput.c (print): Add src_file field.
3930         (init_pp_output): Initialize it.
3931         (maybe_print_line): Don't optimize by adding up to 8 newlines
3932         if map->to_file and print.src_file are different file.
3933         (print_line): Update print.src_file.
3935 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3937         * c-ada-spec.c (compare_comment): Use filename_cmp
3938         instead of strcmp for filename.
3940 2011-03-25  Jeff Law  <law@redhat.com>
3942         * c-common.c (def_fn_type): Add missing va_end.
3944 2011-03-25  Jason Merrill  <jason@redhat.com>
3946         * c.opt: Add -std=c++03.
3948 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3950         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3952 2011-03-17  Kai Tietz
3954         PR target/12171
3955         * c-pretty-print.c (pp_c_specifier_qualifier_list):
3956         Display allowed attributes for function pointer types.
3957         (pp_c_attributes_display): New function to display
3958         attributes having affects_type_identity flag set to true.
3959         * c-pretty-print.h (pp_c_attributes_display): New prototype.
3961         * c-common.c (c_common_attribute_table):
3962         Add new element.
3963         (c_common_format_attribute_table): Likewise.
3965 2011-03-18  Jason Merrill  <jason@redhat.com>
3967         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3968         * c-common.h: Don't declare it here.
3969         * c-common.c: Or define it here.
3970         * c-opts.c (c_common_handle_option): Or set it here.
3972         PR c++/35315
3973         * c-common.c (handle_transparent_union_attribute): Don't
3974         make a duplicate type in C++.
3976 2011-03-15  Jason Merrill  <jason@redhat.com>
3978         * c-common.c (max_constexpr_depth): New.
3979         * c-common.h: Declare it.
3980         * c-opts.c (c_common_handle_option): Set it.
3981         * c.opt (fconstexpr-depth): New option.
3983 2011-03-11  Jason Merrill  <jason@redhat.com>
3985         * c-common.c (attribute_takes_identifier_p): Add missing const.
3987         PR c++/46803
3988         * c-common.c (attribute_takes_identifier_p): Assume that an
3989         unknown attribute takes an identifier.
3991 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
3993         PR c/47786
3994         * c-common.c (c_type_hash): Call list_length instead of iterating
3995         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
3997 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3999         PR c/47809
4000         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4002 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
4004         * c.opt (fobjc-abi-version=) New.
4005         (fobjc-nilcheck): New.
4007 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
4009         PR c++/46890
4010         * c-common.h (keyword_is_decl_specifier): Declare.
4011         * c-common.c (keyword_is_decl_specifier): Define.
4012         (keyword_is_function_specifier): New function.
4014 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4016         PR c/47473
4017         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4018         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4019         REAL_TYPE.
4021 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
4023         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4025 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4027         PR pch/47430
4028         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4029         after init_c_lex if pch_file is set.
4031 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
4033         PR c++/43601
4034         * c.opt (-fkeep-inline-dllexport): New switch.
4036 2011-01-12  Richard Guenther  <rguenther@suse.de>
4038         PR middle-end/32511
4039         * c-common.c (handle_weak_attribute): Warn instead of error
4040         on declaring an inline function weak.
4042 2011-01-05  Tom Tromey  <tromey@redhat.com>
4044         * c-common.h (lvalue_error): Update.
4045         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
4046         not error.
4048 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4050         PR objc/47075
4051         * c-objc.h (objc_finish_message_expr): Added argument to
4052         prototype.
4054 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
4056         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4057         Use prototype_p.
4059 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4061         * c-objc.h (objc_maybe_warn_exceptions): New.
4062         * stub-objc.c (objc_maybe_warn_exceptions): New.
4064 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
4066         * c-common.h (readonly_error): Declare.
4067         * c-common.c (readonly_error): Define.
4069 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
4071         * c-common.h (invalid_indirection_error): Declare.
4072         * c-common.c (invalid_indirection_error): Define.
4074 2010-12-03  Richard Guenther  <rguenther@suse.de>
4076         PR c/46745
4077         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4078         (pp_c_unary_expression): Likewise.
4079         (pp_c_expression): Likewise.
4081 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4083         * c-common.h (objc_finish_function): New.
4084         (objc_non_volatilized_type): Removed.
4085         (objc_type_quals_match): Removed.
4086         * stub-objc.c (objc_finish_function): New.
4087         (objc_non_volatilized_type): Removed.
4088         (objc_type_quals_match): Removed.
4090 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
4092         * c-common.h (parse_optimize_options): Declare.
4093         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4094         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4096 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
4098         * c-opts.c (check_deps_environment_vars): Use getenv instead of
4099         GET_ENVIRONMENT.
4100         * c-pch.c (O_BINARY): Don't define here.
4101         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4103 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
4105         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4106         targetm.except_unwind_info.
4108 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4110         * c-opts.c (c_common_handle_option): Pass location to
4111         set_struct_debug_option.
4113 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4115         * c-common.c (visibility_options): Move from ../opts.c.
4116         * c-common.h (struct visibility_flags, visibility_options):
4117         Declare here.
4118         * c-opts.c (finish_options): Rename to c_finish_options.
4119         (c_common_init): Update call to finish_options.
4121 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
4123         PR objc/34033
4124         * c-lex.c (lex_string): Check that each string in an Objective-C
4125         string concat sequence starts with either one or zero '@', and
4126         that there are no spurious '@' signs at the end.
4128 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
4130         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4131         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4132         HANDLE_PRAGMA_VISIBILITY.
4133         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4134         HANDLE_PRAGMA_VISIBILITY): Don't define.
4135         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4137 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
4139         PR c++/16189
4140         PR c++/36888
4141         PR c++/45331
4142         * c-common.h (keyword_begins_type_specifier): Declare.
4143         (keyword_is_storage_class_specifier): Declare.
4144         (keyword_is_type_qualifier): Declare.
4145         * c-common.c (keyword_begins_type_specifier): New function.
4146         (keyword_is_storage_class_specifier): New function.
4147         (keyword_is_type_qualifier): Declare.
4149 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4151         PR c/46547
4152         * c-common.c (in_late_binary_op): Define.
4153         (c_common_truthvalue_conversion): Check in_late_binary_op before
4154         calling c_save_expr.
4155         * c-common.h (in_late_binary_op): Declare.
4157 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4159         * c-opts.c (c_common_handle_option): Update calls to
4160         set_struct_debug_option.
4162 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4164         * c-common.h (objc_declare_protocols): Added additional argument.
4165         * stub-objc.c (objc_declare_protocol): Same change.
4167 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
4169         PR c/33193
4170         * c-common.h (build_real_imag_expr): Declare.
4171         * c-semantics.c (build_real_imag_expr): Define.
4173 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
4175         * c-opts.c (c_common_parse_file): Take no arguments.
4176         * c-common.h (c_common_parse_file): Update prototype.
4178 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
4180         PR c++/46401
4181         * c-common.c (warning_candidate_p): Don't track non-const calls
4182         or STRING_CSTs.
4184 2010-11-15  Ian Lance Taylor  <iant@google.com>
4186         * c-lex.c (init_c_lex): Set macro debug callbacks if
4187         flag_dump_go_spec is set.
4189 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4191         * c-common.h (objc_build_incr_expr_for_property_ref): New.
4192         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4194 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
4196         PR preprocessor/45038
4197         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4198         dialects.
4200 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4202         * c-common.h (c_family_lang_mask): Declare.
4203         * c-opts.c (c_family_lang_mask): Make extern.
4204         * c-pragma.c (handle_pragma_diagnostic): Use
4205         control_warning_option.
4207 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4209         * c-common.c (parse_optimize_options): Update call to
4210         decode_options.
4211         * c-common.h (c_common_handle_option): Update prototype.
4212         * c-opts.c (c_common_handle_option): Take location_t parameter and
4213         pass it to other functions.
4215 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4217         * c-opts.c (warning_as_error_callback): Remove.
4218         (c_common_initialize_diagnostics): Don't call
4219         register_warning_as_error_callback.
4220         (c_common_handle_option): Handle -Werror=normalized= here.
4222 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4224         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4225         in diagnostic.
4226         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4227         letter.
4228         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4229         Remove trailing '.' from diagnostics.
4230         * c.opt (Wwrite-strings_: Avoid '`' in help text.
4232 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4234         * c-common.c (parse_optimize_options): Pass global_dc to
4235         decode_options.
4236         * c-opts.c (c_common_handle_option): Pass &global_options to
4237         set_Wstrict_aliasing.
4238         * c.opt (v): Don't mark Common or document here.
4240 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4242         PR target/44981
4243         * c-format.c (format_type): New type gcc_objc_string_format_type.
4244         (valid_stringptr_type_p): New.
4245         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4246         (check_format_string): Pass expected type, use
4247         valid_stringptr_type_p (), check that the format string types are
4248         consistent with the format specification.
4249         (decode_format_attr): Warn if NSString is used outside objective-c.
4250         (format_types_orig): Add NSString.
4251         (format_name): New.
4252         (format_flags): New.
4253         (check_format_arg): Handle format strings requiring an external parser.
4254         first_target_format_type: New variable.
4255         (handle_format_attribute): Set up first_target_format_type, pass the
4256         expected format arg string type to check_format_string().
4257         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
4258         * stub-objc.c (objc_string_ref_type_p): New.
4259         (objc_check_format_arg): New.
4261 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4263         Fixed using the Objective-C 2.0 dot-syntax with class names.
4264         * c-common.h (objc_build_class_component_ref): New.
4265         * stub-objc.c (objc_build_class_component_ref): New.
4267 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4269         * c.opt (Wproperty-assign-default): New option.
4271 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4273         Implemented -fobjc-std=objc1 flag.
4274         * c.opt (fobjc-std=objc1): New option.
4276 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
4278         Implemented format and noreturn attributes for Objective-C methods.
4279         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4280         attribute for Objective-C methods.
4282 2010-10-31  Jason Merrill  <jason@redhat.com>
4284         * c-common.c (conversion_warning, warn_for_collisions_1): Use
4285         EXPR_LOC_OR_HERE.
4287 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4289         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4290         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4291         (objc_add_property_declaration): Removed arguments for copies and
4292         ivar.
4293         (objc_build_getter_call): Renamed to
4294         objc_maybe_build_component_ref.
4295         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4296         (objc_is_property_ref): New.
4297         * c-common.c (c_common_reswords): Removed copies and ivar.
4298         * stub-objc.c (objc_add_property_declaration): Removed arguments
4299         for copies and ivar.
4300         (objc_build_getter_call): Renamed to
4301         objc_maybe_build_component_ref.
4302         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4303         (objc_is_property_ref): New.
4305 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
4306             Matthew Gingell  <gingell@adacore.com>
4308         * c-ada-spec.c (separate_class_package): New function.
4309         (pp_ada_tree_identifier): Prefix references to C++ classes with the
4310         name of their enclosing package.
4311         (print_ada_declaration): Use separate_class_package.
4313 2010-10-27  Jason Merrill  <jason@redhat.com>
4315         * c-common.c (c_common_reswords): Add __is_literal_type.
4316         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4318         * c-common.c (check_case_value): Remove special C++ code.
4320 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4322         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4323         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
4324         and RID_LAST_PATTR.
4325         (objc_add_property_declaration): Added additional arguments.
4326         (objc_property_attribute_kind): Removed.
4327         (objc_set_property_attr): Removed.
4328         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4329         copy and nonatomic.
4330         * stub-objc.c (objc_add_property_declaration): Added additional
4331         arguments.
4332         (objc_set_property_attr): Removed.
4334 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4336         * c-common.h (objc_add_property_variable): Renamed to
4337         objc_add_property_declaration.  Added location argument.
4338         * stub-objc.c (objc_add_property_variable): Same change.
4339         
4340 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
4342         * c-common.h (objc_maybe_printable_name): New.
4343         * stub-objc.c (objc_maybe_printable_name): New.
4345 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4346         Andrew Pinski <pinskia@gmail.com>
4348         * c-common.h (c_common_mark_addressable_vec): Declare.
4349         * c-common.c (c_common_mark_addressable_vec): New function.
4351 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4353         * c-common.h (objc_set_method_type): Removed.
4354         (objc_add_method_declaration): Added boolean argument.
4355         (objc_start_method_definition): Same change.
4356         (objc_build_method_signature): Same change.
4357         * stub-objc.c (objc_set_method_type): Removed.
4358         (objc_add_method_declaration): Added boolean argument.
4359         (objc_start_method_definition): Same change.
4360         (objc_build_method_signature): Same change.
4362 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4364         * c-common.h (finish_file): Removed.
4365         (objc_write_global_declarations): New.
4366         * c-opts.c (c_common_parse_file): Do not call finish_file.
4367         * stub-objc.c (objc_write_global_declarations): New.
4369 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4371         Implemented parsing @synthesize and @dynamic for
4372         Objective-C/Objective-C++.
4373         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4374         (objc_add_synthesize_declaration): New.
4375         (objc_add_dynamic_declaration): New.
4376         * c-common.c (c_common_reswords): Add synthesize and dynamic.
4377         * stub-objc.c (objc_add_synthesize_declaration): New.
4378         (objc_add_dynamic_declaration): New.
4380 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4382         PR target/46041
4383         * c-cppbuiltin.c (mode_has_fma): Move function here from
4384         builtins.c.  Don't use the fma optab, instead just use the
4385         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4386         using -save-temps.
4388 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4390         Merge from 'apple/trunk' branch on FSF servers.
4392         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
4394         Radar 4330422
4395         * c-common.h (objc_non_volatilized_type): New declaration
4396         * stub-objc.c (objc_non_volatilized_type): New stub.
4398 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4400         Merge from 'apple/trunk' branch on FSF servers.
4402         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4404         Radar 4133425
4405         * c-common.h (objc_diagnose_private_ivar): New decl.
4406         * stub-objc.c (objc_diagnose_private_ivar): New stub.
4408 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4410         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4411         * c-common.h (enum rid): Add RID_AT_PACKAGE.
4412         (objc_ivar_visibility_kind): New enum.
4413         (objc_set_visibility): Adjust prototype to use visibility enum.
4414         * stub-objc.c (objc_set_visibility): Adjust stub to use
4415         visibility enum.
4417 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4419         * c-cppbuiltin.c (builtin_define_float_constants): Emit
4420         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4421         has the appropriate fma builtins.
4422         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4424 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4426         merge from FSF apple 'trunk' branch.
4427         2006 Fariborz Jahanian <fjahanian@apple.com>
4429         Radars 4436866, 4505126, 4506903, 4517826
4430         * c-common.c (c_common_resword): Define @property and its attributes.
4431         * c-common.h: Define property attribute enum entries.
4432         (OBJC_IS_PATTR_KEYWORD): New.
4433         (objc_property_attribute_kind): New enum.
4434         Declare objc_set_property_attr (), objc_add_property_variable (),
4435         objc_build_getter_call () and objc_build_setter_call ().
4436         * stub-objc.c (objc_set_property_attr): New stub.
4437         (objc_add_property_variable): Likewise.
4438         (objc_build_getter_call): Likewise.
4439         (objc_build_setter_call) Likewise.
4441 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
4443         merge from FSF apple 'trunk' branch.
4444         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4446         Radar 3803157 (method attributes)
4447         * c-common.c (handle_deprecated_attribute): Recognize
4448         objc methods as valid declarations.
4449         * c-common.h: Declare objc_method_decl ().
4450         * stub-objc.c (objc_method_decl): New stub.
4452 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4454         * c-common.c (parse_optimize_options): Call
4455         decode_cmdline_options_to_array_default_mask before
4456         decode_options.  Update arguments to decode_options.
4457         * c-common.h (c_common_init_options_struct): Declare.
4458         * c-opts.c (c_common_init_options_struct): New.  Split out from
4459         c_common_init_options.
4461 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4463         Implemented fast enumeration for Objective-C.
4464         * c-common.h (objc_finish_foreach_loop): New.
4465         * stub-objc.c (objc_finish_foreach_loop): New.
4467 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4469         * c-common.h (struct diagnostic_context): Don't declare here.
4470         (c_common_initialize_diagnostics): Declare using
4471         diagnostic_context typedef.
4472         * c-opts.c (c_common_handle_option): Pass global_dc to
4473         handle_generated_option.
4475 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4477         * c-opts.c (c_common_handle_option): Pass &global_options_set to
4478         handle_generated_option.
4480 2010-10-03  Ian Lance Taylor  <iant@google.com>
4482         * c.opt (-fplan9-extensions): New option.
4484 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4486         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4487         Remove.
4488         (c_cpp_builtins): Call functions from cppbuiltin.c instead
4489         of duplicating code.
4491 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
4493         * c-common.c: Add two new entries for @optional
4494         and @required keywords.
4496         merge from FSF 'apple/trunk' branch.
4497         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
4499         Radar 4386773
4500         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4501         objective-c keywords.
4502         (objc_set_method_opt): New declaration.
4503         * stub-objc.c (objc_set_method_opt): New stub.
4505 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4507         * c-common.c (handle_optimize_attribute): Pass &global_options to
4508         cl_optimization_save and cl_optimization_restore.
4509         * c-opts.c (c_common_handle_option): Pass &global_options to
4510         handle_generated_option.
4511         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4512         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4513         &global_options to cl_optimization_restore.
4515 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4517         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4518         Objective-C/Objective-C++ keywords.
4520 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4522         Merge from 'apple/trunk' branch on FSF servers.
4524         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
4526         Radar 4281748
4527         * c-common.h (objc_check_global_decl): New declaration.
4528         * stub-objc.c (objc_check_global_decl): New stub.
4530 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4532         * c.opt: Don't use VarExists.
4534 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4536         * c-common.c (c_cpp_error): Update names of diagnostic_context
4537         members.
4538         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4539         cl_optimization members.
4540         * c-opts.c (warning_as_error_callback, c_common_handle_option,
4541         sanitize_cpp_opts, finish_options): Update names of cpp_options
4542         members.
4544 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4546         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
4547         (objc_is_reserved_word): Removed.
4548         * c-common.c: Updated comments.
4549         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4550         objc_is_reserved_word.
4551         * stub-objc.c (objc_is_reserved_word): Removed.
4553 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4555         * c-common.h (objc_add_method_declaration): Adjust prototype to
4556         include attributes.
4557         (objc_start_method_definition): Likewise.
4558         (objc_build_keyword_decl): Likewise.
4559         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4560         (objc_start_method_definition): Likewise.
4561         (objc_build_keyword_decl): Likewise.
4563 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4565         * c-common.h (objc_start_class_interface): Adjust prototype.
4566         (objc_start_category_interface): Likewise.
4567         (objc_start_protocol): Likewise.
4568         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4569         (objc_start_class_interface): Likewise.
4570         (objc_start_category_interface): Likewise.
4572 2010-09-27  Ian Lance Taylor  <iant@google.com>
4574         * c-common.c (c_common_attribute_table): Add no_split_stack.
4575         (handle_no_split_stack_attribute): New static function.
4577 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4579         Merge from 'apple/trunk' branch on FSF servers.
4581         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
4583         Radar 4229905
4584         * c-common.h (objc_have_common_type): New declaration.
4585         * stub-objc.c (objc_have_common_type): New stub.
4587         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
4589         Radar 4154928
4590         * c-common.h (objc_common_type): New prototype.
4591         * stub-objc.c (objc_common_type): New stub.
4593 2010-09-24  Jan Hubicka  <jh@suse.cz>
4595         * c-common.c (handle_leaf_attribute): New function.
4596         (struct attribute_spec c_common_att): Add leaf.
4598 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4600         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4601         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4602         -dump, -dump=, -imacros, -imacros=, -include, -include=,
4603         -include-barrier, -include-directory, -include-directory=,
4604         -include-directory-after, -include-directory-after=,
4605         -include-prefix, -include-prefix=, -include-with-prefix,
4606         -include-with-prefix=, -include-with-prefix-after,
4607         -include-with-prefix-after=, -include-with-prefix-before,
4608         -include-with-prefix-before=, -no-integrated-cpp,
4609         -no-line-commands, -no-standard-includes, -no-warnings, -output,
4610         -output=, -pedantic, -pedantic-errors, -preprocess,
4611         -print-missing-file-dependencies, -trace-includes, -traditional,
4612         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4613         -user-dependencies, -verbose, -write-dependencies,
4614         -write-user-dependencies, no-integrated-cpp, traditional): New.
4616 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4618         PR objc/23710
4619         * c-common.h (objc_start_method_definition): Return bool instead
4620         of void.
4621         * stub-objc.c (objc_start_method_definition): Return bool instead
4622         of void.
4624 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4626         PR objc/25965
4627         * c-common.h (objc_get_interface_ivars): New declaration.
4628         * stub-objc.c (objc_get_interface_ivars): New stub.
4630 2010-09-15  Ian Lance Taylor  <iant@google.com>
4632         * c-common.c (parse_optimize_options): Do not capitalize warning
4633         messages.  Remove period at end of warning message.
4635 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4637         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4638         (handle_alias_attribute): ... here.
4639         (handle_ifunc_attribute): New.
4641 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4643         * c-common.h (do_warn_double_promotion): Declare.
4644         * c-common.c (do_warn_double_promotion): Define.
4646 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4648         * c.opt (Wdouble-promotion): New.
4650 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4652         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4653         fvtable-thunks, fxref): Mark no longer supported in help text.
4655 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4657         * c.opt (Wimport, fall-virtual, falt-external-templates,
4658         fdefault-inline, fenum-int-equiv, fexternal-templates,
4659         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4660         fname-mangling-version-, fnew-abi, fnonnull-objects,
4661         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4662         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4663         applicable.
4664         (fhandle-exceptions): Mark with Alias and Warn.
4665         * c-opts.c (c_common_handle_option): Don't handle options marked
4666         as ignored.
4668 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4670         * c.opt (Wcomments, Werror-implicit-function-declaration,
4671         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4672         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4673         aliases.
4674         * c-common.c (option_codes): Use OPT_Wcomment instead of
4675         OPT_Wcomments.
4676         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4677         Don't handle options marked as aliases.
4679 2010-08-25  Richard Guenther  <rguenther@suse.de>
4681         * c-common.c (c_common_get_alias_set): Remove special
4682         handling for pointers.
4684 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4686         * c-common.c: Use FOR_EACH_VEC_ELT.
4687         * c-gimplify.c: Likewise.
4688         * c-pragma.c: Likewise.
4690 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4692         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4693         RejectDriver.
4694         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4695         RejectDriver.
4696         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4697         instead of OPT_MDX and OPT_MMDX.
4699 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4701         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4703 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4705         * c.opt (MD, MMD): Change to MDX and MMDX.
4706         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4708 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4710         * c-opts.c (c_common_handle_option): Call handle_generated_option
4711         instead of handle_option.
4713 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4715         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4716         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4718 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4720         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4721         (pending_redefine_extname): Change type to a VEC.
4722         (add_to_renaming_pragma_list): Update for new type of
4723         pending_redefine_extname.
4724         (maybe_apply_renaming_pragma): Likewise.
4726 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4728         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4729         visited.
4730         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4731         decide whether a type has already been declared/seen.
4732         Do not go to the original type.
4733         (dump_nested_types): New parameter forward.
4734         Generate forward declaration if needed and mark type as visited.
4735         (print_ada_declaration): Call dump_nested_types if not already done.
4736         Mark types as visited.
4738 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4740         * c.opt (-print-pch-checksum): Remove option.
4741         * c-opts.c (c_common_handle_option): Don't handle
4742         OPT_print_pch_checksum.
4744 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4746         * c-common.h (c_common_handle_option): Update prototype and return
4747         value type.
4748         * c-opts.c (c_common_handle_option): Update prototype and return
4749         value type.  Update calls to handle_option and
4750         enable_warning_as_error.
4752 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4754         PR c/45079
4755         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4757 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4759         * c-common.h (c_common_missing_argument): Remove.
4760         * c-opts.c (c_common_missing_argument): Remove.
4761         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4762         idirafter, imacros, include, isysroot, isystem, iquote): Add
4763         MissingArgError.
4764         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4766 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4768         * c-common.h (c_common_option_lang_mask,
4769         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4770         New.
4771         (c_common_init_options): Update prototype.
4772         * c-opts.c (c_common_option_lang_mask): New.
4773         (c_common_initialize_diagnostics): Split out of
4774         c_common_init_options.
4775         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4776         New.
4777         (c_common_init_options): Update prototype.  Use decoded options in
4778         search for -lang-asm.
4780 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4782         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4783         * c-format.c: Likewise.
4785 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4787         * c-common.h: Include diagnostic-core.h. Error if already
4788         included.
4789         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4791 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4793         * c-common.c (IN_GCC_FRONTEND): Do not undef.
4794         Do not include expr.h
4795         (vector_mode_valid_p): Move here.
4797 2010-06-21  DJ Delorie  <dj@redhat.com>
4799         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4800         allow these pragmas anywhere.
4802 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4804         PR bootstrap/44509
4805         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4806         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4807         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4808         ggc_strdup instead of xstrdup.
4810 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4812         * c-cppbuiltin.c: Include cpp-id-data.h.
4813         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4814         (lazy_hex_fp_value): New function.
4815         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4817 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4819         * c-gimplify.c: Do not include tree-flow.h
4821 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4823         PR other/44034
4824         * c-common.c: Rename targetm member:
4825         targetm.enum_va_list -> targetm.enum_va_list_p
4827 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4829         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4831 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4833         * c-cppbuiltin.c: Do not include except.h.
4835 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4837         * c-common.c (warn_for_omitted_condop): New.
4838         * c-common.h (warn_for_omitted_condop): Add prototype.
4840 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4842         * c.opt (lang-objc): Remove.
4843         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4845 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4847         * c-opts.c: Include "tm_p.h".
4849 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4851         * c-common.c (parse_optimize_options): Update call to
4852         decode_options.
4854 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4856         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4857         new type of types_used_by_cur_var_decl.
4859 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
4861         PR bootstrap/44512
4862         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4863         for C++ standard compliance.
4865 2010-06-16  Jason Merrill  <jason@redhat.com>
4867         * c.opt: Add -Wnoexcept.
4869 2010-06-16  Richard Guenther  <rguenther@suse.de>
4871         PR c/44555
4872         * c-common.c (c_common_truthvalue_conversion): Remove
4873         premature and wrong optimization concering ADDR_EXPRs.
4875 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
4877         * c-ada-spec.c (dump_sloc): Remove column info.
4878         (is_simple_enum): New function.
4879         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4880         enum types when relevant.
4882 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4884         * c-common.c (conversion_warning): Warn at expression
4885         location.
4887 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4889         * c-opts.c (c_common_handle_option): Don't handle
4890         OPT_fshow_column.
4892 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4894         * c-pragma.c (push_alignment): Use typed GC allocation.
4895         (handle_pragma_push_options): Likewise.
4897         * c-common.c (parse_optimize_options): Likewise.
4899         * c-common.h (struct sorted_fields_type): Add variable_size GTY
4900         option.
4902 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4904         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4905         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4906         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4907         flag_signed_bitfields, warn_strict_null_sentinel,
4908         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4909         flag_gen_declaration, flag_no_gnu_keywords,
4910         flag_implement_inlines, flag_implicit_templates,
4911         flag_implicit_inline_templates, flag_optional_diags,
4912         flag_elide_constructors, flag_default_inline, flag_rtti,
4913         flag_conserve_space, flag_access_control, flag_check_new,
4914         flag_new_for_scope, flag_weak, flag_working_directory,
4915         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4916         flag_enforce_eh_specs, flag_threadsafe_statics,
4917         flag_pretty_templates): Remove.
4918         * c-common.h (flag_preprocess_only, flag_nil_receivers,
4919         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4920         flag_replace_objc_classes, flag_undef, flag_no_builtin,
4921         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4922         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4923         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4924         flag_no_gnu_keywords, flag_implement_inlines,
4925         flag_implicit_templates, flag_implicit_inline_templates,
4926         flag_optional_diags, flag_elide_constructors, flag_default_inline,
4927         flag_rtti, flag_conserve_space, flag_access_control,
4928         flag_check_new, flag_new_for_scope, flag_weak,
4929         flag_working_directory, flag_use_cxa_atexit,
4930         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4931         flag_threadsafe_statics, flag_pretty_templates,
4932         warn_strict_null_sentinel): Remove.
4933         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4934         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4935         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4936         fimplicit-inline-templates, fimplicit-templates,
4937         flax-vector-conversions, fms-extensions, fnil-receivers,
4938         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4939         frtti, fshort-double, fshort-enums, fshort-wchar,
4940         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4941         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4942         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4943         gen-decls, undef): Use Var.
4944         (fdefault-inline, foptional-diags): Document as doing nothing.
4945         * c-opts.c (c_common_handle_option): Remove cases for options now
4946         using Var.  Mark ignored options as such.
4948 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4950         * c-common.c: Moved to here from parent directory.
4951         * c-common.def: Likewise.
4952         * c-common.h: Likewise.
4953         * c-cppbuiltin.c: Likewise.
4954         * c-dump.c: Likewise.
4955         * c-format.c: Likewise.
4956         * c-format.h : Likewise.
4957         * c-gimplify.c: Likewise.
4958         * c-lex.c: Likewise.
4959         * c-omp.c: Likewise.
4960         * c.opt: Likewise.
4961         * c-opts.c: Likewise.
4962         * c-pch.c: Likewise.
4963         * c-ppoutput.c: Likewise.
4964         * c-pragma.c: Likewise.
4965         * c-pragma.h: Likewise.
4966         * c-pretty-print.c: Likewise.
4967         * c-pretty-print.h: Likewise.
4968         * c-semantics.c: Likewise.
4969         * stub-objc.c: Likewise.
4971         * c-common.c: Include gt-c-family-c-common.h.
4972         * c-pragma.c: Include gt-c-family-c-pragma.h.
4974 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4976 Copying and distribution of this file, with or without modification,
4977 are permitted in any medium without royalty provided the copyright
4978 notice and this notice are preserved.