PR sanitizer/65280
[official-gcc.git] / gcc / c-family / ChangeLog
blob6bd5a28fa8bdc383573012f1749a2058d3bbc2bd
1 2015-03-07  Marek Polacek  <polacek@redhat.com>
3         PR sanitizer/65280
4         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
5         before trying to figure out whether we have a flexible array member.
7 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
8             Jonathan Wakely  <jwakely.gcc@gmail.com>
10         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
12 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
14         PR ada/65319
15         * c-ada-spec.c (print_destructor): Remove obsolete code.
17 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
20         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
21         DECL_TEMPLATE_RESULT emulations.
22         (dump_ada_template)): Add guard for TYPE_METHODS.
24 2015-02-27  Marek Polacek  <polacek@redhat.com>
26         PR c/65040
27         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
29 2015-02-27  Kai Tietz  <ktietz@redhat.com>
31         PR c/35330
32         * c-pragma.c (handle_pragma_weak): Do not try to create
33         weak/alias of declarations not being function, or variable
34         declarations.
36 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
38         PR libgomp/64625
39         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
40         Remove macros.
41         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
43 2015-02-16  Marek Polacek  <polacek@redhat.com>
45         PR c/65066
46         * c-format.c (check_format_types): Handle null param.
48 2015-02-13  Marek Polacek  <polacek@redhat.com>
50         PR c/65040
51         * c-format.c (check_format_types): Don't warn about different
52         signedness if the original value is in the range of WANTED_TYPE.
54 2015-02-12  Jason Merrill  <jason@redhat.com>
56         PR c++/64956
57         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
58         to the current highest version.
59         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
61 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
63         PR c/64824
64         PR c/64868
65         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
66         instead of RDIV_EXPR.  Use build_binary_op instead of
67         build2_loc.
69 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
71         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
72         to pass input_location as first argument.
74 2015-01-23  Tom de Vries  <tom@codesourcery.com>
76         PR libgomp/64672
77         * c.opt (fopenacc): Mark as LTO option.
79 2015-01-23  Tom de Vries  <tom@codesourcery.com>
81         PR libgomp/64707
82         * c.opt (fopenmp): Mark as LTO option.
84 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
86         PR c/63307
87         * cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
88         (compare_decls): Fix up formatting.
90 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
92         PR c/63307
93         * cilk.c: Include vec.h.
94         (struct cilk_decls): New structure.
95         (wrapper_parm_cb): Split this function to...
96         (fill_decls_vec): ...this...
97         (create_parm_list): ...and this.
98         (compare_decls): New function.
99         (for_local_cb): Remove.
100         (wrapper_local_cb): Ditto.
101         (build_wrapper_type): For now first traverse and fill vector of
102         declarations then sort it and then deal with sorted vector.
103         (cilk_outline): Ditto.
104         (declare_one_free_variable): Ditto.
106 2015-01-21  Jason Merrill  <jason@redhat.com>
108         PR c++/64629
109         * c-format.c (check_format_arg): Call decl_constant_value.
111 2015-01-19  Martin Liska  <mliska@suse.cz>
113         * c-common.c (handle_noicf_attribute): New function.
115 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
116             Bernd Schmidt  <bernds@codesourcery.com>
117             James Norris  <jnorris@codesourcery.com>
118             Cesar Philippidis  <cesar@codesourcery.com>
119             Ilmir Usmanov  <i.usmanov@samsung.com>
120             Jakub Jelinek  <jakub@redhat.com>
122         * c.opt (fopenacc): New option.
123         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
124         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
125         New macros.
126         * c-common.h (c_finish_oacc_wait): New prototype.
127         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
128         (c_finish_oacc_wait): New function.
129         * c-pragma.c (oacc_pragmas): New variable.
130         (c_pp_lookup_pragma, init_pragma): Handle it.
131         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
132         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
133         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
134         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
135         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
136         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
137         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
138         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
139         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
140         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
141         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
142         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
143         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
144         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
145         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
146         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
147         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
148         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
149         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
150         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
151         PRAGMA_OACC_CLAUSE_WORKER.
153 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
155         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
156         for the new option fstack-protector_explicit.
157         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
158         (handle_stack_protect_attribute): New function.
160 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
162         * c.opt: New option -Warray-bounds=.
164 2015-01-09  Michael Collison  <michael.collison@linaro.org>
166         * array-notation-common.c: Include hash-set.h, machmode.h,
167         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
168         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
169         * c-ada-spec.c: Ditto.
170         * c-cilkplus.c: Ditto.
171         * c-common.c: Include input.h due to flattening of tree.h.
172         Define macro GCC_C_COMMON_C.
173         * c-common.h: Flatten tree.h header files into c-common.h.
174         Remove include of tree-core.h.
175         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
176         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
177         fold-const.h, wide-int.h, and inchash.h due to
178         flattening of tree.h.
179         * c-dump.c: Ditto.
180         * c-format.c: Flatten tree.h header files into c-common.h.
181         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
182         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
183         fold-const.h, wide-int.h, and inchash.h due to
184         flattening of tree.h.
185         * c-dump.c: Include hash-set.h, machmode.h,
186         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
187         fold-const.h, wide-int.h, and inchash.h due to
188         flattening of tree.h.
189         * c-format.c: Include hash-set.h, machmode.h,
190         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
191         fold-const.h, wide-int.h, inchash.h and real.h due to
192         flattening of tree.h.
193         * c-gimplify.c: Include hash-set.h, machmode.h,
194         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
195         fold-const.h, wide-int.h, and inchash.h due to
196         flattening of tree.h.
197         * cilk.c: Ditto.
198         * c-lex.c: Ditto.
199         * c-omp.c: Ditto.
200         * c-opts.c: Ditto.
201         * c-pch.c: Ditto.
202         * c-ppoutput.c: Ditto.
203         * c-pragma.c: Ditto.
204         * c-pretty-print.c: Ditto.
205         * c-semantics.c: Ditto.
206         * c-ubsan.c: Ditto.
207         * stub-objc.c: Ditto.
209 2015-01-08  Jason Merrill  <jason@redhat.com>
211         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
212         do_ubsan_in_current_function.
213         (ubsan_maybe_instrument_reference_or_call): Likewise.
214         * c-ubsan.h: Declare it.
216 2015-01-08  Mike Stump  <mikestump@comcast.net>
218         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
220 2015-01-07  Marek Polacek  <polacek@redhat.com>
222         PR c/64440
223         * c-common.c (c_fully_fold_internal): Warn for division and modulo
224         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
226 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
228         PR c++/31397
229         * c.opt (Wsuggest-override): New option.
231 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
233         Update copyright years.
235 2015-01-05  Marek Polacek  <polacek@redhat.com>
237         PR c/64423
238         * c-common.c (warn_array_subscript_with_type_char): Add location_t
239         parameter.  Use it.
240         * c-common.h (warn_array_subscript_with_type_char): Update
241         declaration.
243 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
245         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
246         Control macro with flag_sized_deallocation.
248 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
250         * c.opt (Wdiscarded-array-qualifiers): New option.
252 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
254         PR preprocessor/63831
255         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
256         and __has_cpp_attribute here.
257         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
258         c_common_has_attribute.
259         * c-common.h (c_common_has_attribute): New prototype.
260         * c-lex.c (init_c_lex): Set cb->has_attribute to
261         c_common_has_attribute instead of cb_has_attribute.
262         (get_token_no_padding): New function.
263         (cb_has_attribute): Renamed to ...
264         (c_common_has_attribute): ... this.  No longer static.  Use
265         get_token_no_padding, require ()s, don't build TREE_LIST
266         unnecessarily, fix up formatting, adjust diagnostics, call
267         init_attributes.
269 2014-12-15  Jason Merrill  <jason@redhat.com>
271         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
272         (-Wsized-deallocation): New.
273         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
274         to on in C++14 and up.
276 2014-12-11  Jason Merrill  <jason@redhat.com>
278         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
280         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
281         we aren't complaining about VLAs.
283 2014-12-06  Marek Polacek  <polacek@redhat.com>
285         PR tree-optimization/64183
286         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
287         shift-expression if it is integer_type_node.  Use types_compatible_p.
289 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
291         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
292         last argument from create_tmp_var_raw and create_tmp_var calls.
293         * cilk.c (gimplify_cilk_spawn): Likewise.
294         * c-omp.c (c_finish_omp_atomic): Likewise.
296 2014-11-28  Marek Polacek  <polacek@redhat.com>
298         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
299         instead of unsigned_type_node.
301 2014-11-28  Marek Polacek  <polacek@redhat.com>
303         PR c/63862
304         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
305         to op1_utype.
306         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
307         expression to unsigned_type_node.
309 2014-11-20  Mark Wielaard  <mjw@redhat.com>
311         PR debug/38757
312         * c-opts.c (set_std_c89): Set lang_hooks.name.
313         (set_std_c99): Likewise.
314         (set_std_c11): Likewise.
315         (set_std_cxx98): Likewise.
316         (set_std_cxx11): Likewise.
317         (set_std_cxx14): Likewise.
318         (set_std_cxx1z): Likewise.
320 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
322         PR target/63764
323         * c-common.h (convert_vector_to_pointer_for_subscript): Change
324         return type to bool.
325         * c-common.c: Include gimple-expr.h.
326         (convert_vector_to_pointer_for_subscript): Change return type to
327         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
328         and copy it into a TARGET_EXPR and use that instead of *vecp
329         directly.
331 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
333         Merger of git branch "gimple-classes-v2-option-3".
334         * ChangeLog.gimple-classes: New.
335         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
336         from being just a vec<gimple> to a vec<gbind *>.
338 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
340         PR sanitizer/63813
341         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
342         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
343         get_pointer_alignment for non-pointers.  Use ptype, or if it is
344         reference type, corresponding pointer type, as type of kind
345         argument.
346         (ubsan_maybe_instrument_reference,
347         ubsan_maybe_instrument_member_call): Adjust callers.
349 2014-11-15  Marek Polacek  <polacek@redhat.com>
351         PR middle-end/63884
352         * array-notation-common.c (is_sec_implicit_index_fn): Return false
353         for NULL fndecl.
354         (extract_array_notation_exprs): Return for NULL node.
356 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
358         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
359         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
361 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
363         PR c/59708
364         * c-common.c (check_builtin_function_arguments): Handle
365         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
367 2014-11-10  Andi Kleen  <ak@linux.intel.com>
369         PR c/60804
370         * c-common.h (check_no_cilk): Declare.
371         * cilk.c (get_error_location): New function.
372         (check_no_cilk): Dito.
374 2014-11-10  Andi Kleen  <ak@linux.intel.com>
376         * cilk.c (recognize_spawn): Use expression location
377         for error message.
379 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
381         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
383 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
385         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
386         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
387         (__cpp_range_based_for, __cpp_initializer_lists,
388         __cpp_delegating_constructors, __cpp_nsdmi,
389         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
390         for C++11; (__cpp_attribute_deprecated): Remove in favor of
391         __has_cpp_attribute.
392         * c-lex.c (cb_has_attribute): New callback CPP function;
393         (init_c_lex): Set has_attribute callback.
395 2014-11-04  Richard Biener  <rguenther@suse.de>
397         * c-common.c (shorten_compare): Do not shorten mixed
398         DFP and non-DFP compares.
400 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
402         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
403         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
404         Commentary and rearrangement of tests.
405         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
406         Commentary and rearrangement of tests.
407         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
408         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
410 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
412         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
413         enum from machine_mode.
415 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
417         * c-common.c: Adjust include files.
418         * c-gimplify.c: Ditto.
419         * cilk.c: Ditto.
420         * c-pragma.c: Ditto.
421         * c-ubsan.c: Ditto.
423 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
425         * c-gimplify.c: Adjust include files.
427 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
429         PR c++/53061
430         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
431         c_common_initialize_diagnostics.
432         * c-common.h: Likewise.
434 2014-10-24  Marek Polacek  <polacek@redhat.com>
436         PR c/56980
437         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
438         print "struct"/"union"/"enum" for typedefed names.
440 2014-10-23  Marek Polacek  <polacek@redhat.com>
442         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
443         in unsigned type.
445 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
446             Yury Gribov  <y.gribov@samsung.com>
448         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
449         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
450         instead of flag_sanitize_recover as bool flag.
452 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
454         * cilk.c: Revert previous change.
456 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
458         PR c/63307
459         * cilk.c: Include vec.h.
460         (struct cilk_decls): New structure.
461         (wrapper_parm_cb): Split this function to...
462         (fill_decls_vec): ...this...
463         (create_parm_list): ...and this.
464         (compare_decls): New function.
465         (for_local_cb): Remove.
466         (wrapper_local_cb): Ditto.
467         (build_wrapper_type): For now first traverse and fill vector of
468         declarations then sort it and then deal with sorted vector.
469         (cilk_outline): Ditto.
470         (declare_one_free_variable): Ditto.
472 2014-10-17  Marek Polacek  <polacek@redhat.com>
474         * c-opts.c (c_common_post_options): Set warn_implicit_int.
475         * c.opt (Wimplicit-int): Initialize to -1.
477 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
479         * c-pragma.c: Adjust include files.
480         * c-semantics.c: Likewise.
482 2014-10-16  DJ Delorie  <dj@redhat.com>
484         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
485         multiples of bytes.
487 2014-10-14  Jason Merrill  <jason@redhat.com>
489         PR c++/63455
490         * c-common.h (CPP_PREPARSED_EXPR): New.
491         (N_CP_TTYPES): Adjust.
493 2014-10-15  Marek Polacek  <polacek@redhat.com>
495         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
497 2014-10-14  DJ Delorie  <dj@redhat.com>
499         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
500         types, not just __int128.
501         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
502         types, not just __int128.
503         (cpp_atomic_builtins): Round pointer sizes up.
504         (type_suffix): Use type precision, not specific types.
505         * c-common.c (c_common_reswords): Remove __int128 special case.
506         (c_common_type_for_size): Check for all __intN types, not just
507         __int128.
508         (c_common_type_for_mode): Likewise.
509         (c_common_signed_or_unsigned_type): Likewise.
510         (c_build_bitfield_integer_type): Likewise.
511         (c_common_nodes_and_builtins): Likewise.
512         (keyword_begins_type_specifier): Likewise.
513         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
514         __intN variants.
516 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
518         * c-common.c: Use hash_table instead of hashtab.
520 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
522         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
523         C++11 section.
525 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
527         PR c++/54427
528         PR c++/57198
529         PR c++/58845
530         * c-common.c (warn_logical_operator): Punt for vectors.
532 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
534         Implement SD-6: SG10 Feature Test Recommendations
535         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
536         macros and the __has_header macro.
538 2014-09-30  Jason Merrill  <jason@redhat.com>
540         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
541         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
542         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
544         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
545         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
547         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
548         * c-common.c (c_common_reswords): Remove __is_convertible_to.
550 2014-09-24  Marek Polacek  <polacek@redhat.com>
552         PR c/61405
553         PR c/53874
554         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
556 2014-09-23  Andi Kleen  <ak@linux.intel.com>
558         * c-common.c (handle_no_reorder_attribute): New function.
559         (c_common_attribute_table): Add no_reorder attribute.
561 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
563         * c-cppbuiltin.c (c_cpp_builtins): Define
564         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
565         modes.
567 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
569         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
570         for supported floating-point modes.
572 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
574         * c.opt (Wpsabi): Use LangEnabledBy.
575         * c-opts.c (c_common_handle_option): Do not handle here.
577 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
579         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
580         macros for floating-point modes.
582 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
584         PR target/58757
585         * c-cppbuiltin.c (builtin_define_float_constants): Correct
586         __*_DENORM_MIN__ without denormals.
588 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
590         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
591         ubsan_instrument_vla, ubsan_instrument_return): Adjust
592         ubsan_create_data callers.
593         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
594         index is constant or BIT_AND_EXPR with constant mask and is
595         small enough for the bound.
596         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
597         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
599 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
601         * c.opt: Add CppReason to various flags.
602         (Wdate-time): Re-sort.
603         * c-common.c: Include c-common.h earlier.
604         (struct reason_option_codes_t): Delete.
605         (c_option_controlling_cpp_error): Prefix global type and struct
606         with cpp_.
608 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
610         * c.opt (Wnormalized): New.
611         (Wnormalized=): Use Enum and Reject Negative.
612         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
614 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
616         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
617         digits of floating-point modes if -fbuilding-libgcc.
619 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
621         * c-cppbuiltin.c (c_cpp_builtins): Also define
622         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
623         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
624         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
625         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
626         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
627         __LIBGCC_STACK_GROWS_DOWNWARD__,
628         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
629         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
630         __LIBGCC_DWARF_FRAME_REGISTERS__,
631         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
632         __LIBGCC_STACK_POINTER_REGNUM__ and
633         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
634         (builtin_define_with_value): Handle backslash-escaping in string
635         macro values.
637 2014-09-05  Richard Biener  <rguenther@suse.de>
639         PR middle-end/63148
640         * c-format.c (check_format_arg): Properly handle
641         effectively signed POINTER_PLUS_EXPR offset.
643 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
645         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
646         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
647         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
648         and Init.
649         * c-opts.c (c_common_handle_option): Do not handle here.
650         (sanitize_cpp_opts): Likewise.
651         * c-common.c (struct reason_option_codes_t): Handle
652         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
654 2014-09-03  Marek Polacek  <polacek@redhat.com>
656         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
658 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
659             Balaji V. Iyer  <balaji.v.iyer@intel.com>
660             Igor Zamyatin  <igor.zamyatin@intel.com>
662         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
663         * c-common.c (c_common_reswords): Added _Cilk_for.
664         * c-common.h (enum rid): Added RID_CILK_FOR.
665         (cilk_for_number_of_iterations): Add declaration.
666         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
667         CILK_FOR.
668         * c-pragma.c (init_pragma): Register "grainsize" pragma.
669         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
671 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
673         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
674         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
675         Wundef): Use CPP, Var and Init.
676         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
678 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
680         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
681         * c-opts.c (c_common_handle_option): Do not handle here.
683 2014-08-25  Jason Merrill  <jason@redhat.com>
685         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
686         -std=c++14 and -std=gnu++14, rather than the reverse.
687         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
688         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
689         * c-common.h (cxx_dialect): Remove cxx1y.
691 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
693         * c-common.h (enum cxx_dialect): Add cxx14.
694         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
695         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
696         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
698 2014-08-22  Jason Merrill  <jason@redhat.com>
700         * c.opt (std=gnu++17): Fix alias.
702 2014-08-22  Marek Polacek  <polacek@redhat.com>
704         PR c++/62199
705         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
706         check for vector types.  Drop LHS argument.
707         * c-common.h (warn_logical_not_parentheses): Adjust.
709 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
711         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
712         (Wmultichar): Likewise.
713         (Wdate-time): Use C-family languages instead of Common. Use CPP
714         and Var.
715         * c-opts.c (c_common_handle_option): Do not handle the above
716         options here.
717         (sanitize_cpp_opts): Likewise.
719 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
721         PR fortran/44054
722         * c-opts.c: Include tree-diagnostics.h.
723         (c_diagnostic_finalizer): New.
724         (c_common_initialize_diagnostics): Use it.
726 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
728         PR preprocessor/51303
729         * c-common.c (struct reason_option_codes_t option_codes):
730         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
732 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
734         PR c/60975
735         PR c/53063
736         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
737         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
738         (c_common_post_options): Call init_global_opts_from_cpp.
739         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
741 2014-08-19  Marek Polacek  <polacek@redhat.com>
743         PR c++/62153
744         * c-common.c (maybe_warn_bool_compare): New function.
745         * c-common.h (maybe_warn_bool_compare): Declare.
746         * c.opt (Wbool-compare): New option.
748 2014-08-19  Marek Polacek  <polacek@redhat.com>
750         * c.opt (Wc99-c11-compat): New option.
752 2014-08-19  Marek Polacek  <polacek@redhat.com>
754         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
755         to warn_c90_c99_compat.
756         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
757         to -1.
759 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
760             Steven Bosscher  <steven@gcc.gnu.org>
762         PR c/52952
763         * c-format.c: Add extra_arg_loc and format_string_loc to struct
764         format_check_results.
765         (check_function_format): Use true and add comment for boolean
766         argument.
767         (finish_dollar_format_checking): Use explicit location when warning.
768         (check_format_info): Likewise.
769         (check_format_arg): Set extra_arg_loc and format_string_loc.
770         (check_format_info_main): Use explicit location when warning.
771         (check_format_types): Pass explicit location.
772         (format_type_warning): Likewise.
774 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
776         PR fortran/44054
777         * c-format.c: Handle Fortran flags.
779 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
781         PR other/61962
782         * array-notation-common.c (find_rank): Added handling for other
783         types of references.
785 2014-08-10  Marek Polacek  <polacek@redhat.com>
787         PR c/51849
788         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
789         * c.opt (Wc90-c99-compat): Add option.
791 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
793         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
795 2014-08-03  Marek Polacek  <polacek@redhat.com>
797         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
798         (c_add_case_label): Pass loc to check_case_value.
800 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
802         * cilk.c: Use hash_map instead of pointer_map.
804 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
806         * c-gimplify.c: Use hash_set instead of pointer_set.
808 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
810         PR middle-end/61455
811         * array-notation-common.c (extract_array_notation_exprs): Handling
812         of DECL_EXPR added.
814 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
816         * c-common.h (min_align_of_type): Removed prototype.
817         * c-common.c (min_align_of_type): Removed.
818         * c-ubsan.h (ubsan_maybe_instrument_reference,
819         ubsan_maybe_instrument_member_call): New prototypes.
820         * c-ubsan.c: Include stor-layout.h and builtins.h.
821         (ubsan_maybe_instrument_reference_or_call,
822         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
823         functions.
825 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
827         PR c++/60517
828         * c.opt (-Wreturn-local-addr): Move to common.opt.
830 2014-07-30  Jason Merrill  <jason@redhat.com>
832         PR c++/61659
833         PR c++/61687
834         Revert:
835         * c.opt (-fuse-all-virtuals): New.
837 2014-07-30  Tom Tromey  <tromey@redhat.com>
839         PR c/59855
840         * c.opt (Wdesignated-init): New option.
841         * c-common.c (c_common_attribute_table): Add "designated_init".
842         (handle_designated_init): New function.
844 2014-07-24  Marek Polacek  <polacek@redhat.com>
846         PR c/57653
847         * c-opts.c (c_finish_options): If -imacros is in effect, return.
849 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
851         PR preprocessor/60723 - missing system-ness marks for macro tokens
852         * c-ppoutput.c (struct print::prev_was_system_token): New data
853         member.
854         (init_pp_output): Initialize it.
855         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
856         (do_line_change): Return a flag saying if a line marker was
857         emitted or not.
858         (scan_translation_unit): Detect if the system-ness of the token we
859         are about to emit is different from the one of the previously
860         emitted token.  If so, emit a line marker.  Avoid emitting useless
861         adjacent line markers.  Avoid emitting line markers for tokens
862         originating from the expansion of built-in macros.
863         (scan_translation_unit_directives_only): Adjust.
865 2014-07-15  Marek Polacek  <polacek@redhat.com>
867         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
868         TYPE_MAX_VALUE is NULL.
870 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
872         PR middle-end/61294
873         * c.opt (Wmemset-transposed-args): New warning.
875 2014-07-10  Jason Merrill  <jason@redhat.com>
877         PR c++/61659
878         PR c++/61687
879         * c.opt (-fuse-all-virtuals): New.
881 2014-07-09  Richard Biener  <rguenther@suse.de>
883         PR c-family/61741
884         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
885         using unsigned arithmetic if overflow does not wrap instead of
886         if overflow is undefined.
888 2014-07-06  Marek Polacek  <polacek@redhat.com>
890         PR c/6940
891         * c.opt (Wsizeof-array-argument): New option.
893 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
895         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
896         comments->count <= 1, as comments->entries might be NULL.
898 2014-07-01  Marek Polacek  <polacek@redhat.com>
900         * c.opt (Wint-conversion): New option.
902 2014-07-01  Marek Polacek  <polacek@redhat.com>
904         PR c/58286
905         * c.opt (Wincompatible-pointer-types): New option.
907 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
909         PR c++/51400
910         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
911         Do not discard TYPE_QUALS of type.
913 2014-06-26  Jason Merrill  <jason@redhat.com>
915         * c-common.h (enum cxx_dialect): Add cxx1z.
916         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
917         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
919 2014-06-26  Teresa Johnson  <tejohnson@google.com>
921         * c-common.h (get_dump_info): Declare.
922         * c-gimplify.c (c_genericize): Use saved dump files.
923         * c-opts.c (c_common_parse_file): Begin and end dumps
924         once around parsing invocation.
925         (get_dump_info): New function.
927 2014-06-23  Marek Polacek  <polacek@redhat.com>
928             Andrew MacLeod  <amacleod@redhat.com>
930         PR c/61553
931         * c-common.c (get_atomic_generic_size): Don't segfault if the
932         type doesn't have a size.
934 2014-06-20  Marek Polacek  <polacek@redhat.com>
936         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
937         (ubsan_walk_array_refs_r): New function.
938         (c_genericize): Instrument array bounds.
939         * c-ubsan.c: Include "internal-fn.h".
940         (ubsan_instrument_division): Mark instrumented arrays as having
941         side effects.  Adjust ubsan_type_descriptor call.
942         (ubsan_instrument_shift): Likewise.
943         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
944         (ubsan_instrument_bounds): New function.
945         (ubsan_array_ref_instrumented_p): New function.
946         (ubsan_maybe_instrument_array_ref): New function.
947         * c-ubsan.h (ubsan_instrument_bounds): Declare.
948         (ubsan_array_ref_instrumented_p): Declare.
949         (ubsan_maybe_instrument_array_ref): Declare.
951 2014-06-20  Hale Wang  <hale.wang@arm.com>
953         PR lto/61123
954         * c.opt (fshort-enums): Add to LTO.
955         * c.opt (fshort-wchar): Likewise.
957 2014-06-16  Marek Polacek  <polacek@redhat.com>
959         PR c/60439
960         * c.opt (Wswitch-bool): Add Var.
962 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
964         PR middle-end/61486
965         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
966         #pragma omp target teams or
967         #pragma omp {,target }teams distribute simd.
969 2014-06-12  Jason Merrill  <jason@redhat.com>
971         * c.opt (Wabi=, fabi-compat-version): New.
972         * c-opts.c (c_common_handle_option): Handle -Wabi=.
973         (c_common_post_options): Handle flag_abi_compat_version default.
974         Disallow -fabi-compat-version=1.
975         * c-common.h (abi_version_crosses): New.
977 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
979         * c-common.c (handle_section_attribute): Update handling for
980         section names that are no longer trees.
982 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
984         PR fortran/60928
985         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
986         (omp_pragmas): ... back here.
988 2014-06-05  Marek Polacek  <polacek@redhat.com>
990         PR c/49706
991         * c-common.c (warn_logical_not_parentheses): New function.
992         * c-common.h (warn_logical_not_parentheses): Declare.
993         * c.opt (Wlogical-not-parentheses): New option.
995 2014-06-04  Marek Polacek  <polacek@redhat.com>
997         PR c/30020
998         * c-common.c (check_case_bounds): Add location parameter.
999         Use it.
1000         (c_add_case_label): Pass loc to check_case_bounds.
1002 2014-06-03  Marek Polacek  <polacek@redhat.com>
1004         PR c/60439
1005         * c.opt (Wswitch-bool): New option.
1007 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1009         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1010         Remove prototypes.
1011         (record_types_used_by_current_var_decl): Move prototype to where
1012         it belongs.
1014         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1015         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1016         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1018 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1020         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1021         * c-common.c (c_common_nodes_and_builtins): Don't initialize
1022         void_zero_node.
1023         * c-pretty-print.c (pp_c_void_constant): New function.
1024         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1025         (c_pretty_printer::expression): Handle VOID_CST.
1026         * cilk.c (extract_free_variables): Likewise.
1027         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1028         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1030 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1032         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1033         * c-pragma.c (push_alignment): Adjust.
1034         (handle_pragma_push_options): Likewise.
1036 2014-05-09  Marek Polacek  <polacek@redhat.com>
1038         PR c/50459
1039         * c-common.c (check_user_alignment): Return -1 if alignment is error
1040         node.
1041         (handle_aligned_attribute): Don't call default_conversion on
1042         FUNCTION_DECLs.
1043         (handle_vector_size_attribute): Likewise.
1044         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1045         (handle_sentinel_attribute): Call default_conversion and allow even
1046         integral types as an argument.
1048 2014-05-08  Marek Polacek  <polacek@redhat.com>
1050         PR c/61053
1051         * c-common.c (min_align_of_type): New function factored out from...
1052         (c_sizeof_or_alignof_type): ...here.
1053         * c-common.h (min_align_of_type): Declare.
1055 2014-05-08  Marek Polacek  <polacek@redhat.com>
1057         PR c/61077
1058         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1059         parameter type of main.
1061 2014-05-07  DJ Delorie  <dj@redhat.com>
1063         * c-cppbuiltin.c (print_bits_of_hex): New.
1064         (builtin_define_type_minmax): Print values using hex so as not to
1065         require a pre-computed list of string values.
1067 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1068             Mike Stump  <mikestump@comcast.net>
1069             Richard Sandiford  <rdsandiford@googlemail.com>
1071         * c-ada-spec.c: Include wide-int.h.
1072         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1073         (dump_generic_ada_node): Use wide-int interfaces.
1074         * c-common.c: Include wide-int-print.h.
1075         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1076         (pointer_int_sum): Use wide-int interfaces.
1077         (c_common_nodes_and_builtins): Use make_int_cst.
1078         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1079         (handle_alloc_size_attribute): Use wide-int interfaces.
1080         (get_nonnull_operand): Likewise.
1081         * c-format.c (get_constant): Use tree_fits_uhwi_p.
1082         * c-lex.c: Include wide-int.h.
1083         (narrowest_unsigned_type): Take a widest_int rather than two
1084         HOST_WIDE_INTs.
1085         (narrowest_signed_type): Likewise.
1086         (interpret_integer): Update accordingly.  Use wide-int interfaces.
1087         (lex_charconst): Use wide-int interfaces.
1088         * c-pretty-print.c: Include wide-int.h.
1089         (pp_c_integer_constant): Use wide-int interfaces.
1090         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1091         INT_CST_LT_UNSIGNED.
1093 2014-05-06  Richard Biener  <rguenther@suse.de>
1095         * c-opts.c (c_common_post_options): For -freestanding,
1096         -fno-hosted and -fno-builtin disable pattern recognition
1097         if not enabled explicitely.
1099 2014-05-02  Marek Polacek  <polacek@redhat.com>
1101         * c.opt (Wsizeof-pointer-memaccess): Describe option.
1103 2014-05-01  Marek Polacek  <polacek@redhat.com>
1105         PR c/43245
1106         * c.opt (Wdiscarded-qualifiers): Add.
1108 2014-04-30  Marek Polacek  <polacek@redhat.com>
1110         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
1111         INT_MIN / -1 sanitization only for integer types.
1113 2014-04-25  Marek Polacek  <polacek@redhat.com>
1115         PR c/18079
1116         * c-common.c (handle_noinline_attribute): Warn if the attribute
1117         conflicts with always_inline attribute.
1118         (handle_always_inline_attribute): Warn if the attribute conflicts
1119         with noinline attribute.
1121 2014-04-25  Marek Polacek  <polacek@redhat.com>
1123         PR c/60156
1124         * c-common.c (check_main_parameter_types): Warn about variadic main.
1126 2014-04-24  Mike Stump  <mikestump@comcast.net>
1128         * c.opt (Wshadow-ivar): Default to on.
1130 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
1132         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1134 2014-04-23  Marek Polacek  <polacek@redhat.com>
1136         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1138 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1140         PR sanitizer/60275
1141         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1142         if flag_sanitize_undefined_trap_on_error.
1143         (ubsan_instrument_division, ubsan_instrument_shift,
1144         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
1145         if !flag_sanitize_recover.
1147 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
1149         PR libstdc++/43622
1150         * c-common.c (registered_builtin_types): Make non-static.
1151         * c-common.h (registered_builtin_types): Declare.
1153 2014-04-14  Richard Biener  <rguenther@suse.de>
1154         Marc Glisse  <marc.glisse@inria.fr>
1156         PR c/60819
1157         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1158         apply may-alias the scalar pointer type when applicable.
1160 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1162         PR middle-end/60467
1163         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1164         as possible argument for Cilk_spawn.
1166 2014-04-11  Tobias Burnus  <burnus@net-b.de>
1168         PR c/60194
1169         * c.opt (Wformat-signedness): Add
1170         * c-format.c(check_format_types): Use it.
1172 2014-04-11  Jason Merrill  <jason@redhat.com>
1174         PR c++/57926
1175         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1176         default_conversion for an array argument.
1178 2014-04-08  Marek Polacek  <polacek@redhat.com>
1180         PR sanitizer/60745
1181         * c-ubsan.c: Include asan.h.
1182         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1184 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1186         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1188 2014-04-02  Marek Polacek  <polacek@redhat.com>
1190         * c-common.h (c_expand_expr): Remove declaration.
1192 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1194         PR c++/60689
1195         * c-common.c (add_atomic_size_parameter): When creating new
1196         params vector, push the size argument first.
1198 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
1200         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1201         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1202         ubsan_create_data callers.
1204 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
1206         PR debug/60603
1207         * c-opts.c (c_finish_options): Restore cb_file_change call to
1208         <built-in>.
1210 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
1212         PR middle-end/36282
1213         * c-pragma.c (apply_pragma_weak): Only look at
1214         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1215         DECL_ASSEMBLER_NAME_SET_P (decl).
1216         (maybe_apply_pending_pragma_weaks): Exit early if
1217         vec_safe_is_empty (pending_weaks) rather than only when
1218         !pending_weaks.
1219         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
1220         set assembler name back to NULL afterwards.
1222 2014-03-11  Jason Merrill  <jason@redhat.com>
1224         * c.opt: Add -std=gnu++14.
1226 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
1228         * c-opts.c (c_common_post_options): Don't override
1229         -ffp-contract=fast if unsafe-math-optimizations is on.
1231 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
1233     * c.opt: Enable LTO FE for fshort-double.
1235 2014-03-07  Jason Merrill  <jason@redhat.com>
1237         * c.opt: Add -std=c++14.
1239 2014-03-06  Marek Polacek  <polacek@redhat.com>
1241         PR c/60197
1242         * cilk.c (contains_cilk_spawn_stmt): New function.
1243         (contains_cilk_spawn_stmt_walker): Likewise.
1244         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1245         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1247 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
1249         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1250         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1251         even when flag_preprocess_only.
1253 2014-02-26  Jason Merrill  <jason@redhat.com>
1255         PR c++/59231
1256         PR c++/11586
1257         * c-common.c (shorten_compare): Don't check
1258         c_inhibit_evaluation_warnings.
1260 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
1262         PR c/37743
1263         * c-common.c (c_common_nodes_and_builtins): When initializing
1264         c_uint{16,32,64}_type_node, also set corresponding
1265         uint{16,32,64}_type_node to the same value.
1267         PR c++/60267
1268         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1269         for PRAGMA_IVDEP if flag_preprocess_only.
1271 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
1273         PR c/60101
1274         * c-common.c (merge_tlist): If copy is true, call new_tlist,
1275         if false, add ADD itself, rather than vice versa.
1276         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1277         copy.  For SAVE_EXPR, only call merge_tlist once.
1279 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
1281         PR middle-end/60092
1282         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1283         and tree_to_uhwi.
1284         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1285         functions.
1286         (c_common_attribute_table): Add alloc_align and assume_aligned
1287         attributes.
1289 2014-02-06  Marek Polacek  <polacek@redhat.com>
1291         PR c/60087
1292         * c-common.c (warn_for_sign_compare): Call warning_at with location
1293         instead of warning.
1295 2014-02-05  Marek Polacek  <polacek@redhat.com>
1297         PR c/53123
1298         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1299         statement.
1301 2014-02-04  Marek Polacek  <polacek@redhat.com>
1303         PR c/60036
1304         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1305         SAVE_EXPR.
1307 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
1309         PR c++/53017
1310         PR c++/59211
1311         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1312         handle_vector_size_attribute, handle_nonnull_attribute): Call
1313         default_conversion on the attribute argument.
1314         (handle_nonnull_attribute): Increment the argument number.
1316 2014-01-31  Marek Polacek  <polacek@redhat.com>
1318         PR c/59963
1319         * c-common.c (add_atomic_size_parameter): Pass vNULL to
1320         build_function_call_vec.
1321         (resolve_overloaded_builtin): Likewise.
1322         * c-common.h (build_function_call_vec): Adjust declaration.
1324 2014-01-30  Marek Polacek  <polacek@redhat.com>
1326         PR c/59940
1327         * c-common.h (unsafe_conversion_p): Adjust declaration.
1328         (warnings_for_convert_and_check): Likewise.
1329         (convert_and_check): Likewise.
1330         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
1331         expansion_point_location_if_in_system_header on it.
1332         (warnings_for_convert_and_check): Add location parameter.  Call
1333         expansion_point_location_if_in_system_header on it.  Use it.
1334         (convert_and_check): Add location parameter.  Use it.
1335         (conversion_warning): Likewise.
1336         (c_add_case_label): Adjust convert_and_check calls.
1337         (scalar_to_vector): Adjust unsafe_conversion_p calls.
1339 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1341         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1342         flag_cilkplus.
1343         * c-pragma.c (init_pragma): Likewise.
1344         * c.opt: Likewise.
1346 2014-01-23  Marek Polacek  <polacek@redhat.com>
1348         PR c/59846
1349         * c-common.c (shorten_compare): Add location_t parameter.
1350         * c-common.h (shorten_binary_op): Adjust declaration.
1352 2014-01-23  Marek Polacek  <polacek@redhat.com>
1354         PR c/58346
1355         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1356         * c-common.h: Declare it.
1358 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
1360         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1361         * c-ada-spec.c (dump_ads): Likewise.
1362         (cpp_check): Likewise.
1363         (dump_ada_specs): Likewise.
1365 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
1367         PR c++/49718
1368         * c-common.c (handle_no_instrument_function_attribute): Allow
1369         no_instrument_function attribute in class member
1370         definition/declaration.
1372 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1374         PR c/58943
1375         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1376         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
1377         being COMPOUND_EXPR.
1378         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1379         operand a SAVE_EXPR and second MODIFY_EXPR.
1381 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1383         PR target/58115
1384         * c-pch.c (c_common_write_pch): Call
1385         prepare_target_option_nodes_for_pch.
1387 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1389         Update copyright years
1391 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1393         * array-notation-common.c, c-cilkplus.c: Use the standard form for
1394         the copyright notice.
1396 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
1398         * c-ada-spec.c (print_constructor): New function.
1399         (print_destructor): Retrieve the origin of the destructor.
1400         (print_ada_declaration): Revamp handling of constructors/destructors.
1402 2013-12-23  Stuart Hastings <stuart@apple.com>
1403             Bill Maddox  <maddox@google.com>
1404             Jason Merrill  <jason@redhat.com>
1406         * c.opt: Add -fdeclone-ctor-dtor.
1407         * c-opts.c (c_common_post_options): Default to on iff -Os.
1409 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1411         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1412         attribute.
1413         * c-pragma.h (enum pragma_cilk_clause): Remove.
1414         (enum pragma_omp_clause):  Added the following fields:
1415         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1416         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1417         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1418         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1419         PRAGMA_CILK_CLAUSE_UNIFORM.
1421         
1422 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1424         * cilk.c (cilk_outline): Made this function non-static.
1425         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1426         (create_cilk_wrapper): Added a new parameter: a function pointer.
1427         (c_install_body_w_frame_cleanup): Remove
1428         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1429         * c-common.h (cilk_outline): New prototype.
1430         (gimplify_cilk_spawn): Removed two parameters.
1431         (cilk_install_body_with_frame_cleanup): New prototype.
1432         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1433         CILK_SPAWN_STMT case.
1435 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1437         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1439         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1440         (int_array_type_node): Remove.
1441         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1443 2013-12-05  Marek Polacek  <polacek@redhat.com>
1445         PR c/52023
1446         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1447         [ADJUST_FIELD_ALIGN].
1449 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1451         PR c/52023
1452         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1453         and check field alignment if set.
1454         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1455         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1457 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1458             Marek Polacek  <polacek@redhat.com>
1460         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1461         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1463 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1465         PR c/59309
1466         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1467         arguments.
1469 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1471         PR c/59280
1472         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1473         goto invalid.  If it is error_mark_node, don't issue further
1474         diagnostics.
1476 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1478         * c.opt (Wopenmp-simd): New.
1480 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1482         * c-ubsan.h (ubsan_instrument_return): New prototype.
1483         * c-ubsan.c (ubsan_instrument_return): New function.
1485 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1487         * c-common.c: Add required include files from gimple.h.
1488         * c-gimplify.c: Likewise
1489         * cilk.c: Likewise
1491 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1493         * c-common.c (unsafe_conversion_p): Remove use of
1494         EXPR_LOC_OR_HERE macro.
1495         (conversion_warning): Likewise.
1496         (warnings_for_convert_and_check): Likewise.
1497         (warn_for_collisions_1): Likewise.
1498         (shorten_compare): Likewise, and remove use of in_system_header
1499         macro, using the location from the former.
1500         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1501         (cb_def_pragma): Remove use of in_system_header macro.
1502         (lex_string): Likewise.
1503         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1505 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1506             Mike Stump  <mikestump@comcast.net>
1507             Richard Sandiford  <rdsandiford@googlemail.com>
1509         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1510         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1511         tree_fits_shwi_p or tree_fits_uhwi_p.
1512         (dump_generic_ada_node): Likewise.
1513         * c-format.c (check_format_arg): Likewise.
1514         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1516 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1518         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1520 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1522         PR c/53001
1523         * c-common.c (unsafe_conversion_p): Make this function
1524         return an enumeration with more detail.
1525         (conversion_warning): Use the new return type of
1526         unsafe_conversion_p to separately warn either about conversions
1527         that lower floating point number precision or about the other
1528         kinds of conversions.
1529         * c-common.h (enum conversion_safety): New enumeration.
1530         (unsafe_conversion_p): switching return type to
1531         conversion_safety enumeration.
1532         * c.opt: Adding new warning -Wfloat-conversion and
1533         enabling it with -Wconversion.
1535 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1537         * c-opts.c: Include plugin.h.
1538         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1540 2013-11-19  Marek Polacek  <polacek@redhat.com>
1542         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1543         call.
1544         (ubsan_instrument_shift): Likewise.
1545         (ubsan_instrument_vla): Likewise.
1547 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1549         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1550         cast to unsigned type.
1552 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1554         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1555         tree_low_cst.
1556         (complete_array_type): Update comment to refer to tree_to_[su]hwi
1557         rather than tree_low_cst.
1559 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1561         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1562         tree_to_uhwi throughout.
1564 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1566         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1567         tree_low_cst (..., 0) with tree_to_shwi throughout.
1569 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1571         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1572         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1574 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1576         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1577         host_integerp (..., 0) with tree_fits_shwi_p throughout.
1579 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1581         * c-cilkplus.c: New file.
1582         * c-common.c (readonly_error): Add location argument.
1583         * c-common.h (readonly_error): Same.
1584         (c_finish_cilk_clauses): Protoize.
1585         (c_check_cilk_loop): Same.
1586         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1587         Do not fail on error_mark_node.
1588         Abstract increment canonicalization to here...
1589         (c_omp_for_incr_canonicalize_ptr): New.
1590         c-pragma.c (init_pragma): Register "simd" pragma.
1591         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1592         (enum pragma_cilk_clause): New.
1594 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1596         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1597         wchar_type and host_integerp checks.
1599 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1601         * c-common.c: Likewise.
1602         * c-gimplify.c: Likewise.
1603         * cilk.c: Likewise.
1605 2013-11-14  Diego Novillo  <dnovillo@google.com>
1607         * c-common.c: Include fold-const.h.
1608         Include stor-layout.h.
1609         Include calls.h.
1610         Include stringpool.h.
1611         Include attribs.h.
1612         Include varasm.h.
1613         Include trans-mem.h.
1614         * c-cppbuiltin.c: Include stor-layout.h.
1615         Include stringpool.h.
1616         * c-format.c: Include stringpool.h.
1617         * c-lex.c: Include stringpool.h.
1618         Include stor-layout.h.
1619         * c-pragma.c: Include stringpool.h.
1620         Include attribs.h.
1621         Include varasm.h.
1622         Include gcc-symtab.h.
1623         * c-pretty-print.c: Include stor-layout.h.
1624         Include attribs.h.
1625         * cilk.c: Include stringpool.h.
1626         Include calls.h.
1628 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1630         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1631         * c-common.c (c_common_reswords): Add __auto_type.
1632         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1634 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1636         * c-common.c: Include gimplify.h.
1637         * c-gimplify.c: Likewise.
1638         * cilk.c: Likewise.
1639         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1640         * c-ubsan.c: Don't include gimple.h.
1642 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1644         * c-common.c (c_common_reswords): Add _Thread_local.
1646 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1648         * c-common.c (atomic_size_supported_p): New function.
1649         (resolve_overloaded_atomic_exchange)
1650         (resolve_overloaded_atomic_compare_exchange)
1651         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1652         Use it instead of comparing size with a local list of sizes.
1654 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
1655             Joseph Myers  <joseph@codesourcery.com>
1657         * c-common.h (enum rid): Add RID_ATOMIC.
1658         * c-common.c (c_common_reswords): Add _Atomic.
1659         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1660         (keyword_is_type_qualifier): Accept RID_ATOMIC.
1661         * c-format.c (check_format_types): Check for extra _Atomic
1662         qualifiers in format argument.
1663         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1664         (pp_c_type_qualifier_list): Mention _Atomic in comment.
1666 2013-11-06  Tobias Burnus  <burnus@net-b.de>
1668         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1670 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
1672         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1673         standards modes.
1674         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1675         to mean lack of IEEE 754 support.
1677 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1679         * c.opt (-Wdate-time): New option
1680         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1682 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
1684         * c-cppbuiltin.c (cpp_iec_559_value): Test
1685         flag_excess_precision_cmdline not flag_excess_precision.
1687 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1689         * c.opt (fopenmp-simd): New option.
1690         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1691         (omp_pragmas): ... this new struct.
1692         (c_pp_lookup_pragma): Also walk omp_pragmas.
1693         (init_pragma): Init pragmas for -fopenmp-simd.
1695 2013-11-04  Marek Polacek  <polacek@redhat.com>
1697         PR c++/58979
1698         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1700 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1702         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1703         New functions.
1704         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1706 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1708         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1709         (dump_ada_specs): Adjust prototype of second callback.
1710         * c-ada-spec.c (cpp_check): New global variable.
1711         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1712         (print_generic_ada_decl): Likewise.
1713         (has_static_fields): Change return type to bool and add guard.
1714         (has_nontrivial_methods): New predicate.
1715         (is_tagged_type): Change return type to bool.
1716         (separate_class_package): Call has_nontrivial_methods.
1717         (pp_ada_tree_identifier): Minor tweaks.
1718         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1719         (dump_ada_array_domains): Likewise.
1720         (dump_ada_array_type): Likewise.
1721         (dump_template_types): Remove cpp_check parameter and do not pass it to
1722         dump_generic_ada_node.
1723         (dump_ada_template): Likewise.
1724         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1725         recursively.
1726         (print_ada_methods): Change return type to integer.  Remove cpp_check
1727         parameter and do not pass it down.
1728         (dump_nested_types): Remove cpp_check parameter and do not pass it to
1729         dump_generic_ada_node.
1730         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
1731         accessing methods.
1732         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1733         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
1734         value of print_ada_methods.
1735         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1736         Set cpp_check to it before invoking dump_ada_nodes.
1737         (dump_ada_specs): Likewise.
1739 2013-11-03  Marek Polacek  <polacek@redhat.com>
1741         * c-ubsan.c: Don't include hash-table.h.
1742         (ubsan_instrument_vla): New function.
1743         * c-ubsan.h: Declare it.
1745 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1747         Automated part of renaming of symtab_node_base to symtab_node.
1749         Patch autogenerated by rename_symtab.py from
1750         https://github.com/davidmalcolm/gcc-refactoring-scripts
1751         revision 58bb219cc090b2f4516a9297d868c245495ee622
1753         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1754         symtab_node_base to symtab_node.
1756 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
1758         Implement C++14 digit separators.
1759         * c-lex.c (interpret_float): Remove digit separators from scratch string
1760         before building real literal.
1762 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
1764         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1766 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1768         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1769         fields.
1770         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1771         enabled.
1772         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1773         (insert_cilk_frame): New prototype.
1774         (cilk_init_builtins): Likewise.
1775         (gimplify_cilk_spawn): Likewise.
1776         (c_cilk_install_body_w_frame_cleanup): Likewise.
1777         (cilk_detect_spawn_and_unwrap): Likewise.
1778         (cilk_set_spawn_marker): Likewise.
1779         (build_cilk_sync): Likewise.
1780         (build_cilk_spawn): Likewise.
1781         * cilk.c: New file.
1783 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1785         Patch autogenerated by refactor_symtab.py from
1786         https://github.com/davidmalcolm/gcc-refactoring-scripts
1787         revision 58bb219cc090b2f4516a9297d868c245495ee622
1789         * c-gimplify.c (c_genericize): Update for conversion of symtab types
1790         to a true class hierarchy.
1791         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1793 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
1795         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1797 2013-10-26  Jeff Law  <law@redhat.com>
1799         * c-common.c (c_define_builtins): Remove mudflap support.
1800         * c.opt: Ignore and warn for mudflap options.
1802 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1804         PR other/33426
1805         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1806         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1808 2013-10-23  Jason Merrill  <jason@redhat.com>
1810         * c-format.c (gcc_cxxdiag_char_table): Add %X.
1812 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1814         * c-common.h (omp_clause_mask::operator !=): New method.
1815         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1816         instead of if (mask & something) tests everywhere.
1818         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1819         201307 instead of 201107.
1820         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1821         (c_common_attribute_table): Add "omp declare target" and
1822         "omp declare simd" attributes.
1823         (handle_omp_declare_target_attribute,
1824         handle_omp_declare_simd_attribute): New functions.
1825         * c-omp.c: Include c-pragma.h.
1826         (c_finish_omp_taskgroup): New function.
1827         (c_finish_omp_atomic): Add swapped argument, if true,
1828         build the operation first with rhs, lhs arguments and use NOP_EXPR
1829         build_modify_expr.
1830         (c_finish_omp_for): Add code argument, pass it down to make_code.
1831         (c_omp_split_clauses): New function.
1832         (c_split_parallel_clauses): Removed.
1833         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1834         c_omp_declare_simd_clauses_to_decls): New functions.
1835         * c-common.h (omp_clause_mask): New type.
1836         (OMP_CLAUSE_MASK_1): Define.
1837         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1838         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1839         omp_clause_mask::operator |, omp_clause_mask::operator &,
1840         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1841         omp_clause_mask::operator ==): New methods.
1842         (enum c_omp_clause_split): New.
1843         (c_finish_omp_taskgroup): New prototype.
1844         (c_finish_omp_atomic): Add swapped argument.
1845         (c_finish_omp_for): Add code argument.
1846         (c_omp_split_clauses): New prototype.
1847         (c_split_parallel_clauses): Removed.
1848         (c_omp_declare_simd_clauses_to_numbers,
1849         c_omp_declare_simd_clauses_to_decls): New prototypes.
1850         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1851         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1852         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1853         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1854         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1855         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1856         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1857         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1858         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1859         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1860         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1861         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1862         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1863         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1864         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1865         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1866         PRAGMA_OMP_CLAUSE_UNIFORM.
1868 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
1870         PR tree-optimization/20318
1871         * c-common.c (handle_returns_nonnull_attribute): New function.
1872         (c_common_attribute_table): Add returns_nonnull.
1874 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
1876         PR c++/19476
1877         * c.opt (fcheck-new): Move to common.opt.
1879 2013-09-25  Marek Polacek  <polacek@redhat.com>
1880             Jakub Jelinek  <jakub@redhat.com>
1882         PR sanitizer/58413
1883         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1884         an expression if we can prove it is correct.
1885         (ubsan_instrument_division): Likewise.  Remove unnecessary
1886         check.
1888 2013-09-18  Marek Polacek  <polacek@redhat.com>
1890         PR sanitizer/58411
1891         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1892         Declare it.
1893         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1895 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
1897         PR target/48094
1898         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1899         fobjc-gc, freplace-objc-classes): Accept for LTO.
1901 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
1903         * c-target.def: New hook
1905 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1907         PR c++/43452
1908         * c.opt (Wdelete-incomplete): Add.
1910 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1912         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1913         (vector_types_compatible_elements_p): New function.
1914         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1915         declaration.
1916         (vector_types_compatible_elements_p): Declare.
1918 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1920         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1921         a virtual member function.
1922         (pp_simple_type_specifier): Remove.
1923         (pp_c_type_specifier): Likewise.
1924         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1925         Rename from pp_c_type_specifier.  Adjust.
1926         (c_pretty_printer::c_pretty_printer): Do not assign to
1927         simple_type_specifier.
1929 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1931         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1932         member function.
1933         (c_pretty_printer::storage_class_specifier): Likewise.
1934         (c_pretty_printer::initializer): Likewise.
1935         (pp_declaration): Remove.
1936         (pp_declaration_specifiers): Likewise.
1937         (pp_abstract_declarator): Likewise.
1938         (pp_declarator): Likewise.
1939         (pp_type_id): Likewise.
1940         (pp_statement): Likewise.
1941         (pp_constant): Likewise.
1942         (pp_id_expression): Likewise.
1943         (pp_primary_expression): Likewise.
1944         (pp_unary_expression): Likewise.
1945         (pp_multiplicative_expression): Likewise.
1946         (pp_conditional_expression): Likewise.
1947         (pp_assignment_expression): Likewise.
1948         (pp_expression): Likewise.
1949         (pp_c_type_id): Likewise.
1950         (pp_c_storage_class_specifier): Likewise.
1951         * c-pretty-print.c (pp_c_type_cast): Tidy.
1952         (pp_c_pointer): Likewise.
1953         (pp_c_type_specifier): Likewise.
1954         (pp_c_parameter_type_list): Likewise.
1955         (pp_c_function_definition): Likewise.
1956         (pp_c_init_declarator): Likewise.
1957         (pp_c_initializer_list): Likewise.
1958         (pp_c_constructor_elts): Likewise.
1959         (c_pretty_printer::direct_abstract_declarator): Likewise.
1960         (c_pretty_printer::declaration_specifiers): Likewise.
1961         (c_pretty_printer::primary_expression): Likewise.
1962         (c_pretty_printer::postfix_expression): Likewise.
1963         (c_pretty_printer::type_id): Rename from pp_c_type_id.
1964         (c_pretty_printer::storage_class_specifier): Rename from
1965         pp_c_storage_class_specifier.
1966         (c_pretty_printer::initializer): Rename from pp_c_initializer.
1967         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1968         storage_class_specifier, initializer, offset_list, flags.
1970 2013-08-30  Marek Polacek  <polacek@redhat.com>
1972         * c-ubsan.c: New file.
1973         * c-ubsan.h: New file.
1975 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1977         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1978         member function.
1979         (c_pretty_printer::declaration_specifiers): Likewise.
1980         (c_pretty_printer::declarator): Likewise.
1981         (c_pretty_printer::abstract_declarator): Likewise.
1982         (c_pretty_printer::direct_abstract_declarator): Likewise.
1983         (c_pretty_printer::direct_declarator): Likewise.
1984         (c_pretty_printer::function_specifier): Likewise.
1985         (pp_declaration): Adjust.
1986         (pp_declaration_specifiers): Likewise.
1987         (pp_abstract_declarator): Likewise.
1988         (pp_direct_declarator): Likewise.
1989         (pp_function_specifier): Likewise.
1990         (pp_direct_abstract_declarator): Remove as unused.
1991         (pp_c_declaration): Remove.
1992         (pp_c_declaration_specifiers): Likewise.
1993         (pp_c_declarator): Likewise.
1994         (pp_c_direct_declarator): Likewise.
1995         (pp_c_function_specifier): Likewise.
1996         (pp_c_direct_abstract_declarator): Likewise.
1997         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1998         from pp_c_abstract_declarator.  Adjust.
1999         (c_pretty_printer::direct_abstract_declarator):  Rename from
2000         pp_c_direct_abstract_declarator.  Adjust.
2001         (c_pretty_printer::function_specifier): Rename from
2002         pp_c_function_specifier.  Adjust.
2003         (c_pretty_printer::declaration_specifiers): Rename from
2004         pp_c_declaration_specifiers.  Adjust.
2005         (c_pretty_printer::direct_declarator): Rename from
2006         pp_c_direct_declarator.  Adjust.
2007         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
2008         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
2009         (c_pretty_printer::c_pretty_printer): Do not assign to
2010         declaration, declaration_specifiers, declarator,
2011         direct_declarator, direct_abstract_declarator, function_specifier.
2013 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
2015         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2016         virtual member function.
2017         (c_pretty_printer::multiplicative_expression): Likewise.
2018         (c_pretty_printer::conditional_expression): Likewise.
2019         (c_pretty_printer::assignment_expression): Likewise.
2020         (c_pretty_printer::expression): Likewise.
2021         (pp_unary_expression): Adjust.
2022         (pp_multiplicative_expression): Likewise.
2023         (pp_assignment_expression): Likewise.
2024         (pp_conditional_expression): Likewise.
2025         (pp_expression): Likewise.
2026         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2027         from pp_c_unary_expression.  Adjust.
2028         (c_pretty_printer::multiplicative_expression): Rename from
2029         pp_c_multiplicative_expression.  Adjust.
2030         (c_pretty_printer::conditional_expression): Rename from
2031         pp_c_conditional_expression.  Adjust.
2032         (c_pretty_printer::assignment_expression): Rename from
2033         pp_c_assignment_expression.  Adjust.
2034         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
2035         (c_pretty_printer::c_pretty_printer): Do not assign to
2036         unary_expression, multiplicative_expression,
2037         conditional_expression, expression.
2039 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2041         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2042         virtual member function.
2043         (pp_postfix_expression): Adjust.
2044         (pp_c_postfix_expression): Remove.
2045         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2046         from pp_c_postfix_expression.  Adjust.
2047         (c_pretty_printer::c_pretty_printer): Do not assign to
2048         postfix_expression.
2050 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2052         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2053         virtua member function.
2054         (pp_primary_expression): Adjust.
2055         (pp_c_primary_expression): Remove.
2056         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2057         from pp_c_primary_expression.  Adjust.
2058         (pp_c_initializer_list): Use pp_primary_expression.
2059         (c_pretty_printer::c_pretty_printer): Do not assign to
2060         primary_expression.
2062 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2064         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2065         * c-pretty-print.c (M_): Remove.
2066         (c_pretty_printer::translate_string): Define.
2067         (pp_c_type_specifier): Use it.
2068         (pp_c_primary_expression): Likewise.
2069         (pp_c_expression): Likewise.
2071 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2073         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2074         virtual function.
2075         (pp_c_id_expression): Remove.
2076         (pp_id_expression): Adjust.
2077         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2078         pp_c_id_expression.  Adjust.
2079         (pp_c_postfix_expression): Use pp_id_expression.
2080         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2082 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2084         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2085         member function.
2086         (pp_constant): Adjust.
2087         (pp_c_constant): Remove.
2088         * c-pretty-print.c (c_pretty_printer::constant): Rename from
2089         pp_c_constant.  Adjust.
2090         (pp_c_constant)
2091         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2092         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2094 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2096         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2097         (c_pretty_printer::c_pretty_printer): Declare.
2098         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2099         c_pretty_printer_init.  Adjust.
2100         (print_c_tree): Do not call c_pretty_printer_init.
2101         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2103 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
2105         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2107 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2109         PR c++/58080
2110         * c-common.c (pointer_int_sum): Add bool parameter.
2111         * c-common.h (pointer_int_sum): Adjust declaration.
2113 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2115         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
2116         c_pretty_printer variable.
2118 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2120         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2121         (pp_base): Remove.
2122         (pp_c_base): Likewise.  Adjust users.
2123         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2124         (pp_c_whitespace): Do not call pp_base.
2125         (pp_c_left_paren): Likewise.
2126         (pp_c_right_paren): Likewise.
2127         (pp_c_left_brace): Likewise.
2128         (pp_c_right_brace): Likewise.
2129         (pp_c_left_bracket): Likewise.
2130         (pp_c_right_bracket): Likewise.
2131         (pp_c_dot): Likewise.
2132         (pp_c_ampersand): Likewise.
2133         (pp_c_star): Likewise.
2134         (pp_c_arrow): Likewise.
2135         (pp_c_semicolon): Likewise.
2136         (pp_c_complement): Likewise.
2137         (pp_c_exclamation): Likewise.
2138         (pp_c_direct_declarator): Likewise.
2139         (pp_c_ws_string): Likewise.
2140         (pp_c_identifier): Likewise.
2141         (pp_c_statement): Likewise.
2142         (print_c_tree): Likewise.
2144 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
2146         PR c++/58072
2147         * c-common.c (c_parse_error): Catch user-defined literal tokens and
2148         provide useful error strings.
2150 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2152         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2153         printer functions instead of pp_string or operators and punctuators.
2154         (dump_generic_ada_node): Likewise.
2155         * c-pretty-print.c (pp_c_type_specifier): Likewise.
2156         (pp_c_relational_expression): Likewise.
2157         (pp_c_logical_or_expression): Likewise.
2159 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2161         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2162         functions instead of pp_character.
2163         (pp_ada_tree_identifier): Likewise.
2164         (dump_ada_double_name): Likewise.
2165         (dump_ada_function_declaration): Likewise.
2166         (dump_ada_array_domains): Likewise.
2167         (dump_template_types): Likewise.
2168         (dump_generic_ada_node): Likewise.
2169         (print_ada_declaration): Likewise.
2170         (print_ada_struct_decl): Likewise.
2171         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2173 2013-07-23  Tom Tromey  <tromey@redhat.com>
2175         * c-common.h (enum rid) <RID_GENERIC>: New constant.
2176         * c-common.c (c_common_reswords): Add _Generic.
2178 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
2180         * c-common.c: Fix typos.
2181         * c-common.h: Likewise.
2183 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
2185         PR c++/55203
2186         * c-common.c (c_common_attribute_table): Add warn_unused.
2187         (handle_warn_unused_attribute): New.
2189 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
2191         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2192         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2194 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
2196         PR c++/57869
2197         * c.opt: Add Wconditionally-supported.
2199 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
2201         * array-notation-common.c (length_mismatch_in_expr_p): Delete
2202         unused variables l_length and l_node.
2204 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2206         PR c/57821
2207         * c-common.c (complete_array_type): Delay folding first index
2208         like other indices.  When folding, check for index overflow.
2210 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
2212         PR c++/57509
2213         * c-common.h (c_build_vec_perm_expr): New complain argument.
2214         * c-common.c (c_build_vec_perm_expr): Likewise.
2215         Use save_expr also in C++.
2217 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2219         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2220         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2221         * c-opts.c (c_common_post_options): Likewise.
2223 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2225         * array-notation-common.c (length_mismatch_in_expr): Changed the
2226         parameter type's from a dynamic array to a vec_tree.  Also removed
2227         the size parameters.
2228         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2229         the change above.
2231 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2233         * c-common.h (struct cilkplus_an_parts): New structure.
2234         (struct cilkplus_an_loop_parts): Likewise.
2235         (cilkplus_extract_an_triplets): New prototype.
2236         (fix_sec_implicit_args): Likewise.
2237         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2238         (fix_sec_implicit_args): Likewise.
2240 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2242         * array-notation-common.c (find_inv_trees): Removed an unwanted
2243         typecasting.
2244         * c-common.h (struct inv_list::additional_tcodes): Changed type from
2245         enum rid to enum tree_code.
2247 2013-06-11  Jan Hubicka  <jh@suse.cz>
2249         * c-common.c (handle_alias_ifunc_attribute): Do not set
2250         DECL_EXTERNAL for weakref variables.
2251         * c-pragma.c (handle_pragma_weak): Make sure aliases
2252         are not declared as external.
2254 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2256         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2257         function from c/c-array-notation.c.
2258         (is_cilkplus_reduce_builtin): Likewise.
2259         (find_rank): Likewise.
2260         (extract_array_notation_exprs): Likewise.
2261         (replace_array_notations): Likewise.
2262         (find_inv_trees): Likewise.
2263         (replace_inv_trees): Likewise.
2264         (contains_array_notation_expr): Likewise.
2265         (find_correct_array_notation_type): Likewise.
2266         * c-common.h (struct inv_list): Moved this struct from the file
2267         c/c-array-notation.c and added a new field called additional tcodes.
2268         (length_mismatch_in_expr_p): New prototype.
2269         (is_cilkplus_reduce_builtin): Likewise.
2270         (find_rank): Likewise.
2271         (extract_array_notation_exprs): Likewise.
2272         (replace_array_notation): Likewise.
2273         (find_inv_trees): Likewise.
2274         (replace_inv_trees): Likewise.
2275         (find_correct_array_notation_type): Likewise.
2277 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2279         * c-common.c (c_define_builtins): When cilkplus is enabled, the
2280         function array_notation_init_builtins is called.
2281         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2282         * c-common.def (ARRAY_NOTATION_REF): New tree.
2283         * c-common.h (build_array_notation_expr): New function declaration.
2284         (build_array_notation_ref): Likewise.
2285         (extract_sec_implicit_index_arg): New extern declaration.
2286         (is_sec_implicit_index_fn): Likewise.
2287         (ARRAY_NOTATION_CHECK): New define.
2288         (ARRAY_NOTATION_ARRAY): Likewise.
2289         (ARRAY_NOTATION_START): Likewise.
2290         (ARRAY_NOTATION_LENGTH): Likewise.
2291         (ARRAY_NOTATION_STRIDE): Likewise.
2292         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2293         ARRAY_NOTATION_REF.
2294         (pp_c_expression): Likewise.
2295         * c.opt (flag_enable_cilkplus): New flag.
2296         * array-notation-common.c: New file.
2298 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2300         PR c++/57274
2301         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2303 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
2305         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2306         vectors.
2308 2013-05-07  Han Shen  <shenhan@google.com>
2310         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2312 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2314         * c-common.c (check_user_alignment): Emit error for negative values.
2316 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2318         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2320 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2322         * c-cppbuiltin.c (c_cpp_builtins): Do not define
2323         __GXX_EXPERIMENTAL_CXX1Y__.
2325 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2326             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2328         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2329         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2330         to simply use OPT_Wpointer_arith.
2331         (c_sizeof_or_alignof_type): Likewise.
2333 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2335         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2337 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2339         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2340         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2341         specifiers.
2343 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
2345         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2347 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
2349         * c-common.c (pointer_int_sum): Remove dead code.
2351 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2353         PR middle-end/56524
2354         * c-common.c (handle_optimize_attribute): Don't call
2355         save_optabs_if_changed.
2357 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2359         PR middle-end/56461
2360         * c-pch.c (pch_init): Free target_validity at the end.
2362 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2364         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2366 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2367             Jakub Jelinek  <jakub@redhat.com>
2369         PR sanitizer/56454
2370         * c-common.c (handle_no_sanitize_address_attribute): New function.
2371         (c_common_attribute_table): Add no_sanitize_address attribute.
2372         (handle_no_address_safety_analysis_attribute): Add
2373         no_sanitize_address attribute, not no_address_safety_analysis
2374         attribute.
2376 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2378         PR target/52555
2379         * c-common.c (handle_optimize_attribute): Call
2380         save_optabs_if_changed.
2382 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
2383             Steven Bosscher  <steven@gcc.gnu.org>
2385         PR pch/54117
2386         * c-opts.c (c_common_post_options): If debug info is enabled
2387         and non-dwarf*, refuse to load PCH files and when writing PCH
2388         file warn.
2390 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
2392         PR middle-end/56167
2393         * c-common.c (handle_error_attribute): Fix condition.
2395 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
2397         PR c++/55742
2398         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2400 2013-01-18  Jason Merrill  <jason@redhat.com>
2402         PR target/54908
2403         * c.opt (-fextern-tls-init): New.
2404         * c-opts.c (c_common_post_options): Handle it.
2406 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
2408         PR c/48418
2409         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2410         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2411         and is either negative or bigger or equal to type precision
2412         of the first operand.
2414 2012-12-03  Marek Polacek  <polacek@redhat.com>
2416         PR c/55570
2417         * c-common.c (check_user_alignment): Swap order of tests,
2418         check TREE_CODE first.
2420 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2422         PR c++/52654
2423         * c-common.h (overflow_type): New enum.
2424         (build_userdef_literal): Add overflow_type argument.
2425         (tree_userdef_literal): Add overflow_type.
2426         (USERDEF_LITERAL_OVERFLOW): New access macro.
2427         * c-common.c (build_userdef_literal): Add overflow_type
2428         argument.
2429         * c-lex.c (c_lex_with_flags): Add overflow_type to
2430         build_userdef_literal calls.
2431         (interpret_integer, interpret_float): Add overflow_type argument.
2433 2012-11-28  Richard Biener  <rguenther@suse.de>
2435         PR c/35634
2436         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2437         here and use a type with proper overflow behavior for types that would
2438         need to be promoted for the arithmetic.
2440 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2442         PR sanitizer/55435
2443         * c-common.c (handle_no_address_safety_analysis_attribute): New
2444         function.
2445         (c_common_attribute_table): Add no_address_safety_analysis.
2447 2012-11-16  Simon Baldwin  <simonb@google.com>
2449         * c.opt: Add f[no-]canonical-system-headers.
2450         * c-opts.c (c_common_handle_option): Handle
2451         OPT_fcanonical_system_headers.
2453 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2455         PR c++/54413
2456         * c-opts.c (c_common_handle_option): Set new flags.
2457         * c.opt: Describe new flags.
2459 2012-11-09  Jason Merrill  <jason@redhat.com>
2461         * c.opt (Wabi-tag): New.
2463 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2465         PR 55139
2466         * c-common.c (get_atomic_generic_size): Mask with
2467         MEMMODEL_MASK
2469 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2471         PR c/53063
2472         * c.opt (Wformat): Make it Alias Wformat=1.
2473         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2474         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2475         LangEnabledBy.
2476         (Wformat=): RejectNegative. Use LangEnabledBy.
2477         (Wnonnull): Use LangEnabledBy.
2478         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2479         * c-format.c (set_Wformat): Delete.
2480         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2481         (maybe_read_dollar_number):  Likewise.
2482         (avoid_dollar_number):  Likewise.
2483         (finish_dollar_format_checking):  Likewise.
2484         (check_format_info):  Likewise.
2485         (check_format_info_main):  Likewise.
2486         (check_format_types):  Likewise.
2487         (format_type_warning):  Likewise.
2488         * c-common.c (int):  Likewise.
2489         (check_function_sentinel):  Likewise.
2490         * c-common.h (warn_format,set_Wformat): Do not declare here.
2492 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2494         PR c/53063
2495         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2496         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2497         Use LangEnabledBy.
2498         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2499         common.opt.
2500         (Wvariadic-macros): Init(1).
2501         * c-opts.c (c_common_handle_option): Do not handle them
2502         explicitly.
2503         (c_common_post_options): Likewise.
2504         (sanitize_cpp_opts): warn_unused_macros is now
2505         cpp_warn_unused_macros.
2506         (push_command_line_include): Likewise.
2507         * c-common.c (warn_unknown_pragmas): Do not define.
2508         * c-common.h (warn_unknown_pragmas): Do not declare.
2510 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2512         PR c/51294
2513         * c-common.c (conversion_warning): Handle conditional expressions.
2515 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2517         PR c++/54930
2518         * c.opt (Wreturn_local_addr): Define new option.
2520 2012-10-25  Jason Merrill  <jason@redhat.com>
2522         * c.opt (Wvirtual-move-assign): New.
2524         * c.opt (Winherited-variadic-ctor): New.
2526 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
2528         PR c++/54427
2529         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2531 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2533         * c-common.h (pch_cpp_save_state): Declare.
2534         * c-target.def (c_preinclude): New hook.
2535         * c-opts.c (done_preinclude): New.
2536         (push_command_line_include): Handle default preincluded header.
2537         (cb_file_change): Call pch_cpp_save_state when calling
2538         push_command_line_include.
2539         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2540         (pch_cpp_save_state): New.
2541         (pch_init): Call pch_cpp_save_state conditionally, instead of
2542         calling cpp_save_state.
2544 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2546         PR c/53063
2547         PR c/40989
2548         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2549         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2550         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2551         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2552         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2553         * c-opts.c (c_common_handle_option): Remove explicit handling from
2554         here.
2555         (c_common_post_options): Likewise.
2557 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2559         * c-ada-spec.c (LOCATION_COL): Delete.
2560         (compare_location): New function.
2561         (compare_node): Use it.
2562         (compare_comment): Likewise.
2564 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2566         PR c/53063
2567         PR c/40989
2568         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2569         * c-opts.c (c_common_handle_option): Do not set them here. Add
2570         comment.
2571         (c_common_post_options): Likewise.
2573 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2575         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2576         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2577         Remove POINTER_TYPE handling, add large unsigned handling and use
2578         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2580 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2582         PR c/54381
2583         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2584         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2585         locs and array of 3 trees instead of just single loc and single
2586         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2587         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2588         For *cmp* builtins that take two sources strings report warnings
2589         about first and second source, not about destination and source.
2591 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2593         PR c++/53055
2594         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2596 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2598         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2599         declaring something coming from another file.
2601 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2603         PR ada/54845
2604         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2606 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2608         PR c++/54194
2609         * c-common.c (warn_about_parentheses): Add location_t parameter;
2610         use EXPR_LOC_OR_LOC.
2611         * c-common.h: Update declaration.
2613 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2615         PR c++/54427
2616         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2617         more operations. Make error messages optional.
2618         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2619         (scalar_to_vector): Declare.
2621 2012-10-08  Jason Merrill  <jason@redhat.com>
2623         * c-common.c (c_common_reswords): Add thread_local.
2625 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2627         PR c++/53528 C++11 attribute support
2628         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2629         new functions.
2630         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2631         static function.
2632         (handle_aligned_attribute): In choose strictest alignment
2633         among many.  Use new check_cxx_fundamental_alignment_constraints.
2634         (handle_transparent_union_attribute): In c++11 attribute syntax,
2635         don't look through typedefs.
2637 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2639         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2640         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2641         out of dumpfile.h.
2643 2012-09-25  Dehao Chen  <dehao@google.com>
2645         PR middle-end/54645
2646         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2647         map when read in the pch.
2649 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2651         * c-ada-spec.c: Style fixes.
2653 2012-09-18 Thomas Quinot  <quinot@adacore.com>
2655         * c.opt (-fada-spec-parent): Define new command line switch.
2656         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2657         is specified, generate binding spec as a child of the specified unit.
2659 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
2660             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2662         PR c++/53210
2663         * c.opt ([Winit-self]): Enabled by -Wall in C++.
2665 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
2667         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2668         for pointers, and add missing Convention C pragma.
2669         (print_ada_struct_decl): Add missing aliased keyword.
2670         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2672 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2674         * c-common.c (sizeof_pointer_memaccess_warning): New function.
2675         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2676         * c-opts.c (c_common_handle_option): Enable it for -Wall.
2677         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2678         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2680 2012-08-10  Richard Guenther  <rguenther@suse.de>
2682         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2684 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
2686         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2687         instead of separate pp_newline and pp_flush.
2688         (print_c_tree): Likewise.
2690 2012-07-26  Richard Henderson  <rth@redhat.com>
2692         * c-common.c (handle_hot_attribute): Allow labels.
2693         (handle_cold_attribute): Likewise.
2695 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
2697         PR c++/28656
2698         * c-common.c (check_function_nonnull): Handle multiple nonnull
2699         attributes properly.
2701 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2703         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2704         * c-ada-spec.c: Likewise.
2705         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2707 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
2709         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2710         Remove code conditional on it.
2712 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
2714         * c-gimplify.c: Do not include basic-block.h.
2715         * c-common.c: Do not include linfuncs.h.
2717 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2719         * c-common.h: Include tree.h.
2721 2012-07-02  Jason Merrill  <jason@redhat.com>
2723         PR c++/53524
2724         * c-common.c (get_priority): Call default_conversion.
2726 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
2728         * c-pch.c (c_common_write_pch): Remove unused variables.
2730 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2732         * cppspec.c: Moved from gcc/ to here.
2734 2012-06-27  Kai Tietz  <ktietz@redhat.com>
2736         PR preprocessor/37215
2737         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2739 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2741         * c-common.h (c_common_print_pch_checksum): Remove.
2742         * c-pch.c: Do not include output.h.
2743         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2744         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2745         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2746         (struct c_pch_header): Remove.
2747         (get_ident): Update gpch version.
2748         (pch_init): Do not print executable_checksum to asm_out_file.
2749         Do not fail if there is no asm_out_file to read back from.  Set
2750         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2751         (c_common_write_pch): Verify that nothing was written to asm_out_file
2752         since pch_init was called.  Do not write a c_pch_header, and do not
2753         copy from asm_out_file to the PCH.
2754         (c_common_read_pch): Do not read a c_pch_header, and do not restore
2755         the content of asm_out_file from the PCH.
2756         (c_common_print_pch_checksum): Remove.
2757         * c-opts.c (c_common_init): Print out executable_checksum directly.
2759 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2761         * c-target.def (objc_declare_unresolved_class_reference,
2762         objc_declare_class_definition): Add new hooks.
2764 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2766         * c-lex.c: Do not include output.h.
2767         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2768         Remove uses of ASM_OUTPUT_IDENT.
2770 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
2772         PR c++/51033
2773         * c-common.h (c_build_vec_perm_expr): Move decl here.
2774         * c-common.c (c_build_vec_perm_expr): Move definition
2775         here.
2777 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
2779         * c.opt (fconserve-space): Turn into a no-op.
2781 2012-06-04  Sterling Augustine  <saugustine@google.com>
2783         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2784         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2785         both the start and end of the function.
2787 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2789         * c-common.c: Do not include output.h.
2790         * c-pragma.c: Likewise.
2792 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2794         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2795         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2796         (lang_decl_name): Handle namespace decls.
2798 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
2800         * c-ada-spec.c: Do not include output.h.
2801         * c-semantics.c: Likewise.
2803 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2805         * c-common.c: Fix typo.
2807 2012-05-29  Michael Matz  <matz@suse.de>
2809         * c-common.h (c_expand_decl): Remove prototype.
2811 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2813         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2814         * c-opts.c (c_common_handle_option): Remove code handling
2815         warn_missing_braces.
2817 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
2819         PR c++/25137
2820         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2821         -Wmissing_braces.
2823 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
2825         PR c++/53322
2826         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2828 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2830         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2831         * c-opts.c (c_common_handle_option): Do not handle explicitly
2832         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2834 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
2836         PR preprocessor/7263
2837         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
2838         to cpp_classify_number.  For diagnostics, use the precise location
2839         instead of the global input_location.
2841 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
2843         PR c++/11856
2844         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2846 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
2848         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2850 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2852         PR 53063
2853         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2854         Wreorder): Use LangEnabledBy.
2855         * c-opts.c (c_common_handle_option): Do not enable them
2856         explicitly. Call lang-specific generated functions.
2857         (c_common_post_options): Do not set them here.
2859 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2861         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2862         Wmissing-field-initializers,Wmissing-parameter-type,
2863         Wold-style-declaration,Woverride-init): Use EnabledBy.
2864         * c-opts.c (c_common_post_options): Do not set here explicitly.
2866 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2868         PR 53063
2869         * c-opts.c (c_common_handle_option): Use handle_generated_option
2870         to enable sub-options.
2872 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
2874         PR c++/53158
2875         * c-common.c (warnings_for_convert_and_check): Use warning_at.
2877 2012-05-10  Richard Guenther  <rguenther@suse.de>
2879         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2880         adjust commentary about TYPE_IS_SIZETYPE types.
2882 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2884         PR c++/53261
2885         * c-common.c (warn_logical_operator): Check that argument of
2886         integer_zerop is not NULL.
2888 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2890         PR c/43772
2891         * c-common.c (warn_logical_operator): Do not warn if either side
2892         is already true or false.
2894 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2896         PR c/51712
2897         * c-common.c (expr_original_type): New.
2898         (shorten_compare): Do not warn for enumeration types.
2900 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2902         * c.opt (fpermissive): Add Var(flag_permissive).
2904 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
2906         PR c++/51033
2907         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2908         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2910 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
2912         Add -Wvarargs option
2913         * c.opt (Wvarargs):  Define new option.
2915 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2917         * c-common.c (check_function_arguments): Replace
2918         Wmissing-format-attribute with Wsuggest-attribute=format.
2920 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2922         * c.opt (Wsuggest-attribute=format): New. Alias of
2923         Wmissing-format-attribute.
2924         * c-format.c (decode_format_type): Replace
2925         Wmissing-format-attribute with Wsuggest-attribute=format.
2926         (check_function_format): Likewise.
2928 2012-04-27  Ollie Wild  <aaw@google.com>
2930         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2931         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2932         * c.opt: Add Wliteral-suffix.
2934 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2936         PR c/44774
2937         * c.opt (Wpedantic): New.
2938         (pedantic): Alias Wpedantic.
2939         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2940         (c_common_post_options): Likewise.
2941         (sanitize_cpp_opts): Likewise.
2942         * c-lex.c (interpret_float): Likewise.
2943         * c-format.c (check_format_types): Likewise.
2944         * c-common.c (pointer_int_sum): Likewise.
2945         (c_sizeof_or_alignof_type): Likewise.
2946         (c_add_case_label): Likewise.
2947         (c_do_switch_warnings): Likewise.
2948         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2950 2012-04-15  Jason Merrill  <jason@redhat.com>
2952         PR c++/52818
2953         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2954         (C_STD_NAME): Distinguish between C++98 and C++11.
2956 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2958         PR target/52624
2959         * c-common.h (uint16_type_node): Rename into...
2960         (c_uint16_type_node): ...this.
2961         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2962         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2964 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2966         * c-common.c (warn_if_unused_value): Move definition to here.
2967         * c-common.h (warn_if_unused_value): Move declaration to here.
2969 2012-03-23  William Bader  <williambader@hotmail.com>
2971         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2973 2012-03-20  Jason Merrill  <jason@redhat.com>
2975         * c-common.h (enum cxx_dialect): Add cxx1y.
2976         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2977         test.
2978         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2979         * c-opts.c (c_common_post_options): Likewise.
2980         (set_std_cxx1y): New.
2981         (c_common_handle_option): Call it.
2982         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2984 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
2986         PR c++/14710
2987         * c.opt ([Wuseless-cast]): Add.
2989 2012-03-16  Richard Guenther  <rguenther@suse.de>
2991         * c-pretty-print.c (pp_c_initializer_list): Adjust.
2993 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2995         PR c++/44783
2996         * c.opt (ftemplate-backtrace-limit) Add.
2998 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3000         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3001         handling.
3002         * c-pragma.c (handle_pragma_extern_prefix): Remove.
3003         (init_pragma): Don't register extern_prefix.
3005 2012-03-12  Richard Guenther  <rguenther@suse.de>
3007         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3008         (builtin_type_for_size): Likewise.
3010 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
3012         PR c++/52215
3013         * c-common.c (sync_resolve_params): Don't decide whether to convert
3014         or not based on TYPE_SIZE comparison, convert whenever arg_type
3015         is unsigned INTEGER_TYPE.
3017 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
3019         PR c/52118
3020         * c.opt ([Wunused-local-typedefs]): Fix description.
3022 2012-01-24  Mike Stump  <mikestump@comcast.net>
3024         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3025         exactly.
3027 2012-01-18  Richard Guenther  <rguenther@suse.de>
3029         * c-opts.c (c_common_post_options): Reset LTO flags if
3030         we are about to generate a PCH.
3032 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
3034         PR c++/51777
3035         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3036         use pp_unsigned_wide_integer.
3038 2012-01-10  Richard Guenther  <rguenther@suse.de>
3040         PR middle-end/51806
3041         * c-opts.c (c_common_handle_option): Move -Werror handling
3042         to language independent code.
3044 2012-01-05  Richard Guenther  <rguenther@suse.de>
3046         PR middle-end/51764
3047         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3048         from common.opt.
3050 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
3052         PR c++/51316
3053         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3054         of array types with an unknown bound.
3056 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
3058         * c-common.c (flag_isoc99): Update comment to refer to C11.
3059         (flag_isoc1x): Change to flag_isoc11.
3060         * c-common.h (flag_isoc99): Update comment to refer to C11.
3061         (flag_isoc1x): Change to flag_isoc11.
3062         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3063         C11.
3064         * c-opts.c (set_std_c1x): Change to set_std_c11.
3065         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3066         Call set_std_c11.
3067         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3068         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3069         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
3070         standard.
3071         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3072         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
3073         (std=gnu1x): Make alias of std=gnu11.
3075 2011-12-19  Jason Merrill  <jason@redhat.com>
3077         PR c++/51228
3078         * c-common.c (handle_transparent_union_attribute): Check the first
3079         field if the type is complete.
3081 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
3083         PR libstdc++/51365
3084         * c-common.c (RID_IS_FINAL): Add.
3085         * c-common.h (RID_IS_FINAL): Add.
3087 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
3089         * c.opt (fgnu-runtime): Provide full description.
3090         (fnext-runtime): Likewise.
3091         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3093 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
3095         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
3096         predefines in one place.  Add LOCK_FREE predefines.
3097         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3098         new func.
3100 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
3102         PR c/51256
3103         * c-common.c (get_atomic_generic_size): Check for various error
3104         conditions
3105         (resolve_overloaded_atomic_exchange,
3106         resolve_overloaded_atomic_compare_exchange,
3107         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3108         error_mark_node for error conditions.
3110 2011-11-08  Richard Guenther  <rguenther@suse.de>
3112         PR middle-end/51010
3113         c-family/
3115 2011-11-07  Richard Henderson  <rth@redhat.com>
3116             Aldy Hernandez  <aldyh@redhat.com>
3117             Torvald Riegel  <triegel@redhat.com>
3119         Merged from transactional-memory.
3121         * c-common.c (handle_tm_wrap_attribute,
3122         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3123         (struct c_common_reswords): Added __transaction* keywords.
3124         (struct c_common_attribute_table): Added transaction* and tm_regparm
3125         attributes.
3126         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3127         masks.
3128         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3129         find_tm_attribute): Declare.
3131 2011-11-07  Jason Merrill  <jason@redhat.com>
3133         PR c++/35688
3134         * c-common.c, c-common.h: Revert yesterday's changes.
3136 2011-11-06  Jason Merrill  <jason@redhat.com>
3138         PR c++/35688
3139         * c-common.c (decl_has_visibility_attr): Split out from...
3140         (c_determine_visibility): ...here.
3141         * c-common.h: Declare it.
3143 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3145         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3146         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3147         type.
3148         (check_user_alignment): New.  Split out of
3149         handle_aligned_attribute.  Disallow integer constants with
3150         noninteger types.  Conditionally allow zero.
3151         (handle_aligned_attribute): Use check_user_alignment.
3152         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3154 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
3155             Richard Henderson  <rth@redhat.com>
3157         Merged from cxx-mem-model.
3159         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3160         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3161         parameters that are the same type size.
3162         (get_atomic_generic_size): New.  Find size of generic
3163         atomic function parameters and do typechecking.
3164         (add_atomic_size_parameter): New.  Insert size into parameter list.
3165         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3166         either __atomic_exchange_n or external library call.
3167         (resolve_overloaded_atomic_compare_exchange): Restructure
3168         __atomic_compare_exchange to either _n variant or external library call.
3169         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3170         __atomic_load_n or an external library call.
3171         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3172         __atomic_store_n or an external library call.
3173         (resolve_overloaded_builtin): Handle new __atomic builtins.
3175 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3177         PR c++/50608
3178         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3179         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
3180         <INDIRECT_REF>: Return the argument.
3181         <ARRAY_REF>: Remove special code for negative offset.
3182         Call fold_build_pointer_plus instead of size_binop.
3183         (fold_offsetof): Remove STOP_REF argument and adjust.
3184         * c-common.h (fold_offsetof_1): Declare.
3185         (fold_offsetof): Remove STOP_REF argument.
3187 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
3189         PR c++/50810
3190         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3191         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3192         Wnarrowing for C++0x and C++98.
3193         * c.opt ([Wnarrowing]): Update.
3195 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3197         PR c++/44277
3198         * c.opt: Add Wzero-as-null-pointer-constant.
3200 2011-10-31  Jason Merrill  <jason@redhat.com>
3202         * c.opt (-fdeduce-init-list): Off by default.
3204         PR c++/50920
3205         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3206         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3207         and -Wc++11-compat.
3208         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3210 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
3212         PR c++/30066
3213         * c.opt (fvisibility-inlines-hidden): Description change.
3215 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
3217         Implement C++11 user-defined literals.
3218         * c-common.c (build_userdef_literal): New.
3219         * c-common.def: New tree code.
3220         * c-common.h (tree_userdef_literal): New tree struct and accessors.
3221         * c-lex.c (interpret_float): Add suffix parm.
3222         (c_lex_with_flags): Build literal tokens.
3224 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3226         PR c++/50841
3227         Revert:
3228         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3230         PR c++/50810
3231         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3232         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3233         Wnarrowing for C++0x and C++98.
3234         * c.opt ([Wnarrowing]): Update.
3236 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3238         PR c++/50810
3239         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3240         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3241         Wnarrowing for C++0x and C++98.
3242         * c.opt ([Wnarrowing]): Update.
3244 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
3246         PR c++/45385
3247         * c-common.c (conversion_warning): Remove code looking for
3248         artificial operands.
3250 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3252         PR bootstrap/50760
3253         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3254         !NO_IMPLICIT_EXTERN_C.
3256 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
3258         * c-common.c (c_common_reswords): Add __bases,
3259         __direct_bases.
3260         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3262 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3264         PR c++/50757
3265         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3267 2011-10-15  Tom Tromey  <tromey@redhat.com>
3268             Dodji Seketeli  <dodji@redhat.com>
3270         * c.opt (fdebug-cpp): New option.
3271         * c-opts.c (c_common_handle_option): Handle the option.
3272         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3273         output stream in parameter. Factorized from ...
3274         (maybe_print_line): ... this. Dump location debug information when
3275         -fdebug-cpp is in effect.
3276         (print_line_1): New static function. Takes an output stream in
3277         parameter. Factorized from ...
3278         (print_line): ... here. Dump location information when -fdebug-cpp
3279         is in effect.
3280         (scan_translation_unit): Dump location information when
3281         -fdebug-cpp is in effect.
3283 2011-10-15  Tom Tromey  <tromey@redhat.com>
3284             Dodji Seketeli  <dodji@redhat.com>
3286         * c.opt (ftrack-macro-expansion): New option. Handle it with and
3287         without argument.
3288         * c-opts.c (c_common_handle_option)<case
3289         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3290         cases. Handle -ftrack-macro-expansion with and without argument.
3292 2011-10-15  Tom Tromey  <tromey@redhat.com>
3293             Dodji Seketeli  <dodji@redhat.com>
3295         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3296         (print_line, cb_define, do_line_change): Adjust to avoid touching
3297         the internals of struct line_map.  Use the public API instead.
3298         * c-pch.c (c_common_read_pch): Likewise.
3299         * c-lex.c (fe_file_change): Likewise.
3301 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3303         PR c++/17212
3304         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3306 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
3308         PR c++/33067
3309         * c-pretty-print.c (pp_c_floating_constant): Output
3310         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3312 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3314         * c-common.c (def_builtin_1): Delete old interface with two
3315         parallel arrays to hold standard builtin declarations, and replace
3316         it with a function based interface that can support creating
3317         builtins on the fly in the future.  Change all uses, and poison
3318         the old names.  Make sure 0 is not a legitimate builtin index.
3319         * c-omp.c (c_finish_omp_barrier): Ditto.
3320         (c_finish_omp_taskwait): Ditto.
3321         (c_finish_omp_flush): Ditto.
3323 2011-10-11  Tristan Gingold  <gingold@adacore.com>
3325         * c.opt: (fallow-parameterless-variadic-functions): New.
3327 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3329         PR c++/33255 - Support -Wunused-local-typedefs warning
3330         * c-common.h (struct c_language_function::local_typedefs): New
3331         field.
3332         (record_locally_defined_typedef, maybe_record_typedef_use)
3333         (maybe_warn_unused_local_typedefs): Declare new functions.
3334         * c-common.c (record_locally_defined_typedef)
3335         (maybe_record_typedef_use)
3336         (maybe_warn_unused_local_typedefs): Define new functions.
3337         * c.opt: Declare new -Wunused-local-typedefs flag.
3339 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3341         PR middle-end/50266
3342         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3343         computations.
3345 2011-09-05  Richard Guenther  <rguenther@suse.de>
3347         * c-common.c (complete_array_type): Use ssize_int (-1) instead
3348         of integer_minus_one_node for empty array upper bounds.
3350 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
3352         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3353         it's the first time it's being called on this main TU.
3355 2011-08-24  Richard Guenther  <rguenther@suse.de>
3357         PR c/49396
3358         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3360 2011-08-22  Gabriel Charette  <gchare@google.com>
3362         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3363         defined in cpp_init_builtins and c_cpp_builtins.
3365 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3367         * c-common.c (c_common_reswords): Add __builtin_complex.
3368         * c-common.h (RID_BUILTIN_COMPLEX): New.
3370 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3372         * c-common.c (c_common_reswords): Add _Noreturn.
3373         (keyword_is_function_specifier): Handle RID_NORETURN.
3374         * c-common.h (RID_NORETURN): New.
3376 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3378         * c-common.c (unsafe_conversion_p): New function. Check if it is
3379         unsafe to convert an expression to the type.
3380         (conversion_warning): Adjust, use unsafe_conversion_p.
3381         * c-common.h (unsafe_conversion_p): New function declaration.
3383 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3385         * c-common.h (c_finish_omp_atomic): Adjust prototype.
3386         (c_finish_omp_taskyield): New prototype.
3387         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3388         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3389         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
3390         or RHS1 have side-effects, evaluate those too in the right spot,
3391         if it is a decl and LHS is also a decl, error out if they
3392         aren't the same.
3393         (c_finish_omp_taskyield): New function.
3394         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3395         * c-pragma.c (omp_pragmas): Add taskyield.
3396         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3397         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3398         PRAGMA_OMP_CLAUSE_MERGEABLE.
3400 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
3402         * c-common.h (set_underlying_type): Remove parm name from
3403         declaration.
3405 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
3407         * c-pretty-print.h: Search c-common.h in c-family.
3409 2011-07-22  Jason Merrill  <jason@redhat.com>
3411         PR c++/49793
3412         * c.opt (Wnarrowing): New.
3414         PR c++/30112
3415         * c-common.h: Declare c_linkage_bindings.
3416         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3418         PR c++/49813
3419         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3420         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3421         as flag_isoc99 for 'restrict'.
3422         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3424 2011-07-21  Ian Lance Taylor  <iant@google.com>
3426         PR middle-end/49705
3427         * c-common.c (c_disable_warnings): New static function.
3428         (c_enable_warnings): New static function.
3429         (c_fully_fold_internal): Change local unused_p to bool.  Call
3430         c_disable_warnings and c_enable_warnings rather than change
3431         c_inhibit_evaluation_warnings.
3433 2011-07-20  Jason Merrill  <jason@redhat.com>
3435         PR c++/6709 (DR 743)
3436         PR c++/42603 (DR 950)
3437         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3438         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3439         (CPP_DECLTYPE): New.
3440         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3442 2011-07-19  Richard Guenther  <rguenther@suse.de>
3444         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3445         * c-omp.c (c_finish_omp_for): Likewise.
3447 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3449         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3450         body on the next line.
3452 2011-07-08  Jason Merrill  <jason@redhat.com>
3454         PR c++/45437
3455         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3457         PR c++/49673
3458         * c-common.c (c_apply_type_quals_to_decl): Don't check
3459         TYPE_NEEDS_CONSTRUCTING.
3461 2011-07-06  Richard Guenther  <rguenther@suse.de>
3463         * c-common.c (c_common_nodes_and_builtins):
3464         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3466 2011-07-05  Richard Guenther  <rguenther@suse.de>
3468         * c-common.c (c_common_nodes_and_builtins): Build all common
3469         tree nodes first.
3471 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3473         * c-common.h (c_tree_chain_next): New static inline function.
3475         * c-common.c (check_builtin_function_arguments): Handle
3476         BUILT_IN_ASSUME_ALIGNED.
3478 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3480         * c-common.c: Add sync_ or SYNC__ to builtin names.
3481         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3483 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3485         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3486         handler.
3487         (gen_pragma_handler): New union.
3488         (internal_pragma_handler): New type.
3489         (c_register_pragma_with_data)
3490         (c_register_pragma_with_expansion_and_data): New functions.
3492         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3493         (c_register_pragma, c_register_pragma_with_expansion)
3494         (c_invoke_pragma_handler): Changed to work with
3495         internal_pragma_handler.
3496         (c_register_pragma_with_data)
3497         (c_register_pragma_with_expansion_and_data): New functions.
3499 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3501         * c-common.c: Include common/common-target.h.
3502         (handle_section_attribute): Use
3503         targetm_common.have_named_sections.
3504         * c-cppbuiltin.c: Include common/common-target.h.
3505         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3507 2011-06-10  Richard Guenther  <rguenther@suse.de>
3509         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3510         to print a IDENTIFIER_NODE.
3512 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3513             Joseph Myers  <joseph@codesourcery.com>
3515         * c.opt (fbuilding-libgcc): New option.
3516         * c-cppbuiltin.c (c_cpp_builtins): Define
3517         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3519 2011-06-07  Jason Merrill  <jason@redhat.com>
3521         * c-common.c (max_tinst_depth): Lower default to 900.
3523         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3525 2011-06-07  Richard Guenther  <rguenther@suse.de>
3527         * c-common.c (c_common_nodes_and_builtins): Do not set
3528         size_type_node or call set_sizetype.
3530 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
3532         PR debug/49130
3533         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3534         type when using pointer comparison to compare types.
3536 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
3538         * c.opt: Add -Wdelete-non-virtual-dtor.
3539         * c-opts.c (c_common_handle_option): Include it in -Wall.
3541 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3543         PR bootstrap/49190
3545         Revert:
3546         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3548         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3549         not tree_common.
3551 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
3553         PR c++/49165
3554         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3555         C++ don't call c_common_truthvalue_conversion on void type arms.
3557 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3559         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3560         (stmt_list_stack): Define.
3561         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3562         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3564 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3566         * c-common.c (warning_candidate_p): Check for BLOCKs.
3568 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3570         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3571         not tree_common.
3573 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3575         * c-common.c (def_fn_type): Remove extra va_end.
3577 2011-05-23  Jason Merrill  <jason@redhat.com>
3579         PR c++/48106
3580         * c-common.c (c_common_get_narrower): New.
3581         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3583 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3585         * c-common.h (check_function_arguments): Tweak prototype of
3586         check_function_arguments.
3587         * c-common.c (check_function_arguments): Likewise.  Adjust
3588         calls to check_function_nonnull, check_function_format, and
3589         check_function_sentinel.
3590         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3591         separate attributes and typelist arguments.  Use
3592         FOREACH_FUNCTION_ARGS to iterate over argument types.
3594 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3596         * c-common.c (c_common_reswords): Reorder.
3597         * c-common.h (rid): Likewise.
3599 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3601         * c-common.c (def_fn_type): Don't call build_function_type, call
3602         build_function_type_array or build_varargs_function_type_array
3603         instead.
3604         (c_common_nodes_and_builtins): Likewise.
3606 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3608         * c-common.c (c_add_case_label): Omit the loc argument to
3609         build_case_label.
3610         * c-common.h (build_case_label): Remove.
3611         * c-semantics.c (build_case_label): Remove.
3613 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3615         * c-objc.h (objc_start_method_definition): Update prototype.
3616         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3618 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3620         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3621         TYPE_ARG_TYPES directly.
3622         (handle_nonnull_attribute): Likewise.
3623         (sync_resolve_params): Likewise.
3624         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3625         to check_format_string.
3626         (handle_format_attribute): Likewise.
3627         (check_format_string): Take a function type to examine instead of
3628         a type list.  Use a function_arg_iterator to step through argument
3629         types.
3631 2011-05-04  Richard Guenther  <rguenther@suse.de>
3633         * c-common.c (fix_string_type): Use size_int for index type bounds.
3634         (start_fname_decls): Do not pass NULL to build_int_cst.
3635         (c_init_attributes): Likewise.
3636         * c-lex.c (c_lex_with_flags): Likewise.
3638 2011-04-27  Jason Merrill  <jason@redhat.com>
3640         * c-common.c (make_tree_vector_from_list): New.
3641         * c-common.h: Declare it.
3643 2011-04-26  Richard Guenther  <rguenther@suse.de>
3645         PR preprocessor/48248
3646         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3647         for output size with -P.
3649 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3651         * c-common.c (struct c_common_resword): Add __underlying_type.
3652         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3654 2011-04-20  Jim Meyering  <meyering@redhat.com>
3656         * c-format.c (init_dollar_format_checking): Remove useless
3657         if-before-free.
3659 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3661         * c-objc.h (objc_get_interface_ivars): Removed.
3662         (objc_detect_field_duplicates): New.
3663         * stub-objc.c: Likewise.
3665 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3667         * stub-objc.c (objc_declare_protocols): Renamed to
3668         objc_declare_protocol.
3669         * c-objc.h: Likewise.
3671 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3673         * stub-objc.c (objc_declare_class): Updated argument name.
3675 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3677         * c-common.h (c_common_init_ts): Declare.
3678         * c-common.c (c_common_init_ts): Define.
3680 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3682         * c-objc.h (objc_build_message_expr): Updated prototype.
3683         * stub-objc.c (objc_build_message_expr): Likewise.
3685 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3687         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3688         of cgraph_node.
3690 2011-04-11  Richard Guenther  <rguenther@suse.de>
3692         * c-common.c (complete_array_type): Build a range type of
3693         proper type.
3695 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3697         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3698         (handle_type_generic_attribute): Likewise.
3700 2011-04-07  Jason Merrill  <jason@redhat.com>
3702         PR c++/48450
3703         * c-common.c (c_common_truthvalue_conversion): Don't ignore
3704         conversion from C++0x scoped enum.
3706 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3708         * c-target-def.h: New file.
3709         * c-target.def: New file.
3710         * c-target.h: New file.
3711         * c-common.c (targetcm): Don't define here.
3712         * c-common.h (default_handle_c_option): Declare.
3713         * c-format.c: Include c-target.h instead of target.h.
3714         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
3715         include tm.h.
3716         (default_handle_c_option): Move from targhooks.c.
3718 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3720         PR preprocessor/48248
3721         * c-ppoutput.c (print): Add src_file field.
3722         (init_pp_output): Initialize it.
3723         (maybe_print_line): Don't optimize by adding up to 8 newlines
3724         if map->to_file and print.src_file are different file.
3725         (print_line): Update print.src_file.
3727 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3729         * c-ada-spec.c (compare_comment): Use filename_cmp
3730         instead of strcmp for filename.
3732 2011-03-25  Jeff Law  <law@redhat.com>
3734         * c-common.c (def_fn_type): Add missing va_end.
3736 2011-03-25  Jason Merrill  <jason@redhat.com>
3738         * c.opt: Add -std=c++03.
3740 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3742         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3744 2011-03-17  Kai Tietz
3746         PR target/12171
3747         * c-pretty-print.c (pp_c_specifier_qualifier_list):
3748         Display allowed attributes for function pointer types.
3749         (pp_c_attributes_display): New function to display
3750         attributes having affects_type_identity flag set to true.
3751         * c-pretty-print.h (pp_c_attributes_display): New prototype.
3753         * c-common.c (c_common_attribute_table):
3754         Add new element.
3755         (c_common_format_attribute_table): Likewise.
3757 2011-03-18  Jason Merrill  <jason@redhat.com>
3759         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3760         * c-common.h: Don't declare it here.
3761         * c-common.c: Or define it here.
3762         * c-opts.c (c_common_handle_option): Or set it here.
3764         PR c++/35315
3765         * c-common.c (handle_transparent_union_attribute): Don't
3766         make a duplicate type in C++.
3768 2011-03-15  Jason Merrill  <jason@redhat.com>
3770         * c-common.c (max_constexpr_depth): New.
3771         * c-common.h: Declare it.
3772         * c-opts.c (c_common_handle_option): Set it.
3773         * c.opt (fconstexpr-depth): New option.
3775 2011-03-11  Jason Merrill  <jason@redhat.com>
3777         * c-common.c (attribute_takes_identifier_p): Add missing const.
3779         PR c++/46803
3780         * c-common.c (attribute_takes_identifier_p): Assume that an
3781         unknown attribute takes an identifier.
3783 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
3785         PR c/47786
3786         * c-common.c (c_type_hash): Call list_length instead of iterating
3787         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
3789 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3791         PR c/47809
3792         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3794 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
3796         * c.opt (fobjc-abi-version=) New.
3797         (fobjc-nilcheck): New.
3799 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
3801         PR c++/46890
3802         * c-common.h (keyword_is_decl_specifier): Declare.
3803         * c-common.c (keyword_is_decl_specifier): Define.
3804         (keyword_is_function_specifier): New function.
3806 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3808         PR c/47473
3809         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3810         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3811         REAL_TYPE.
3813 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
3815         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3817 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3819         PR pch/47430
3820         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3821         after init_c_lex if pch_file is set.
3823 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
3825         PR c++/43601
3826         * c.opt (-fkeep-inline-dllexport): New switch.
3828 2011-01-12  Richard Guenther  <rguenther@suse.de>
3830         PR middle-end/32511
3831         * c-common.c (handle_weak_attribute): Warn instead of error
3832         on declaring an inline function weak.
3834 2011-01-05  Tom Tromey  <tromey@redhat.com>
3836         * c-common.h (lvalue_error): Update.
3837         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
3838         not error.
3840 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3842         PR objc/47075
3843         * c-objc.h (objc_finish_message_expr): Added argument to
3844         prototype.
3846 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
3848         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3849         Use prototype_p.
3851 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3853         * c-objc.h (objc_maybe_warn_exceptions): New.
3854         * stub-objc.c (objc_maybe_warn_exceptions): New.
3856 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
3858         * c-common.h (readonly_error): Declare.
3859         * c-common.c (readonly_error): Define.
3861 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
3863         * c-common.h (invalid_indirection_error): Declare.
3864         * c-common.c (invalid_indirection_error): Define.
3866 2010-12-03  Richard Guenther  <rguenther@suse.de>
3868         PR c/46745
3869         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3870         (pp_c_unary_expression): Likewise.
3871         (pp_c_expression): Likewise.
3873 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3875         * c-common.h (objc_finish_function): New.
3876         (objc_non_volatilized_type): Removed.
3877         (objc_type_quals_match): Removed.
3878         * stub-objc.c (objc_finish_function): New.
3879         (objc_non_volatilized_type): Removed.
3880         (objc_type_quals_match): Removed.
3882 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
3884         * c-common.h (parse_optimize_options): Declare.
3885         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3886         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3888 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
3890         * c-opts.c (check_deps_environment_vars): Use getenv instead of
3891         GET_ENVIRONMENT.
3892         * c-pch.c (O_BINARY): Don't define here.
3893         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3895 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
3897         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3898         targetm.except_unwind_info.
3900 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3902         * c-opts.c (c_common_handle_option): Pass location to
3903         set_struct_debug_option.
3905 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3907         * c-common.c (visibility_options): Move from ../opts.c.
3908         * c-common.h (struct visibility_flags, visibility_options):
3909         Declare here.
3910         * c-opts.c (finish_options): Rename to c_finish_options.
3911         (c_common_init): Update call to finish_options.
3913 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
3915         PR objc/34033
3916         * c-lex.c (lex_string): Check that each string in an Objective-C
3917         string concat sequence starts with either one or zero '@', and
3918         that there are no spurious '@' signs at the end.
3920 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
3922         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3923         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3924         HANDLE_PRAGMA_VISIBILITY.
3925         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3926         HANDLE_PRAGMA_VISIBILITY): Don't define.
3927         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3929 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
3931         PR c++/16189
3932         PR c++/36888
3933         PR c++/45331
3934         * c-common.h (keyword_begins_type_specifier): Declare.
3935         (keyword_is_storage_class_specifier): Declare.
3936         (keyword_is_type_qualifier): Declare.
3937         * c-common.c (keyword_begins_type_specifier): New function.
3938         (keyword_is_storage_class_specifier): New function.
3939         (keyword_is_type_qualifier): Declare.
3941 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3943         PR c/46547
3944         * c-common.c (in_late_binary_op): Define.
3945         (c_common_truthvalue_conversion): Check in_late_binary_op before
3946         calling c_save_expr.
3947         * c-common.h (in_late_binary_op): Declare.
3949 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3951         * c-opts.c (c_common_handle_option): Update calls to
3952         set_struct_debug_option.
3954 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3956         * c-common.h (objc_declare_protocols): Added additional argument.
3957         * stub-objc.c (objc_declare_protocol): Same change.
3959 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
3961         PR c/33193
3962         * c-common.h (build_real_imag_expr): Declare.
3963         * c-semantics.c (build_real_imag_expr): Define.
3965 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3967         * c-opts.c (c_common_parse_file): Take no arguments.
3968         * c-common.h (c_common_parse_file): Update prototype.
3970 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
3972         PR c++/46401
3973         * c-common.c (warning_candidate_p): Don't track non-const calls
3974         or STRING_CSTs.
3976 2010-11-15  Ian Lance Taylor  <iant@google.com>
3978         * c-lex.c (init_c_lex): Set macro debug callbacks if
3979         flag_dump_go_spec is set.
3981 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3983         * c-common.h (objc_build_incr_expr_for_property_ref): New.
3984         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3986 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
3988         PR preprocessor/45038
3989         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3990         dialects.
3992 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3994         * c-common.h (c_family_lang_mask): Declare.
3995         * c-opts.c (c_family_lang_mask): Make extern.
3996         * c-pragma.c (handle_pragma_diagnostic): Use
3997         control_warning_option.
3999 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4001         * c-common.c (parse_optimize_options): Update call to
4002         decode_options.
4003         * c-common.h (c_common_handle_option): Update prototype.
4004         * c-opts.c (c_common_handle_option): Take location_t parameter and
4005         pass it to other functions.
4007 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4009         * c-opts.c (warning_as_error_callback): Remove.
4010         (c_common_initialize_diagnostics): Don't call
4011         register_warning_as_error_callback.
4012         (c_common_handle_option): Handle -Werror=normalized= here.
4014 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4016         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4017         in diagnostic.
4018         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4019         letter.
4020         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4021         Remove trailing '.' from diagnostics.
4022         * c.opt (Wwrite-strings_: Avoid '`' in help text.
4024 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4026         * c-common.c (parse_optimize_options): Pass global_dc to
4027         decode_options.
4028         * c-opts.c (c_common_handle_option): Pass &global_options to
4029         set_Wstrict_aliasing.
4030         * c.opt (v): Don't mark Common or document here.
4032 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4034         PR target/44981
4035         * c-format.c (format_type): New type gcc_objc_string_format_type.
4036         (valid_stringptr_type_p): New.
4037         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4038         (check_format_string): Pass expected type, use
4039         valid_stringptr_type_p (), check that the format string types are
4040         consistent with the format specification.
4041         (decode_format_attr): Warn if NSString is used outside objective-c.
4042         (format_types_orig): Add NSString.
4043         (format_name): New.
4044         (format_flags): New.
4045         (check_format_arg): Handle format strings requiring an external parser.
4046         first_target_format_type: New variable.
4047         (handle_format_attribute): Set up first_target_format_type, pass the
4048         expected format arg string type to check_format_string().
4049         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
4050         * stub-objc.c (objc_string_ref_type_p): New.
4051         (objc_check_format_arg): New.
4053 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4055         Fixed using the Objective-C 2.0 dot-syntax with class names.
4056         * c-common.h (objc_build_class_component_ref): New.
4057         * stub-objc.c (objc_build_class_component_ref): New.
4059 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4061         * c.opt (Wproperty-assign-default): New option.
4063 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4065         Implemented -fobjc-std=objc1 flag.
4066         * c.opt (fobjc-std=objc1): New option.
4068 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
4070         Implemented format and noreturn attributes for Objective-C methods.
4071         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4072         attribute for Objective-C methods.
4074 2010-10-31  Jason Merrill  <jason@redhat.com>
4076         * c-common.c (conversion_warning, warn_for_collisions_1): Use
4077         EXPR_LOC_OR_HERE.
4079 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4081         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4082         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4083         (objc_add_property_declaration): Removed arguments for copies and
4084         ivar.
4085         (objc_build_getter_call): Renamed to
4086         objc_maybe_build_component_ref.
4087         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4088         (objc_is_property_ref): New.
4089         * c-common.c (c_common_reswords): Removed copies and ivar.
4090         * stub-objc.c (objc_add_property_declaration): Removed arguments
4091         for copies and ivar.
4092         (objc_build_getter_call): Renamed to
4093         objc_maybe_build_component_ref.
4094         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4095         (objc_is_property_ref): New.
4097 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
4098             Matthew Gingell  <gingell@adacore.com>
4100         * c-ada-spec.c (separate_class_package): New function.
4101         (pp_ada_tree_identifier): Prefix references to C++ classes with the
4102         name of their enclosing package.
4103         (print_ada_declaration): Use separate_class_package.
4105 2010-10-27  Jason Merrill  <jason@redhat.com>
4107         * c-common.c (c_common_reswords): Add __is_literal_type.
4108         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4110         * c-common.c (check_case_value): Remove special C++ code.
4112 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4114         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4115         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
4116         and RID_LAST_PATTR.
4117         (objc_add_property_declaration): Added additional arguments.
4118         (objc_property_attribute_kind): Removed.
4119         (objc_set_property_attr): Removed.
4120         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4121         copy and nonatomic.
4122         * stub-objc.c (objc_add_property_declaration): Added additional
4123         arguments.
4124         (objc_set_property_attr): Removed.
4126 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4128         * c-common.h (objc_add_property_variable): Renamed to
4129         objc_add_property_declaration.  Added location argument.
4130         * stub-objc.c (objc_add_property_variable): Same change.
4131         
4132 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
4134         * c-common.h (objc_maybe_printable_name): New.
4135         * stub-objc.c (objc_maybe_printable_name): New.
4137 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4138         Andrew Pinski <pinskia@gmail.com>
4140         * c-common.h (c_common_mark_addressable_vec): Declare.
4141         * c-common.c (c_common_mark_addressable_vec): New function.
4143 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4145         * c-common.h (objc_set_method_type): Removed.
4146         (objc_add_method_declaration): Added boolean argument.
4147         (objc_start_method_definition): Same change.
4148         (objc_build_method_signature): Same change.
4149         * stub-objc.c (objc_set_method_type): Removed.
4150         (objc_add_method_declaration): Added boolean argument.
4151         (objc_start_method_definition): Same change.
4152         (objc_build_method_signature): Same change.
4154 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4156         * c-common.h (finish_file): Removed.
4157         (objc_write_global_declarations): New.
4158         * c-opts.c (c_common_parse_file): Do not call finish_file.
4159         * stub-objc.c (objc_write_global_declarations): New.
4161 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4163         Implemented parsing @synthesize and @dynamic for
4164         Objective-C/Objective-C++.
4165         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4166         (objc_add_synthesize_declaration): New.
4167         (objc_add_dynamic_declaration): New.
4168         * c-common.c (c_common_reswords): Add synthesize and dynamic.
4169         * stub-objc.c (objc_add_synthesize_declaration): New.
4170         (objc_add_dynamic_declaration): New.
4172 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4174         PR target/46041
4175         * c-cppbuiltin.c (mode_has_fma): Move function here from
4176         builtins.c.  Don't use the fma optab, instead just use the
4177         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4178         using -save-temps.
4180 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4182         Merge from 'apple/trunk' branch on FSF servers.
4184         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
4186         Radar 4330422
4187         * c-common.h (objc_non_volatilized_type): New declaration
4188         * stub-objc.c (objc_non_volatilized_type): New stub.
4190 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4192         Merge from 'apple/trunk' branch on FSF servers.
4194         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4196         Radar 4133425
4197         * c-common.h (objc_diagnose_private_ivar): New decl.
4198         * stub-objc.c (objc_diagnose_private_ivar): New stub.
4200 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4202         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4203         * c-common.h (enum rid): Add RID_AT_PACKAGE.
4204         (objc_ivar_visibility_kind): New enum.
4205         (objc_set_visibility): Adjust prototype to use visibility enum.
4206         * stub-objc.c (objc_set_visibility): Adjust stub to use
4207         visibility enum.
4209 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4211         * c-cppbuiltin.c (builtin_define_float_constants): Emit
4212         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4213         has the appropriate fma builtins.
4214         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4216 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4218         merge from FSF apple 'trunk' branch.
4219         2006 Fariborz Jahanian <fjahanian@apple.com>
4221         Radars 4436866, 4505126, 4506903, 4517826
4222         * c-common.c (c_common_resword): Define @property and its attributes.
4223         * c-common.h: Define property attribute enum entries.
4224         (OBJC_IS_PATTR_KEYWORD): New.
4225         (objc_property_attribute_kind): New enum.
4226         Declare objc_set_property_attr (), objc_add_property_variable (),
4227         objc_build_getter_call () and objc_build_setter_call ().
4228         * stub-objc.c (objc_set_property_attr): New stub.
4229         (objc_add_property_variable): Likewise.
4230         (objc_build_getter_call): Likewise.
4231         (objc_build_setter_call) Likewise.
4233 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
4235         merge from FSF apple 'trunk' branch.
4236         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4238         Radar 3803157 (method attributes)
4239         * c-common.c (handle_deprecated_attribute): Recognize
4240         objc methods as valid declarations.
4241         * c-common.h: Declare objc_method_decl ().
4242         * stub-objc.c (objc_method_decl): New stub.
4244 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4246         * c-common.c (parse_optimize_options): Call
4247         decode_cmdline_options_to_array_default_mask before
4248         decode_options.  Update arguments to decode_options.
4249         * c-common.h (c_common_init_options_struct): Declare.
4250         * c-opts.c (c_common_init_options_struct): New.  Split out from
4251         c_common_init_options.
4253 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4255         Implemented fast enumeration for Objective-C.
4256         * c-common.h (objc_finish_foreach_loop): New.
4257         * stub-objc.c (objc_finish_foreach_loop): New.
4259 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4261         * c-common.h (struct diagnostic_context): Don't declare here.
4262         (c_common_initialize_diagnostics): Declare using
4263         diagnostic_context typedef.
4264         * c-opts.c (c_common_handle_option): Pass global_dc to
4265         handle_generated_option.
4267 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4269         * c-opts.c (c_common_handle_option): Pass &global_options_set to
4270         handle_generated_option.
4272 2010-10-03  Ian Lance Taylor  <iant@google.com>
4274         * c.opt (-fplan9-extensions): New option.
4276 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4278         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4279         Remove.
4280         (c_cpp_builtins): Call functions from cppbuiltin.c instead
4281         of duplicating code.
4283 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
4285         * c-common.c: Add two new entries for @optional
4286         and @required keywords.
4288         merge from FSF 'apple/trunk' branch.
4289         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
4291         Radar 4386773
4292         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4293         objective-c keywords.
4294         (objc_set_method_opt): New declaration.
4295         * stub-objc.c (objc_set_method_opt): New stub.
4297 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4299         * c-common.c (handle_optimize_attribute): Pass &global_options to
4300         cl_optimization_save and cl_optimization_restore.
4301         * c-opts.c (c_common_handle_option): Pass &global_options to
4302         handle_generated_option.
4303         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4304         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4305         &global_options to cl_optimization_restore.
4307 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4309         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4310         Objective-C/Objective-C++ keywords.
4312 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4314         Merge from 'apple/trunk' branch on FSF servers.
4316         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
4318         Radar 4281748
4319         * c-common.h (objc_check_global_decl): New declaration.
4320         * stub-objc.c (objc_check_global_decl): New stub.
4322 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4324         * c.opt: Don't use VarExists.
4326 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4328         * c-common.c (c_cpp_error): Update names of diagnostic_context
4329         members.
4330         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4331         cl_optimization members.
4332         * c-opts.c (warning_as_error_callback, c_common_handle_option,
4333         sanitize_cpp_opts, finish_options): Update names of cpp_options
4334         members.
4336 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4338         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
4339         (objc_is_reserved_word): Removed.
4340         * c-common.c: Updated comments.
4341         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4342         objc_is_reserved_word.
4343         * stub-objc.c (objc_is_reserved_word): Removed.
4345 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4347         * c-common.h (objc_add_method_declaration): Adjust prototype to
4348         include attributes.
4349         (objc_start_method_definition): Likewise.
4350         (objc_build_keyword_decl): Likewise.
4351         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4352         (objc_start_method_definition): Likewise.
4353         (objc_build_keyword_decl): Likewise.
4355 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4357         * c-common.h (objc_start_class_interface): Adjust prototype.
4358         (objc_start_category_interface): Likewise.
4359         (objc_start_protocol): Likewise.
4360         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4361         (objc_start_class_interface): Likewise.
4362         (objc_start_category_interface): Likewise.
4364 2010-09-27  Ian Lance Taylor  <iant@google.com>
4366         * c-common.c (c_common_attribute_table): Add no_split_stack.
4367         (handle_no_split_stack_attribute): New static function.
4369 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4371         Merge from 'apple/trunk' branch on FSF servers.
4373         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
4375         Radar 4229905
4376         * c-common.h (objc_have_common_type): New declaration.
4377         * stub-objc.c (objc_have_common_type): New stub.
4379         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
4381         Radar 4154928
4382         * c-common.h (objc_common_type): New prototype.
4383         * stub-objc.c (objc_common_type): New stub.
4385 2010-09-24  Jan Hubicka  <jh@suse.cz>
4387         * c-common.c (handle_leaf_attribute): New function.
4388         (struct attribute_spec c_common_att): Add leaf.
4390 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4392         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4393         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4394         -dump, -dump=, -imacros, -imacros=, -include, -include=,
4395         -include-barrier, -include-directory, -include-directory=,
4396         -include-directory-after, -include-directory-after=,
4397         -include-prefix, -include-prefix=, -include-with-prefix,
4398         -include-with-prefix=, -include-with-prefix-after,
4399         -include-with-prefix-after=, -include-with-prefix-before,
4400         -include-with-prefix-before=, -no-integrated-cpp,
4401         -no-line-commands, -no-standard-includes, -no-warnings, -output,
4402         -output=, -pedantic, -pedantic-errors, -preprocess,
4403         -print-missing-file-dependencies, -trace-includes, -traditional,
4404         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4405         -user-dependencies, -verbose, -write-dependencies,
4406         -write-user-dependencies, no-integrated-cpp, traditional): New.
4408 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4410         PR objc/23710
4411         * c-common.h (objc_start_method_definition): Return bool instead
4412         of void.
4413         * stub-objc.c (objc_start_method_definition): Return bool instead
4414         of void.
4416 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4418         PR objc/25965
4419         * c-common.h (objc_get_interface_ivars): New declaration.
4420         * stub-objc.c (objc_get_interface_ivars): New stub.
4422 2010-09-15  Ian Lance Taylor  <iant@google.com>
4424         * c-common.c (parse_optimize_options): Do not capitalize warning
4425         messages.  Remove period at end of warning message.
4427 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4429         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4430         (handle_alias_attribute): ... here.
4431         (handle_ifunc_attribute): New.
4433 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4435         * c-common.h (do_warn_double_promotion): Declare.
4436         * c-common.c (do_warn_double_promotion): Define.
4438 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4440         * c.opt (Wdouble-promotion): New.
4442 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4444         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4445         fvtable-thunks, fxref): Mark no longer supported in help text.
4447 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4449         * c.opt (Wimport, fall-virtual, falt-external-templates,
4450         fdefault-inline, fenum-int-equiv, fexternal-templates,
4451         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4452         fname-mangling-version-, fnew-abi, fnonnull-objects,
4453         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4454         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4455         applicable.
4456         (fhandle-exceptions): Mark with Alias and Warn.
4457         * c-opts.c (c_common_handle_option): Don't handle options marked
4458         as ignored.
4460 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4462         * c.opt (Wcomments, Werror-implicit-function-declaration,
4463         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4464         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4465         aliases.
4466         * c-common.c (option_codes): Use OPT_Wcomment instead of
4467         OPT_Wcomments.
4468         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4469         Don't handle options marked as aliases.
4471 2010-08-25  Richard Guenther  <rguenther@suse.de>
4473         * c-common.c (c_common_get_alias_set): Remove special
4474         handling for pointers.
4476 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4478         * c-common.c: Use FOR_EACH_VEC_ELT.
4479         * c-gimplify.c: Likewise.
4480         * c-pragma.c: Likewise.
4482 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4484         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4485         RejectDriver.
4486         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4487         RejectDriver.
4488         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4489         instead of OPT_MDX and OPT_MMDX.
4491 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4493         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4495 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4497         * c.opt (MD, MMD): Change to MDX and MMDX.
4498         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4500 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4502         * c-opts.c (c_common_handle_option): Call handle_generated_option
4503         instead of handle_option.
4505 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4507         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4508         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4510 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4512         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4513         (pending_redefine_extname): Change type to a VEC.
4514         (add_to_renaming_pragma_list): Update for new type of
4515         pending_redefine_extname.
4516         (maybe_apply_renaming_pragma): Likewise.
4518 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4520         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4521         visited.
4522         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4523         decide whether a type has already been declared/seen.
4524         Do not go to the original type.
4525         (dump_nested_types): New parameter forward.
4526         Generate forward declaration if needed and mark type as visited.
4527         (print_ada_declaration): Call dump_nested_types if not already done.
4528         Mark types as visited.
4530 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4532         * c.opt (-print-pch-checksum): Remove option.
4533         * c-opts.c (c_common_handle_option): Don't handle
4534         OPT_print_pch_checksum.
4536 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4538         * c-common.h (c_common_handle_option): Update prototype and return
4539         value type.
4540         * c-opts.c (c_common_handle_option): Update prototype and return
4541         value type.  Update calls to handle_option and
4542         enable_warning_as_error.
4544 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4546         PR c/45079
4547         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4549 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4551         * c-common.h (c_common_missing_argument): Remove.
4552         * c-opts.c (c_common_missing_argument): Remove.
4553         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4554         idirafter, imacros, include, isysroot, isystem, iquote): Add
4555         MissingArgError.
4556         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4558 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4560         * c-common.h (c_common_option_lang_mask,
4561         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4562         New.
4563         (c_common_init_options): Update prototype.
4564         * c-opts.c (c_common_option_lang_mask): New.
4565         (c_common_initialize_diagnostics): Split out of
4566         c_common_init_options.
4567         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4568         New.
4569         (c_common_init_options): Update prototype.  Use decoded options in
4570         search for -lang-asm.
4572 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4574         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4575         * c-format.c: Likewise.
4577 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4579         * c-common.h: Include diagnostic-core.h. Error if already
4580         included.
4581         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4583 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4585         * c-common.c (IN_GCC_FRONTEND): Do not undef.
4586         Do not include expr.h
4587         (vector_mode_valid_p): Move here.
4589 2010-06-21  DJ Delorie  <dj@redhat.com>
4591         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4592         allow these pragmas anywhere.
4594 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4596         PR bootstrap/44509
4597         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4598         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4599         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4600         ggc_strdup instead of xstrdup.
4602 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4604         * c-cppbuiltin.c: Include cpp-id-data.h.
4605         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4606         (lazy_hex_fp_value): New function.
4607         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4609 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4611         * c-gimplify.c: Do not include tree-flow.h
4613 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4615         PR other/44034
4616         * c-common.c: Rename targetm member:
4617         targetm.enum_va_list -> targetm.enum_va_list_p
4619 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4621         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4623 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4625         * c-cppbuiltin.c: Do not include except.h.
4627 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4629         * c-common.c (warn_for_omitted_condop): New.
4630         * c-common.h (warn_for_omitted_condop): Add prototype.
4632 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4634         * c.opt (lang-objc): Remove.
4635         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4637 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4639         * c-opts.c: Include "tm_p.h".
4641 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4643         * c-common.c (parse_optimize_options): Update call to
4644         decode_options.
4646 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4648         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4649         new type of types_used_by_cur_var_decl.
4651 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
4653         PR bootstrap/44512
4654         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4655         for C++ standard compliance.
4657 2010-06-16  Jason Merrill  <jason@redhat.com>
4659         * c.opt: Add -Wnoexcept.
4661 2010-06-16  Richard Guenther  <rguenther@suse.de>
4663         PR c/44555
4664         * c-common.c (c_common_truthvalue_conversion): Remove
4665         premature and wrong optimization concering ADDR_EXPRs.
4667 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
4669         * c-ada-spec.c (dump_sloc): Remove column info.
4670         (is_simple_enum): New function.
4671         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4672         enum types when relevant.
4674 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4676         * c-common.c (conversion_warning): Warn at expression
4677         location.
4679 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4681         * c-opts.c (c_common_handle_option): Don't handle
4682         OPT_fshow_column.
4684 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4686         * c-pragma.c (push_alignment): Use typed GC allocation.
4687         (handle_pragma_push_options): Likewise.
4689         * c-common.c (parse_optimize_options): Likewise.
4691         * c-common.h (struct sorted_fields_type): Add variable_size GTY
4692         option.
4694 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4696         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4697         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4698         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4699         flag_signed_bitfields, warn_strict_null_sentinel,
4700         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4701         flag_gen_declaration, flag_no_gnu_keywords,
4702         flag_implement_inlines, flag_implicit_templates,
4703         flag_implicit_inline_templates, flag_optional_diags,
4704         flag_elide_constructors, flag_default_inline, flag_rtti,
4705         flag_conserve_space, flag_access_control, flag_check_new,
4706         flag_new_for_scope, flag_weak, flag_working_directory,
4707         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4708         flag_enforce_eh_specs, flag_threadsafe_statics,
4709         flag_pretty_templates): Remove.
4710         * c-common.h (flag_preprocess_only, flag_nil_receivers,
4711         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4712         flag_replace_objc_classes, flag_undef, flag_no_builtin,
4713         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4714         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4715         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4716         flag_no_gnu_keywords, flag_implement_inlines,
4717         flag_implicit_templates, flag_implicit_inline_templates,
4718         flag_optional_diags, flag_elide_constructors, flag_default_inline,
4719         flag_rtti, flag_conserve_space, flag_access_control,
4720         flag_check_new, flag_new_for_scope, flag_weak,
4721         flag_working_directory, flag_use_cxa_atexit,
4722         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4723         flag_threadsafe_statics, flag_pretty_templates,
4724         warn_strict_null_sentinel): Remove.
4725         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4726         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4727         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4728         fimplicit-inline-templates, fimplicit-templates,
4729         flax-vector-conversions, fms-extensions, fnil-receivers,
4730         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4731         frtti, fshort-double, fshort-enums, fshort-wchar,
4732         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4733         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4734         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4735         gen-decls, undef): Use Var.
4736         (fdefault-inline, foptional-diags): Document as doing nothing.
4737         * c-opts.c (c_common_handle_option): Remove cases for options now
4738         using Var.  Mark ignored options as such.
4740 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4742         * c-common.c: Moved to here from parent directory.
4743         * c-common.def: Likewise.
4744         * c-common.h: Likewise.
4745         * c-cppbuiltin.c: Likewise.
4746         * c-dump.c: Likewise.
4747         * c-format.c: Likewise.
4748         * c-format.h : Likewise.
4749         * c-gimplify.c: Likewise.
4750         * c-lex.c: Likewise.
4751         * c-omp.c: Likewise.
4752         * c.opt: Likewise.
4753         * c-opts.c: Likewise.
4754         * c-pch.c: Likewise.
4755         * c-ppoutput.c: Likewise.
4756         * c-pragma.c: Likewise.
4757         * c-pragma.h: Likewise.
4758         * c-pretty-print.c: Likewise.
4759         * c-pretty-print.h: Likewise.
4760         * c-semantics.c: Likewise.
4761         * stub-objc.c: Likewise.
4763         * c-common.c: Include gt-c-family-c-common.h.
4764         * c-pragma.c: Include gt-c-family-c-pragma.h.
4766 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4768 Copying and distribution of this file, with or without modification,
4769 are permitted in any medium without royalty provided the copyright
4770 notice and this notice are preserved.