Update ChangeLog and version files for release
[official-gcc.git] / gcc / c-family / ChangeLog
blob39e54f2b5b4f95f1fe7d86cb4ead85b10257ad7b
1 2015-04-22  Release Manager
3         * GCC 5.1.0 released.
5 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7         PR target/55143
8         * c-common.c (c_default_pointer_mode): Add definition.
9         * c-common.h (c_default_pointer_mode): Add declaration.
11 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
13         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
14         on record_builtin_type argument.
16 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
18         PR c/65120
19         * c-common.c (warn_logical_not_parentheses): Don't warn for
20         !x == 0 or !x != 0.
22 2015-03-07  Marek Polacek  <polacek@redhat.com>
24         PR sanitizer/65280
25         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
26         before trying to figure out whether we have a flexible array member.
28 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
29             Jonathan Wakely  <jwakely.gcc@gmail.com>
31         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
33 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
35         PR ada/65319
36         * c-ada-spec.c (print_destructor): Remove obsolete code.
38 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
40         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
41         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
42         DECL_TEMPLATE_RESULT emulations.
43         (dump_ada_template)): Add guard for TYPE_METHODS.
45 2015-02-27  Marek Polacek  <polacek@redhat.com>
47         PR c/65040
48         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
50 2015-02-27  Kai Tietz  <ktietz@redhat.com>
52         PR c/35330
53         * c-pragma.c (handle_pragma_weak): Do not try to create
54         weak/alias of declarations not being function, or variable
55         declarations.
57 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
59         PR libgomp/64625
60         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
61         Remove macros.
62         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
64 2015-02-16  Marek Polacek  <polacek@redhat.com>
66         PR c/65066
67         * c-format.c (check_format_types): Handle null param.
69 2015-02-13  Marek Polacek  <polacek@redhat.com>
71         PR c/65040
72         * c-format.c (check_format_types): Don't warn about different
73         signedness if the original value is in the range of WANTED_TYPE.
75 2015-02-12  Jason Merrill  <jason@redhat.com>
77         PR c++/64956
78         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
79         to the current highest version.
80         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
82 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
84         PR c/64824
85         PR c/64868
86         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
87         instead of RDIV_EXPR.  Use build_binary_op instead of
88         build2_loc.
90 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
92         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
93         to pass input_location as first argument.
95 2015-01-23  Tom de Vries  <tom@codesourcery.com>
97         PR libgomp/64672
98         * c.opt (fopenacc): Mark as LTO option.
100 2015-01-23  Tom de Vries  <tom@codesourcery.com>
102         PR libgomp/64707
103         * c.opt (fopenmp): Mark as LTO option.
105 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
107         PR c/63307
108         * cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
109         (compare_decls): Fix up formatting.
111 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
113         PR c/63307
114         * cilk.c: Include vec.h.
115         (struct cilk_decls): New structure.
116         (wrapper_parm_cb): Split this function to...
117         (fill_decls_vec): ...this...
118         (create_parm_list): ...and this.
119         (compare_decls): New function.
120         (for_local_cb): Remove.
121         (wrapper_local_cb): Ditto.
122         (build_wrapper_type): For now first traverse and fill vector of
123         declarations then sort it and then deal with sorted vector.
124         (cilk_outline): Ditto.
125         (declare_one_free_variable): Ditto.
127 2015-01-21  Jason Merrill  <jason@redhat.com>
129         PR c++/64629
130         * c-format.c (check_format_arg): Call decl_constant_value.
132 2015-01-19  Martin Liska  <mliska@suse.cz>
134         * c-common.c (handle_noicf_attribute): New function.
136 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
137             Bernd Schmidt  <bernds@codesourcery.com>
138             James Norris  <jnorris@codesourcery.com>
139             Cesar Philippidis  <cesar@codesourcery.com>
140             Ilmir Usmanov  <i.usmanov@samsung.com>
141             Jakub Jelinek  <jakub@redhat.com>
143         * c.opt (fopenacc): New option.
144         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
145         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
146         New macros.
147         * c-common.h (c_finish_oacc_wait): New prototype.
148         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
149         (c_finish_oacc_wait): New function.
150         * c-pragma.c (oacc_pragmas): New variable.
151         (c_pp_lookup_pragma, init_pragma): Handle it.
152         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
153         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
154         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
155         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
156         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
157         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
158         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
159         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
160         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
161         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
162         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
163         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
164         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
165         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
166         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
167         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
168         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
169         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
170         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
171         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
172         PRAGMA_OACC_CLAUSE_WORKER.
174 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
176         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
177         for the new option fstack-protector_explicit.
178         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
179         (handle_stack_protect_attribute): New function.
181 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
183         * c.opt: New option -Warray-bounds=.
185 2015-01-09  Michael Collison  <michael.collison@linaro.org>
187         * array-notation-common.c: Include hash-set.h, machmode.h,
188         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
189         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
190         * c-ada-spec.c: Ditto.
191         * c-cilkplus.c: Ditto.
192         * c-common.c: Include input.h due to flattening of tree.h.
193         Define macro GCC_C_COMMON_C.
194         * c-common.h: Flatten tree.h header files into c-common.h.
195         Remove include of tree-core.h.
196         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
197         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
198         fold-const.h, wide-int.h, and inchash.h due to
199         flattening of tree.h.
200         * c-dump.c: Ditto.
201         * c-format.c: Flatten tree.h header files into c-common.h.
202         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
203         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
204         fold-const.h, wide-int.h, and inchash.h due to
205         flattening of tree.h.
206         * c-dump.c: Include hash-set.h, machmode.h,
207         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
208         fold-const.h, wide-int.h, and inchash.h due to
209         flattening of tree.h.
210         * c-format.c: Include hash-set.h, machmode.h,
211         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
212         fold-const.h, wide-int.h, inchash.h and real.h due to
213         flattening of tree.h.
214         * c-gimplify.c: Include hash-set.h, machmode.h,
215         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
216         fold-const.h, wide-int.h, and inchash.h due to
217         flattening of tree.h.
218         * cilk.c: Ditto.
219         * c-lex.c: Ditto.
220         * c-omp.c: Ditto.
221         * c-opts.c: Ditto.
222         * c-pch.c: Ditto.
223         * c-ppoutput.c: Ditto.
224         * c-pragma.c: Ditto.
225         * c-pretty-print.c: Ditto.
226         * c-semantics.c: Ditto.
227         * c-ubsan.c: Ditto.
228         * stub-objc.c: Ditto.
230 2015-01-08  Jason Merrill  <jason@redhat.com>
232         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
233         do_ubsan_in_current_function.
234         (ubsan_maybe_instrument_reference_or_call): Likewise.
235         * c-ubsan.h: Declare it.
237 2015-01-08  Mike Stump  <mikestump@comcast.net>
239         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
241 2015-01-07  Marek Polacek  <polacek@redhat.com>
243         PR c/64440
244         * c-common.c (c_fully_fold_internal): Warn for division and modulo
245         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
247 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
249         PR c++/31397
250         * c.opt (Wsuggest-override): New option.
252 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
254         Update copyright years.
256 2015-01-05  Marek Polacek  <polacek@redhat.com>
258         PR c/64423
259         * c-common.c (warn_array_subscript_with_type_char): Add location_t
260         parameter.  Use it.
261         * c-common.h (warn_array_subscript_with_type_char): Update
262         declaration.
264 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
266         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
267         Control macro with flag_sized_deallocation.
269 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
271         * c.opt (Wdiscarded-array-qualifiers): New option.
273 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
275         PR preprocessor/63831
276         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
277         and __has_cpp_attribute here.
278         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
279         c_common_has_attribute.
280         * c-common.h (c_common_has_attribute): New prototype.
281         * c-lex.c (init_c_lex): Set cb->has_attribute to
282         c_common_has_attribute instead of cb_has_attribute.
283         (get_token_no_padding): New function.
284         (cb_has_attribute): Renamed to ...
285         (c_common_has_attribute): ... this.  No longer static.  Use
286         get_token_no_padding, require ()s, don't build TREE_LIST
287         unnecessarily, fix up formatting, adjust diagnostics, call
288         init_attributes.
290 2014-12-15  Jason Merrill  <jason@redhat.com>
292         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
293         (-Wsized-deallocation): New.
294         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
295         to on in C++14 and up.
297 2014-12-11  Jason Merrill  <jason@redhat.com>
299         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
301         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
302         we aren't complaining about VLAs.
304 2014-12-06  Marek Polacek  <polacek@redhat.com>
306         PR tree-optimization/64183
307         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
308         shift-expression if it is integer_type_node.  Use types_compatible_p.
310 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
312         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
313         last argument from create_tmp_var_raw and create_tmp_var calls.
314         * cilk.c (gimplify_cilk_spawn): Likewise.
315         * c-omp.c (c_finish_omp_atomic): Likewise.
317 2014-11-28  Marek Polacek  <polacek@redhat.com>
319         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
320         instead of unsigned_type_node.
322 2014-11-28  Marek Polacek  <polacek@redhat.com>
324         PR c/63862
325         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
326         to op1_utype.
327         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
328         expression to unsigned_type_node.
330 2014-11-20  Mark Wielaard  <mjw@redhat.com>
332         PR debug/38757
333         * c-opts.c (set_std_c89): Set lang_hooks.name.
334         (set_std_c99): Likewise.
335         (set_std_c11): Likewise.
336         (set_std_cxx98): Likewise.
337         (set_std_cxx11): Likewise.
338         (set_std_cxx14): Likewise.
339         (set_std_cxx1z): Likewise.
341 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
343         PR target/63764
344         * c-common.h (convert_vector_to_pointer_for_subscript): Change
345         return type to bool.
346         * c-common.c: Include gimple-expr.h.
347         (convert_vector_to_pointer_for_subscript): Change return type to
348         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
349         and copy it into a TARGET_EXPR and use that instead of *vecp
350         directly.
352 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
354         Merger of git branch "gimple-classes-v2-option-3".
355         * ChangeLog.gimple-classes: New.
356         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
357         from being just a vec<gimple> to a vec<gbind *>.
359 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
361         PR sanitizer/63813
362         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
363         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
364         get_pointer_alignment for non-pointers.  Use ptype, or if it is
365         reference type, corresponding pointer type, as type of kind
366         argument.
367         (ubsan_maybe_instrument_reference,
368         ubsan_maybe_instrument_member_call): Adjust callers.
370 2014-11-15  Marek Polacek  <polacek@redhat.com>
372         PR middle-end/63884
373         * array-notation-common.c (is_sec_implicit_index_fn): Return false
374         for NULL fndecl.
375         (extract_array_notation_exprs): Return for NULL node.
377 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
379         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
380         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
382 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
384         PR c/59708
385         * c-common.c (check_builtin_function_arguments): Handle
386         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
388 2014-11-10  Andi Kleen  <ak@linux.intel.com>
390         PR c/60804
391         * c-common.h (check_no_cilk): Declare.
392         * cilk.c (get_error_location): New function.
393         (check_no_cilk): Dito.
395 2014-11-10  Andi Kleen  <ak@linux.intel.com>
397         * cilk.c (recognize_spawn): Use expression location
398         for error message.
400 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
402         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
404 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
406         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
407         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
408         (__cpp_range_based_for, __cpp_initializer_lists,
409         __cpp_delegating_constructors, __cpp_nsdmi,
410         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
411         for C++11; (__cpp_attribute_deprecated): Remove in favor of
412         __has_cpp_attribute.
413         * c-lex.c (cb_has_attribute): New callback CPP function;
414         (init_c_lex): Set has_attribute callback.
416 2014-11-04  Richard Biener  <rguenther@suse.de>
418         * c-common.c (shorten_compare): Do not shorten mixed
419         DFP and non-DFP compares.
421 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
423         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
424         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
425         Commentary and rearrangement of tests.
426         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
427         Commentary and rearrangement of tests.
428         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
429         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
431 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
433         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
434         enum from machine_mode.
436 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
438         * c-common.c: Adjust include files.
439         * c-gimplify.c: Ditto.
440         * cilk.c: Ditto.
441         * c-pragma.c: Ditto.
442         * c-ubsan.c: Ditto.
444 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
446         * c-gimplify.c: Adjust include files.
448 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
450         PR c++/53061
451         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
452         c_common_initialize_diagnostics.
453         * c-common.h: Likewise.
455 2014-10-24  Marek Polacek  <polacek@redhat.com>
457         PR c/56980
458         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
459         print "struct"/"union"/"enum" for typedefed names.
461 2014-10-23  Marek Polacek  <polacek@redhat.com>
463         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
464         in unsigned type.
466 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
467             Yury Gribov  <y.gribov@samsung.com>
469         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
470         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
471         instead of flag_sanitize_recover as bool flag.
473 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
475         * cilk.c: Revert previous change.
477 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
479         PR c/63307
480         * cilk.c: Include vec.h.
481         (struct cilk_decls): New structure.
482         (wrapper_parm_cb): Split this function to...
483         (fill_decls_vec): ...this...
484         (create_parm_list): ...and this.
485         (compare_decls): New function.
486         (for_local_cb): Remove.
487         (wrapper_local_cb): Ditto.
488         (build_wrapper_type): For now first traverse and fill vector of
489         declarations then sort it and then deal with sorted vector.
490         (cilk_outline): Ditto.
491         (declare_one_free_variable): Ditto.
493 2014-10-17  Marek Polacek  <polacek@redhat.com>
495         * c-opts.c (c_common_post_options): Set warn_implicit_int.
496         * c.opt (Wimplicit-int): Initialize to -1.
498 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
500         * c-pragma.c: Adjust include files.
501         * c-semantics.c: Likewise.
503 2014-10-16  DJ Delorie  <dj@redhat.com>
505         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
506         multiples of bytes.
508 2014-10-14  Jason Merrill  <jason@redhat.com>
510         PR c++/63455
511         * c-common.h (CPP_PREPARSED_EXPR): New.
512         (N_CP_TTYPES): Adjust.
514 2014-10-15  Marek Polacek  <polacek@redhat.com>
516         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
518 2014-10-14  DJ Delorie  <dj@redhat.com>
520         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
521         types, not just __int128.
522         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
523         types, not just __int128.
524         (cpp_atomic_builtins): Round pointer sizes up.
525         (type_suffix): Use type precision, not specific types.
526         * c-common.c (c_common_reswords): Remove __int128 special case.
527         (c_common_type_for_size): Check for all __intN types, not just
528         __int128.
529         (c_common_type_for_mode): Likewise.
530         (c_common_signed_or_unsigned_type): Likewise.
531         (c_build_bitfield_integer_type): Likewise.
532         (c_common_nodes_and_builtins): Likewise.
533         (keyword_begins_type_specifier): Likewise.
534         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
535         __intN variants.
537 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
539         * c-common.c: Use hash_table instead of hashtab.
541 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
543         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
544         C++11 section.
546 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
548         PR c++/54427
549         PR c++/57198
550         PR c++/58845
551         * c-common.c (warn_logical_operator): Punt for vectors.
553 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
555         Implement SD-6: SG10 Feature Test Recommendations
556         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
557         macros and the __has_header macro.
559 2014-09-30  Jason Merrill  <jason@redhat.com>
561         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
562         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
563         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
565         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
566         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
568         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
569         * c-common.c (c_common_reswords): Remove __is_convertible_to.
571 2014-09-24  Marek Polacek  <polacek@redhat.com>
573         PR c/61405
574         PR c/53874
575         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
577 2014-09-23  Andi Kleen  <ak@linux.intel.com>
579         * c-common.c (handle_no_reorder_attribute): New function.
580         (c_common_attribute_table): Add no_reorder attribute.
582 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
584         * c-cppbuiltin.c (c_cpp_builtins): Define
585         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
586         modes.
588 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
590         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
591         for supported floating-point modes.
593 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
595         * c.opt (Wpsabi): Use LangEnabledBy.
596         * c-opts.c (c_common_handle_option): Do not handle here.
598 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
600         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
601         macros for floating-point modes.
603 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
605         PR target/58757
606         * c-cppbuiltin.c (builtin_define_float_constants): Correct
607         __*_DENORM_MIN__ without denormals.
609 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
611         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
612         ubsan_instrument_vla, ubsan_instrument_return): Adjust
613         ubsan_create_data callers.
614         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
615         index is constant or BIT_AND_EXPR with constant mask and is
616         small enough for the bound.
617         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
618         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
620 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
622         * c.opt: Add CppReason to various flags.
623         (Wdate-time): Re-sort.
624         * c-common.c: Include c-common.h earlier.
625         (struct reason_option_codes_t): Delete.
626         (c_option_controlling_cpp_error): Prefix global type and struct
627         with cpp_.
629 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
631         * c.opt (Wnormalized): New.
632         (Wnormalized=): Use Enum and Reject Negative.
633         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
635 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
637         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
638         digits of floating-point modes if -fbuilding-libgcc.
640 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
642         * c-cppbuiltin.c (c_cpp_builtins): Also define
643         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
644         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
645         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
646         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
647         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
648         __LIBGCC_STACK_GROWS_DOWNWARD__,
649         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
650         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
651         __LIBGCC_DWARF_FRAME_REGISTERS__,
652         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
653         __LIBGCC_STACK_POINTER_REGNUM__ and
654         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
655         (builtin_define_with_value): Handle backslash-escaping in string
656         macro values.
658 2014-09-05  Richard Biener  <rguenther@suse.de>
660         PR middle-end/63148
661         * c-format.c (check_format_arg): Properly handle
662         effectively signed POINTER_PLUS_EXPR offset.
664 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
666         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
667         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
668         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
669         and Init.
670         * c-opts.c (c_common_handle_option): Do not handle here.
671         (sanitize_cpp_opts): Likewise.
672         * c-common.c (struct reason_option_codes_t): Handle
673         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
675 2014-09-03  Marek Polacek  <polacek@redhat.com>
677         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
679 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
680             Balaji V. Iyer  <balaji.v.iyer@intel.com>
681             Igor Zamyatin  <igor.zamyatin@intel.com>
683         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
684         * c-common.c (c_common_reswords): Added _Cilk_for.
685         * c-common.h (enum rid): Added RID_CILK_FOR.
686         (cilk_for_number_of_iterations): Add declaration.
687         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
688         CILK_FOR.
689         * c-pragma.c (init_pragma): Register "grainsize" pragma.
690         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
692 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
694         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
695         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
696         Wundef): Use CPP, Var and Init.
697         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
699 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
701         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
702         * c-opts.c (c_common_handle_option): Do not handle here.
704 2014-08-25  Jason Merrill  <jason@redhat.com>
706         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
707         -std=c++14 and -std=gnu++14, rather than the reverse.
708         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
709         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
710         * c-common.h (cxx_dialect): Remove cxx1y.
712 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
714         * c-common.h (enum cxx_dialect): Add cxx14.
715         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
716         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
717         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
719 2014-08-22  Jason Merrill  <jason@redhat.com>
721         * c.opt (std=gnu++17): Fix alias.
723 2014-08-22  Marek Polacek  <polacek@redhat.com>
725         PR c++/62199
726         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
727         check for vector types.  Drop LHS argument.
728         * c-common.h (warn_logical_not_parentheses): Adjust.
730 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
732         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
733         (Wmultichar): Likewise.
734         (Wdate-time): Use C-family languages instead of Common. Use CPP
735         and Var.
736         * c-opts.c (c_common_handle_option): Do not handle the above
737         options here.
738         (sanitize_cpp_opts): Likewise.
740 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
742         PR fortran/44054
743         * c-opts.c: Include tree-diagnostics.h.
744         (c_diagnostic_finalizer): New.
745         (c_common_initialize_diagnostics): Use it.
747 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
749         PR preprocessor/51303
750         * c-common.c (struct reason_option_codes_t option_codes):
751         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
753 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
755         PR c/60975
756         PR c/53063
757         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
758         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
759         (c_common_post_options): Call init_global_opts_from_cpp.
760         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
762 2014-08-19  Marek Polacek  <polacek@redhat.com>
764         PR c++/62153
765         * c-common.c (maybe_warn_bool_compare): New function.
766         * c-common.h (maybe_warn_bool_compare): Declare.
767         * c.opt (Wbool-compare): New option.
769 2014-08-19  Marek Polacek  <polacek@redhat.com>
771         * c.opt (Wc99-c11-compat): New option.
773 2014-08-19  Marek Polacek  <polacek@redhat.com>
775         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
776         to warn_c90_c99_compat.
777         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
778         to -1.
780 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
781             Steven Bosscher  <steven@gcc.gnu.org>
783         PR c/52952
784         * c-format.c: Add extra_arg_loc and format_string_loc to struct
785         format_check_results.
786         (check_function_format): Use true and add comment for boolean
787         argument.
788         (finish_dollar_format_checking): Use explicit location when warning.
789         (check_format_info): Likewise.
790         (check_format_arg): Set extra_arg_loc and format_string_loc.
791         (check_format_info_main): Use explicit location when warning.
792         (check_format_types): Pass explicit location.
793         (format_type_warning): Likewise.
795 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
797         PR fortran/44054
798         * c-format.c: Handle Fortran flags.
800 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
802         PR other/61962
803         * array-notation-common.c (find_rank): Added handling for other
804         types of references.
806 2014-08-10  Marek Polacek  <polacek@redhat.com>
808         PR c/51849
809         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
810         * c.opt (Wc90-c99-compat): Add option.
812 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
814         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
816 2014-08-03  Marek Polacek  <polacek@redhat.com>
818         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
819         (c_add_case_label): Pass loc to check_case_value.
821 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
823         * cilk.c: Use hash_map instead of pointer_map.
825 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
827         * c-gimplify.c: Use hash_set instead of pointer_set.
829 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
831         PR middle-end/61455
832         * array-notation-common.c (extract_array_notation_exprs): Handling
833         of DECL_EXPR added.
835 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
837         * c-common.h (min_align_of_type): Removed prototype.
838         * c-common.c (min_align_of_type): Removed.
839         * c-ubsan.h (ubsan_maybe_instrument_reference,
840         ubsan_maybe_instrument_member_call): New prototypes.
841         * c-ubsan.c: Include stor-layout.h and builtins.h.
842         (ubsan_maybe_instrument_reference_or_call,
843         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
844         functions.
846 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
848         PR c++/60517
849         * c.opt (-Wreturn-local-addr): Move to common.opt.
851 2014-07-30  Jason Merrill  <jason@redhat.com>
853         PR c++/61659
854         PR c++/61687
855         Revert:
856         * c.opt (-fuse-all-virtuals): New.
858 2014-07-30  Tom Tromey  <tromey@redhat.com>
860         PR c/59855
861         * c.opt (Wdesignated-init): New option.
862         * c-common.c (c_common_attribute_table): Add "designated_init".
863         (handle_designated_init): New function.
865 2014-07-24  Marek Polacek  <polacek@redhat.com>
867         PR c/57653
868         * c-opts.c (c_finish_options): If -imacros is in effect, return.
870 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
872         PR preprocessor/60723 - missing system-ness marks for macro tokens
873         * c-ppoutput.c (struct print::prev_was_system_token): New data
874         member.
875         (init_pp_output): Initialize it.
876         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
877         (do_line_change): Return a flag saying if a line marker was
878         emitted or not.
879         (scan_translation_unit): Detect if the system-ness of the token we
880         are about to emit is different from the one of the previously
881         emitted token.  If so, emit a line marker.  Avoid emitting useless
882         adjacent line markers.  Avoid emitting line markers for tokens
883         originating from the expansion of built-in macros.
884         (scan_translation_unit_directives_only): Adjust.
886 2014-07-15  Marek Polacek  <polacek@redhat.com>
888         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
889         TYPE_MAX_VALUE is NULL.
891 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
893         PR middle-end/61294
894         * c.opt (Wmemset-transposed-args): New warning.
896 2014-07-10  Jason Merrill  <jason@redhat.com>
898         PR c++/61659
899         PR c++/61687
900         * c.opt (-fuse-all-virtuals): New.
902 2014-07-09  Richard Biener  <rguenther@suse.de>
904         PR c-family/61741
905         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
906         using unsigned arithmetic if overflow does not wrap instead of
907         if overflow is undefined.
909 2014-07-06  Marek Polacek  <polacek@redhat.com>
911         PR c/6940
912         * c.opt (Wsizeof-array-argument): New option.
914 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
916         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
917         comments->count <= 1, as comments->entries might be NULL.
919 2014-07-01  Marek Polacek  <polacek@redhat.com>
921         * c.opt (Wint-conversion): New option.
923 2014-07-01  Marek Polacek  <polacek@redhat.com>
925         PR c/58286
926         * c.opt (Wincompatible-pointer-types): New option.
928 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
930         PR c++/51400
931         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
932         Do not discard TYPE_QUALS of type.
934 2014-06-26  Jason Merrill  <jason@redhat.com>
936         * c-common.h (enum cxx_dialect): Add cxx1z.
937         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
938         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
940 2014-06-26  Teresa Johnson  <tejohnson@google.com>
942         * c-common.h (get_dump_info): Declare.
943         * c-gimplify.c (c_genericize): Use saved dump files.
944         * c-opts.c (c_common_parse_file): Begin and end dumps
945         once around parsing invocation.
946         (get_dump_info): New function.
948 2014-06-23  Marek Polacek  <polacek@redhat.com>
949             Andrew MacLeod  <amacleod@redhat.com>
951         PR c/61553
952         * c-common.c (get_atomic_generic_size): Don't segfault if the
953         type doesn't have a size.
955 2014-06-20  Marek Polacek  <polacek@redhat.com>
957         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
958         (ubsan_walk_array_refs_r): New function.
959         (c_genericize): Instrument array bounds.
960         * c-ubsan.c: Include "internal-fn.h".
961         (ubsan_instrument_division): Mark instrumented arrays as having
962         side effects.  Adjust ubsan_type_descriptor call.
963         (ubsan_instrument_shift): Likewise.
964         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
965         (ubsan_instrument_bounds): New function.
966         (ubsan_array_ref_instrumented_p): New function.
967         (ubsan_maybe_instrument_array_ref): New function.
968         * c-ubsan.h (ubsan_instrument_bounds): Declare.
969         (ubsan_array_ref_instrumented_p): Declare.
970         (ubsan_maybe_instrument_array_ref): Declare.
972 2014-06-20  Hale Wang  <hale.wang@arm.com>
974         PR lto/61123
975         * c.opt (fshort-enums): Add to LTO.
976         * c.opt (fshort-wchar): Likewise.
978 2014-06-16  Marek Polacek  <polacek@redhat.com>
980         PR c/60439
981         * c.opt (Wswitch-bool): Add Var.
983 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
985         PR middle-end/61486
986         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
987         #pragma omp target teams or
988         #pragma omp {,target }teams distribute simd.
990 2014-06-12  Jason Merrill  <jason@redhat.com>
992         * c.opt (Wabi=, fabi-compat-version): New.
993         * c-opts.c (c_common_handle_option): Handle -Wabi=.
994         (c_common_post_options): Handle flag_abi_compat_version default.
995         Disallow -fabi-compat-version=1.
996         * c-common.h (abi_version_crosses): New.
998 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
1000         * c-common.c (handle_section_attribute): Update handling for
1001         section names that are no longer trees.
1003 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1005         PR fortran/60928
1006         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1007         (omp_pragmas): ... back here.
1009 2014-06-05  Marek Polacek  <polacek@redhat.com>
1011         PR c/49706
1012         * c-common.c (warn_logical_not_parentheses): New function.
1013         * c-common.h (warn_logical_not_parentheses): Declare.
1014         * c.opt (Wlogical-not-parentheses): New option.
1016 2014-06-04  Marek Polacek  <polacek@redhat.com>
1018         PR c/30020
1019         * c-common.c (check_case_bounds): Add location parameter.
1020         Use it.
1021         (c_add_case_label): Pass loc to check_case_bounds.
1023 2014-06-03  Marek Polacek  <polacek@redhat.com>
1025         PR c/60439
1026         * c.opt (Wswitch-bool): New option.
1028 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1030         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1031         Remove prototypes.
1032         (record_types_used_by_current_var_decl): Move prototype to where
1033         it belongs.
1035         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1036         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1037         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1039 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1041         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1042         * c-common.c (c_common_nodes_and_builtins): Don't initialize
1043         void_zero_node.
1044         * c-pretty-print.c (pp_c_void_constant): New function.
1045         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1046         (c_pretty_printer::expression): Handle VOID_CST.
1047         * cilk.c (extract_free_variables): Likewise.
1048         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1049         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1051 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1053         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1054         * c-pragma.c (push_alignment): Adjust.
1055         (handle_pragma_push_options): Likewise.
1057 2014-05-09  Marek Polacek  <polacek@redhat.com>
1059         PR c/50459
1060         * c-common.c (check_user_alignment): Return -1 if alignment is error
1061         node.
1062         (handle_aligned_attribute): Don't call default_conversion on
1063         FUNCTION_DECLs.
1064         (handle_vector_size_attribute): Likewise.
1065         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1066         (handle_sentinel_attribute): Call default_conversion and allow even
1067         integral types as an argument.
1069 2014-05-08  Marek Polacek  <polacek@redhat.com>
1071         PR c/61053
1072         * c-common.c (min_align_of_type): New function factored out from...
1073         (c_sizeof_or_alignof_type): ...here.
1074         * c-common.h (min_align_of_type): Declare.
1076 2014-05-08  Marek Polacek  <polacek@redhat.com>
1078         PR c/61077
1079         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1080         parameter type of main.
1082 2014-05-07  DJ Delorie  <dj@redhat.com>
1084         * c-cppbuiltin.c (print_bits_of_hex): New.
1085         (builtin_define_type_minmax): Print values using hex so as not to
1086         require a pre-computed list of string values.
1088 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1089             Mike Stump  <mikestump@comcast.net>
1090             Richard Sandiford  <rdsandiford@googlemail.com>
1092         * c-ada-spec.c: Include wide-int.h.
1093         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1094         (dump_generic_ada_node): Use wide-int interfaces.
1095         * c-common.c: Include wide-int-print.h.
1096         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1097         (pointer_int_sum): Use wide-int interfaces.
1098         (c_common_nodes_and_builtins): Use make_int_cst.
1099         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1100         (handle_alloc_size_attribute): Use wide-int interfaces.
1101         (get_nonnull_operand): Likewise.
1102         * c-format.c (get_constant): Use tree_fits_uhwi_p.
1103         * c-lex.c: Include wide-int.h.
1104         (narrowest_unsigned_type): Take a widest_int rather than two
1105         HOST_WIDE_INTs.
1106         (narrowest_signed_type): Likewise.
1107         (interpret_integer): Update accordingly.  Use wide-int interfaces.
1108         (lex_charconst): Use wide-int interfaces.
1109         * c-pretty-print.c: Include wide-int.h.
1110         (pp_c_integer_constant): Use wide-int interfaces.
1111         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1112         INT_CST_LT_UNSIGNED.
1114 2014-05-06  Richard Biener  <rguenther@suse.de>
1116         * c-opts.c (c_common_post_options): For -freestanding,
1117         -fno-hosted and -fno-builtin disable pattern recognition
1118         if not enabled explicitely.
1120 2014-05-02  Marek Polacek  <polacek@redhat.com>
1122         * c.opt (Wsizeof-pointer-memaccess): Describe option.
1124 2014-05-01  Marek Polacek  <polacek@redhat.com>
1126         PR c/43245
1127         * c.opt (Wdiscarded-qualifiers): Add.
1129 2014-04-30  Marek Polacek  <polacek@redhat.com>
1131         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
1132         INT_MIN / -1 sanitization only for integer types.
1134 2014-04-25  Marek Polacek  <polacek@redhat.com>
1136         PR c/18079
1137         * c-common.c (handle_noinline_attribute): Warn if the attribute
1138         conflicts with always_inline attribute.
1139         (handle_always_inline_attribute): Warn if the attribute conflicts
1140         with noinline attribute.
1142 2014-04-25  Marek Polacek  <polacek@redhat.com>
1144         PR c/60156
1145         * c-common.c (check_main_parameter_types): Warn about variadic main.
1147 2014-04-24  Mike Stump  <mikestump@comcast.net>
1149         * c.opt (Wshadow-ivar): Default to on.
1151 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
1153         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1155 2014-04-23  Marek Polacek  <polacek@redhat.com>
1157         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1159 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1161         PR sanitizer/60275
1162         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1163         if flag_sanitize_undefined_trap_on_error.
1164         (ubsan_instrument_division, ubsan_instrument_shift,
1165         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
1166         if !flag_sanitize_recover.
1168 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
1170         PR libstdc++/43622
1171         * c-common.c (registered_builtin_types): Make non-static.
1172         * c-common.h (registered_builtin_types): Declare.
1174 2014-04-14  Richard Biener  <rguenther@suse.de>
1175         Marc Glisse  <marc.glisse@inria.fr>
1177         PR c/60819
1178         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1179         apply may-alias the scalar pointer type when applicable.
1181 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1183         PR middle-end/60467
1184         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1185         as possible argument for Cilk_spawn.
1187 2014-04-11  Tobias Burnus  <burnus@net-b.de>
1189         PR c/60194
1190         * c.opt (Wformat-signedness): Add
1191         * c-format.c(check_format_types): Use it.
1193 2014-04-11  Jason Merrill  <jason@redhat.com>
1195         PR c++/57926
1196         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1197         default_conversion for an array argument.
1199 2014-04-08  Marek Polacek  <polacek@redhat.com>
1201         PR sanitizer/60745
1202         * c-ubsan.c: Include asan.h.
1203         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1205 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1207         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1209 2014-04-02  Marek Polacek  <polacek@redhat.com>
1211         * c-common.h (c_expand_expr): Remove declaration.
1213 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1215         PR c++/60689
1216         * c-common.c (add_atomic_size_parameter): When creating new
1217         params vector, push the size argument first.
1219 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
1221         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1222         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1223         ubsan_create_data callers.
1225 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
1227         PR debug/60603
1228         * c-opts.c (c_finish_options): Restore cb_file_change call to
1229         <built-in>.
1231 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
1233         PR middle-end/36282
1234         * c-pragma.c (apply_pragma_weak): Only look at
1235         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1236         DECL_ASSEMBLER_NAME_SET_P (decl).
1237         (maybe_apply_pending_pragma_weaks): Exit early if
1238         vec_safe_is_empty (pending_weaks) rather than only when
1239         !pending_weaks.
1240         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
1241         set assembler name back to NULL afterwards.
1243 2014-03-11  Jason Merrill  <jason@redhat.com>
1245         * c.opt: Add -std=gnu++14.
1247 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
1249         * c-opts.c (c_common_post_options): Don't override
1250         -ffp-contract=fast if unsafe-math-optimizations is on.
1252 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
1254     * c.opt: Enable LTO FE for fshort-double.
1256 2014-03-07  Jason Merrill  <jason@redhat.com>
1258         * c.opt: Add -std=c++14.
1260 2014-03-06  Marek Polacek  <polacek@redhat.com>
1262         PR c/60197
1263         * cilk.c (contains_cilk_spawn_stmt): New function.
1264         (contains_cilk_spawn_stmt_walker): Likewise.
1265         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1266         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1268 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
1270         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1271         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1272         even when flag_preprocess_only.
1274 2014-02-26  Jason Merrill  <jason@redhat.com>
1276         PR c++/59231
1277         PR c++/11586
1278         * c-common.c (shorten_compare): Don't check
1279         c_inhibit_evaluation_warnings.
1281 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
1283         PR c/37743
1284         * c-common.c (c_common_nodes_and_builtins): When initializing
1285         c_uint{16,32,64}_type_node, also set corresponding
1286         uint{16,32,64}_type_node to the same value.
1288         PR c++/60267
1289         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1290         for PRAGMA_IVDEP if flag_preprocess_only.
1292 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
1294         PR c/60101
1295         * c-common.c (merge_tlist): If copy is true, call new_tlist,
1296         if false, add ADD itself, rather than vice versa.
1297         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1298         copy.  For SAVE_EXPR, only call merge_tlist once.
1300 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
1302         PR middle-end/60092
1303         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1304         and tree_to_uhwi.
1305         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1306         functions.
1307         (c_common_attribute_table): Add alloc_align and assume_aligned
1308         attributes.
1310 2014-02-06  Marek Polacek  <polacek@redhat.com>
1312         PR c/60087
1313         * c-common.c (warn_for_sign_compare): Call warning_at with location
1314         instead of warning.
1316 2014-02-05  Marek Polacek  <polacek@redhat.com>
1318         PR c/53123
1319         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1320         statement.
1322 2014-02-04  Marek Polacek  <polacek@redhat.com>
1324         PR c/60036
1325         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1326         SAVE_EXPR.
1328 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
1330         PR c++/53017
1331         PR c++/59211
1332         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1333         handle_vector_size_attribute, handle_nonnull_attribute): Call
1334         default_conversion on the attribute argument.
1335         (handle_nonnull_attribute): Increment the argument number.
1337 2014-01-31  Marek Polacek  <polacek@redhat.com>
1339         PR c/59963
1340         * c-common.c (add_atomic_size_parameter): Pass vNULL to
1341         build_function_call_vec.
1342         (resolve_overloaded_builtin): Likewise.
1343         * c-common.h (build_function_call_vec): Adjust declaration.
1345 2014-01-30  Marek Polacek  <polacek@redhat.com>
1347         PR c/59940
1348         * c-common.h (unsafe_conversion_p): Adjust declaration.
1349         (warnings_for_convert_and_check): Likewise.
1350         (convert_and_check): Likewise.
1351         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
1352         expansion_point_location_if_in_system_header on it.
1353         (warnings_for_convert_and_check): Add location parameter.  Call
1354         expansion_point_location_if_in_system_header on it.  Use it.
1355         (convert_and_check): Add location parameter.  Use it.
1356         (conversion_warning): Likewise.
1357         (c_add_case_label): Adjust convert_and_check calls.
1358         (scalar_to_vector): Adjust unsafe_conversion_p calls.
1360 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1362         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1363         flag_cilkplus.
1364         * c-pragma.c (init_pragma): Likewise.
1365         * c.opt: Likewise.
1367 2014-01-23  Marek Polacek  <polacek@redhat.com>
1369         PR c/59846
1370         * c-common.c (shorten_compare): Add location_t parameter.
1371         * c-common.h (shorten_binary_op): Adjust declaration.
1373 2014-01-23  Marek Polacek  <polacek@redhat.com>
1375         PR c/58346
1376         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1377         * c-common.h: Declare it.
1379 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
1381         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1382         * c-ada-spec.c (dump_ads): Likewise.
1383         (cpp_check): Likewise.
1384         (dump_ada_specs): Likewise.
1386 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
1388         PR c++/49718
1389         * c-common.c (handle_no_instrument_function_attribute): Allow
1390         no_instrument_function attribute in class member
1391         definition/declaration.
1393 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1395         PR c/58943
1396         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1397         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
1398         being COMPOUND_EXPR.
1399         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1400         operand a SAVE_EXPR and second MODIFY_EXPR.
1402 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1404         PR target/58115
1405         * c-pch.c (c_common_write_pch): Call
1406         prepare_target_option_nodes_for_pch.
1408 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1410         Update copyright years
1412 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1414         * array-notation-common.c, c-cilkplus.c: Use the standard form for
1415         the copyright notice.
1417 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
1419         * c-ada-spec.c (print_constructor): New function.
1420         (print_destructor): Retrieve the origin of the destructor.
1421         (print_ada_declaration): Revamp handling of constructors/destructors.
1423 2013-12-23  Stuart Hastings <stuart@apple.com>
1424             Bill Maddox  <maddox@google.com>
1425             Jason Merrill  <jason@redhat.com>
1427         * c.opt: Add -fdeclone-ctor-dtor.
1428         * c-opts.c (c_common_post_options): Default to on iff -Os.
1430 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1432         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1433         attribute.
1434         * c-pragma.h (enum pragma_cilk_clause): Remove.
1435         (enum pragma_omp_clause):  Added the following fields:
1436         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1437         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1438         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1439         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1440         PRAGMA_CILK_CLAUSE_UNIFORM.
1442         
1443 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1445         * cilk.c (cilk_outline): Made this function non-static.
1446         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1447         (create_cilk_wrapper): Added a new parameter: a function pointer.
1448         (c_install_body_w_frame_cleanup): Remove
1449         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1450         * c-common.h (cilk_outline): New prototype.
1451         (gimplify_cilk_spawn): Removed two parameters.
1452         (cilk_install_body_with_frame_cleanup): New prototype.
1453         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1454         CILK_SPAWN_STMT case.
1456 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1458         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1460         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1461         (int_array_type_node): Remove.
1462         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1464 2013-12-05  Marek Polacek  <polacek@redhat.com>
1466         PR c/52023
1467         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1468         [ADJUST_FIELD_ALIGN].
1470 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1472         PR c/52023
1473         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1474         and check field alignment if set.
1475         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1476         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1478 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1479             Marek Polacek  <polacek@redhat.com>
1481         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1482         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1484 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1486         PR c/59309
1487         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1488         arguments.
1490 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1492         PR c/59280
1493         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1494         goto invalid.  If it is error_mark_node, don't issue further
1495         diagnostics.
1497 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1499         * c.opt (Wopenmp-simd): New.
1501 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1503         * c-ubsan.h (ubsan_instrument_return): New prototype.
1504         * c-ubsan.c (ubsan_instrument_return): New function.
1506 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1508         * c-common.c: Add required include files from gimple.h.
1509         * c-gimplify.c: Likewise
1510         * cilk.c: Likewise
1512 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1514         * c-common.c (unsafe_conversion_p): Remove use of
1515         EXPR_LOC_OR_HERE macro.
1516         (conversion_warning): Likewise.
1517         (warnings_for_convert_and_check): Likewise.
1518         (warn_for_collisions_1): Likewise.
1519         (shorten_compare): Likewise, and remove use of in_system_header
1520         macro, using the location from the former.
1521         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1522         (cb_def_pragma): Remove use of in_system_header macro.
1523         (lex_string): Likewise.
1524         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1526 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1527             Mike Stump  <mikestump@comcast.net>
1528             Richard Sandiford  <rdsandiford@googlemail.com>
1530         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1531         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1532         tree_fits_shwi_p or tree_fits_uhwi_p.
1533         (dump_generic_ada_node): Likewise.
1534         * c-format.c (check_format_arg): Likewise.
1535         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1537 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1539         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1541 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1543         PR c/53001
1544         * c-common.c (unsafe_conversion_p): Make this function
1545         return an enumeration with more detail.
1546         (conversion_warning): Use the new return type of
1547         unsafe_conversion_p to separately warn either about conversions
1548         that lower floating point number precision or about the other
1549         kinds of conversions.
1550         * c-common.h (enum conversion_safety): New enumeration.
1551         (unsafe_conversion_p): switching return type to
1552         conversion_safety enumeration.
1553         * c.opt: Adding new warning -Wfloat-conversion and
1554         enabling it with -Wconversion.
1556 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1558         * c-opts.c: Include plugin.h.
1559         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1561 2013-11-19  Marek Polacek  <polacek@redhat.com>
1563         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1564         call.
1565         (ubsan_instrument_shift): Likewise.
1566         (ubsan_instrument_vla): Likewise.
1568 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1570         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1571         cast to unsigned type.
1573 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1575         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1576         tree_low_cst.
1577         (complete_array_type): Update comment to refer to tree_to_[su]hwi
1578         rather than tree_low_cst.
1580 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1582         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1583         tree_to_uhwi throughout.
1585 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1587         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1588         tree_low_cst (..., 0) with tree_to_shwi throughout.
1590 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1592         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1593         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1595 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1597         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1598         host_integerp (..., 0) with tree_fits_shwi_p throughout.
1600 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1602         * c-cilkplus.c: New file.
1603         * c-common.c (readonly_error): Add location argument.
1604         * c-common.h (readonly_error): Same.
1605         (c_finish_cilk_clauses): Protoize.
1606         (c_check_cilk_loop): Same.
1607         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1608         Do not fail on error_mark_node.
1609         Abstract increment canonicalization to here...
1610         (c_omp_for_incr_canonicalize_ptr): New.
1611         c-pragma.c (init_pragma): Register "simd" pragma.
1612         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1613         (enum pragma_cilk_clause): New.
1615 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1617         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1618         wchar_type and host_integerp checks.
1620 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1622         * c-common.c: Likewise.
1623         * c-gimplify.c: Likewise.
1624         * cilk.c: Likewise.
1626 2013-11-14  Diego Novillo  <dnovillo@google.com>
1628         * c-common.c: Include fold-const.h.
1629         Include stor-layout.h.
1630         Include calls.h.
1631         Include stringpool.h.
1632         Include attribs.h.
1633         Include varasm.h.
1634         Include trans-mem.h.
1635         * c-cppbuiltin.c: Include stor-layout.h.
1636         Include stringpool.h.
1637         * c-format.c: Include stringpool.h.
1638         * c-lex.c: Include stringpool.h.
1639         Include stor-layout.h.
1640         * c-pragma.c: Include stringpool.h.
1641         Include attribs.h.
1642         Include varasm.h.
1643         Include gcc-symtab.h.
1644         * c-pretty-print.c: Include stor-layout.h.
1645         Include attribs.h.
1646         * cilk.c: Include stringpool.h.
1647         Include calls.h.
1649 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1651         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1652         * c-common.c (c_common_reswords): Add __auto_type.
1653         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1655 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1657         * c-common.c: Include gimplify.h.
1658         * c-gimplify.c: Likewise.
1659         * cilk.c: Likewise.
1660         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1661         * c-ubsan.c: Don't include gimple.h.
1663 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1665         * c-common.c (c_common_reswords): Add _Thread_local.
1667 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1669         * c-common.c (atomic_size_supported_p): New function.
1670         (resolve_overloaded_atomic_exchange)
1671         (resolve_overloaded_atomic_compare_exchange)
1672         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1673         Use it instead of comparing size with a local list of sizes.
1675 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
1676             Joseph Myers  <joseph@codesourcery.com>
1678         * c-common.h (enum rid): Add RID_ATOMIC.
1679         * c-common.c (c_common_reswords): Add _Atomic.
1680         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1681         (keyword_is_type_qualifier): Accept RID_ATOMIC.
1682         * c-format.c (check_format_types): Check for extra _Atomic
1683         qualifiers in format argument.
1684         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1685         (pp_c_type_qualifier_list): Mention _Atomic in comment.
1687 2013-11-06  Tobias Burnus  <burnus@net-b.de>
1689         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1691 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
1693         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1694         standards modes.
1695         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1696         to mean lack of IEEE 754 support.
1698 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1700         * c.opt (-Wdate-time): New option
1701         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1703 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
1705         * c-cppbuiltin.c (cpp_iec_559_value): Test
1706         flag_excess_precision_cmdline not flag_excess_precision.
1708 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1710         * c.opt (fopenmp-simd): New option.
1711         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1712         (omp_pragmas): ... this new struct.
1713         (c_pp_lookup_pragma): Also walk omp_pragmas.
1714         (init_pragma): Init pragmas for -fopenmp-simd.
1716 2013-11-04  Marek Polacek  <polacek@redhat.com>
1718         PR c++/58979
1719         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1721 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1723         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1724         New functions.
1725         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1727 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1729         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1730         (dump_ada_specs): Adjust prototype of second callback.
1731         * c-ada-spec.c (cpp_check): New global variable.
1732         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1733         (print_generic_ada_decl): Likewise.
1734         (has_static_fields): Change return type to bool and add guard.
1735         (has_nontrivial_methods): New predicate.
1736         (is_tagged_type): Change return type to bool.
1737         (separate_class_package): Call has_nontrivial_methods.
1738         (pp_ada_tree_identifier): Minor tweaks.
1739         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1740         (dump_ada_array_domains): Likewise.
1741         (dump_ada_array_type): Likewise.
1742         (dump_template_types): Remove cpp_check parameter and do not pass it to
1743         dump_generic_ada_node.
1744         (dump_ada_template): Likewise.
1745         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1746         recursively.
1747         (print_ada_methods): Change return type to integer.  Remove cpp_check
1748         parameter and do not pass it down.
1749         (dump_nested_types): Remove cpp_check parameter and do not pass it to
1750         dump_generic_ada_node.
1751         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
1752         accessing methods.
1753         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1754         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
1755         value of print_ada_methods.
1756         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1757         Set cpp_check to it before invoking dump_ada_nodes.
1758         (dump_ada_specs): Likewise.
1760 2013-11-03  Marek Polacek  <polacek@redhat.com>
1762         * c-ubsan.c: Don't include hash-table.h.
1763         (ubsan_instrument_vla): New function.
1764         * c-ubsan.h: Declare it.
1766 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1768         Automated part of renaming of symtab_node_base to symtab_node.
1770         Patch autogenerated by rename_symtab.py from
1771         https://github.com/davidmalcolm/gcc-refactoring-scripts
1772         revision 58bb219cc090b2f4516a9297d868c245495ee622
1774         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1775         symtab_node_base to symtab_node.
1777 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
1779         Implement C++14 digit separators.
1780         * c-lex.c (interpret_float): Remove digit separators from scratch string
1781         before building real literal.
1783 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
1785         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1787 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1789         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1790         fields.
1791         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1792         enabled.
1793         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1794         (insert_cilk_frame): New prototype.
1795         (cilk_init_builtins): Likewise.
1796         (gimplify_cilk_spawn): Likewise.
1797         (c_cilk_install_body_w_frame_cleanup): Likewise.
1798         (cilk_detect_spawn_and_unwrap): Likewise.
1799         (cilk_set_spawn_marker): Likewise.
1800         (build_cilk_sync): Likewise.
1801         (build_cilk_spawn): Likewise.
1802         * cilk.c: New file.
1804 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1806         Patch autogenerated by refactor_symtab.py from
1807         https://github.com/davidmalcolm/gcc-refactoring-scripts
1808         revision 58bb219cc090b2f4516a9297d868c245495ee622
1810         * c-gimplify.c (c_genericize): Update for conversion of symtab types
1811         to a true class hierarchy.
1812         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1814 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
1816         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1818 2013-10-26  Jeff Law  <law@redhat.com>
1820         * c-common.c (c_define_builtins): Remove mudflap support.
1821         * c.opt: Ignore and warn for mudflap options.
1823 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1825         PR other/33426
1826         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1827         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1829 2013-10-23  Jason Merrill  <jason@redhat.com>
1831         * c-format.c (gcc_cxxdiag_char_table): Add %X.
1833 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1835         * c-common.h (omp_clause_mask::operator !=): New method.
1836         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1837         instead of if (mask & something) tests everywhere.
1839         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1840         201307 instead of 201107.
1841         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1842         (c_common_attribute_table): Add "omp declare target" and
1843         "omp declare simd" attributes.
1844         (handle_omp_declare_target_attribute,
1845         handle_omp_declare_simd_attribute): New functions.
1846         * c-omp.c: Include c-pragma.h.
1847         (c_finish_omp_taskgroup): New function.
1848         (c_finish_omp_atomic): Add swapped argument, if true,
1849         build the operation first with rhs, lhs arguments and use NOP_EXPR
1850         build_modify_expr.
1851         (c_finish_omp_for): Add code argument, pass it down to make_code.
1852         (c_omp_split_clauses): New function.
1853         (c_split_parallel_clauses): Removed.
1854         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1855         c_omp_declare_simd_clauses_to_decls): New functions.
1856         * c-common.h (omp_clause_mask): New type.
1857         (OMP_CLAUSE_MASK_1): Define.
1858         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1859         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1860         omp_clause_mask::operator |, omp_clause_mask::operator &,
1861         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1862         omp_clause_mask::operator ==): New methods.
1863         (enum c_omp_clause_split): New.
1864         (c_finish_omp_taskgroup): New prototype.
1865         (c_finish_omp_atomic): Add swapped argument.
1866         (c_finish_omp_for): Add code argument.
1867         (c_omp_split_clauses): New prototype.
1868         (c_split_parallel_clauses): Removed.
1869         (c_omp_declare_simd_clauses_to_numbers,
1870         c_omp_declare_simd_clauses_to_decls): New prototypes.
1871         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1872         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1873         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1874         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1875         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1876         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1877         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1878         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1879         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1880         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1881         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1882         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1883         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1884         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1885         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1886         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1887         PRAGMA_OMP_CLAUSE_UNIFORM.
1889 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
1891         PR tree-optimization/20318
1892         * c-common.c (handle_returns_nonnull_attribute): New function.
1893         (c_common_attribute_table): Add returns_nonnull.
1895 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
1897         PR c++/19476
1898         * c.opt (fcheck-new): Move to common.opt.
1900 2013-09-25  Marek Polacek  <polacek@redhat.com>
1901             Jakub Jelinek  <jakub@redhat.com>
1903         PR sanitizer/58413
1904         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1905         an expression if we can prove it is correct.
1906         (ubsan_instrument_division): Likewise.  Remove unnecessary
1907         check.
1909 2013-09-18  Marek Polacek  <polacek@redhat.com>
1911         PR sanitizer/58411
1912         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1913         Declare it.
1914         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1916 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
1918         PR target/48094
1919         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1920         fobjc-gc, freplace-objc-classes): Accept for LTO.
1922 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
1924         * c-target.def: New hook
1926 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1928         PR c++/43452
1929         * c.opt (Wdelete-incomplete): Add.
1931 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1933         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1934         (vector_types_compatible_elements_p): New function.
1935         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1936         declaration.
1937         (vector_types_compatible_elements_p): Declare.
1939 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1941         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1942         a virtual member function.
1943         (pp_simple_type_specifier): Remove.
1944         (pp_c_type_specifier): Likewise.
1945         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1946         Rename from pp_c_type_specifier.  Adjust.
1947         (c_pretty_printer::c_pretty_printer): Do not assign to
1948         simple_type_specifier.
1950 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1952         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1953         member function.
1954         (c_pretty_printer::storage_class_specifier): Likewise.
1955         (c_pretty_printer::initializer): Likewise.
1956         (pp_declaration): Remove.
1957         (pp_declaration_specifiers): Likewise.
1958         (pp_abstract_declarator): Likewise.
1959         (pp_declarator): Likewise.
1960         (pp_type_id): Likewise.
1961         (pp_statement): Likewise.
1962         (pp_constant): Likewise.
1963         (pp_id_expression): Likewise.
1964         (pp_primary_expression): Likewise.
1965         (pp_unary_expression): Likewise.
1966         (pp_multiplicative_expression): Likewise.
1967         (pp_conditional_expression): Likewise.
1968         (pp_assignment_expression): Likewise.
1969         (pp_expression): Likewise.
1970         (pp_c_type_id): Likewise.
1971         (pp_c_storage_class_specifier): Likewise.
1972         * c-pretty-print.c (pp_c_type_cast): Tidy.
1973         (pp_c_pointer): Likewise.
1974         (pp_c_type_specifier): Likewise.
1975         (pp_c_parameter_type_list): Likewise.
1976         (pp_c_function_definition): Likewise.
1977         (pp_c_init_declarator): Likewise.
1978         (pp_c_initializer_list): Likewise.
1979         (pp_c_constructor_elts): Likewise.
1980         (c_pretty_printer::direct_abstract_declarator): Likewise.
1981         (c_pretty_printer::declaration_specifiers): Likewise.
1982         (c_pretty_printer::primary_expression): Likewise.
1983         (c_pretty_printer::postfix_expression): Likewise.
1984         (c_pretty_printer::type_id): Rename from pp_c_type_id.
1985         (c_pretty_printer::storage_class_specifier): Rename from
1986         pp_c_storage_class_specifier.
1987         (c_pretty_printer::initializer): Rename from pp_c_initializer.
1988         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1989         storage_class_specifier, initializer, offset_list, flags.
1991 2013-08-30  Marek Polacek  <polacek@redhat.com>
1993         * c-ubsan.c: New file.
1994         * c-ubsan.h: New file.
1996 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1998         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1999         member function.
2000         (c_pretty_printer::declaration_specifiers): Likewise.
2001         (c_pretty_printer::declarator): Likewise.
2002         (c_pretty_printer::abstract_declarator): Likewise.
2003         (c_pretty_printer::direct_abstract_declarator): Likewise.
2004         (c_pretty_printer::direct_declarator): Likewise.
2005         (c_pretty_printer::function_specifier): Likewise.
2006         (pp_declaration): Adjust.
2007         (pp_declaration_specifiers): Likewise.
2008         (pp_abstract_declarator): Likewise.
2009         (pp_direct_declarator): Likewise.
2010         (pp_function_specifier): Likewise.
2011         (pp_direct_abstract_declarator): Remove as unused.
2012         (pp_c_declaration): Remove.
2013         (pp_c_declaration_specifiers): Likewise.
2014         (pp_c_declarator): Likewise.
2015         (pp_c_direct_declarator): Likewise.
2016         (pp_c_function_specifier): Likewise.
2017         (pp_c_direct_abstract_declarator): Likewise.
2018         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2019         from pp_c_abstract_declarator.  Adjust.
2020         (c_pretty_printer::direct_abstract_declarator):  Rename from
2021         pp_c_direct_abstract_declarator.  Adjust.
2022         (c_pretty_printer::function_specifier): Rename from
2023         pp_c_function_specifier.  Adjust.
2024         (c_pretty_printer::declaration_specifiers): Rename from
2025         pp_c_declaration_specifiers.  Adjust.
2026         (c_pretty_printer::direct_declarator): Rename from
2027         pp_c_direct_declarator.  Adjust.
2028         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
2029         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
2030         (c_pretty_printer::c_pretty_printer): Do not assign to
2031         declaration, declaration_specifiers, declarator,
2032         direct_declarator, direct_abstract_declarator, function_specifier.
2034 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
2036         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2037         virtual member function.
2038         (c_pretty_printer::multiplicative_expression): Likewise.
2039         (c_pretty_printer::conditional_expression): Likewise.
2040         (c_pretty_printer::assignment_expression): Likewise.
2041         (c_pretty_printer::expression): Likewise.
2042         (pp_unary_expression): Adjust.
2043         (pp_multiplicative_expression): Likewise.
2044         (pp_assignment_expression): Likewise.
2045         (pp_conditional_expression): Likewise.
2046         (pp_expression): Likewise.
2047         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2048         from pp_c_unary_expression.  Adjust.
2049         (c_pretty_printer::multiplicative_expression): Rename from
2050         pp_c_multiplicative_expression.  Adjust.
2051         (c_pretty_printer::conditional_expression): Rename from
2052         pp_c_conditional_expression.  Adjust.
2053         (c_pretty_printer::assignment_expression): Rename from
2054         pp_c_assignment_expression.  Adjust.
2055         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
2056         (c_pretty_printer::c_pretty_printer): Do not assign to
2057         unary_expression, multiplicative_expression,
2058         conditional_expression, expression.
2060 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2062         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2063         virtual member function.
2064         (pp_postfix_expression): Adjust.
2065         (pp_c_postfix_expression): Remove.
2066         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2067         from pp_c_postfix_expression.  Adjust.
2068         (c_pretty_printer::c_pretty_printer): Do not assign to
2069         postfix_expression.
2071 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2073         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2074         virtua member function.
2075         (pp_primary_expression): Adjust.
2076         (pp_c_primary_expression): Remove.
2077         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2078         from pp_c_primary_expression.  Adjust.
2079         (pp_c_initializer_list): Use pp_primary_expression.
2080         (c_pretty_printer::c_pretty_printer): Do not assign to
2081         primary_expression.
2083 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2085         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2086         * c-pretty-print.c (M_): Remove.
2087         (c_pretty_printer::translate_string): Define.
2088         (pp_c_type_specifier): Use it.
2089         (pp_c_primary_expression): Likewise.
2090         (pp_c_expression): Likewise.
2092 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2094         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2095         virtual function.
2096         (pp_c_id_expression): Remove.
2097         (pp_id_expression): Adjust.
2098         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2099         pp_c_id_expression.  Adjust.
2100         (pp_c_postfix_expression): Use pp_id_expression.
2101         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2103 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2105         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2106         member function.
2107         (pp_constant): Adjust.
2108         (pp_c_constant): Remove.
2109         * c-pretty-print.c (c_pretty_printer::constant): Rename from
2110         pp_c_constant.  Adjust.
2111         (pp_c_constant)
2112         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2113         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2115 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2117         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2118         (c_pretty_printer::c_pretty_printer): Declare.
2119         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2120         c_pretty_printer_init.  Adjust.
2121         (print_c_tree): Do not call c_pretty_printer_init.
2122         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2124 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
2126         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2128 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2130         PR c++/58080
2131         * c-common.c (pointer_int_sum): Add bool parameter.
2132         * c-common.h (pointer_int_sum): Adjust declaration.
2134 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2136         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
2137         c_pretty_printer variable.
2139 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2141         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2142         (pp_base): Remove.
2143         (pp_c_base): Likewise.  Adjust users.
2144         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2145         (pp_c_whitespace): Do not call pp_base.
2146         (pp_c_left_paren): Likewise.
2147         (pp_c_right_paren): Likewise.
2148         (pp_c_left_brace): Likewise.
2149         (pp_c_right_brace): Likewise.
2150         (pp_c_left_bracket): Likewise.
2151         (pp_c_right_bracket): Likewise.
2152         (pp_c_dot): Likewise.
2153         (pp_c_ampersand): Likewise.
2154         (pp_c_star): Likewise.
2155         (pp_c_arrow): Likewise.
2156         (pp_c_semicolon): Likewise.
2157         (pp_c_complement): Likewise.
2158         (pp_c_exclamation): Likewise.
2159         (pp_c_direct_declarator): Likewise.
2160         (pp_c_ws_string): Likewise.
2161         (pp_c_identifier): Likewise.
2162         (pp_c_statement): Likewise.
2163         (print_c_tree): Likewise.
2165 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
2167         PR c++/58072
2168         * c-common.c (c_parse_error): Catch user-defined literal tokens and
2169         provide useful error strings.
2171 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2173         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2174         printer functions instead of pp_string or operators and punctuators.
2175         (dump_generic_ada_node): Likewise.
2176         * c-pretty-print.c (pp_c_type_specifier): Likewise.
2177         (pp_c_relational_expression): Likewise.
2178         (pp_c_logical_or_expression): Likewise.
2180 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2182         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2183         functions instead of pp_character.
2184         (pp_ada_tree_identifier): Likewise.
2185         (dump_ada_double_name): Likewise.
2186         (dump_ada_function_declaration): Likewise.
2187         (dump_ada_array_domains): Likewise.
2188         (dump_template_types): Likewise.
2189         (dump_generic_ada_node): Likewise.
2190         (print_ada_declaration): Likewise.
2191         (print_ada_struct_decl): Likewise.
2192         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2194 2013-07-23  Tom Tromey  <tromey@redhat.com>
2196         * c-common.h (enum rid) <RID_GENERIC>: New constant.
2197         * c-common.c (c_common_reswords): Add _Generic.
2199 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
2201         * c-common.c: Fix typos.
2202         * c-common.h: Likewise.
2204 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
2206         PR c++/55203
2207         * c-common.c (c_common_attribute_table): Add warn_unused.
2208         (handle_warn_unused_attribute): New.
2210 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
2212         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2213         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2215 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
2217         PR c++/57869
2218         * c.opt: Add Wconditionally-supported.
2220 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
2222         * array-notation-common.c (length_mismatch_in_expr_p): Delete
2223         unused variables l_length and l_node.
2225 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2227         PR c/57821
2228         * c-common.c (complete_array_type): Delay folding first index
2229         like other indices.  When folding, check for index overflow.
2231 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
2233         PR c++/57509
2234         * c-common.h (c_build_vec_perm_expr): New complain argument.
2235         * c-common.c (c_build_vec_perm_expr): Likewise.
2236         Use save_expr also in C++.
2238 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2240         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2241         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2242         * c-opts.c (c_common_post_options): Likewise.
2244 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2246         * array-notation-common.c (length_mismatch_in_expr): Changed the
2247         parameter type's from a dynamic array to a vec_tree.  Also removed
2248         the size parameters.
2249         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2250         the change above.
2252 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2254         * c-common.h (struct cilkplus_an_parts): New structure.
2255         (struct cilkplus_an_loop_parts): Likewise.
2256         (cilkplus_extract_an_triplets): New prototype.
2257         (fix_sec_implicit_args): Likewise.
2258         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2259         (fix_sec_implicit_args): Likewise.
2261 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2263         * array-notation-common.c (find_inv_trees): Removed an unwanted
2264         typecasting.
2265         * c-common.h (struct inv_list::additional_tcodes): Changed type from
2266         enum rid to enum tree_code.
2268 2013-06-11  Jan Hubicka  <jh@suse.cz>
2270         * c-common.c (handle_alias_ifunc_attribute): Do not set
2271         DECL_EXTERNAL for weakref variables.
2272         * c-pragma.c (handle_pragma_weak): Make sure aliases
2273         are not declared as external.
2275 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2277         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2278         function from c/c-array-notation.c.
2279         (is_cilkplus_reduce_builtin): Likewise.
2280         (find_rank): Likewise.
2281         (extract_array_notation_exprs): Likewise.
2282         (replace_array_notations): Likewise.
2283         (find_inv_trees): Likewise.
2284         (replace_inv_trees): Likewise.
2285         (contains_array_notation_expr): Likewise.
2286         (find_correct_array_notation_type): Likewise.
2287         * c-common.h (struct inv_list): Moved this struct from the file
2288         c/c-array-notation.c and added a new field called additional tcodes.
2289         (length_mismatch_in_expr_p): New prototype.
2290         (is_cilkplus_reduce_builtin): Likewise.
2291         (find_rank): Likewise.
2292         (extract_array_notation_exprs): Likewise.
2293         (replace_array_notation): Likewise.
2294         (find_inv_trees): Likewise.
2295         (replace_inv_trees): Likewise.
2296         (find_correct_array_notation_type): Likewise.
2298 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2300         * c-common.c (c_define_builtins): When cilkplus is enabled, the
2301         function array_notation_init_builtins is called.
2302         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2303         * c-common.def (ARRAY_NOTATION_REF): New tree.
2304         * c-common.h (build_array_notation_expr): New function declaration.
2305         (build_array_notation_ref): Likewise.
2306         (extract_sec_implicit_index_arg): New extern declaration.
2307         (is_sec_implicit_index_fn): Likewise.
2308         (ARRAY_NOTATION_CHECK): New define.
2309         (ARRAY_NOTATION_ARRAY): Likewise.
2310         (ARRAY_NOTATION_START): Likewise.
2311         (ARRAY_NOTATION_LENGTH): Likewise.
2312         (ARRAY_NOTATION_STRIDE): Likewise.
2313         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2314         ARRAY_NOTATION_REF.
2315         (pp_c_expression): Likewise.
2316         * c.opt (flag_enable_cilkplus): New flag.
2317         * array-notation-common.c: New file.
2319 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2321         PR c++/57274
2322         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2324 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
2326         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2327         vectors.
2329 2013-05-07  Han Shen  <shenhan@google.com>
2331         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2333 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2335         * c-common.c (check_user_alignment): Emit error for negative values.
2337 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2339         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2341 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2343         * c-cppbuiltin.c (c_cpp_builtins): Do not define
2344         __GXX_EXPERIMENTAL_CXX1Y__.
2346 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2347             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2349         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2350         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2351         to simply use OPT_Wpointer_arith.
2352         (c_sizeof_or_alignof_type): Likewise.
2354 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2356         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2358 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2360         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2361         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2362         specifiers.
2364 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
2366         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2368 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
2370         * c-common.c (pointer_int_sum): Remove dead code.
2372 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2374         PR middle-end/56524
2375         * c-common.c (handle_optimize_attribute): Don't call
2376         save_optabs_if_changed.
2378 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2380         PR middle-end/56461
2381         * c-pch.c (pch_init): Free target_validity at the end.
2383 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2385         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2387 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2388             Jakub Jelinek  <jakub@redhat.com>
2390         PR sanitizer/56454
2391         * c-common.c (handle_no_sanitize_address_attribute): New function.
2392         (c_common_attribute_table): Add no_sanitize_address attribute.
2393         (handle_no_address_safety_analysis_attribute): Add
2394         no_sanitize_address attribute, not no_address_safety_analysis
2395         attribute.
2397 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2399         PR target/52555
2400         * c-common.c (handle_optimize_attribute): Call
2401         save_optabs_if_changed.
2403 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
2404             Steven Bosscher  <steven@gcc.gnu.org>
2406         PR pch/54117
2407         * c-opts.c (c_common_post_options): If debug info is enabled
2408         and non-dwarf*, refuse to load PCH files and when writing PCH
2409         file warn.
2411 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
2413         PR middle-end/56167
2414         * c-common.c (handle_error_attribute): Fix condition.
2416 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
2418         PR c++/55742
2419         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2421 2013-01-18  Jason Merrill  <jason@redhat.com>
2423         PR target/54908
2424         * c.opt (-fextern-tls-init): New.
2425         * c-opts.c (c_common_post_options): Handle it.
2427 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
2429         PR c/48418
2430         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2431         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2432         and is either negative or bigger or equal to type precision
2433         of the first operand.
2435 2012-12-03  Marek Polacek  <polacek@redhat.com>
2437         PR c/55570
2438         * c-common.c (check_user_alignment): Swap order of tests,
2439         check TREE_CODE first.
2441 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2443         PR c++/52654
2444         * c-common.h (overflow_type): New enum.
2445         (build_userdef_literal): Add overflow_type argument.
2446         (tree_userdef_literal): Add overflow_type.
2447         (USERDEF_LITERAL_OVERFLOW): New access macro.
2448         * c-common.c (build_userdef_literal): Add overflow_type
2449         argument.
2450         * c-lex.c (c_lex_with_flags): Add overflow_type to
2451         build_userdef_literal calls.
2452         (interpret_integer, interpret_float): Add overflow_type argument.
2454 2012-11-28  Richard Biener  <rguenther@suse.de>
2456         PR c/35634
2457         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2458         here and use a type with proper overflow behavior for types that would
2459         need to be promoted for the arithmetic.
2461 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2463         PR sanitizer/55435
2464         * c-common.c (handle_no_address_safety_analysis_attribute): New
2465         function.
2466         (c_common_attribute_table): Add no_address_safety_analysis.
2468 2012-11-16  Simon Baldwin  <simonb@google.com>
2470         * c.opt: Add f[no-]canonical-system-headers.
2471         * c-opts.c (c_common_handle_option): Handle
2472         OPT_fcanonical_system_headers.
2474 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2476         PR c++/54413
2477         * c-opts.c (c_common_handle_option): Set new flags.
2478         * c.opt: Describe new flags.
2480 2012-11-09  Jason Merrill  <jason@redhat.com>
2482         * c.opt (Wabi-tag): New.
2484 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2486         PR 55139
2487         * c-common.c (get_atomic_generic_size): Mask with
2488         MEMMODEL_MASK
2490 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2492         PR c/53063
2493         * c.opt (Wformat): Make it Alias Wformat=1.
2494         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2495         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2496         LangEnabledBy.
2497         (Wformat=): RejectNegative. Use LangEnabledBy.
2498         (Wnonnull): Use LangEnabledBy.
2499         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2500         * c-format.c (set_Wformat): Delete.
2501         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2502         (maybe_read_dollar_number):  Likewise.
2503         (avoid_dollar_number):  Likewise.
2504         (finish_dollar_format_checking):  Likewise.
2505         (check_format_info):  Likewise.
2506         (check_format_info_main):  Likewise.
2507         (check_format_types):  Likewise.
2508         (format_type_warning):  Likewise.
2509         * c-common.c (int):  Likewise.
2510         (check_function_sentinel):  Likewise.
2511         * c-common.h (warn_format,set_Wformat): Do not declare here.
2513 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2515         PR c/53063
2516         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2517         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2518         Use LangEnabledBy.
2519         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2520         common.opt.
2521         (Wvariadic-macros): Init(1).
2522         * c-opts.c (c_common_handle_option): Do not handle them
2523         explicitly.
2524         (c_common_post_options): Likewise.
2525         (sanitize_cpp_opts): warn_unused_macros is now
2526         cpp_warn_unused_macros.
2527         (push_command_line_include): Likewise.
2528         * c-common.c (warn_unknown_pragmas): Do not define.
2529         * c-common.h (warn_unknown_pragmas): Do not declare.
2531 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2533         PR c/51294
2534         * c-common.c (conversion_warning): Handle conditional expressions.
2536 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2538         PR c++/54930
2539         * c.opt (Wreturn_local_addr): Define new option.
2541 2012-10-25  Jason Merrill  <jason@redhat.com>
2543         * c.opt (Wvirtual-move-assign): New.
2545         * c.opt (Winherited-variadic-ctor): New.
2547 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
2549         PR c++/54427
2550         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2552 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2554         * c-common.h (pch_cpp_save_state): Declare.
2555         * c-target.def (c_preinclude): New hook.
2556         * c-opts.c (done_preinclude): New.
2557         (push_command_line_include): Handle default preincluded header.
2558         (cb_file_change): Call pch_cpp_save_state when calling
2559         push_command_line_include.
2560         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2561         (pch_cpp_save_state): New.
2562         (pch_init): Call pch_cpp_save_state conditionally, instead of
2563         calling cpp_save_state.
2565 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2567         PR c/53063
2568         PR c/40989
2569         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2570         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2571         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2572         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2573         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2574         * c-opts.c (c_common_handle_option): Remove explicit handling from
2575         here.
2576         (c_common_post_options): Likewise.
2578 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2580         * c-ada-spec.c (LOCATION_COL): Delete.
2581         (compare_location): New function.
2582         (compare_node): Use it.
2583         (compare_comment): Likewise.
2585 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2587         PR c/53063
2588         PR c/40989
2589         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2590         * c-opts.c (c_common_handle_option): Do not set them here. Add
2591         comment.
2592         (c_common_post_options): Likewise.
2594 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2596         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2597         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2598         Remove POINTER_TYPE handling, add large unsigned handling and use
2599         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2601 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2603         PR c/54381
2604         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2605         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2606         locs and array of 3 trees instead of just single loc and single
2607         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2608         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2609         For *cmp* builtins that take two sources strings report warnings
2610         about first and second source, not about destination and source.
2612 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2614         PR c++/53055
2615         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2617 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2619         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2620         declaring something coming from another file.
2622 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2624         PR ada/54845
2625         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2627 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2629         PR c++/54194
2630         * c-common.c (warn_about_parentheses): Add location_t parameter;
2631         use EXPR_LOC_OR_LOC.
2632         * c-common.h: Update declaration.
2634 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2636         PR c++/54427
2637         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2638         more operations. Make error messages optional.
2639         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2640         (scalar_to_vector): Declare.
2642 2012-10-08  Jason Merrill  <jason@redhat.com>
2644         * c-common.c (c_common_reswords): Add thread_local.
2646 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2648         PR c++/53528 C++11 attribute support
2649         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2650         new functions.
2651         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2652         static function.
2653         (handle_aligned_attribute): In choose strictest alignment
2654         among many.  Use new check_cxx_fundamental_alignment_constraints.
2655         (handle_transparent_union_attribute): In c++11 attribute syntax,
2656         don't look through typedefs.
2658 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2660         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2661         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2662         out of dumpfile.h.
2664 2012-09-25  Dehao Chen  <dehao@google.com>
2666         PR middle-end/54645
2667         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2668         map when read in the pch.
2670 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2672         * c-ada-spec.c: Style fixes.
2674 2012-09-18 Thomas Quinot  <quinot@adacore.com>
2676         * c.opt (-fada-spec-parent): Define new command line switch.
2677         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2678         is specified, generate binding spec as a child of the specified unit.
2680 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
2681             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2683         PR c++/53210
2684         * c.opt ([Winit-self]): Enabled by -Wall in C++.
2686 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
2688         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2689         for pointers, and add missing Convention C pragma.
2690         (print_ada_struct_decl): Add missing aliased keyword.
2691         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2693 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2695         * c-common.c (sizeof_pointer_memaccess_warning): New function.
2696         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2697         * c-opts.c (c_common_handle_option): Enable it for -Wall.
2698         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2699         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2701 2012-08-10  Richard Guenther  <rguenther@suse.de>
2703         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2705 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
2707         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2708         instead of separate pp_newline and pp_flush.
2709         (print_c_tree): Likewise.
2711 2012-07-26  Richard Henderson  <rth@redhat.com>
2713         * c-common.c (handle_hot_attribute): Allow labels.
2714         (handle_cold_attribute): Likewise.
2716 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
2718         PR c++/28656
2719         * c-common.c (check_function_nonnull): Handle multiple nonnull
2720         attributes properly.
2722 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2724         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2725         * c-ada-spec.c: Likewise.
2726         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2728 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
2730         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2731         Remove code conditional on it.
2733 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
2735         * c-gimplify.c: Do not include basic-block.h.
2736         * c-common.c: Do not include linfuncs.h.
2738 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2740         * c-common.h: Include tree.h.
2742 2012-07-02  Jason Merrill  <jason@redhat.com>
2744         PR c++/53524
2745         * c-common.c (get_priority): Call default_conversion.
2747 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
2749         * c-pch.c (c_common_write_pch): Remove unused variables.
2751 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2753         * cppspec.c: Moved from gcc/ to here.
2755 2012-06-27  Kai Tietz  <ktietz@redhat.com>
2757         PR preprocessor/37215
2758         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2760 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2762         * c-common.h (c_common_print_pch_checksum): Remove.
2763         * c-pch.c: Do not include output.h.
2764         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2765         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2766         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2767         (struct c_pch_header): Remove.
2768         (get_ident): Update gpch version.
2769         (pch_init): Do not print executable_checksum to asm_out_file.
2770         Do not fail if there is no asm_out_file to read back from.  Set
2771         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2772         (c_common_write_pch): Verify that nothing was written to asm_out_file
2773         since pch_init was called.  Do not write a c_pch_header, and do not
2774         copy from asm_out_file to the PCH.
2775         (c_common_read_pch): Do not read a c_pch_header, and do not restore
2776         the content of asm_out_file from the PCH.
2777         (c_common_print_pch_checksum): Remove.
2778         * c-opts.c (c_common_init): Print out executable_checksum directly.
2780 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2782         * c-target.def (objc_declare_unresolved_class_reference,
2783         objc_declare_class_definition): Add new hooks.
2785 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2787         * c-lex.c: Do not include output.h.
2788         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2789         Remove uses of ASM_OUTPUT_IDENT.
2791 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
2793         PR c++/51033
2794         * c-common.h (c_build_vec_perm_expr): Move decl here.
2795         * c-common.c (c_build_vec_perm_expr): Move definition
2796         here.
2798 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
2800         * c.opt (fconserve-space): Turn into a no-op.
2802 2012-06-04  Sterling Augustine  <saugustine@google.com>
2804         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2805         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2806         both the start and end of the function.
2808 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2810         * c-common.c: Do not include output.h.
2811         * c-pragma.c: Likewise.
2813 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2815         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2816         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2817         (lang_decl_name): Handle namespace decls.
2819 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
2821         * c-ada-spec.c: Do not include output.h.
2822         * c-semantics.c: Likewise.
2824 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2826         * c-common.c: Fix typo.
2828 2012-05-29  Michael Matz  <matz@suse.de>
2830         * c-common.h (c_expand_decl): Remove prototype.
2832 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2834         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2835         * c-opts.c (c_common_handle_option): Remove code handling
2836         warn_missing_braces.
2838 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
2840         PR c++/25137
2841         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2842         -Wmissing_braces.
2844 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
2846         PR c++/53322
2847         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2849 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2851         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2852         * c-opts.c (c_common_handle_option): Do not handle explicitly
2853         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2855 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
2857         PR preprocessor/7263
2858         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
2859         to cpp_classify_number.  For diagnostics, use the precise location
2860         instead of the global input_location.
2862 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
2864         PR c++/11856
2865         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2867 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
2869         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2871 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2873         PR 53063
2874         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2875         Wreorder): Use LangEnabledBy.
2876         * c-opts.c (c_common_handle_option): Do not enable them
2877         explicitly. Call lang-specific generated functions.
2878         (c_common_post_options): Do not set them here.
2880 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2882         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2883         Wmissing-field-initializers,Wmissing-parameter-type,
2884         Wold-style-declaration,Woverride-init): Use EnabledBy.
2885         * c-opts.c (c_common_post_options): Do not set here explicitly.
2887 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2889         PR 53063
2890         * c-opts.c (c_common_handle_option): Use handle_generated_option
2891         to enable sub-options.
2893 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
2895         PR c++/53158
2896         * c-common.c (warnings_for_convert_and_check): Use warning_at.
2898 2012-05-10  Richard Guenther  <rguenther@suse.de>
2900         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2901         adjust commentary about TYPE_IS_SIZETYPE types.
2903 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2905         PR c++/53261
2906         * c-common.c (warn_logical_operator): Check that argument of
2907         integer_zerop is not NULL.
2909 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2911         PR c/43772
2912         * c-common.c (warn_logical_operator): Do not warn if either side
2913         is already true or false.
2915 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2917         PR c/51712
2918         * c-common.c (expr_original_type): New.
2919         (shorten_compare): Do not warn for enumeration types.
2921 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2923         * c.opt (fpermissive): Add Var(flag_permissive).
2925 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
2927         PR c++/51033
2928         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2929         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2931 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
2933         Add -Wvarargs option
2934         * c.opt (Wvarargs):  Define new option.
2936 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2938         * c-common.c (check_function_arguments): Replace
2939         Wmissing-format-attribute with Wsuggest-attribute=format.
2941 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2943         * c.opt (Wsuggest-attribute=format): New. Alias of
2944         Wmissing-format-attribute.
2945         * c-format.c (decode_format_type): Replace
2946         Wmissing-format-attribute with Wsuggest-attribute=format.
2947         (check_function_format): Likewise.
2949 2012-04-27  Ollie Wild  <aaw@google.com>
2951         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2952         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2953         * c.opt: Add Wliteral-suffix.
2955 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2957         PR c/44774
2958         * c.opt (Wpedantic): New.
2959         (pedantic): Alias Wpedantic.
2960         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2961         (c_common_post_options): Likewise.
2962         (sanitize_cpp_opts): Likewise.
2963         * c-lex.c (interpret_float): Likewise.
2964         * c-format.c (check_format_types): Likewise.
2965         * c-common.c (pointer_int_sum): Likewise.
2966         (c_sizeof_or_alignof_type): Likewise.
2967         (c_add_case_label): Likewise.
2968         (c_do_switch_warnings): Likewise.
2969         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2971 2012-04-15  Jason Merrill  <jason@redhat.com>
2973         PR c++/52818
2974         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2975         (C_STD_NAME): Distinguish between C++98 and C++11.
2977 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2979         PR target/52624
2980         * c-common.h (uint16_type_node): Rename into...
2981         (c_uint16_type_node): ...this.
2982         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2983         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2985 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2987         * c-common.c (warn_if_unused_value): Move definition to here.
2988         * c-common.h (warn_if_unused_value): Move declaration to here.
2990 2012-03-23  William Bader  <williambader@hotmail.com>
2992         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2994 2012-03-20  Jason Merrill  <jason@redhat.com>
2996         * c-common.h (enum cxx_dialect): Add cxx1y.
2997         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2998         test.
2999         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3000         * c-opts.c (c_common_post_options): Likewise.
3001         (set_std_cxx1y): New.
3002         (c_common_handle_option): Call it.
3003         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3005 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
3007         PR c++/14710
3008         * c.opt ([Wuseless-cast]): Add.
3010 2012-03-16  Richard Guenther  <rguenther@suse.de>
3012         * c-pretty-print.c (pp_c_initializer_list): Adjust.
3014 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3016         PR c++/44783
3017         * c.opt (ftemplate-backtrace-limit) Add.
3019 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3021         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3022         handling.
3023         * c-pragma.c (handle_pragma_extern_prefix): Remove.
3024         (init_pragma): Don't register extern_prefix.
3026 2012-03-12  Richard Guenther  <rguenther@suse.de>
3028         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3029         (builtin_type_for_size): Likewise.
3031 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
3033         PR c++/52215
3034         * c-common.c (sync_resolve_params): Don't decide whether to convert
3035         or not based on TYPE_SIZE comparison, convert whenever arg_type
3036         is unsigned INTEGER_TYPE.
3038 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
3040         PR c/52118
3041         * c.opt ([Wunused-local-typedefs]): Fix description.
3043 2012-01-24  Mike Stump  <mikestump@comcast.net>
3045         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3046         exactly.
3048 2012-01-18  Richard Guenther  <rguenther@suse.de>
3050         * c-opts.c (c_common_post_options): Reset LTO flags if
3051         we are about to generate a PCH.
3053 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
3055         PR c++/51777
3056         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3057         use pp_unsigned_wide_integer.
3059 2012-01-10  Richard Guenther  <rguenther@suse.de>
3061         PR middle-end/51806
3062         * c-opts.c (c_common_handle_option): Move -Werror handling
3063         to language independent code.
3065 2012-01-05  Richard Guenther  <rguenther@suse.de>
3067         PR middle-end/51764
3068         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3069         from common.opt.
3071 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
3073         PR c++/51316
3074         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3075         of array types with an unknown bound.
3077 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
3079         * c-common.c (flag_isoc99): Update comment to refer to C11.
3080         (flag_isoc1x): Change to flag_isoc11.
3081         * c-common.h (flag_isoc99): Update comment to refer to C11.
3082         (flag_isoc1x): Change to flag_isoc11.
3083         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3084         C11.
3085         * c-opts.c (set_std_c1x): Change to set_std_c11.
3086         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3087         Call set_std_c11.
3088         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3089         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3090         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
3091         standard.
3092         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3093         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
3094         (std=gnu1x): Make alias of std=gnu11.
3096 2011-12-19  Jason Merrill  <jason@redhat.com>
3098         PR c++/51228
3099         * c-common.c (handle_transparent_union_attribute): Check the first
3100         field if the type is complete.
3102 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
3104         PR libstdc++/51365
3105         * c-common.c (RID_IS_FINAL): Add.
3106         * c-common.h (RID_IS_FINAL): Add.
3108 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
3110         * c.opt (fgnu-runtime): Provide full description.
3111         (fnext-runtime): Likewise.
3112         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3114 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
3116         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
3117         predefines in one place.  Add LOCK_FREE predefines.
3118         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3119         new func.
3121 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
3123         PR c/51256
3124         * c-common.c (get_atomic_generic_size): Check for various error
3125         conditions
3126         (resolve_overloaded_atomic_exchange,
3127         resolve_overloaded_atomic_compare_exchange,
3128         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3129         error_mark_node for error conditions.
3131 2011-11-08  Richard Guenther  <rguenther@suse.de>
3133         PR middle-end/51010
3134         c-family/
3136 2011-11-07  Richard Henderson  <rth@redhat.com>
3137             Aldy Hernandez  <aldyh@redhat.com>
3138             Torvald Riegel  <triegel@redhat.com>
3140         Merged from transactional-memory.
3142         * c-common.c (handle_tm_wrap_attribute,
3143         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3144         (struct c_common_reswords): Added __transaction* keywords.
3145         (struct c_common_attribute_table): Added transaction* and tm_regparm
3146         attributes.
3147         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3148         masks.
3149         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3150         find_tm_attribute): Declare.
3152 2011-11-07  Jason Merrill  <jason@redhat.com>
3154         PR c++/35688
3155         * c-common.c, c-common.h: Revert yesterday's changes.
3157 2011-11-06  Jason Merrill  <jason@redhat.com>
3159         PR c++/35688
3160         * c-common.c (decl_has_visibility_attr): Split out from...
3161         (c_determine_visibility): ...here.
3162         * c-common.h: Declare it.
3164 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3166         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3167         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3168         type.
3169         (check_user_alignment): New.  Split out of
3170         handle_aligned_attribute.  Disallow integer constants with
3171         noninteger types.  Conditionally allow zero.
3172         (handle_aligned_attribute): Use check_user_alignment.
3173         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3175 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
3176             Richard Henderson  <rth@redhat.com>
3178         Merged from cxx-mem-model.
3180         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3181         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3182         parameters that are the same type size.
3183         (get_atomic_generic_size): New.  Find size of generic
3184         atomic function parameters and do typechecking.
3185         (add_atomic_size_parameter): New.  Insert size into parameter list.
3186         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3187         either __atomic_exchange_n or external library call.
3188         (resolve_overloaded_atomic_compare_exchange): Restructure
3189         __atomic_compare_exchange to either _n variant or external library call.
3190         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3191         __atomic_load_n or an external library call.
3192         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3193         __atomic_store_n or an external library call.
3194         (resolve_overloaded_builtin): Handle new __atomic builtins.
3196 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3198         PR c++/50608
3199         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3200         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
3201         <INDIRECT_REF>: Return the argument.
3202         <ARRAY_REF>: Remove special code for negative offset.
3203         Call fold_build_pointer_plus instead of size_binop.
3204         (fold_offsetof): Remove STOP_REF argument and adjust.
3205         * c-common.h (fold_offsetof_1): Declare.
3206         (fold_offsetof): Remove STOP_REF argument.
3208 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
3210         PR c++/50810
3211         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3212         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3213         Wnarrowing for C++0x and C++98.
3214         * c.opt ([Wnarrowing]): Update.
3216 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3218         PR c++/44277
3219         * c.opt: Add Wzero-as-null-pointer-constant.
3221 2011-10-31  Jason Merrill  <jason@redhat.com>
3223         * c.opt (-fdeduce-init-list): Off by default.
3225         PR c++/50920
3226         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3227         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3228         and -Wc++11-compat.
3229         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3231 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
3233         PR c++/30066
3234         * c.opt (fvisibility-inlines-hidden): Description change.
3236 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
3238         Implement C++11 user-defined literals.
3239         * c-common.c (build_userdef_literal): New.
3240         * c-common.def: New tree code.
3241         * c-common.h (tree_userdef_literal): New tree struct and accessors.
3242         * c-lex.c (interpret_float): Add suffix parm.
3243         (c_lex_with_flags): Build literal tokens.
3245 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3247         PR c++/50841
3248         Revert:
3249         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3251         PR c++/50810
3252         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3253         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3254         Wnarrowing for C++0x and C++98.
3255         * c.opt ([Wnarrowing]): Update.
3257 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3259         PR c++/50810
3260         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3261         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3262         Wnarrowing for C++0x and C++98.
3263         * c.opt ([Wnarrowing]): Update.
3265 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
3267         PR c++/45385
3268         * c-common.c (conversion_warning): Remove code looking for
3269         artificial operands.
3271 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3273         PR bootstrap/50760
3274         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3275         !NO_IMPLICIT_EXTERN_C.
3277 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
3279         * c-common.c (c_common_reswords): Add __bases,
3280         __direct_bases.
3281         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3283 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3285         PR c++/50757
3286         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3288 2011-10-15  Tom Tromey  <tromey@redhat.com>
3289             Dodji Seketeli  <dodji@redhat.com>
3291         * c.opt (fdebug-cpp): New option.
3292         * c-opts.c (c_common_handle_option): Handle the option.
3293         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3294         output stream in parameter. Factorized from ...
3295         (maybe_print_line): ... this. Dump location debug information when
3296         -fdebug-cpp is in effect.
3297         (print_line_1): New static function. Takes an output stream in
3298         parameter. Factorized from ...
3299         (print_line): ... here. Dump location information when -fdebug-cpp
3300         is in effect.
3301         (scan_translation_unit): Dump location information when
3302         -fdebug-cpp is in effect.
3304 2011-10-15  Tom Tromey  <tromey@redhat.com>
3305             Dodji Seketeli  <dodji@redhat.com>
3307         * c.opt (ftrack-macro-expansion): New option. Handle it with and
3308         without argument.
3309         * c-opts.c (c_common_handle_option)<case
3310         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3311         cases. Handle -ftrack-macro-expansion with and without argument.
3313 2011-10-15  Tom Tromey  <tromey@redhat.com>
3314             Dodji Seketeli  <dodji@redhat.com>
3316         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3317         (print_line, cb_define, do_line_change): Adjust to avoid touching
3318         the internals of struct line_map.  Use the public API instead.
3319         * c-pch.c (c_common_read_pch): Likewise.
3320         * c-lex.c (fe_file_change): Likewise.
3322 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3324         PR c++/17212
3325         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3327 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
3329         PR c++/33067
3330         * c-pretty-print.c (pp_c_floating_constant): Output
3331         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3333 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3335         * c-common.c (def_builtin_1): Delete old interface with two
3336         parallel arrays to hold standard builtin declarations, and replace
3337         it with a function based interface that can support creating
3338         builtins on the fly in the future.  Change all uses, and poison
3339         the old names.  Make sure 0 is not a legitimate builtin index.
3340         * c-omp.c (c_finish_omp_barrier): Ditto.
3341         (c_finish_omp_taskwait): Ditto.
3342         (c_finish_omp_flush): Ditto.
3344 2011-10-11  Tristan Gingold  <gingold@adacore.com>
3346         * c.opt: (fallow-parameterless-variadic-functions): New.
3348 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3350         PR c++/33255 - Support -Wunused-local-typedefs warning
3351         * c-common.h (struct c_language_function::local_typedefs): New
3352         field.
3353         (record_locally_defined_typedef, maybe_record_typedef_use)
3354         (maybe_warn_unused_local_typedefs): Declare new functions.
3355         * c-common.c (record_locally_defined_typedef)
3356         (maybe_record_typedef_use)
3357         (maybe_warn_unused_local_typedefs): Define new functions.
3358         * c.opt: Declare new -Wunused-local-typedefs flag.
3360 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3362         PR middle-end/50266
3363         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3364         computations.
3366 2011-09-05  Richard Guenther  <rguenther@suse.de>
3368         * c-common.c (complete_array_type): Use ssize_int (-1) instead
3369         of integer_minus_one_node for empty array upper bounds.
3371 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
3373         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3374         it's the first time it's being called on this main TU.
3376 2011-08-24  Richard Guenther  <rguenther@suse.de>
3378         PR c/49396
3379         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3381 2011-08-22  Gabriel Charette  <gchare@google.com>
3383         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3384         defined in cpp_init_builtins and c_cpp_builtins.
3386 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3388         * c-common.c (c_common_reswords): Add __builtin_complex.
3389         * c-common.h (RID_BUILTIN_COMPLEX): New.
3391 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3393         * c-common.c (c_common_reswords): Add _Noreturn.
3394         (keyword_is_function_specifier): Handle RID_NORETURN.
3395         * c-common.h (RID_NORETURN): New.
3397 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3399         * c-common.c (unsafe_conversion_p): New function. Check if it is
3400         unsafe to convert an expression to the type.
3401         (conversion_warning): Adjust, use unsafe_conversion_p.
3402         * c-common.h (unsafe_conversion_p): New function declaration.
3404 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3406         * c-common.h (c_finish_omp_atomic): Adjust prototype.
3407         (c_finish_omp_taskyield): New prototype.
3408         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3409         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3410         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
3411         or RHS1 have side-effects, evaluate those too in the right spot,
3412         if it is a decl and LHS is also a decl, error out if they
3413         aren't the same.
3414         (c_finish_omp_taskyield): New function.
3415         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3416         * c-pragma.c (omp_pragmas): Add taskyield.
3417         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3418         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3419         PRAGMA_OMP_CLAUSE_MERGEABLE.
3421 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
3423         * c-common.h (set_underlying_type): Remove parm name from
3424         declaration.
3426 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
3428         * c-pretty-print.h: Search c-common.h in c-family.
3430 2011-07-22  Jason Merrill  <jason@redhat.com>
3432         PR c++/49793
3433         * c.opt (Wnarrowing): New.
3435         PR c++/30112
3436         * c-common.h: Declare c_linkage_bindings.
3437         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3439         PR c++/49813
3440         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3441         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3442         as flag_isoc99 for 'restrict'.
3443         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3445 2011-07-21  Ian Lance Taylor  <iant@google.com>
3447         PR middle-end/49705
3448         * c-common.c (c_disable_warnings): New static function.
3449         (c_enable_warnings): New static function.
3450         (c_fully_fold_internal): Change local unused_p to bool.  Call
3451         c_disable_warnings and c_enable_warnings rather than change
3452         c_inhibit_evaluation_warnings.
3454 2011-07-20  Jason Merrill  <jason@redhat.com>
3456         PR c++/6709 (DR 743)
3457         PR c++/42603 (DR 950)
3458         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3459         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3460         (CPP_DECLTYPE): New.
3461         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3463 2011-07-19  Richard Guenther  <rguenther@suse.de>
3465         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3466         * c-omp.c (c_finish_omp_for): Likewise.
3468 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3470         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3471         body on the next line.
3473 2011-07-08  Jason Merrill  <jason@redhat.com>
3475         PR c++/45437
3476         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3478         PR c++/49673
3479         * c-common.c (c_apply_type_quals_to_decl): Don't check
3480         TYPE_NEEDS_CONSTRUCTING.
3482 2011-07-06  Richard Guenther  <rguenther@suse.de>
3484         * c-common.c (c_common_nodes_and_builtins):
3485         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3487 2011-07-05  Richard Guenther  <rguenther@suse.de>
3489         * c-common.c (c_common_nodes_and_builtins): Build all common
3490         tree nodes first.
3492 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3494         * c-common.h (c_tree_chain_next): New static inline function.
3496         * c-common.c (check_builtin_function_arguments): Handle
3497         BUILT_IN_ASSUME_ALIGNED.
3499 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3501         * c-common.c: Add sync_ or SYNC__ to builtin names.
3502         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3504 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3506         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3507         handler.
3508         (gen_pragma_handler): New union.
3509         (internal_pragma_handler): New type.
3510         (c_register_pragma_with_data)
3511         (c_register_pragma_with_expansion_and_data): New functions.
3513         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3514         (c_register_pragma, c_register_pragma_with_expansion)
3515         (c_invoke_pragma_handler): Changed to work with
3516         internal_pragma_handler.
3517         (c_register_pragma_with_data)
3518         (c_register_pragma_with_expansion_and_data): New functions.
3520 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3522         * c-common.c: Include common/common-target.h.
3523         (handle_section_attribute): Use
3524         targetm_common.have_named_sections.
3525         * c-cppbuiltin.c: Include common/common-target.h.
3526         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3528 2011-06-10  Richard Guenther  <rguenther@suse.de>
3530         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3531         to print a IDENTIFIER_NODE.
3533 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3534             Joseph Myers  <joseph@codesourcery.com>
3536         * c.opt (fbuilding-libgcc): New option.
3537         * c-cppbuiltin.c (c_cpp_builtins): Define
3538         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3540 2011-06-07  Jason Merrill  <jason@redhat.com>
3542         * c-common.c (max_tinst_depth): Lower default to 900.
3544         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3546 2011-06-07  Richard Guenther  <rguenther@suse.de>
3548         * c-common.c (c_common_nodes_and_builtins): Do not set
3549         size_type_node or call set_sizetype.
3551 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
3553         PR debug/49130
3554         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3555         type when using pointer comparison to compare types.
3557 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
3559         * c.opt: Add -Wdelete-non-virtual-dtor.
3560         * c-opts.c (c_common_handle_option): Include it in -Wall.
3562 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3564         PR bootstrap/49190
3566         Revert:
3567         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3569         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3570         not tree_common.
3572 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
3574         PR c++/49165
3575         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3576         C++ don't call c_common_truthvalue_conversion on void type arms.
3578 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3580         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3581         (stmt_list_stack): Define.
3582         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3583         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3585 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3587         * c-common.c (warning_candidate_p): Check for BLOCKs.
3589 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3591         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3592         not tree_common.
3594 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3596         * c-common.c (def_fn_type): Remove extra va_end.
3598 2011-05-23  Jason Merrill  <jason@redhat.com>
3600         PR c++/48106
3601         * c-common.c (c_common_get_narrower): New.
3602         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3604 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3606         * c-common.h (check_function_arguments): Tweak prototype of
3607         check_function_arguments.
3608         * c-common.c (check_function_arguments): Likewise.  Adjust
3609         calls to check_function_nonnull, check_function_format, and
3610         check_function_sentinel.
3611         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3612         separate attributes and typelist arguments.  Use
3613         FOREACH_FUNCTION_ARGS to iterate over argument types.
3615 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3617         * c-common.c (c_common_reswords): Reorder.
3618         * c-common.h (rid): Likewise.
3620 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3622         * c-common.c (def_fn_type): Don't call build_function_type, call
3623         build_function_type_array or build_varargs_function_type_array
3624         instead.
3625         (c_common_nodes_and_builtins): Likewise.
3627 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3629         * c-common.c (c_add_case_label): Omit the loc argument to
3630         build_case_label.
3631         * c-common.h (build_case_label): Remove.
3632         * c-semantics.c (build_case_label): Remove.
3634 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3636         * c-objc.h (objc_start_method_definition): Update prototype.
3637         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3639 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3641         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3642         TYPE_ARG_TYPES directly.
3643         (handle_nonnull_attribute): Likewise.
3644         (sync_resolve_params): Likewise.
3645         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3646         to check_format_string.
3647         (handle_format_attribute): Likewise.
3648         (check_format_string): Take a function type to examine instead of
3649         a type list.  Use a function_arg_iterator to step through argument
3650         types.
3652 2011-05-04  Richard Guenther  <rguenther@suse.de>
3654         * c-common.c (fix_string_type): Use size_int for index type bounds.
3655         (start_fname_decls): Do not pass NULL to build_int_cst.
3656         (c_init_attributes): Likewise.
3657         * c-lex.c (c_lex_with_flags): Likewise.
3659 2011-04-27  Jason Merrill  <jason@redhat.com>
3661         * c-common.c (make_tree_vector_from_list): New.
3662         * c-common.h: Declare it.
3664 2011-04-26  Richard Guenther  <rguenther@suse.de>
3666         PR preprocessor/48248
3667         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3668         for output size with -P.
3670 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3672         * c-common.c (struct c_common_resword): Add __underlying_type.
3673         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3675 2011-04-20  Jim Meyering  <meyering@redhat.com>
3677         * c-format.c (init_dollar_format_checking): Remove useless
3678         if-before-free.
3680 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3682         * c-objc.h (objc_get_interface_ivars): Removed.
3683         (objc_detect_field_duplicates): New.
3684         * stub-objc.c: Likewise.
3686 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3688         * stub-objc.c (objc_declare_protocols): Renamed to
3689         objc_declare_protocol.
3690         * c-objc.h: Likewise.
3692 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3694         * stub-objc.c (objc_declare_class): Updated argument name.
3696 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3698         * c-common.h (c_common_init_ts): Declare.
3699         * c-common.c (c_common_init_ts): Define.
3701 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3703         * c-objc.h (objc_build_message_expr): Updated prototype.
3704         * stub-objc.c (objc_build_message_expr): Likewise.
3706 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3708         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3709         of cgraph_node.
3711 2011-04-11  Richard Guenther  <rguenther@suse.de>
3713         * c-common.c (complete_array_type): Build a range type of
3714         proper type.
3716 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3718         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3719         (handle_type_generic_attribute): Likewise.
3721 2011-04-07  Jason Merrill  <jason@redhat.com>
3723         PR c++/48450
3724         * c-common.c (c_common_truthvalue_conversion): Don't ignore
3725         conversion from C++0x scoped enum.
3727 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3729         * c-target-def.h: New file.
3730         * c-target.def: New file.
3731         * c-target.h: New file.
3732         * c-common.c (targetcm): Don't define here.
3733         * c-common.h (default_handle_c_option): Declare.
3734         * c-format.c: Include c-target.h instead of target.h.
3735         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
3736         include tm.h.
3737         (default_handle_c_option): Move from targhooks.c.
3739 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3741         PR preprocessor/48248
3742         * c-ppoutput.c (print): Add src_file field.
3743         (init_pp_output): Initialize it.
3744         (maybe_print_line): Don't optimize by adding up to 8 newlines
3745         if map->to_file and print.src_file are different file.
3746         (print_line): Update print.src_file.
3748 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3750         * c-ada-spec.c (compare_comment): Use filename_cmp
3751         instead of strcmp for filename.
3753 2011-03-25  Jeff Law  <law@redhat.com>
3755         * c-common.c (def_fn_type): Add missing va_end.
3757 2011-03-25  Jason Merrill  <jason@redhat.com>
3759         * c.opt: Add -std=c++03.
3761 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3763         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3765 2011-03-17  Kai Tietz
3767         PR target/12171
3768         * c-pretty-print.c (pp_c_specifier_qualifier_list):
3769         Display allowed attributes for function pointer types.
3770         (pp_c_attributes_display): New function to display
3771         attributes having affects_type_identity flag set to true.
3772         * c-pretty-print.h (pp_c_attributes_display): New prototype.
3774         * c-common.c (c_common_attribute_table):
3775         Add new element.
3776         (c_common_format_attribute_table): Likewise.
3778 2011-03-18  Jason Merrill  <jason@redhat.com>
3780         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3781         * c-common.h: Don't declare it here.
3782         * c-common.c: Or define it here.
3783         * c-opts.c (c_common_handle_option): Or set it here.
3785         PR c++/35315
3786         * c-common.c (handle_transparent_union_attribute): Don't
3787         make a duplicate type in C++.
3789 2011-03-15  Jason Merrill  <jason@redhat.com>
3791         * c-common.c (max_constexpr_depth): New.
3792         * c-common.h: Declare it.
3793         * c-opts.c (c_common_handle_option): Set it.
3794         * c.opt (fconstexpr-depth): New option.
3796 2011-03-11  Jason Merrill  <jason@redhat.com>
3798         * c-common.c (attribute_takes_identifier_p): Add missing const.
3800         PR c++/46803
3801         * c-common.c (attribute_takes_identifier_p): Assume that an
3802         unknown attribute takes an identifier.
3804 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
3806         PR c/47786
3807         * c-common.c (c_type_hash): Call list_length instead of iterating
3808         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
3810 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3812         PR c/47809
3813         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3815 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
3817         * c.opt (fobjc-abi-version=) New.
3818         (fobjc-nilcheck): New.
3820 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
3822         PR c++/46890
3823         * c-common.h (keyword_is_decl_specifier): Declare.
3824         * c-common.c (keyword_is_decl_specifier): Define.
3825         (keyword_is_function_specifier): New function.
3827 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3829         PR c/47473
3830         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3831         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3832         REAL_TYPE.
3834 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
3836         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3838 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3840         PR pch/47430
3841         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3842         after init_c_lex if pch_file is set.
3844 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
3846         PR c++/43601
3847         * c.opt (-fkeep-inline-dllexport): New switch.
3849 2011-01-12  Richard Guenther  <rguenther@suse.de>
3851         PR middle-end/32511
3852         * c-common.c (handle_weak_attribute): Warn instead of error
3853         on declaring an inline function weak.
3855 2011-01-05  Tom Tromey  <tromey@redhat.com>
3857         * c-common.h (lvalue_error): Update.
3858         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
3859         not error.
3861 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3863         PR objc/47075
3864         * c-objc.h (objc_finish_message_expr): Added argument to
3865         prototype.
3867 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
3869         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3870         Use prototype_p.
3872 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3874         * c-objc.h (objc_maybe_warn_exceptions): New.
3875         * stub-objc.c (objc_maybe_warn_exceptions): New.
3877 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
3879         * c-common.h (readonly_error): Declare.
3880         * c-common.c (readonly_error): Define.
3882 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
3884         * c-common.h (invalid_indirection_error): Declare.
3885         * c-common.c (invalid_indirection_error): Define.
3887 2010-12-03  Richard Guenther  <rguenther@suse.de>
3889         PR c/46745
3890         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3891         (pp_c_unary_expression): Likewise.
3892         (pp_c_expression): Likewise.
3894 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3896         * c-common.h (objc_finish_function): New.
3897         (objc_non_volatilized_type): Removed.
3898         (objc_type_quals_match): Removed.
3899         * stub-objc.c (objc_finish_function): New.
3900         (objc_non_volatilized_type): Removed.
3901         (objc_type_quals_match): Removed.
3903 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
3905         * c-common.h (parse_optimize_options): Declare.
3906         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3907         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3909 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
3911         * c-opts.c (check_deps_environment_vars): Use getenv instead of
3912         GET_ENVIRONMENT.
3913         * c-pch.c (O_BINARY): Don't define here.
3914         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3916 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
3918         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3919         targetm.except_unwind_info.
3921 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3923         * c-opts.c (c_common_handle_option): Pass location to
3924         set_struct_debug_option.
3926 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3928         * c-common.c (visibility_options): Move from ../opts.c.
3929         * c-common.h (struct visibility_flags, visibility_options):
3930         Declare here.
3931         * c-opts.c (finish_options): Rename to c_finish_options.
3932         (c_common_init): Update call to finish_options.
3934 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
3936         PR objc/34033
3937         * c-lex.c (lex_string): Check that each string in an Objective-C
3938         string concat sequence starts with either one or zero '@', and
3939         that there are no spurious '@' signs at the end.
3941 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
3943         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3944         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3945         HANDLE_PRAGMA_VISIBILITY.
3946         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3947         HANDLE_PRAGMA_VISIBILITY): Don't define.
3948         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3950 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
3952         PR c++/16189
3953         PR c++/36888
3954         PR c++/45331
3955         * c-common.h (keyword_begins_type_specifier): Declare.
3956         (keyword_is_storage_class_specifier): Declare.
3957         (keyword_is_type_qualifier): Declare.
3958         * c-common.c (keyword_begins_type_specifier): New function.
3959         (keyword_is_storage_class_specifier): New function.
3960         (keyword_is_type_qualifier): Declare.
3962 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3964         PR c/46547
3965         * c-common.c (in_late_binary_op): Define.
3966         (c_common_truthvalue_conversion): Check in_late_binary_op before
3967         calling c_save_expr.
3968         * c-common.h (in_late_binary_op): Declare.
3970 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3972         * c-opts.c (c_common_handle_option): Update calls to
3973         set_struct_debug_option.
3975 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3977         * c-common.h (objc_declare_protocols): Added additional argument.
3978         * stub-objc.c (objc_declare_protocol): Same change.
3980 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
3982         PR c/33193
3983         * c-common.h (build_real_imag_expr): Declare.
3984         * c-semantics.c (build_real_imag_expr): Define.
3986 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3988         * c-opts.c (c_common_parse_file): Take no arguments.
3989         * c-common.h (c_common_parse_file): Update prototype.
3991 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
3993         PR c++/46401
3994         * c-common.c (warning_candidate_p): Don't track non-const calls
3995         or STRING_CSTs.
3997 2010-11-15  Ian Lance Taylor  <iant@google.com>
3999         * c-lex.c (init_c_lex): Set macro debug callbacks if
4000         flag_dump_go_spec is set.
4002 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4004         * c-common.h (objc_build_incr_expr_for_property_ref): New.
4005         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4007 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
4009         PR preprocessor/45038
4010         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4011         dialects.
4013 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4015         * c-common.h (c_family_lang_mask): Declare.
4016         * c-opts.c (c_family_lang_mask): Make extern.
4017         * c-pragma.c (handle_pragma_diagnostic): Use
4018         control_warning_option.
4020 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4022         * c-common.c (parse_optimize_options): Update call to
4023         decode_options.
4024         * c-common.h (c_common_handle_option): Update prototype.
4025         * c-opts.c (c_common_handle_option): Take location_t parameter and
4026         pass it to other functions.
4028 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4030         * c-opts.c (warning_as_error_callback): Remove.
4031         (c_common_initialize_diagnostics): Don't call
4032         register_warning_as_error_callback.
4033         (c_common_handle_option): Handle -Werror=normalized= here.
4035 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4037         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4038         in diagnostic.
4039         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4040         letter.
4041         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4042         Remove trailing '.' from diagnostics.
4043         * c.opt (Wwrite-strings_: Avoid '`' in help text.
4045 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4047         * c-common.c (parse_optimize_options): Pass global_dc to
4048         decode_options.
4049         * c-opts.c (c_common_handle_option): Pass &global_options to
4050         set_Wstrict_aliasing.
4051         * c.opt (v): Don't mark Common or document here.
4053 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4055         PR target/44981
4056         * c-format.c (format_type): New type gcc_objc_string_format_type.
4057         (valid_stringptr_type_p): New.
4058         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4059         (check_format_string): Pass expected type, use
4060         valid_stringptr_type_p (), check that the format string types are
4061         consistent with the format specification.
4062         (decode_format_attr): Warn if NSString is used outside objective-c.
4063         (format_types_orig): Add NSString.
4064         (format_name): New.
4065         (format_flags): New.
4066         (check_format_arg): Handle format strings requiring an external parser.
4067         first_target_format_type: New variable.
4068         (handle_format_attribute): Set up first_target_format_type, pass the
4069         expected format arg string type to check_format_string().
4070         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
4071         * stub-objc.c (objc_string_ref_type_p): New.
4072         (objc_check_format_arg): New.
4074 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4076         Fixed using the Objective-C 2.0 dot-syntax with class names.
4077         * c-common.h (objc_build_class_component_ref): New.
4078         * stub-objc.c (objc_build_class_component_ref): New.
4080 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4082         * c.opt (Wproperty-assign-default): New option.
4084 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4086         Implemented -fobjc-std=objc1 flag.
4087         * c.opt (fobjc-std=objc1): New option.
4089 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
4091         Implemented format and noreturn attributes for Objective-C methods.
4092         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4093         attribute for Objective-C methods.
4095 2010-10-31  Jason Merrill  <jason@redhat.com>
4097         * c-common.c (conversion_warning, warn_for_collisions_1): Use
4098         EXPR_LOC_OR_HERE.
4100 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4102         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4103         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4104         (objc_add_property_declaration): Removed arguments for copies and
4105         ivar.
4106         (objc_build_getter_call): Renamed to
4107         objc_maybe_build_component_ref.
4108         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4109         (objc_is_property_ref): New.
4110         * c-common.c (c_common_reswords): Removed copies and ivar.
4111         * stub-objc.c (objc_add_property_declaration): Removed arguments
4112         for copies and ivar.
4113         (objc_build_getter_call): Renamed to
4114         objc_maybe_build_component_ref.
4115         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4116         (objc_is_property_ref): New.
4118 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
4119             Matthew Gingell  <gingell@adacore.com>
4121         * c-ada-spec.c (separate_class_package): New function.
4122         (pp_ada_tree_identifier): Prefix references to C++ classes with the
4123         name of their enclosing package.
4124         (print_ada_declaration): Use separate_class_package.
4126 2010-10-27  Jason Merrill  <jason@redhat.com>
4128         * c-common.c (c_common_reswords): Add __is_literal_type.
4129         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4131         * c-common.c (check_case_value): Remove special C++ code.
4133 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4135         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4136         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
4137         and RID_LAST_PATTR.
4138         (objc_add_property_declaration): Added additional arguments.
4139         (objc_property_attribute_kind): Removed.
4140         (objc_set_property_attr): Removed.
4141         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4142         copy and nonatomic.
4143         * stub-objc.c (objc_add_property_declaration): Added additional
4144         arguments.
4145         (objc_set_property_attr): Removed.
4147 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4149         * c-common.h (objc_add_property_variable): Renamed to
4150         objc_add_property_declaration.  Added location argument.
4151         * stub-objc.c (objc_add_property_variable): Same change.
4152         
4153 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
4155         * c-common.h (objc_maybe_printable_name): New.
4156         * stub-objc.c (objc_maybe_printable_name): New.
4158 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4159         Andrew Pinski <pinskia@gmail.com>
4161         * c-common.h (c_common_mark_addressable_vec): Declare.
4162         * c-common.c (c_common_mark_addressable_vec): New function.
4164 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4166         * c-common.h (objc_set_method_type): Removed.
4167         (objc_add_method_declaration): Added boolean argument.
4168         (objc_start_method_definition): Same change.
4169         (objc_build_method_signature): Same change.
4170         * stub-objc.c (objc_set_method_type): Removed.
4171         (objc_add_method_declaration): Added boolean argument.
4172         (objc_start_method_definition): Same change.
4173         (objc_build_method_signature): Same change.
4175 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4177         * c-common.h (finish_file): Removed.
4178         (objc_write_global_declarations): New.
4179         * c-opts.c (c_common_parse_file): Do not call finish_file.
4180         * stub-objc.c (objc_write_global_declarations): New.
4182 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4184         Implemented parsing @synthesize and @dynamic for
4185         Objective-C/Objective-C++.
4186         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4187         (objc_add_synthesize_declaration): New.
4188         (objc_add_dynamic_declaration): New.
4189         * c-common.c (c_common_reswords): Add synthesize and dynamic.
4190         * stub-objc.c (objc_add_synthesize_declaration): New.
4191         (objc_add_dynamic_declaration): New.
4193 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4195         PR target/46041
4196         * c-cppbuiltin.c (mode_has_fma): Move function here from
4197         builtins.c.  Don't use the fma optab, instead just use the
4198         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4199         using -save-temps.
4201 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4203         Merge from 'apple/trunk' branch on FSF servers.
4205         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
4207         Radar 4330422
4208         * c-common.h (objc_non_volatilized_type): New declaration
4209         * stub-objc.c (objc_non_volatilized_type): New stub.
4211 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4213         Merge from 'apple/trunk' branch on FSF servers.
4215         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4217         Radar 4133425
4218         * c-common.h (objc_diagnose_private_ivar): New decl.
4219         * stub-objc.c (objc_diagnose_private_ivar): New stub.
4221 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4223         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4224         * c-common.h (enum rid): Add RID_AT_PACKAGE.
4225         (objc_ivar_visibility_kind): New enum.
4226         (objc_set_visibility): Adjust prototype to use visibility enum.
4227         * stub-objc.c (objc_set_visibility): Adjust stub to use
4228         visibility enum.
4230 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4232         * c-cppbuiltin.c (builtin_define_float_constants): Emit
4233         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4234         has the appropriate fma builtins.
4235         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4237 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4239         merge from FSF apple 'trunk' branch.
4240         2006 Fariborz Jahanian <fjahanian@apple.com>
4242         Radars 4436866, 4505126, 4506903, 4517826
4243         * c-common.c (c_common_resword): Define @property and its attributes.
4244         * c-common.h: Define property attribute enum entries.
4245         (OBJC_IS_PATTR_KEYWORD): New.
4246         (objc_property_attribute_kind): New enum.
4247         Declare objc_set_property_attr (), objc_add_property_variable (),
4248         objc_build_getter_call () and objc_build_setter_call ().
4249         * stub-objc.c (objc_set_property_attr): New stub.
4250         (objc_add_property_variable): Likewise.
4251         (objc_build_getter_call): Likewise.
4252         (objc_build_setter_call) Likewise.
4254 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
4256         merge from FSF apple 'trunk' branch.
4257         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4259         Radar 3803157 (method attributes)
4260         * c-common.c (handle_deprecated_attribute): Recognize
4261         objc methods as valid declarations.
4262         * c-common.h: Declare objc_method_decl ().
4263         * stub-objc.c (objc_method_decl): New stub.
4265 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4267         * c-common.c (parse_optimize_options): Call
4268         decode_cmdline_options_to_array_default_mask before
4269         decode_options.  Update arguments to decode_options.
4270         * c-common.h (c_common_init_options_struct): Declare.
4271         * c-opts.c (c_common_init_options_struct): New.  Split out from
4272         c_common_init_options.
4274 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4276         Implemented fast enumeration for Objective-C.
4277         * c-common.h (objc_finish_foreach_loop): New.
4278         * stub-objc.c (objc_finish_foreach_loop): New.
4280 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4282         * c-common.h (struct diagnostic_context): Don't declare here.
4283         (c_common_initialize_diagnostics): Declare using
4284         diagnostic_context typedef.
4285         * c-opts.c (c_common_handle_option): Pass global_dc to
4286         handle_generated_option.
4288 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4290         * c-opts.c (c_common_handle_option): Pass &global_options_set to
4291         handle_generated_option.
4293 2010-10-03  Ian Lance Taylor  <iant@google.com>
4295         * c.opt (-fplan9-extensions): New option.
4297 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4299         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4300         Remove.
4301         (c_cpp_builtins): Call functions from cppbuiltin.c instead
4302         of duplicating code.
4304 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
4306         * c-common.c: Add two new entries for @optional
4307         and @required keywords.
4309         merge from FSF 'apple/trunk' branch.
4310         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
4312         Radar 4386773
4313         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4314         objective-c keywords.
4315         (objc_set_method_opt): New declaration.
4316         * stub-objc.c (objc_set_method_opt): New stub.
4318 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4320         * c-common.c (handle_optimize_attribute): Pass &global_options to
4321         cl_optimization_save and cl_optimization_restore.
4322         * c-opts.c (c_common_handle_option): Pass &global_options to
4323         handle_generated_option.
4324         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4325         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4326         &global_options to cl_optimization_restore.
4328 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4330         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4331         Objective-C/Objective-C++ keywords.
4333 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4335         Merge from 'apple/trunk' branch on FSF servers.
4337         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
4339         Radar 4281748
4340         * c-common.h (objc_check_global_decl): New declaration.
4341         * stub-objc.c (objc_check_global_decl): New stub.
4343 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4345         * c.opt: Don't use VarExists.
4347 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4349         * c-common.c (c_cpp_error): Update names of diagnostic_context
4350         members.
4351         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4352         cl_optimization members.
4353         * c-opts.c (warning_as_error_callback, c_common_handle_option,
4354         sanitize_cpp_opts, finish_options): Update names of cpp_options
4355         members.
4357 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4359         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
4360         (objc_is_reserved_word): Removed.
4361         * c-common.c: Updated comments.
4362         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4363         objc_is_reserved_word.
4364         * stub-objc.c (objc_is_reserved_word): Removed.
4366 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4368         * c-common.h (objc_add_method_declaration): Adjust prototype to
4369         include attributes.
4370         (objc_start_method_definition): Likewise.
4371         (objc_build_keyword_decl): Likewise.
4372         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4373         (objc_start_method_definition): Likewise.
4374         (objc_build_keyword_decl): Likewise.
4376 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4378         * c-common.h (objc_start_class_interface): Adjust prototype.
4379         (objc_start_category_interface): Likewise.
4380         (objc_start_protocol): Likewise.
4381         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4382         (objc_start_class_interface): Likewise.
4383         (objc_start_category_interface): Likewise.
4385 2010-09-27  Ian Lance Taylor  <iant@google.com>
4387         * c-common.c (c_common_attribute_table): Add no_split_stack.
4388         (handle_no_split_stack_attribute): New static function.
4390 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4392         Merge from 'apple/trunk' branch on FSF servers.
4394         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
4396         Radar 4229905
4397         * c-common.h (objc_have_common_type): New declaration.
4398         * stub-objc.c (objc_have_common_type): New stub.
4400         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
4402         Radar 4154928
4403         * c-common.h (objc_common_type): New prototype.
4404         * stub-objc.c (objc_common_type): New stub.
4406 2010-09-24  Jan Hubicka  <jh@suse.cz>
4408         * c-common.c (handle_leaf_attribute): New function.
4409         (struct attribute_spec c_common_att): Add leaf.
4411 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4413         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4414         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4415         -dump, -dump=, -imacros, -imacros=, -include, -include=,
4416         -include-barrier, -include-directory, -include-directory=,
4417         -include-directory-after, -include-directory-after=,
4418         -include-prefix, -include-prefix=, -include-with-prefix,
4419         -include-with-prefix=, -include-with-prefix-after,
4420         -include-with-prefix-after=, -include-with-prefix-before,
4421         -include-with-prefix-before=, -no-integrated-cpp,
4422         -no-line-commands, -no-standard-includes, -no-warnings, -output,
4423         -output=, -pedantic, -pedantic-errors, -preprocess,
4424         -print-missing-file-dependencies, -trace-includes, -traditional,
4425         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4426         -user-dependencies, -verbose, -write-dependencies,
4427         -write-user-dependencies, no-integrated-cpp, traditional): New.
4429 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4431         PR objc/23710
4432         * c-common.h (objc_start_method_definition): Return bool instead
4433         of void.
4434         * stub-objc.c (objc_start_method_definition): Return bool instead
4435         of void.
4437 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4439         PR objc/25965
4440         * c-common.h (objc_get_interface_ivars): New declaration.
4441         * stub-objc.c (objc_get_interface_ivars): New stub.
4443 2010-09-15  Ian Lance Taylor  <iant@google.com>
4445         * c-common.c (parse_optimize_options): Do not capitalize warning
4446         messages.  Remove period at end of warning message.
4448 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4450         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4451         (handle_alias_attribute): ... here.
4452         (handle_ifunc_attribute): New.
4454 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4456         * c-common.h (do_warn_double_promotion): Declare.
4457         * c-common.c (do_warn_double_promotion): Define.
4459 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4461         * c.opt (Wdouble-promotion): New.
4463 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4465         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4466         fvtable-thunks, fxref): Mark no longer supported in help text.
4468 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4470         * c.opt (Wimport, fall-virtual, falt-external-templates,
4471         fdefault-inline, fenum-int-equiv, fexternal-templates,
4472         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4473         fname-mangling-version-, fnew-abi, fnonnull-objects,
4474         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4475         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4476         applicable.
4477         (fhandle-exceptions): Mark with Alias and Warn.
4478         * c-opts.c (c_common_handle_option): Don't handle options marked
4479         as ignored.
4481 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4483         * c.opt (Wcomments, Werror-implicit-function-declaration,
4484         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4485         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4486         aliases.
4487         * c-common.c (option_codes): Use OPT_Wcomment instead of
4488         OPT_Wcomments.
4489         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4490         Don't handle options marked as aliases.
4492 2010-08-25  Richard Guenther  <rguenther@suse.de>
4494         * c-common.c (c_common_get_alias_set): Remove special
4495         handling for pointers.
4497 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4499         * c-common.c: Use FOR_EACH_VEC_ELT.
4500         * c-gimplify.c: Likewise.
4501         * c-pragma.c: Likewise.
4503 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4505         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4506         RejectDriver.
4507         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4508         RejectDriver.
4509         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4510         instead of OPT_MDX and OPT_MMDX.
4512 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4514         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4516 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4518         * c.opt (MD, MMD): Change to MDX and MMDX.
4519         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4521 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4523         * c-opts.c (c_common_handle_option): Call handle_generated_option
4524         instead of handle_option.
4526 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4528         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4529         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4531 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4533         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4534         (pending_redefine_extname): Change type to a VEC.
4535         (add_to_renaming_pragma_list): Update for new type of
4536         pending_redefine_extname.
4537         (maybe_apply_renaming_pragma): Likewise.
4539 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4541         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4542         visited.
4543         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4544         decide whether a type has already been declared/seen.
4545         Do not go to the original type.
4546         (dump_nested_types): New parameter forward.
4547         Generate forward declaration if needed and mark type as visited.
4548         (print_ada_declaration): Call dump_nested_types if not already done.
4549         Mark types as visited.
4551 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4553         * c.opt (-print-pch-checksum): Remove option.
4554         * c-opts.c (c_common_handle_option): Don't handle
4555         OPT_print_pch_checksum.
4557 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4559         * c-common.h (c_common_handle_option): Update prototype and return
4560         value type.
4561         * c-opts.c (c_common_handle_option): Update prototype and return
4562         value type.  Update calls to handle_option and
4563         enable_warning_as_error.
4565 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4567         PR c/45079
4568         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4570 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4572         * c-common.h (c_common_missing_argument): Remove.
4573         * c-opts.c (c_common_missing_argument): Remove.
4574         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4575         idirafter, imacros, include, isysroot, isystem, iquote): Add
4576         MissingArgError.
4577         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4579 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4581         * c-common.h (c_common_option_lang_mask,
4582         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4583         New.
4584         (c_common_init_options): Update prototype.
4585         * c-opts.c (c_common_option_lang_mask): New.
4586         (c_common_initialize_diagnostics): Split out of
4587         c_common_init_options.
4588         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4589         New.
4590         (c_common_init_options): Update prototype.  Use decoded options in
4591         search for -lang-asm.
4593 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4595         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4596         * c-format.c: Likewise.
4598 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4600         * c-common.h: Include diagnostic-core.h. Error if already
4601         included.
4602         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4604 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4606         * c-common.c (IN_GCC_FRONTEND): Do not undef.
4607         Do not include expr.h
4608         (vector_mode_valid_p): Move here.
4610 2010-06-21  DJ Delorie  <dj@redhat.com>
4612         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4613         allow these pragmas anywhere.
4615 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4617         PR bootstrap/44509
4618         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4619         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4620         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4621         ggc_strdup instead of xstrdup.
4623 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4625         * c-cppbuiltin.c: Include cpp-id-data.h.
4626         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4627         (lazy_hex_fp_value): New function.
4628         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4630 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4632         * c-gimplify.c: Do not include tree-flow.h
4634 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4636         PR other/44034
4637         * c-common.c: Rename targetm member:
4638         targetm.enum_va_list -> targetm.enum_va_list_p
4640 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4642         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4644 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4646         * c-cppbuiltin.c: Do not include except.h.
4648 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4650         * c-common.c (warn_for_omitted_condop): New.
4651         * c-common.h (warn_for_omitted_condop): Add prototype.
4653 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4655         * c.opt (lang-objc): Remove.
4656         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4658 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4660         * c-opts.c: Include "tm_p.h".
4662 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4664         * c-common.c (parse_optimize_options): Update call to
4665         decode_options.
4667 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4669         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4670         new type of types_used_by_cur_var_decl.
4672 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
4674         PR bootstrap/44512
4675         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4676         for C++ standard compliance.
4678 2010-06-16  Jason Merrill  <jason@redhat.com>
4680         * c.opt: Add -Wnoexcept.
4682 2010-06-16  Richard Guenther  <rguenther@suse.de>
4684         PR c/44555
4685         * c-common.c (c_common_truthvalue_conversion): Remove
4686         premature and wrong optimization concering ADDR_EXPRs.
4688 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
4690         * c-ada-spec.c (dump_sloc): Remove column info.
4691         (is_simple_enum): New function.
4692         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4693         enum types when relevant.
4695 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4697         * c-common.c (conversion_warning): Warn at expression
4698         location.
4700 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4702         * c-opts.c (c_common_handle_option): Don't handle
4703         OPT_fshow_column.
4705 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4707         * c-pragma.c (push_alignment): Use typed GC allocation.
4708         (handle_pragma_push_options): Likewise.
4710         * c-common.c (parse_optimize_options): Likewise.
4712         * c-common.h (struct sorted_fields_type): Add variable_size GTY
4713         option.
4715 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4717         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4718         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4719         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4720         flag_signed_bitfields, warn_strict_null_sentinel,
4721         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4722         flag_gen_declaration, flag_no_gnu_keywords,
4723         flag_implement_inlines, flag_implicit_templates,
4724         flag_implicit_inline_templates, flag_optional_diags,
4725         flag_elide_constructors, flag_default_inline, flag_rtti,
4726         flag_conserve_space, flag_access_control, flag_check_new,
4727         flag_new_for_scope, flag_weak, flag_working_directory,
4728         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4729         flag_enforce_eh_specs, flag_threadsafe_statics,
4730         flag_pretty_templates): Remove.
4731         * c-common.h (flag_preprocess_only, flag_nil_receivers,
4732         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4733         flag_replace_objc_classes, flag_undef, flag_no_builtin,
4734         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4735         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4736         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4737         flag_no_gnu_keywords, flag_implement_inlines,
4738         flag_implicit_templates, flag_implicit_inline_templates,
4739         flag_optional_diags, flag_elide_constructors, flag_default_inline,
4740         flag_rtti, flag_conserve_space, flag_access_control,
4741         flag_check_new, flag_new_for_scope, flag_weak,
4742         flag_working_directory, flag_use_cxa_atexit,
4743         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4744         flag_threadsafe_statics, flag_pretty_templates,
4745         warn_strict_null_sentinel): Remove.
4746         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4747         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4748         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4749         fimplicit-inline-templates, fimplicit-templates,
4750         flax-vector-conversions, fms-extensions, fnil-receivers,
4751         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4752         frtti, fshort-double, fshort-enums, fshort-wchar,
4753         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4754         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4755         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4756         gen-decls, undef): Use Var.
4757         (fdefault-inline, foptional-diags): Document as doing nothing.
4758         * c-opts.c (c_common_handle_option): Remove cases for options now
4759         using Var.  Mark ignored options as such.
4761 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4763         * c-common.c: Moved to here from parent directory.
4764         * c-common.def: Likewise.
4765         * c-common.h: Likewise.
4766         * c-cppbuiltin.c: Likewise.
4767         * c-dump.c: Likewise.
4768         * c-format.c: Likewise.
4769         * c-format.h : Likewise.
4770         * c-gimplify.c: Likewise.
4771         * c-lex.c: Likewise.
4772         * c-omp.c: Likewise.
4773         * c.opt: Likewise.
4774         * c-opts.c: Likewise.
4775         * c-pch.c: Likewise.
4776         * c-ppoutput.c: Likewise.
4777         * c-pragma.c: Likewise.
4778         * c-pragma.h: Likewise.
4779         * c-pretty-print.c: Likewise.
4780         * c-pretty-print.h: Likewise.
4781         * c-semantics.c: Likewise.
4782         * stub-objc.c: Likewise.
4784         * c-common.c: Include gt-c-family-c-common.h.
4785         * c-pragma.c: Include gt-c-family-c-pragma.h.
4787 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4789 Copying and distribution of this file, with or without modification,
4790 are permitted in any medium without royalty provided the copyright
4791 notice and this notice are preserved.