re PR c++/64956 (__GXX_ABI_VERSION needs a proper definition for the 5.x releases)
[official-gcc.git] / gcc / c-family / ChangeLog
blobc63384be94758b01a5f501c406031f7c980571a2
1 2015-02-12  Jason Merrill  <jason@redhat.com>
3         PR c++/64956
4         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
5         to the current highest version.
6         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
8 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
10         PR c/64824
11         PR c/64868
12         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
13         instead of RDIV_EXPR.  Use build_binary_op instead of
14         build2_loc.
16 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
18         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
19         to pass input_location as first argument.
21 2015-01-23  Tom de Vries  <tom@codesourcery.com>
23         PR libgomp/64672
24         * c.opt (fopenacc): Mark as LTO option.
26 2015-01-23  Tom de Vries  <tom@codesourcery.com>
28         PR libgomp/64707
29         * c.opt (fopenmp): Mark as LTO option.
31 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
33         PR c/63307
34         * cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
35         (compare_decls): Fix up formatting.
37 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
39         PR c/63307
40         * cilk.c: Include vec.h.
41         (struct cilk_decls): New structure.
42         (wrapper_parm_cb): Split this function to...
43         (fill_decls_vec): ...this...
44         (create_parm_list): ...and this.
45         (compare_decls): New function.
46         (for_local_cb): Remove.
47         (wrapper_local_cb): Ditto.
48         (build_wrapper_type): For now first traverse and fill vector of
49         declarations then sort it and then deal with sorted vector.
50         (cilk_outline): Ditto.
51         (declare_one_free_variable): Ditto.
53 2015-01-21  Jason Merrill  <jason@redhat.com>
55         PR c++/64629
56         * c-format.c (check_format_arg): Call decl_constant_value.
58 2015-01-19  Martin Liska  <mliska@suse.cz>
60         * c-common.c (handle_noicf_attribute): New function.
62 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
63             Bernd Schmidt  <bernds@codesourcery.com>
64             James Norris  <jnorris@codesourcery.com>
65             Cesar Philippidis  <cesar@codesourcery.com>
66             Ilmir Usmanov  <i.usmanov@samsung.com>
67             Jakub Jelinek  <jakub@redhat.com>
69         * c.opt (fopenacc): New option.
70         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
71         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
72         New macros.
73         * c-common.h (c_finish_oacc_wait): New prototype.
74         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
75         (c_finish_oacc_wait): New function.
76         * c-pragma.c (oacc_pragmas): New variable.
77         (c_pp_lookup_pragma, init_pragma): Handle it.
78         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
79         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
80         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
81         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
82         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
83         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
84         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
85         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
86         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
87         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
88         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
89         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
90         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
91         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
92         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
93         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
94         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
95         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
96         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
97         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
98         PRAGMA_OACC_CLAUSE_WORKER.
100 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
102         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
103         for the new option fstack-protector_explicit.
104         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
105         (handle_stack_protect_attribute): New function.
107 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
109         * c.opt: New option -Warray-bounds=.
111 2015-01-09  Michael Collison  <michael.collison@linaro.org>
113         * array-notation-common.c: Include hash-set.h, machmode.h,
114         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
115         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
116         * c-ada-spec.c: Ditto.
117         * c-cilkplus.c: Ditto.
118         * c-common.c: Include input.h due to flattening of tree.h.
119         Define macro GCC_C_COMMON_C.
120         * c-common.h: Flatten tree.h header files into c-common.h.
121         Remove include of tree-core.h.
122         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
123         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
124         fold-const.h, wide-int.h, and inchash.h due to
125         flattening of tree.h.
126         * c-dump.c: Ditto.
127         * c-format.c: Flatten tree.h header files into c-common.h.
128         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
129         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
130         fold-const.h, wide-int.h, and inchash.h due to
131         flattening of tree.h.
132         * c-dump.c: Include hash-set.h, machmode.h,
133         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
134         fold-const.h, wide-int.h, and inchash.h due to
135         flattening of tree.h.
136         * c-format.c: Include hash-set.h, machmode.h,
137         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
138         fold-const.h, wide-int.h, inchash.h and real.h due to
139         flattening of tree.h.
140         * c-gimplify.c: Include hash-set.h, machmode.h,
141         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
142         fold-const.h, wide-int.h, and inchash.h due to
143         flattening of tree.h.
144         * cilk.c: Ditto.
145         * c-lex.c: Ditto.
146         * c-omp.c: Ditto.
147         * c-opts.c: Ditto.
148         * c-pch.c: Ditto.
149         * c-ppoutput.c: Ditto.
150         * c-pragma.c: Ditto.
151         * c-pretty-print.c: Ditto.
152         * c-semantics.c: Ditto.
153         * c-ubsan.c: Ditto.
154         * stub-objc.c: Ditto.
156 2015-01-08  Jason Merrill  <jason@redhat.com>
158         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
159         do_ubsan_in_current_function.
160         (ubsan_maybe_instrument_reference_or_call): Likewise.
161         * c-ubsan.h: Declare it.
163 2015-01-08  Mike Stump  <mikestump@comcast.net>
165         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
167 2015-01-07  Marek Polacek  <polacek@redhat.com>
169         PR c/64440
170         * c-common.c (c_fully_fold_internal): Warn for division and modulo
171         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
173 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
175         PR c++/31397
176         * c.opt (Wsuggest-override): New option.
178 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
180         Update copyright years.
182 2015-01-05  Marek Polacek  <polacek@redhat.com>
184         PR c/64423
185         * c-common.c (warn_array_subscript_with_type_char): Add location_t
186         parameter.  Use it.
187         * c-common.h (warn_array_subscript_with_type_char): Update
188         declaration.
190 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
192         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
193         Control macro with flag_sized_deallocation.
195 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
197         * c.opt (Wdiscarded-array-qualifiers): New option.
199 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
201         PR preprocessor/63831
202         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
203         and __has_cpp_attribute here.
204         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
205         c_common_has_attribute.
206         * c-common.h (c_common_has_attribute): New prototype.
207         * c-lex.c (init_c_lex): Set cb->has_attribute to
208         c_common_has_attribute instead of cb_has_attribute.
209         (get_token_no_padding): New function.
210         (cb_has_attribute): Renamed to ...
211         (c_common_has_attribute): ... this.  No longer static.  Use
212         get_token_no_padding, require ()s, don't build TREE_LIST
213         unnecessarily, fix up formatting, adjust diagnostics, call
214         init_attributes.
216 2014-12-15  Jason Merrill  <jason@redhat.com>
218         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
219         (-Wsized-deallocation): New.
220         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
221         to on in C++14 and up.
223 2014-12-11  Jason Merrill  <jason@redhat.com>
225         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
227         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
228         we aren't complaining about VLAs.
230 2014-12-06  Marek Polacek  <polacek@redhat.com>
232         PR tree-optimization/64183
233         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
234         shift-expression if it is integer_type_node.  Use types_compatible_p.
236 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
238         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
239         last argument from create_tmp_var_raw and create_tmp_var calls.
240         * cilk.c (gimplify_cilk_spawn): Likewise.
241         * c-omp.c (c_finish_omp_atomic): Likewise.
243 2014-11-28  Marek Polacek  <polacek@redhat.com>
245         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
246         instead of unsigned_type_node.
248 2014-11-28  Marek Polacek  <polacek@redhat.com>
250         PR c/63862
251         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
252         to op1_utype.
253         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
254         expression to unsigned_type_node.
256 2014-11-20  Mark Wielaard  <mjw@redhat.com>
258         PR debug/38757
259         * c-opts.c (set_std_c89): Set lang_hooks.name.
260         (set_std_c99): Likewise.
261         (set_std_c11): Likewise.
262         (set_std_cxx98): Likewise.
263         (set_std_cxx11): Likewise.
264         (set_std_cxx14): Likewise.
265         (set_std_cxx1z): Likewise.
267 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
269         PR target/63764
270         * c-common.h (convert_vector_to_pointer_for_subscript): Change
271         return type to bool.
272         * c-common.c: Include gimple-expr.h.
273         (convert_vector_to_pointer_for_subscript): Change return type to
274         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
275         and copy it into a TARGET_EXPR and use that instead of *vecp
276         directly.
278 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
280         Merger of git branch "gimple-classes-v2-option-3".
281         * ChangeLog.gimple-classes: New.
282         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
283         from being just a vec<gimple> to a vec<gbind *>.
285 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
287         PR sanitizer/63813
288         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
289         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
290         get_pointer_alignment for non-pointers.  Use ptype, or if it is
291         reference type, corresponding pointer type, as type of kind
292         argument.
293         (ubsan_maybe_instrument_reference,
294         ubsan_maybe_instrument_member_call): Adjust callers.
296 2014-11-15  Marek Polacek  <polacek@redhat.com>
298         PR middle-end/63884
299         * array-notation-common.c (is_sec_implicit_index_fn): Return false
300         for NULL fndecl.
301         (extract_array_notation_exprs): Return for NULL node.
303 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
305         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
306         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
308 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
310         PR c/59708
311         * c-common.c (check_builtin_function_arguments): Handle
312         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
314 2014-11-10  Andi Kleen  <ak@linux.intel.com>
316         PR c/60804
317         * c-common.h (check_no_cilk): Declare.
318         * cilk.c (get_error_location): New function.
319         (check_no_cilk): Dito.
321 2014-11-10  Andi Kleen  <ak@linux.intel.com>
323         * cilk.c (recognize_spawn): Use expression location
324         for error message.
326 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
328         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
330 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
332         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
333         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
334         (__cpp_range_based_for, __cpp_initializer_lists,
335         __cpp_delegating_constructors, __cpp_nsdmi,
336         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
337         for C++11; (__cpp_attribute_deprecated): Remove in favor of
338         __has_cpp_attribute.
339         * c-lex.c (cb_has_attribute): New callback CPP function;
340         (init_c_lex): Set has_attribute callback.
342 2014-11-04  Richard Biener  <rguenther@suse.de>
344         * c-common.c (shorten_compare): Do not shorten mixed
345         DFP and non-DFP compares.
347 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
349         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
350         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
351         Commentary and rearrangement of tests.
352         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
353         Commentary and rearrangement of tests.
354         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
355         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
357 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
359         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
360         enum from machine_mode.
362 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
364         * c-common.c: Adjust include files.
365         * c-gimplify.c: Ditto.
366         * cilk.c: Ditto.
367         * c-pragma.c: Ditto.
368         * c-ubsan.c: Ditto.
370 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
372         * c-gimplify.c: Adjust include files.
374 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
376         PR c++/53061
377         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
378         c_common_initialize_diagnostics.
379         * c-common.h: Likewise.
381 2014-10-24  Marek Polacek  <polacek@redhat.com>
383         PR c/56980
384         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
385         print "struct"/"union"/"enum" for typedefed names.
387 2014-10-23  Marek Polacek  <polacek@redhat.com>
389         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
390         in unsigned type.
392 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
393             Yury Gribov  <y.gribov@samsung.com>
395         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
396         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
397         instead of flag_sanitize_recover as bool flag.
399 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
401         * cilk.c: Revert previous change.
403 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
405         PR c/63307
406         * cilk.c: Include vec.h.
407         (struct cilk_decls): New structure.
408         (wrapper_parm_cb): Split this function to...
409         (fill_decls_vec): ...this...
410         (create_parm_list): ...and this.
411         (compare_decls): New function.
412         (for_local_cb): Remove.
413         (wrapper_local_cb): Ditto.
414         (build_wrapper_type): For now first traverse and fill vector of
415         declarations then sort it and then deal with sorted vector.
416         (cilk_outline): Ditto.
417         (declare_one_free_variable): Ditto.
419 2014-10-17  Marek Polacek  <polacek@redhat.com>
421         * c-opts.c (c_common_post_options): Set warn_implicit_int.
422         * c.opt (Wimplicit-int): Initialize to -1.
424 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
426         * c-pragma.c: Adjust include files.
427         * c-semantics.c: Likewise.
429 2014-10-16  DJ Delorie  <dj@redhat.com>
431         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
432         multiples of bytes.
434 2014-10-14  Jason Merrill  <jason@redhat.com>
436         PR c++/63455
437         * c-common.h (CPP_PREPARSED_EXPR): New.
438         (N_CP_TTYPES): Adjust.
440 2014-10-15  Marek Polacek  <polacek@redhat.com>
442         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
444 2014-10-14  DJ Delorie  <dj@redhat.com>
446         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
447         types, not just __int128.
448         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
449         types, not just __int128.
450         (cpp_atomic_builtins): Round pointer sizes up.
451         (type_suffix): Use type precision, not specific types.
452         * c-common.c (c_common_reswords): Remove __int128 special case.
453         (c_common_type_for_size): Check for all __intN types, not just
454         __int128.
455         (c_common_type_for_mode): Likewise.
456         (c_common_signed_or_unsigned_type): Likewise.
457         (c_build_bitfield_integer_type): Likewise.
458         (c_common_nodes_and_builtins): Likewise.
459         (keyword_begins_type_specifier): Likewise.
460         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
461         __intN variants.
463 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
465         * c-common.c: Use hash_table instead of hashtab.
467 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
469         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
470         C++11 section.
472 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
474         PR c++/54427
475         PR c++/57198
476         PR c++/58845
477         * c-common.c (warn_logical_operator): Punt for vectors.
479 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
481         Implement SD-6: SG10 Feature Test Recommendations
482         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
483         macros and the __has_header macro.
485 2014-09-30  Jason Merrill  <jason@redhat.com>
487         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
488         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
489         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
491         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
492         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
494         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
495         * c-common.c (c_common_reswords): Remove __is_convertible_to.
497 2014-09-24  Marek Polacek  <polacek@redhat.com>
499         PR c/61405
500         PR c/53874
501         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
503 2014-09-23  Andi Kleen  <ak@linux.intel.com>
505         * c-common.c (handle_no_reorder_attribute): New function.
506         (c_common_attribute_table): Add no_reorder attribute.
508 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
510         * c-cppbuiltin.c (c_cpp_builtins): Define
511         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
512         modes.
514 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
516         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
517         for supported floating-point modes.
519 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
521         * c.opt (Wpsabi): Use LangEnabledBy.
522         * c-opts.c (c_common_handle_option): Do not handle here.
524 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
526         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
527         macros for floating-point modes.
529 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
531         PR target/58757
532         * c-cppbuiltin.c (builtin_define_float_constants): Correct
533         __*_DENORM_MIN__ without denormals.
535 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
537         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
538         ubsan_instrument_vla, ubsan_instrument_return): Adjust
539         ubsan_create_data callers.
540         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
541         index is constant or BIT_AND_EXPR with constant mask and is
542         small enough for the bound.
543         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
544         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
546 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
548         * c.opt: Add CppReason to various flags.
549         (Wdate-time): Re-sort.
550         * c-common.c: Include c-common.h earlier.
551         (struct reason_option_codes_t): Delete.
552         (c_option_controlling_cpp_error): Prefix global type and struct
553         with cpp_.
555 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
557         * c.opt (Wnormalized): New.
558         (Wnormalized=): Use Enum and Reject Negative.
559         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
561 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
563         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
564         digits of floating-point modes if -fbuilding-libgcc.
566 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
568         * c-cppbuiltin.c (c_cpp_builtins): Also define
569         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
570         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
571         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
572         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
573         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
574         __LIBGCC_STACK_GROWS_DOWNWARD__,
575         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
576         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
577         __LIBGCC_DWARF_FRAME_REGISTERS__,
578         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
579         __LIBGCC_STACK_POINTER_REGNUM__ and
580         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
581         (builtin_define_with_value): Handle backslash-escaping in string
582         macro values.
584 2014-09-05  Richard Biener  <rguenther@suse.de>
586         PR middle-end/63148
587         * c-format.c (check_format_arg): Properly handle
588         effectively signed POINTER_PLUS_EXPR offset.
590 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
592         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
593         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
594         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
595         and Init.
596         * c-opts.c (c_common_handle_option): Do not handle here.
597         (sanitize_cpp_opts): Likewise.
598         * c-common.c (struct reason_option_codes_t): Handle
599         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
601 2014-09-03  Marek Polacek  <polacek@redhat.com>
603         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
605 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
606             Balaji V. Iyer  <balaji.v.iyer@intel.com>
607             Igor Zamyatin  <igor.zamyatin@intel.com>
609         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
610         * c-common.c (c_common_reswords): Added _Cilk_for.
611         * c-common.h (enum rid): Added RID_CILK_FOR.
612         (cilk_for_number_of_iterations): Add declaration.
613         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
614         CILK_FOR.
615         * c-pragma.c (init_pragma): Register "grainsize" pragma.
616         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
618 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
620         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
621         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
622         Wundef): Use CPP, Var and Init.
623         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
625 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
627         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
628         * c-opts.c (c_common_handle_option): Do not handle here.
630 2014-08-25  Jason Merrill  <jason@redhat.com>
632         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
633         -std=c++14 and -std=gnu++14, rather than the reverse.
634         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
635         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
636         * c-common.h (cxx_dialect): Remove cxx1y.
638 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
640         * c-common.h (enum cxx_dialect): Add cxx14.
641         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
642         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
643         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
645 2014-08-22  Jason Merrill  <jason@redhat.com>
647         * c.opt (std=gnu++17): Fix alias.
649 2014-08-22  Marek Polacek  <polacek@redhat.com>
651         PR c++/62199
652         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
653         check for vector types.  Drop LHS argument.
654         * c-common.h (warn_logical_not_parentheses): Adjust.
656 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
658         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
659         (Wmultichar): Likewise.
660         (Wdate-time): Use C-family languages instead of Common. Use CPP
661         and Var.
662         * c-opts.c (c_common_handle_option): Do not handle the above
663         options here.
664         (sanitize_cpp_opts): Likewise.
666 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
668         PR fortran/44054
669         * c-opts.c: Include tree-diagnostics.h.
670         (c_diagnostic_finalizer): New.
671         (c_common_initialize_diagnostics): Use it.
673 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
675         PR preprocessor/51303
676         * c-common.c (struct reason_option_codes_t option_codes):
677         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
679 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
681         PR c/60975
682         PR c/53063
683         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
684         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
685         (c_common_post_options): Call init_global_opts_from_cpp.
686         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
688 2014-08-19  Marek Polacek  <polacek@redhat.com>
690         PR c++/62153
691         * c-common.c (maybe_warn_bool_compare): New function.
692         * c-common.h (maybe_warn_bool_compare): Declare.
693         * c.opt (Wbool-compare): New option.
695 2014-08-19  Marek Polacek  <polacek@redhat.com>
697         * c.opt (Wc99-c11-compat): New option.
699 2014-08-19  Marek Polacek  <polacek@redhat.com>
701         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
702         to warn_c90_c99_compat.
703         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
704         to -1.
706 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
707             Steven Bosscher  <steven@gcc.gnu.org>
709         PR c/52952
710         * c-format.c: Add extra_arg_loc and format_string_loc to struct
711         format_check_results.
712         (check_function_format): Use true and add comment for boolean
713         argument.
714         (finish_dollar_format_checking): Use explicit location when warning.
715         (check_format_info): Likewise.
716         (check_format_arg): Set extra_arg_loc and format_string_loc.
717         (check_format_info_main): Use explicit location when warning.
718         (check_format_types): Pass explicit location.
719         (format_type_warning): Likewise.
721 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
723         PR fortran/44054
724         * c-format.c: Handle Fortran flags.
726 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
728         PR other/61962
729         * array-notation-common.c (find_rank): Added handling for other
730         types of references.
732 2014-08-10  Marek Polacek  <polacek@redhat.com>
734         PR c/51849
735         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
736         * c.opt (Wc90-c99-compat): Add option.
738 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
740         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
742 2014-08-03  Marek Polacek  <polacek@redhat.com>
744         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
745         (c_add_case_label): Pass loc to check_case_value.
747 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
749         * cilk.c: Use hash_map instead of pointer_map.
751 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
753         * c-gimplify.c: Use hash_set instead of pointer_set.
755 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
757         PR middle-end/61455
758         * array-notation-common.c (extract_array_notation_exprs): Handling
759         of DECL_EXPR added.
761 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
763         * c-common.h (min_align_of_type): Removed prototype.
764         * c-common.c (min_align_of_type): Removed.
765         * c-ubsan.h (ubsan_maybe_instrument_reference,
766         ubsan_maybe_instrument_member_call): New prototypes.
767         * c-ubsan.c: Include stor-layout.h and builtins.h.
768         (ubsan_maybe_instrument_reference_or_call,
769         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
770         functions.
772 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
774         PR c++/60517
775         * c.opt (-Wreturn-local-addr): Move to common.opt.
777 2014-07-30  Jason Merrill  <jason@redhat.com>
779         PR c++/61659
780         PR c++/61687
781         Revert:
782         * c.opt (-fuse-all-virtuals): New.
784 2014-07-30  Tom Tromey  <tromey@redhat.com>
786         PR c/59855
787         * c.opt (Wdesignated-init): New option.
788         * c-common.c (c_common_attribute_table): Add "designated_init".
789         (handle_designated_init): New function.
791 2014-07-24  Marek Polacek  <polacek@redhat.com>
793         PR c/57653
794         * c-opts.c (c_finish_options): If -imacros is in effect, return.
796 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
798         PR preprocessor/60723 - missing system-ness marks for macro tokens
799         * c-ppoutput.c (struct print::prev_was_system_token): New data
800         member.
801         (init_pp_output): Initialize it.
802         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
803         (do_line_change): Return a flag saying if a line marker was
804         emitted or not.
805         (scan_translation_unit): Detect if the system-ness of the token we
806         are about to emit is different from the one of the previously
807         emitted token.  If so, emit a line marker.  Avoid emitting useless
808         adjacent line markers.  Avoid emitting line markers for tokens
809         originating from the expansion of built-in macros.
810         (scan_translation_unit_directives_only): Adjust.
812 2014-07-15  Marek Polacek  <polacek@redhat.com>
814         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
815         TYPE_MAX_VALUE is NULL.
817 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
819         PR middle-end/61294
820         * c.opt (Wmemset-transposed-args): New warning.
822 2014-07-10  Jason Merrill  <jason@redhat.com>
824         PR c++/61659
825         PR c++/61687
826         * c.opt (-fuse-all-virtuals): New.
828 2014-07-09  Richard Biener  <rguenther@suse.de>
830         PR c-family/61741
831         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
832         using unsigned arithmetic if overflow does not wrap instead of
833         if overflow is undefined.
835 2014-07-06  Marek Polacek  <polacek@redhat.com>
837         PR c/6940
838         * c.opt (Wsizeof-array-argument): New option.
840 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
842         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
843         comments->count <= 1, as comments->entries might be NULL.
845 2014-07-01  Marek Polacek  <polacek@redhat.com>
847         * c.opt (Wint-conversion): New option.
849 2014-07-01  Marek Polacek  <polacek@redhat.com>
851         PR c/58286
852         * c.opt (Wincompatible-pointer-types): New option.
854 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
856         PR c++/51400
857         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
858         Do not discard TYPE_QUALS of type.
860 2014-06-26  Jason Merrill  <jason@redhat.com>
862         * c-common.h (enum cxx_dialect): Add cxx1z.
863         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
864         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
866 2014-06-26  Teresa Johnson  <tejohnson@google.com>
868         * c-common.h (get_dump_info): Declare.
869         * c-gimplify.c (c_genericize): Use saved dump files.
870         * c-opts.c (c_common_parse_file): Begin and end dumps
871         once around parsing invocation.
872         (get_dump_info): New function.
874 2014-06-23  Marek Polacek  <polacek@redhat.com>
875             Andrew MacLeod  <amacleod@redhat.com>
877         PR c/61553
878         * c-common.c (get_atomic_generic_size): Don't segfault if the
879         type doesn't have a size.
881 2014-06-20  Marek Polacek  <polacek@redhat.com>
883         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
884         (ubsan_walk_array_refs_r): New function.
885         (c_genericize): Instrument array bounds.
886         * c-ubsan.c: Include "internal-fn.h".
887         (ubsan_instrument_division): Mark instrumented arrays as having
888         side effects.  Adjust ubsan_type_descriptor call.
889         (ubsan_instrument_shift): Likewise.
890         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
891         (ubsan_instrument_bounds): New function.
892         (ubsan_array_ref_instrumented_p): New function.
893         (ubsan_maybe_instrument_array_ref): New function.
894         * c-ubsan.h (ubsan_instrument_bounds): Declare.
895         (ubsan_array_ref_instrumented_p): Declare.
896         (ubsan_maybe_instrument_array_ref): Declare.
898 2014-06-20  Hale Wang  <hale.wang@arm.com>
900         PR lto/61123
901         * c.opt (fshort-enums): Add to LTO.
902         * c.opt (fshort-wchar): Likewise.
904 2014-06-16  Marek Polacek  <polacek@redhat.com>
906         PR c/60439
907         * c.opt (Wswitch-bool): Add Var.
909 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
911         PR middle-end/61486
912         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
913         #pragma omp target teams or
914         #pragma omp {,target }teams distribute simd.
916 2014-06-12  Jason Merrill  <jason@redhat.com>
918         * c.opt (Wabi=, fabi-compat-version): New.
919         * c-opts.c (c_common_handle_option): Handle -Wabi=.
920         (c_common_post_options): Handle flag_abi_compat_version default.
921         Disallow -fabi-compat-version=1.
922         * c-common.h (abi_version_crosses): New.
924 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
926         * c-common.c (handle_section_attribute): Update handling for
927         section names that are no longer trees.
929 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
931         PR fortran/60928
932         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
933         (omp_pragmas): ... back here.
935 2014-06-05  Marek Polacek  <polacek@redhat.com>
937         PR c/49706
938         * c-common.c (warn_logical_not_parentheses): New function.
939         * c-common.h (warn_logical_not_parentheses): Declare.
940         * c.opt (Wlogical-not-parentheses): New option.
942 2014-06-04  Marek Polacek  <polacek@redhat.com>
944         PR c/30020
945         * c-common.c (check_case_bounds): Add location parameter.
946         Use it.
947         (c_add_case_label): Pass loc to check_case_bounds.
949 2014-06-03  Marek Polacek  <polacek@redhat.com>
951         PR c/60439
952         * c.opt (Wswitch-bool): New option.
954 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
956         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
957         Remove prototypes.
958         (record_types_used_by_current_var_decl): Move prototype to where
959         it belongs.
961         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
962         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
963         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
965 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
967         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
968         * c-common.c (c_common_nodes_and_builtins): Don't initialize
969         void_zero_node.
970         * c-pretty-print.c (pp_c_void_constant): New function.
971         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
972         (c_pretty_printer::expression): Handle VOID_CST.
973         * cilk.c (extract_free_variables): Likewise.
974         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
975         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
977 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
979         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
980         * c-pragma.c (push_alignment): Adjust.
981         (handle_pragma_push_options): Likewise.
983 2014-05-09  Marek Polacek  <polacek@redhat.com>
985         PR c/50459
986         * c-common.c (check_user_alignment): Return -1 if alignment is error
987         node.
988         (handle_aligned_attribute): Don't call default_conversion on
989         FUNCTION_DECLs.
990         (handle_vector_size_attribute): Likewise.
991         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
992         (handle_sentinel_attribute): Call default_conversion and allow even
993         integral types as an argument.
995 2014-05-08  Marek Polacek  <polacek@redhat.com>
997         PR c/61053
998         * c-common.c (min_align_of_type): New function factored out from...
999         (c_sizeof_or_alignof_type): ...here.
1000         * c-common.h (min_align_of_type): Declare.
1002 2014-05-08  Marek Polacek  <polacek@redhat.com>
1004         PR c/61077
1005         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1006         parameter type of main.
1008 2014-05-07  DJ Delorie  <dj@redhat.com>
1010         * c-cppbuiltin.c (print_bits_of_hex): New.
1011         (builtin_define_type_minmax): Print values using hex so as not to
1012         require a pre-computed list of string values.
1014 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1015             Mike Stump  <mikestump@comcast.net>
1016             Richard Sandiford  <rdsandiford@googlemail.com>
1018         * c-ada-spec.c: Include wide-int.h.
1019         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1020         (dump_generic_ada_node): Use wide-int interfaces.
1021         * c-common.c: Include wide-int-print.h.
1022         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1023         (pointer_int_sum): Use wide-int interfaces.
1024         (c_common_nodes_and_builtins): Use make_int_cst.
1025         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1026         (handle_alloc_size_attribute): Use wide-int interfaces.
1027         (get_nonnull_operand): Likewise.
1028         * c-format.c (get_constant): Use tree_fits_uhwi_p.
1029         * c-lex.c: Include wide-int.h.
1030         (narrowest_unsigned_type): Take a widest_int rather than two
1031         HOST_WIDE_INTs.
1032         (narrowest_signed_type): Likewise.
1033         (interpret_integer): Update accordingly.  Use wide-int interfaces.
1034         (lex_charconst): Use wide-int interfaces.
1035         * c-pretty-print.c: Include wide-int.h.
1036         (pp_c_integer_constant): Use wide-int interfaces.
1037         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1038         INT_CST_LT_UNSIGNED.
1040 2014-05-06  Richard Biener  <rguenther@suse.de>
1042         * c-opts.c (c_common_post_options): For -freestanding,
1043         -fno-hosted and -fno-builtin disable pattern recognition
1044         if not enabled explicitely.
1046 2014-05-02  Marek Polacek  <polacek@redhat.com>
1048         * c.opt (Wsizeof-pointer-memaccess): Describe option.
1050 2014-05-01  Marek Polacek  <polacek@redhat.com>
1052         PR c/43245
1053         * c.opt (Wdiscarded-qualifiers): Add.
1055 2014-04-30  Marek Polacek  <polacek@redhat.com>
1057         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
1058         INT_MIN / -1 sanitization only for integer types.
1060 2014-04-25  Marek Polacek  <polacek@redhat.com>
1062         PR c/18079
1063         * c-common.c (handle_noinline_attribute): Warn if the attribute
1064         conflicts with always_inline attribute.
1065         (handle_always_inline_attribute): Warn if the attribute conflicts
1066         with noinline attribute.
1068 2014-04-25  Marek Polacek  <polacek@redhat.com>
1070         PR c/60156
1071         * c-common.c (check_main_parameter_types): Warn about variadic main.
1073 2014-04-24  Mike Stump  <mikestump@comcast.net>
1075         * c.opt (Wshadow-ivar): Default to on.
1077 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
1079         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1081 2014-04-23  Marek Polacek  <polacek@redhat.com>
1083         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1085 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1087         PR sanitizer/60275
1088         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1089         if flag_sanitize_undefined_trap_on_error.
1090         (ubsan_instrument_division, ubsan_instrument_shift,
1091         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
1092         if !flag_sanitize_recover.
1094 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
1096         PR libstdc++/43622
1097         * c-common.c (registered_builtin_types): Make non-static.
1098         * c-common.h (registered_builtin_types): Declare.
1100 2014-04-14  Richard Biener  <rguenther@suse.de>
1101         Marc Glisse  <marc.glisse@inria.fr>
1103         PR c/60819
1104         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1105         apply may-alias the scalar pointer type when applicable.
1107 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1109         PR middle-end/60467
1110         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1111         as possible argument for Cilk_spawn.
1113 2014-04-11  Tobias Burnus  <burnus@net-b.de>
1115         PR c/60194
1116         * c.opt (Wformat-signedness): Add
1117         * c-format.c(check_format_types): Use it.
1119 2014-04-11  Jason Merrill  <jason@redhat.com>
1121         PR c++/57926
1122         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1123         default_conversion for an array argument.
1125 2014-04-08  Marek Polacek  <polacek@redhat.com>
1127         PR sanitizer/60745
1128         * c-ubsan.c: Include asan.h.
1129         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1131 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1133         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1135 2014-04-02  Marek Polacek  <polacek@redhat.com>
1137         * c-common.h (c_expand_expr): Remove declaration.
1139 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1141         PR c++/60689
1142         * c-common.c (add_atomic_size_parameter): When creating new
1143         params vector, push the size argument first.
1145 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
1147         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1148         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1149         ubsan_create_data callers.
1151 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
1153         PR debug/60603
1154         * c-opts.c (c_finish_options): Restore cb_file_change call to
1155         <built-in>.
1157 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
1159         PR middle-end/36282
1160         * c-pragma.c (apply_pragma_weak): Only look at
1161         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1162         DECL_ASSEMBLER_NAME_SET_P (decl).
1163         (maybe_apply_pending_pragma_weaks): Exit early if
1164         vec_safe_is_empty (pending_weaks) rather than only when
1165         !pending_weaks.
1166         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
1167         set assembler name back to NULL afterwards.
1169 2014-03-11  Jason Merrill  <jason@redhat.com>
1171         * c.opt: Add -std=gnu++14.
1173 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
1175         * c-opts.c (c_common_post_options): Don't override
1176         -ffp-contract=fast if unsafe-math-optimizations is on.
1178 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
1180     * c.opt: Enable LTO FE for fshort-double.
1182 2014-03-07  Jason Merrill  <jason@redhat.com>
1184         * c.opt: Add -std=c++14.
1186 2014-03-06  Marek Polacek  <polacek@redhat.com>
1188         PR c/60197
1189         * cilk.c (contains_cilk_spawn_stmt): New function.
1190         (contains_cilk_spawn_stmt_walker): Likewise.
1191         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1192         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1194 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
1196         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1197         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1198         even when flag_preprocess_only.
1200 2014-02-26  Jason Merrill  <jason@redhat.com>
1202         PR c++/59231
1203         PR c++/11586
1204         * c-common.c (shorten_compare): Don't check
1205         c_inhibit_evaluation_warnings.
1207 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
1209         PR c/37743
1210         * c-common.c (c_common_nodes_and_builtins): When initializing
1211         c_uint{16,32,64}_type_node, also set corresponding
1212         uint{16,32,64}_type_node to the same value.
1214         PR c++/60267
1215         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1216         for PRAGMA_IVDEP if flag_preprocess_only.
1218 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
1220         PR c/60101
1221         * c-common.c (merge_tlist): If copy is true, call new_tlist,
1222         if false, add ADD itself, rather than vice versa.
1223         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1224         copy.  For SAVE_EXPR, only call merge_tlist once.
1226 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
1228         PR middle-end/60092
1229         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1230         and tree_to_uhwi.
1231         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1232         functions.
1233         (c_common_attribute_table): Add alloc_align and assume_aligned
1234         attributes.
1236 2014-02-06  Marek Polacek  <polacek@redhat.com>
1238         PR c/60087
1239         * c-common.c (warn_for_sign_compare): Call warning_at with location
1240         instead of warning.
1242 2014-02-05  Marek Polacek  <polacek@redhat.com>
1244         PR c/53123
1245         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1246         statement.
1248 2014-02-04  Marek Polacek  <polacek@redhat.com>
1250         PR c/60036
1251         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1252         SAVE_EXPR.
1254 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
1256         PR c++/53017
1257         PR c++/59211
1258         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1259         handle_vector_size_attribute, handle_nonnull_attribute): Call
1260         default_conversion on the attribute argument.
1261         (handle_nonnull_attribute): Increment the argument number.
1263 2014-01-31  Marek Polacek  <polacek@redhat.com>
1265         PR c/59963
1266         * c-common.c (add_atomic_size_parameter): Pass vNULL to
1267         build_function_call_vec.
1268         (resolve_overloaded_builtin): Likewise.
1269         * c-common.h (build_function_call_vec): Adjust declaration.
1271 2014-01-30  Marek Polacek  <polacek@redhat.com>
1273         PR c/59940
1274         * c-common.h (unsafe_conversion_p): Adjust declaration.
1275         (warnings_for_convert_and_check): Likewise.
1276         (convert_and_check): Likewise.
1277         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
1278         expansion_point_location_if_in_system_header on it.
1279         (warnings_for_convert_and_check): Add location parameter.  Call
1280         expansion_point_location_if_in_system_header on it.  Use it.
1281         (convert_and_check): Add location parameter.  Use it.
1282         (conversion_warning): Likewise.
1283         (c_add_case_label): Adjust convert_and_check calls.
1284         (scalar_to_vector): Adjust unsafe_conversion_p calls.
1286 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1288         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1289         flag_cilkplus.
1290         * c-pragma.c (init_pragma): Likewise.
1291         * c.opt: Likewise.
1293 2014-01-23  Marek Polacek  <polacek@redhat.com>
1295         PR c/59846
1296         * c-common.c (shorten_compare): Add location_t parameter.
1297         * c-common.h (shorten_binary_op): Adjust declaration.
1299 2014-01-23  Marek Polacek  <polacek@redhat.com>
1301         PR c/58346
1302         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1303         * c-common.h: Declare it.
1305 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
1307         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1308         * c-ada-spec.c (dump_ads): Likewise.
1309         (cpp_check): Likewise.
1310         (dump_ada_specs): Likewise.
1312 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
1314         PR c++/49718
1315         * c-common.c (handle_no_instrument_function_attribute): Allow
1316         no_instrument_function attribute in class member
1317         definition/declaration.
1319 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1321         PR c/58943
1322         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1323         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
1324         being COMPOUND_EXPR.
1325         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1326         operand a SAVE_EXPR and second MODIFY_EXPR.
1328 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1330         PR target/58115
1331         * c-pch.c (c_common_write_pch): Call
1332         prepare_target_option_nodes_for_pch.
1334 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1336         Update copyright years
1338 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1340         * array-notation-common.c, c-cilkplus.c: Use the standard form for
1341         the copyright notice.
1343 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
1345         * c-ada-spec.c (print_constructor): New function.
1346         (print_destructor): Retrieve the origin of the destructor.
1347         (print_ada_declaration): Revamp handling of constructors/destructors.
1349 2013-12-23  Stuart Hastings <stuart@apple.com>
1350             Bill Maddox  <maddox@google.com>
1351             Jason Merrill  <jason@redhat.com>
1353         * c.opt: Add -fdeclone-ctor-dtor.
1354         * c-opts.c (c_common_post_options): Default to on iff -Os.
1356 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1358         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1359         attribute.
1360         * c-pragma.h (enum pragma_cilk_clause): Remove.
1361         (enum pragma_omp_clause):  Added the following fields:
1362         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1363         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1364         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1365         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1366         PRAGMA_CILK_CLAUSE_UNIFORM.
1368         
1369 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1371         * cilk.c (cilk_outline): Made this function non-static.
1372         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1373         (create_cilk_wrapper): Added a new parameter: a function pointer.
1374         (c_install_body_w_frame_cleanup): Remove
1375         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1376         * c-common.h (cilk_outline): New prototype.
1377         (gimplify_cilk_spawn): Removed two parameters.
1378         (cilk_install_body_with_frame_cleanup): New prototype.
1379         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1380         CILK_SPAWN_STMT case.
1382 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1384         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1386         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1387         (int_array_type_node): Remove.
1388         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1390 2013-12-05  Marek Polacek  <polacek@redhat.com>
1392         PR c/52023
1393         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1394         [ADJUST_FIELD_ALIGN].
1396 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1398         PR c/52023
1399         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1400         and check field alignment if set.
1401         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1402         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1404 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1405             Marek Polacek  <polacek@redhat.com>
1407         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1408         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1410 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1412         PR c/59309
1413         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1414         arguments.
1416 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1418         PR c/59280
1419         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1420         goto invalid.  If it is error_mark_node, don't issue further
1421         diagnostics.
1423 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1425         * c.opt (Wopenmp-simd): New.
1427 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1429         * c-ubsan.h (ubsan_instrument_return): New prototype.
1430         * c-ubsan.c (ubsan_instrument_return): New function.
1432 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1434         * c-common.c: Add required include files from gimple.h.
1435         * c-gimplify.c: Likewise
1436         * cilk.c: Likewise
1438 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1440         * c-common.c (unsafe_conversion_p): Remove use of
1441         EXPR_LOC_OR_HERE macro.
1442         (conversion_warning): Likewise.
1443         (warnings_for_convert_and_check): Likewise.
1444         (warn_for_collisions_1): Likewise.
1445         (shorten_compare): Likewise, and remove use of in_system_header
1446         macro, using the location from the former.
1447         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1448         (cb_def_pragma): Remove use of in_system_header macro.
1449         (lex_string): Likewise.
1450         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1452 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1453             Mike Stump  <mikestump@comcast.net>
1454             Richard Sandiford  <rdsandiford@googlemail.com>
1456         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1457         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1458         tree_fits_shwi_p or tree_fits_uhwi_p.
1459         (dump_generic_ada_node): Likewise.
1460         * c-format.c (check_format_arg): Likewise.
1461         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1463 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1465         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1467 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1469         PR c/53001
1470         * c-common.c (unsafe_conversion_p): Make this function
1471         return an enumeration with more detail.
1472         (conversion_warning): Use the new return type of
1473         unsafe_conversion_p to separately warn either about conversions
1474         that lower floating point number precision or about the other
1475         kinds of conversions.
1476         * c-common.h (enum conversion_safety): New enumeration.
1477         (unsafe_conversion_p): switching return type to
1478         conversion_safety enumeration.
1479         * c.opt: Adding new warning -Wfloat-conversion and
1480         enabling it with -Wconversion.
1482 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1484         * c-opts.c: Include plugin.h.
1485         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1487 2013-11-19  Marek Polacek  <polacek@redhat.com>
1489         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1490         call.
1491         (ubsan_instrument_shift): Likewise.
1492         (ubsan_instrument_vla): Likewise.
1494 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1496         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1497         cast to unsigned type.
1499 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1501         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1502         tree_low_cst.
1503         (complete_array_type): Update comment to refer to tree_to_[su]hwi
1504         rather than tree_low_cst.
1506 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1508         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1509         tree_to_uhwi throughout.
1511 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1513         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1514         tree_low_cst (..., 0) with tree_to_shwi throughout.
1516 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1518         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1519         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1521 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1523         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1524         host_integerp (..., 0) with tree_fits_shwi_p throughout.
1526 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1528         * c-cilkplus.c: New file.
1529         * c-common.c (readonly_error): Add location argument.
1530         * c-common.h (readonly_error): Same.
1531         (c_finish_cilk_clauses): Protoize.
1532         (c_check_cilk_loop): Same.
1533         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1534         Do not fail on error_mark_node.
1535         Abstract increment canonicalization to here...
1536         (c_omp_for_incr_canonicalize_ptr): New.
1537         c-pragma.c (init_pragma): Register "simd" pragma.
1538         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1539         (enum pragma_cilk_clause): New.
1541 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1543         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1544         wchar_type and host_integerp checks.
1546 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1548         * c-common.c: Likewise.
1549         * c-gimplify.c: Likewise.
1550         * cilk.c: Likewise.
1552 2013-11-14  Diego Novillo  <dnovillo@google.com>
1554         * c-common.c: Include fold-const.h.
1555         Include stor-layout.h.
1556         Include calls.h.
1557         Include stringpool.h.
1558         Include attribs.h.
1559         Include varasm.h.
1560         Include trans-mem.h.
1561         * c-cppbuiltin.c: Include stor-layout.h.
1562         Include stringpool.h.
1563         * c-format.c: Include stringpool.h.
1564         * c-lex.c: Include stringpool.h.
1565         Include stor-layout.h.
1566         * c-pragma.c: Include stringpool.h.
1567         Include attribs.h.
1568         Include varasm.h.
1569         Include gcc-symtab.h.
1570         * c-pretty-print.c: Include stor-layout.h.
1571         Include attribs.h.
1572         * cilk.c: Include stringpool.h.
1573         Include calls.h.
1575 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1577         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1578         * c-common.c (c_common_reswords): Add __auto_type.
1579         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1581 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1583         * c-common.c: Include gimplify.h.
1584         * c-gimplify.c: Likewise.
1585         * cilk.c: Likewise.
1586         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1587         * c-ubsan.c: Don't include gimple.h.
1589 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1591         * c-common.c (c_common_reswords): Add _Thread_local.
1593 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1595         * c-common.c (atomic_size_supported_p): New function.
1596         (resolve_overloaded_atomic_exchange)
1597         (resolve_overloaded_atomic_compare_exchange)
1598         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1599         Use it instead of comparing size with a local list of sizes.
1601 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
1602             Joseph Myers  <joseph@codesourcery.com>
1604         * c-common.h (enum rid): Add RID_ATOMIC.
1605         * c-common.c (c_common_reswords): Add _Atomic.
1606         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1607         (keyword_is_type_qualifier): Accept RID_ATOMIC.
1608         * c-format.c (check_format_types): Check for extra _Atomic
1609         qualifiers in format argument.
1610         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1611         (pp_c_type_qualifier_list): Mention _Atomic in comment.
1613 2013-11-06  Tobias Burnus  <burnus@net-b.de>
1615         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1617 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
1619         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1620         standards modes.
1621         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1622         to mean lack of IEEE 754 support.
1624 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1626         * c.opt (-Wdate-time): New option
1627         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1629 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
1631         * c-cppbuiltin.c (cpp_iec_559_value): Test
1632         flag_excess_precision_cmdline not flag_excess_precision.
1634 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1636         * c.opt (fopenmp-simd): New option.
1637         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1638         (omp_pragmas): ... this new struct.
1639         (c_pp_lookup_pragma): Also walk omp_pragmas.
1640         (init_pragma): Init pragmas for -fopenmp-simd.
1642 2013-11-04  Marek Polacek  <polacek@redhat.com>
1644         PR c++/58979
1645         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1647 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1649         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1650         New functions.
1651         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1653 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1655         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1656         (dump_ada_specs): Adjust prototype of second callback.
1657         * c-ada-spec.c (cpp_check): New global variable.
1658         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1659         (print_generic_ada_decl): Likewise.
1660         (has_static_fields): Change return type to bool and add guard.
1661         (has_nontrivial_methods): New predicate.
1662         (is_tagged_type): Change return type to bool.
1663         (separate_class_package): Call has_nontrivial_methods.
1664         (pp_ada_tree_identifier): Minor tweaks.
1665         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1666         (dump_ada_array_domains): Likewise.
1667         (dump_ada_array_type): Likewise.
1668         (dump_template_types): Remove cpp_check parameter and do not pass it to
1669         dump_generic_ada_node.
1670         (dump_ada_template): Likewise.
1671         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1672         recursively.
1673         (print_ada_methods): Change return type to integer.  Remove cpp_check
1674         parameter and do not pass it down.
1675         (dump_nested_types): Remove cpp_check parameter and do not pass it to
1676         dump_generic_ada_node.
1677         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
1678         accessing methods.
1679         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1680         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
1681         value of print_ada_methods.
1682         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1683         Set cpp_check to it before invoking dump_ada_nodes.
1684         (dump_ada_specs): Likewise.
1686 2013-11-03  Marek Polacek  <polacek@redhat.com>
1688         * c-ubsan.c: Don't include hash-table.h.
1689         (ubsan_instrument_vla): New function.
1690         * c-ubsan.h: Declare it.
1692 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1694         Automated part of renaming of symtab_node_base to symtab_node.
1696         Patch autogenerated by rename_symtab.py from
1697         https://github.com/davidmalcolm/gcc-refactoring-scripts
1698         revision 58bb219cc090b2f4516a9297d868c245495ee622
1700         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1701         symtab_node_base to symtab_node.
1703 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
1705         Implement C++14 digit separators.
1706         * c-lex.c (interpret_float): Remove digit separators from scratch string
1707         before building real literal.
1709 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
1711         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1713 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1715         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1716         fields.
1717         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1718         enabled.
1719         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1720         (insert_cilk_frame): New prototype.
1721         (cilk_init_builtins): Likewise.
1722         (gimplify_cilk_spawn): Likewise.
1723         (c_cilk_install_body_w_frame_cleanup): Likewise.
1724         (cilk_detect_spawn_and_unwrap): Likewise.
1725         (cilk_set_spawn_marker): Likewise.
1726         (build_cilk_sync): Likewise.
1727         (build_cilk_spawn): Likewise.
1728         * cilk.c: New file.
1730 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1732         Patch autogenerated by refactor_symtab.py from
1733         https://github.com/davidmalcolm/gcc-refactoring-scripts
1734         revision 58bb219cc090b2f4516a9297d868c245495ee622
1736         * c-gimplify.c (c_genericize): Update for conversion of symtab types
1737         to a true class hierarchy.
1738         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1740 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
1742         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1744 2013-10-26  Jeff Law  <law@redhat.com>
1746         * c-common.c (c_define_builtins): Remove mudflap support.
1747         * c.opt: Ignore and warn for mudflap options.
1749 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1751         PR other/33426
1752         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1753         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1755 2013-10-23  Jason Merrill  <jason@redhat.com>
1757         * c-format.c (gcc_cxxdiag_char_table): Add %X.
1759 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1761         * c-common.h (omp_clause_mask::operator !=): New method.
1762         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1763         instead of if (mask & something) tests everywhere.
1765         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1766         201307 instead of 201107.
1767         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1768         (c_common_attribute_table): Add "omp declare target" and
1769         "omp declare simd" attributes.
1770         (handle_omp_declare_target_attribute,
1771         handle_omp_declare_simd_attribute): New functions.
1772         * c-omp.c: Include c-pragma.h.
1773         (c_finish_omp_taskgroup): New function.
1774         (c_finish_omp_atomic): Add swapped argument, if true,
1775         build the operation first with rhs, lhs arguments and use NOP_EXPR
1776         build_modify_expr.
1777         (c_finish_omp_for): Add code argument, pass it down to make_code.
1778         (c_omp_split_clauses): New function.
1779         (c_split_parallel_clauses): Removed.
1780         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1781         c_omp_declare_simd_clauses_to_decls): New functions.
1782         * c-common.h (omp_clause_mask): New type.
1783         (OMP_CLAUSE_MASK_1): Define.
1784         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1785         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1786         omp_clause_mask::operator |, omp_clause_mask::operator &,
1787         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1788         omp_clause_mask::operator ==): New methods.
1789         (enum c_omp_clause_split): New.
1790         (c_finish_omp_taskgroup): New prototype.
1791         (c_finish_omp_atomic): Add swapped argument.
1792         (c_finish_omp_for): Add code argument.
1793         (c_omp_split_clauses): New prototype.
1794         (c_split_parallel_clauses): Removed.
1795         (c_omp_declare_simd_clauses_to_numbers,
1796         c_omp_declare_simd_clauses_to_decls): New prototypes.
1797         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1798         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1799         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1800         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1801         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1802         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1803         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1804         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1805         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1806         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1807         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1808         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1809         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1810         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1811         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1812         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1813         PRAGMA_OMP_CLAUSE_UNIFORM.
1815 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
1817         PR tree-optimization/20318
1818         * c-common.c (handle_returns_nonnull_attribute): New function.
1819         (c_common_attribute_table): Add returns_nonnull.
1821 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
1823         PR c++/19476
1824         * c.opt (fcheck-new): Move to common.opt.
1826 2013-09-25  Marek Polacek  <polacek@redhat.com>
1827             Jakub Jelinek  <jakub@redhat.com>
1829         PR sanitizer/58413
1830         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1831         an expression if we can prove it is correct.
1832         (ubsan_instrument_division): Likewise.  Remove unnecessary
1833         check.
1835 2013-09-18  Marek Polacek  <polacek@redhat.com>
1837         PR sanitizer/58411
1838         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1839         Declare it.
1840         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1842 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
1844         PR target/48094
1845         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1846         fobjc-gc, freplace-objc-classes): Accept for LTO.
1848 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
1850         * c-target.def: New hook
1852 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1854         PR c++/43452
1855         * c.opt (Wdelete-incomplete): Add.
1857 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1859         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1860         (vector_types_compatible_elements_p): New function.
1861         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1862         declaration.
1863         (vector_types_compatible_elements_p): Declare.
1865 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1867         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1868         a virtual member function.
1869         (pp_simple_type_specifier): Remove.
1870         (pp_c_type_specifier): Likewise.
1871         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1872         Rename from pp_c_type_specifier.  Adjust.
1873         (c_pretty_printer::c_pretty_printer): Do not assign to
1874         simple_type_specifier.
1876 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1878         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1879         member function.
1880         (c_pretty_printer::storage_class_specifier): Likewise.
1881         (c_pretty_printer::initializer): Likewise.
1882         (pp_declaration): Remove.
1883         (pp_declaration_specifiers): Likewise.
1884         (pp_abstract_declarator): Likewise.
1885         (pp_declarator): Likewise.
1886         (pp_type_id): Likewise.
1887         (pp_statement): Likewise.
1888         (pp_constant): Likewise.
1889         (pp_id_expression): Likewise.
1890         (pp_primary_expression): Likewise.
1891         (pp_unary_expression): Likewise.
1892         (pp_multiplicative_expression): Likewise.
1893         (pp_conditional_expression): Likewise.
1894         (pp_assignment_expression): Likewise.
1895         (pp_expression): Likewise.
1896         (pp_c_type_id): Likewise.
1897         (pp_c_storage_class_specifier): Likewise.
1898         * c-pretty-print.c (pp_c_type_cast): Tidy.
1899         (pp_c_pointer): Likewise.
1900         (pp_c_type_specifier): Likewise.
1901         (pp_c_parameter_type_list): Likewise.
1902         (pp_c_function_definition): Likewise.
1903         (pp_c_init_declarator): Likewise.
1904         (pp_c_initializer_list): Likewise.
1905         (pp_c_constructor_elts): Likewise.
1906         (c_pretty_printer::direct_abstract_declarator): Likewise.
1907         (c_pretty_printer::declaration_specifiers): Likewise.
1908         (c_pretty_printer::primary_expression): Likewise.
1909         (c_pretty_printer::postfix_expression): Likewise.
1910         (c_pretty_printer::type_id): Rename from pp_c_type_id.
1911         (c_pretty_printer::storage_class_specifier): Rename from
1912         pp_c_storage_class_specifier.
1913         (c_pretty_printer::initializer): Rename from pp_c_initializer.
1914         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1915         storage_class_specifier, initializer, offset_list, flags.
1917 2013-08-30  Marek Polacek  <polacek@redhat.com>
1919         * c-ubsan.c: New file.
1920         * c-ubsan.h: New file.
1922 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1924         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1925         member function.
1926         (c_pretty_printer::declaration_specifiers): Likewise.
1927         (c_pretty_printer::declarator): Likewise.
1928         (c_pretty_printer::abstract_declarator): Likewise.
1929         (c_pretty_printer::direct_abstract_declarator): Likewise.
1930         (c_pretty_printer::direct_declarator): Likewise.
1931         (c_pretty_printer::function_specifier): Likewise.
1932         (pp_declaration): Adjust.
1933         (pp_declaration_specifiers): Likewise.
1934         (pp_abstract_declarator): Likewise.
1935         (pp_direct_declarator): Likewise.
1936         (pp_function_specifier): Likewise.
1937         (pp_direct_abstract_declarator): Remove as unused.
1938         (pp_c_declaration): Remove.
1939         (pp_c_declaration_specifiers): Likewise.
1940         (pp_c_declarator): Likewise.
1941         (pp_c_direct_declarator): Likewise.
1942         (pp_c_function_specifier): Likewise.
1943         (pp_c_direct_abstract_declarator): Likewise.
1944         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1945         from pp_c_abstract_declarator.  Adjust.
1946         (c_pretty_printer::direct_abstract_declarator):  Rename from
1947         pp_c_direct_abstract_declarator.  Adjust.
1948         (c_pretty_printer::function_specifier): Rename from
1949         pp_c_function_specifier.  Adjust.
1950         (c_pretty_printer::declaration_specifiers): Rename from
1951         pp_c_declaration_specifiers.  Adjust.
1952         (c_pretty_printer::direct_declarator): Rename from
1953         pp_c_direct_declarator.  Adjust.
1954         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
1955         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
1956         (c_pretty_printer::c_pretty_printer): Do not assign to
1957         declaration, declaration_specifiers, declarator,
1958         direct_declarator, direct_abstract_declarator, function_specifier.
1960 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
1962         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1963         virtual member function.
1964         (c_pretty_printer::multiplicative_expression): Likewise.
1965         (c_pretty_printer::conditional_expression): Likewise.
1966         (c_pretty_printer::assignment_expression): Likewise.
1967         (c_pretty_printer::expression): Likewise.
1968         (pp_unary_expression): Adjust.
1969         (pp_multiplicative_expression): Likewise.
1970         (pp_assignment_expression): Likewise.
1971         (pp_conditional_expression): Likewise.
1972         (pp_expression): Likewise.
1973         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1974         from pp_c_unary_expression.  Adjust.
1975         (c_pretty_printer::multiplicative_expression): Rename from
1976         pp_c_multiplicative_expression.  Adjust.
1977         (c_pretty_printer::conditional_expression): Rename from
1978         pp_c_conditional_expression.  Adjust.
1979         (c_pretty_printer::assignment_expression): Rename from
1980         pp_c_assignment_expression.  Adjust.
1981         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
1982         (c_pretty_printer::c_pretty_printer): Do not assign to
1983         unary_expression, multiplicative_expression,
1984         conditional_expression, expression.
1986 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1988         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1989         virtual member function.
1990         (pp_postfix_expression): Adjust.
1991         (pp_c_postfix_expression): Remove.
1992         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1993         from pp_c_postfix_expression.  Adjust.
1994         (c_pretty_printer::c_pretty_printer): Do not assign to
1995         postfix_expression.
1997 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1999         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2000         virtua member function.
2001         (pp_primary_expression): Adjust.
2002         (pp_c_primary_expression): Remove.
2003         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2004         from pp_c_primary_expression.  Adjust.
2005         (pp_c_initializer_list): Use pp_primary_expression.
2006         (c_pretty_printer::c_pretty_printer): Do not assign to
2007         primary_expression.
2009 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2011         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2012         * c-pretty-print.c (M_): Remove.
2013         (c_pretty_printer::translate_string): Define.
2014         (pp_c_type_specifier): Use it.
2015         (pp_c_primary_expression): Likewise.
2016         (pp_c_expression): Likewise.
2018 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2020         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2021         virtual function.
2022         (pp_c_id_expression): Remove.
2023         (pp_id_expression): Adjust.
2024         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2025         pp_c_id_expression.  Adjust.
2026         (pp_c_postfix_expression): Use pp_id_expression.
2027         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2029 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2031         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2032         member function.
2033         (pp_constant): Adjust.
2034         (pp_c_constant): Remove.
2035         * c-pretty-print.c (c_pretty_printer::constant): Rename from
2036         pp_c_constant.  Adjust.
2037         (pp_c_constant)
2038         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2039         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2041 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2043         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2044         (c_pretty_printer::c_pretty_printer): Declare.
2045         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2046         c_pretty_printer_init.  Adjust.
2047         (print_c_tree): Do not call c_pretty_printer_init.
2048         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2050 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
2052         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2054 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2056         PR c++/58080
2057         * c-common.c (pointer_int_sum): Add bool parameter.
2058         * c-common.h (pointer_int_sum): Adjust declaration.
2060 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2062         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
2063         c_pretty_printer variable.
2065 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2067         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2068         (pp_base): Remove.
2069         (pp_c_base): Likewise.  Adjust users.
2070         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2071         (pp_c_whitespace): Do not call pp_base.
2072         (pp_c_left_paren): Likewise.
2073         (pp_c_right_paren): Likewise.
2074         (pp_c_left_brace): Likewise.
2075         (pp_c_right_brace): Likewise.
2076         (pp_c_left_bracket): Likewise.
2077         (pp_c_right_bracket): Likewise.
2078         (pp_c_dot): Likewise.
2079         (pp_c_ampersand): Likewise.
2080         (pp_c_star): Likewise.
2081         (pp_c_arrow): Likewise.
2082         (pp_c_semicolon): Likewise.
2083         (pp_c_complement): Likewise.
2084         (pp_c_exclamation): Likewise.
2085         (pp_c_direct_declarator): Likewise.
2086         (pp_c_ws_string): Likewise.
2087         (pp_c_identifier): Likewise.
2088         (pp_c_statement): Likewise.
2089         (print_c_tree): Likewise.
2091 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
2093         PR c++/58072
2094         * c-common.c (c_parse_error): Catch user-defined literal tokens and
2095         provide useful error strings.
2097 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2099         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2100         printer functions instead of pp_string or operators and punctuators.
2101         (dump_generic_ada_node): Likewise.
2102         * c-pretty-print.c (pp_c_type_specifier): Likewise.
2103         (pp_c_relational_expression): Likewise.
2104         (pp_c_logical_or_expression): Likewise.
2106 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2108         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2109         functions instead of pp_character.
2110         (pp_ada_tree_identifier): Likewise.
2111         (dump_ada_double_name): Likewise.
2112         (dump_ada_function_declaration): Likewise.
2113         (dump_ada_array_domains): Likewise.
2114         (dump_template_types): Likewise.
2115         (dump_generic_ada_node): Likewise.
2116         (print_ada_declaration): Likewise.
2117         (print_ada_struct_decl): Likewise.
2118         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2120 2013-07-23  Tom Tromey  <tromey@redhat.com>
2122         * c-common.h (enum rid) <RID_GENERIC>: New constant.
2123         * c-common.c (c_common_reswords): Add _Generic.
2125 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
2127         * c-common.c: Fix typos.
2128         * c-common.h: Likewise.
2130 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
2132         PR c++/55203
2133         * c-common.c (c_common_attribute_table): Add warn_unused.
2134         (handle_warn_unused_attribute): New.
2136 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
2138         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2139         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2141 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
2143         PR c++/57869
2144         * c.opt: Add Wconditionally-supported.
2146 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
2148         * array-notation-common.c (length_mismatch_in_expr_p): Delete
2149         unused variables l_length and l_node.
2151 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2153         PR c/57821
2154         * c-common.c (complete_array_type): Delay folding first index
2155         like other indices.  When folding, check for index overflow.
2157 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
2159         PR c++/57509
2160         * c-common.h (c_build_vec_perm_expr): New complain argument.
2161         * c-common.c (c_build_vec_perm_expr): Likewise.
2162         Use save_expr also in C++.
2164 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2166         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2167         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2168         * c-opts.c (c_common_post_options): Likewise.
2170 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2172         * array-notation-common.c (length_mismatch_in_expr): Changed the
2173         parameter type's from a dynamic array to a vec_tree.  Also removed
2174         the size parameters.
2175         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2176         the change above.
2178 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2180         * c-common.h (struct cilkplus_an_parts): New structure.
2181         (struct cilkplus_an_loop_parts): Likewise.
2182         (cilkplus_extract_an_triplets): New prototype.
2183         (fix_sec_implicit_args): Likewise.
2184         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2185         (fix_sec_implicit_args): Likewise.
2187 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2189         * array-notation-common.c (find_inv_trees): Removed an unwanted
2190         typecasting.
2191         * c-common.h (struct inv_list::additional_tcodes): Changed type from
2192         enum rid to enum tree_code.
2194 2013-06-11  Jan Hubicka  <jh@suse.cz>
2196         * c-common.c (handle_alias_ifunc_attribute): Do not set
2197         DECL_EXTERNAL for weakref variables.
2198         * c-pragma.c (handle_pragma_weak): Make sure aliases
2199         are not declared as external.
2201 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2203         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2204         function from c/c-array-notation.c.
2205         (is_cilkplus_reduce_builtin): Likewise.
2206         (find_rank): Likewise.
2207         (extract_array_notation_exprs): Likewise.
2208         (replace_array_notations): Likewise.
2209         (find_inv_trees): Likewise.
2210         (replace_inv_trees): Likewise.
2211         (contains_array_notation_expr): Likewise.
2212         (find_correct_array_notation_type): Likewise.
2213         * c-common.h (struct inv_list): Moved this struct from the file
2214         c/c-array-notation.c and added a new field called additional tcodes.
2215         (length_mismatch_in_expr_p): New prototype.
2216         (is_cilkplus_reduce_builtin): Likewise.
2217         (find_rank): Likewise.
2218         (extract_array_notation_exprs): Likewise.
2219         (replace_array_notation): Likewise.
2220         (find_inv_trees): Likewise.
2221         (replace_inv_trees): Likewise.
2222         (find_correct_array_notation_type): Likewise.
2224 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2226         * c-common.c (c_define_builtins): When cilkplus is enabled, the
2227         function array_notation_init_builtins is called.
2228         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2229         * c-common.def (ARRAY_NOTATION_REF): New tree.
2230         * c-common.h (build_array_notation_expr): New function declaration.
2231         (build_array_notation_ref): Likewise.
2232         (extract_sec_implicit_index_arg): New extern declaration.
2233         (is_sec_implicit_index_fn): Likewise.
2234         (ARRAY_NOTATION_CHECK): New define.
2235         (ARRAY_NOTATION_ARRAY): Likewise.
2236         (ARRAY_NOTATION_START): Likewise.
2237         (ARRAY_NOTATION_LENGTH): Likewise.
2238         (ARRAY_NOTATION_STRIDE): Likewise.
2239         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2240         ARRAY_NOTATION_REF.
2241         (pp_c_expression): Likewise.
2242         * c.opt (flag_enable_cilkplus): New flag.
2243         * array-notation-common.c: New file.
2245 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2247         PR c++/57274
2248         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2250 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
2252         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2253         vectors.
2255 2013-05-07  Han Shen  <shenhan@google.com>
2257         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2259 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2261         * c-common.c (check_user_alignment): Emit error for negative values.
2263 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2265         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2267 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2269         * c-cppbuiltin.c (c_cpp_builtins): Do not define
2270         __GXX_EXPERIMENTAL_CXX1Y__.
2272 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2273             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2275         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2276         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2277         to simply use OPT_Wpointer_arith.
2278         (c_sizeof_or_alignof_type): Likewise.
2280 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2282         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2284 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2286         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2287         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2288         specifiers.
2290 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
2292         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2294 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
2296         * c-common.c (pointer_int_sum): Remove dead code.
2298 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2300         PR middle-end/56524
2301         * c-common.c (handle_optimize_attribute): Don't call
2302         save_optabs_if_changed.
2304 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2306         PR middle-end/56461
2307         * c-pch.c (pch_init): Free target_validity at the end.
2309 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2311         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2313 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2314             Jakub Jelinek  <jakub@redhat.com>
2316         PR sanitizer/56454
2317         * c-common.c (handle_no_sanitize_address_attribute): New function.
2318         (c_common_attribute_table): Add no_sanitize_address attribute.
2319         (handle_no_address_safety_analysis_attribute): Add
2320         no_sanitize_address attribute, not no_address_safety_analysis
2321         attribute.
2323 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2325         PR target/52555
2326         * c-common.c (handle_optimize_attribute): Call
2327         save_optabs_if_changed.
2329 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
2330             Steven Bosscher  <steven@gcc.gnu.org>
2332         PR pch/54117
2333         * c-opts.c (c_common_post_options): If debug info is enabled
2334         and non-dwarf*, refuse to load PCH files and when writing PCH
2335         file warn.
2337 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
2339         PR middle-end/56167
2340         * c-common.c (handle_error_attribute): Fix condition.
2342 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
2344         PR c++/55742
2345         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2347 2013-01-18  Jason Merrill  <jason@redhat.com>
2349         PR target/54908
2350         * c.opt (-fextern-tls-init): New.
2351         * c-opts.c (c_common_post_options): Handle it.
2353 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
2355         PR c/48418
2356         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2357         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2358         and is either negative or bigger or equal to type precision
2359         of the first operand.
2361 2012-12-03  Marek Polacek  <polacek@redhat.com>
2363         PR c/55570
2364         * c-common.c (check_user_alignment): Swap order of tests,
2365         check TREE_CODE first.
2367 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2369         PR c++/52654
2370         * c-common.h (overflow_type): New enum.
2371         (build_userdef_literal): Add overflow_type argument.
2372         (tree_userdef_literal): Add overflow_type.
2373         (USERDEF_LITERAL_OVERFLOW): New access macro.
2374         * c-common.c (build_userdef_literal): Add overflow_type
2375         argument.
2376         * c-lex.c (c_lex_with_flags): Add overflow_type to
2377         build_userdef_literal calls.
2378         (interpret_integer, interpret_float): Add overflow_type argument.
2380 2012-11-28  Richard Biener  <rguenther@suse.de>
2382         PR c/35634
2383         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2384         here and use a type with proper overflow behavior for types that would
2385         need to be promoted for the arithmetic.
2387 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2389         PR sanitizer/55435
2390         * c-common.c (handle_no_address_safety_analysis_attribute): New
2391         function.
2392         (c_common_attribute_table): Add no_address_safety_analysis.
2394 2012-11-16  Simon Baldwin  <simonb@google.com>
2396         * c.opt: Add f[no-]canonical-system-headers.
2397         * c-opts.c (c_common_handle_option): Handle
2398         OPT_fcanonical_system_headers.
2400 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2402         PR c++/54413
2403         * c-opts.c (c_common_handle_option): Set new flags.
2404         * c.opt: Describe new flags.
2406 2012-11-09  Jason Merrill  <jason@redhat.com>
2408         * c.opt (Wabi-tag): New.
2410 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2412         PR 55139
2413         * c-common.c (get_atomic_generic_size): Mask with
2414         MEMMODEL_MASK
2416 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2418         PR c/53063
2419         * c.opt (Wformat): Make it Alias Wformat=1.
2420         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2421         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2422         LangEnabledBy.
2423         (Wformat=): RejectNegative. Use LangEnabledBy.
2424         (Wnonnull): Use LangEnabledBy.
2425         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2426         * c-format.c (set_Wformat): Delete.
2427         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2428         (maybe_read_dollar_number):  Likewise.
2429         (avoid_dollar_number):  Likewise.
2430         (finish_dollar_format_checking):  Likewise.
2431         (check_format_info):  Likewise.
2432         (check_format_info_main):  Likewise.
2433         (check_format_types):  Likewise.
2434         (format_type_warning):  Likewise.
2435         * c-common.c (int):  Likewise.
2436         (check_function_sentinel):  Likewise.
2437         * c-common.h (warn_format,set_Wformat): Do not declare here.
2439 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2441         PR c/53063
2442         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2443         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2444         Use LangEnabledBy.
2445         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2446         common.opt.
2447         (Wvariadic-macros): Init(1).
2448         * c-opts.c (c_common_handle_option): Do not handle them
2449         explicitly.
2450         (c_common_post_options): Likewise.
2451         (sanitize_cpp_opts): warn_unused_macros is now
2452         cpp_warn_unused_macros.
2453         (push_command_line_include): Likewise.
2454         * c-common.c (warn_unknown_pragmas): Do not define.
2455         * c-common.h (warn_unknown_pragmas): Do not declare.
2457 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2459         PR c/51294
2460         * c-common.c (conversion_warning): Handle conditional expressions.
2462 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2464         PR c++/54930
2465         * c.opt (Wreturn_local_addr): Define new option.
2467 2012-10-25  Jason Merrill  <jason@redhat.com>
2469         * c.opt (Wvirtual-move-assign): New.
2471         * c.opt (Winherited-variadic-ctor): New.
2473 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
2475         PR c++/54427
2476         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2478 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2480         * c-common.h (pch_cpp_save_state): Declare.
2481         * c-target.def (c_preinclude): New hook.
2482         * c-opts.c (done_preinclude): New.
2483         (push_command_line_include): Handle default preincluded header.
2484         (cb_file_change): Call pch_cpp_save_state when calling
2485         push_command_line_include.
2486         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2487         (pch_cpp_save_state): New.
2488         (pch_init): Call pch_cpp_save_state conditionally, instead of
2489         calling cpp_save_state.
2491 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2493         PR c/53063
2494         PR c/40989
2495         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2496         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2497         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2498         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2499         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2500         * c-opts.c (c_common_handle_option): Remove explicit handling from
2501         here.
2502         (c_common_post_options): Likewise.
2504 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2506         * c-ada-spec.c (LOCATION_COL): Delete.
2507         (compare_location): New function.
2508         (compare_node): Use it.
2509         (compare_comment): Likewise.
2511 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2513         PR c/53063
2514         PR c/40989
2515         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2516         * c-opts.c (c_common_handle_option): Do not set them here. Add
2517         comment.
2518         (c_common_post_options): Likewise.
2520 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2522         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2523         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2524         Remove POINTER_TYPE handling, add large unsigned handling and use
2525         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2527 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2529         PR c/54381
2530         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2531         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2532         locs and array of 3 trees instead of just single loc and single
2533         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2534         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2535         For *cmp* builtins that take two sources strings report warnings
2536         about first and second source, not about destination and source.
2538 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2540         PR c++/53055
2541         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2543 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2545         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2546         declaring something coming from another file.
2548 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2550         PR ada/54845
2551         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2553 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2555         PR c++/54194
2556         * c-common.c (warn_about_parentheses): Add location_t parameter;
2557         use EXPR_LOC_OR_LOC.
2558         * c-common.h: Update declaration.
2560 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2562         PR c++/54427
2563         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2564         more operations. Make error messages optional.
2565         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2566         (scalar_to_vector): Declare.
2568 2012-10-08  Jason Merrill  <jason@redhat.com>
2570         * c-common.c (c_common_reswords): Add thread_local.
2572 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2574         PR c++/53528 C++11 attribute support
2575         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2576         new functions.
2577         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2578         static function.
2579         (handle_aligned_attribute): In choose strictest alignment
2580         among many.  Use new check_cxx_fundamental_alignment_constraints.
2581         (handle_transparent_union_attribute): In c++11 attribute syntax,
2582         don't look through typedefs.
2584 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2586         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2587         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2588         out of dumpfile.h.
2590 2012-09-25  Dehao Chen  <dehao@google.com>
2592         PR middle-end/54645
2593         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2594         map when read in the pch.
2596 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2598         * c-ada-spec.c: Style fixes.
2600 2012-09-18 Thomas Quinot  <quinot@adacore.com>
2602         * c.opt (-fada-spec-parent): Define new command line switch.
2603         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2604         is specified, generate binding spec as a child of the specified unit.
2606 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
2607             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2609         PR c++/53210
2610         * c.opt ([Winit-self]): Enabled by -Wall in C++.
2612 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
2614         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2615         for pointers, and add missing Convention C pragma.
2616         (print_ada_struct_decl): Add missing aliased keyword.
2617         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2619 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2621         * c-common.c (sizeof_pointer_memaccess_warning): New function.
2622         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2623         * c-opts.c (c_common_handle_option): Enable it for -Wall.
2624         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2625         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2627 2012-08-10  Richard Guenther  <rguenther@suse.de>
2629         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2631 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
2633         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2634         instead of separate pp_newline and pp_flush.
2635         (print_c_tree): Likewise.
2637 2012-07-26  Richard Henderson  <rth@redhat.com>
2639         * c-common.c (handle_hot_attribute): Allow labels.
2640         (handle_cold_attribute): Likewise.
2642 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
2644         PR c++/28656
2645         * c-common.c (check_function_nonnull): Handle multiple nonnull
2646         attributes properly.
2648 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2650         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2651         * c-ada-spec.c: Likewise.
2652         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2654 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
2656         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2657         Remove code conditional on it.
2659 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
2661         * c-gimplify.c: Do not include basic-block.h.
2662         * c-common.c: Do not include linfuncs.h.
2664 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2666         * c-common.h: Include tree.h.
2668 2012-07-02  Jason Merrill  <jason@redhat.com>
2670         PR c++/53524
2671         * c-common.c (get_priority): Call default_conversion.
2673 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
2675         * c-pch.c (c_common_write_pch): Remove unused variables.
2677 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2679         * cppspec.c: Moved from gcc/ to here.
2681 2012-06-27  Kai Tietz  <ktietz@redhat.com>
2683         PR preprocessor/37215
2684         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2686 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2688         * c-common.h (c_common_print_pch_checksum): Remove.
2689         * c-pch.c: Do not include output.h.
2690         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2691         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2692         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2693         (struct c_pch_header): Remove.
2694         (get_ident): Update gpch version.
2695         (pch_init): Do not print executable_checksum to asm_out_file.
2696         Do not fail if there is no asm_out_file to read back from.  Set
2697         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2698         (c_common_write_pch): Verify that nothing was written to asm_out_file
2699         since pch_init was called.  Do not write a c_pch_header, and do not
2700         copy from asm_out_file to the PCH.
2701         (c_common_read_pch): Do not read a c_pch_header, and do not restore
2702         the content of asm_out_file from the PCH.
2703         (c_common_print_pch_checksum): Remove.
2704         * c-opts.c (c_common_init): Print out executable_checksum directly.
2706 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2708         * c-target.def (objc_declare_unresolved_class_reference,
2709         objc_declare_class_definition): Add new hooks.
2711 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2713         * c-lex.c: Do not include output.h.
2714         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2715         Remove uses of ASM_OUTPUT_IDENT.
2717 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
2719         PR c++/51033
2720         * c-common.h (c_build_vec_perm_expr): Move decl here.
2721         * c-common.c (c_build_vec_perm_expr): Move definition
2722         here.
2724 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
2726         * c.opt (fconserve-space): Turn into a no-op.
2728 2012-06-04  Sterling Augustine  <saugustine@google.com>
2730         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2731         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2732         both the start and end of the function.
2734 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2736         * c-common.c: Do not include output.h.
2737         * c-pragma.c: Likewise.
2739 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2741         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2742         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2743         (lang_decl_name): Handle namespace decls.
2745 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
2747         * c-ada-spec.c: Do not include output.h.
2748         * c-semantics.c: Likewise.
2750 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2752         * c-common.c: Fix typo.
2754 2012-05-29  Michael Matz  <matz@suse.de>
2756         * c-common.h (c_expand_decl): Remove prototype.
2758 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2760         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2761         * c-opts.c (c_common_handle_option): Remove code handling
2762         warn_missing_braces.
2764 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
2766         PR c++/25137
2767         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2768         -Wmissing_braces.
2770 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
2772         PR c++/53322
2773         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2775 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2777         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2778         * c-opts.c (c_common_handle_option): Do not handle explicitly
2779         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2781 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
2783         PR preprocessor/7263
2784         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
2785         to cpp_classify_number.  For diagnostics, use the precise location
2786         instead of the global input_location.
2788 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
2790         PR c++/11856
2791         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2793 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
2795         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2797 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2799         PR 53063
2800         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2801         Wreorder): Use LangEnabledBy.
2802         * c-opts.c (c_common_handle_option): Do not enable them
2803         explicitly. Call lang-specific generated functions.
2804         (c_common_post_options): Do not set them here.
2806 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2808         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2809         Wmissing-field-initializers,Wmissing-parameter-type,
2810         Wold-style-declaration,Woverride-init): Use EnabledBy.
2811         * c-opts.c (c_common_post_options): Do not set here explicitly.
2813 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2815         PR 53063
2816         * c-opts.c (c_common_handle_option): Use handle_generated_option
2817         to enable sub-options.
2819 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
2821         PR c++/53158
2822         * c-common.c (warnings_for_convert_and_check): Use warning_at.
2824 2012-05-10  Richard Guenther  <rguenther@suse.de>
2826         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2827         adjust commentary about TYPE_IS_SIZETYPE types.
2829 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2831         PR c++/53261
2832         * c-common.c (warn_logical_operator): Check that argument of
2833         integer_zerop is not NULL.
2835 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2837         PR c/43772
2838         * c-common.c (warn_logical_operator): Do not warn if either side
2839         is already true or false.
2841 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2843         PR c/51712
2844         * c-common.c (expr_original_type): New.
2845         (shorten_compare): Do not warn for enumeration types.
2847 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2849         * c.opt (fpermissive): Add Var(flag_permissive).
2851 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
2853         PR c++/51033
2854         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2855         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2857 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
2859         Add -Wvarargs option
2860         * c.opt (Wvarargs):  Define new option.
2862 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2864         * c-common.c (check_function_arguments): Replace
2865         Wmissing-format-attribute with Wsuggest-attribute=format.
2867 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2869         * c.opt (Wsuggest-attribute=format): New. Alias of
2870         Wmissing-format-attribute.
2871         * c-format.c (decode_format_type): Replace
2872         Wmissing-format-attribute with Wsuggest-attribute=format.
2873         (check_function_format): Likewise.
2875 2012-04-27  Ollie Wild  <aaw@google.com>
2877         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2878         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2879         * c.opt: Add Wliteral-suffix.
2881 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2883         PR c/44774
2884         * c.opt (Wpedantic): New.
2885         (pedantic): Alias Wpedantic.
2886         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2887         (c_common_post_options): Likewise.
2888         (sanitize_cpp_opts): Likewise.
2889         * c-lex.c (interpret_float): Likewise.
2890         * c-format.c (check_format_types): Likewise.
2891         * c-common.c (pointer_int_sum): Likewise.
2892         (c_sizeof_or_alignof_type): Likewise.
2893         (c_add_case_label): Likewise.
2894         (c_do_switch_warnings): Likewise.
2895         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2897 2012-04-15  Jason Merrill  <jason@redhat.com>
2899         PR c++/52818
2900         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2901         (C_STD_NAME): Distinguish between C++98 and C++11.
2903 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2905         PR target/52624
2906         * c-common.h (uint16_type_node): Rename into...
2907         (c_uint16_type_node): ...this.
2908         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2909         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2911 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2913         * c-common.c (warn_if_unused_value): Move definition to here.
2914         * c-common.h (warn_if_unused_value): Move declaration to here.
2916 2012-03-23  William Bader  <williambader@hotmail.com>
2918         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2920 2012-03-20  Jason Merrill  <jason@redhat.com>
2922         * c-common.h (enum cxx_dialect): Add cxx1y.
2923         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2924         test.
2925         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2926         * c-opts.c (c_common_post_options): Likewise.
2927         (set_std_cxx1y): New.
2928         (c_common_handle_option): Call it.
2929         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2931 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
2933         PR c++/14710
2934         * c.opt ([Wuseless-cast]): Add.
2936 2012-03-16  Richard Guenther  <rguenther@suse.de>
2938         * c-pretty-print.c (pp_c_initializer_list): Adjust.
2940 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2942         PR c++/44783
2943         * c.opt (ftemplate-backtrace-limit) Add.
2945 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2947         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2948         handling.
2949         * c-pragma.c (handle_pragma_extern_prefix): Remove.
2950         (init_pragma): Don't register extern_prefix.
2952 2012-03-12  Richard Guenther  <rguenther@suse.de>
2954         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2955         (builtin_type_for_size): Likewise.
2957 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
2959         PR c++/52215
2960         * c-common.c (sync_resolve_params): Don't decide whether to convert
2961         or not based on TYPE_SIZE comparison, convert whenever arg_type
2962         is unsigned INTEGER_TYPE.
2964 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
2966         PR c/52118
2967         * c.opt ([Wunused-local-typedefs]): Fix description.
2969 2012-01-24  Mike Stump  <mikestump@comcast.net>
2971         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2972         exactly.
2974 2012-01-18  Richard Guenther  <rguenther@suse.de>
2976         * c-opts.c (c_common_post_options): Reset LTO flags if
2977         we are about to generate a PCH.
2979 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
2981         PR c++/51777
2982         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2983         use pp_unsigned_wide_integer.
2985 2012-01-10  Richard Guenther  <rguenther@suse.de>
2987         PR middle-end/51806
2988         * c-opts.c (c_common_handle_option): Move -Werror handling
2989         to language independent code.
2991 2012-01-05  Richard Guenther  <rguenther@suse.de>
2993         PR middle-end/51764
2994         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2995         from common.opt.
2997 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
2999         PR c++/51316
3000         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3001         of array types with an unknown bound.
3003 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
3005         * c-common.c (flag_isoc99): Update comment to refer to C11.
3006         (flag_isoc1x): Change to flag_isoc11.
3007         * c-common.h (flag_isoc99): Update comment to refer to C11.
3008         (flag_isoc1x): Change to flag_isoc11.
3009         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3010         C11.
3011         * c-opts.c (set_std_c1x): Change to set_std_c11.
3012         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3013         Call set_std_c11.
3014         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3015         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3016         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
3017         standard.
3018         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3019         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
3020         (std=gnu1x): Make alias of std=gnu11.
3022 2011-12-19  Jason Merrill  <jason@redhat.com>
3024         PR c++/51228
3025         * c-common.c (handle_transparent_union_attribute): Check the first
3026         field if the type is complete.
3028 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
3030         PR libstdc++/51365
3031         * c-common.c (RID_IS_FINAL): Add.
3032         * c-common.h (RID_IS_FINAL): Add.
3034 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
3036         * c.opt (fgnu-runtime): Provide full description.
3037         (fnext-runtime): Likewise.
3038         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3040 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
3042         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
3043         predefines in one place.  Add LOCK_FREE predefines.
3044         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3045         new func.
3047 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
3049         PR c/51256
3050         * c-common.c (get_atomic_generic_size): Check for various error
3051         conditions
3052         (resolve_overloaded_atomic_exchange,
3053         resolve_overloaded_atomic_compare_exchange,
3054         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3055         error_mark_node for error conditions.
3057 2011-11-08  Richard Guenther  <rguenther@suse.de>
3059         PR middle-end/51010
3060         c-family/
3062 2011-11-07  Richard Henderson  <rth@redhat.com>
3063             Aldy Hernandez  <aldyh@redhat.com>
3064             Torvald Riegel  <triegel@redhat.com>
3066         Merged from transactional-memory.
3068         * c-common.c (handle_tm_wrap_attribute,
3069         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3070         (struct c_common_reswords): Added __transaction* keywords.
3071         (struct c_common_attribute_table): Added transaction* and tm_regparm
3072         attributes.
3073         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3074         masks.
3075         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3076         find_tm_attribute): Declare.
3078 2011-11-07  Jason Merrill  <jason@redhat.com>
3080         PR c++/35688
3081         * c-common.c, c-common.h: Revert yesterday's changes.
3083 2011-11-06  Jason Merrill  <jason@redhat.com>
3085         PR c++/35688
3086         * c-common.c (decl_has_visibility_attr): Split out from...
3087         (c_determine_visibility): ...here.
3088         * c-common.h: Declare it.
3090 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3092         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3093         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3094         type.
3095         (check_user_alignment): New.  Split out of
3096         handle_aligned_attribute.  Disallow integer constants with
3097         noninteger types.  Conditionally allow zero.
3098         (handle_aligned_attribute): Use check_user_alignment.
3099         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3101 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
3102             Richard Henderson  <rth@redhat.com>
3104         Merged from cxx-mem-model.
3106         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3107         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3108         parameters that are the same type size.
3109         (get_atomic_generic_size): New.  Find size of generic
3110         atomic function parameters and do typechecking.
3111         (add_atomic_size_parameter): New.  Insert size into parameter list.
3112         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3113         either __atomic_exchange_n or external library call.
3114         (resolve_overloaded_atomic_compare_exchange): Restructure
3115         __atomic_compare_exchange to either _n variant or external library call.
3116         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3117         __atomic_load_n or an external library call.
3118         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3119         __atomic_store_n or an external library call.
3120         (resolve_overloaded_builtin): Handle new __atomic builtins.
3122 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3124         PR c++/50608
3125         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3126         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
3127         <INDIRECT_REF>: Return the argument.
3128         <ARRAY_REF>: Remove special code for negative offset.
3129         Call fold_build_pointer_plus instead of size_binop.
3130         (fold_offsetof): Remove STOP_REF argument and adjust.
3131         * c-common.h (fold_offsetof_1): Declare.
3132         (fold_offsetof): Remove STOP_REF argument.
3134 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
3136         PR c++/50810
3137         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3138         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3139         Wnarrowing for C++0x and C++98.
3140         * c.opt ([Wnarrowing]): Update.
3142 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3144         PR c++/44277
3145         * c.opt: Add Wzero-as-null-pointer-constant.
3147 2011-10-31  Jason Merrill  <jason@redhat.com>
3149         * c.opt (-fdeduce-init-list): Off by default.
3151         PR c++/50920
3152         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3153         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3154         and -Wc++11-compat.
3155         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3157 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
3159         PR c++/30066
3160         * c.opt (fvisibility-inlines-hidden): Description change.
3162 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
3164         Implement C++11 user-defined literals.
3165         * c-common.c (build_userdef_literal): New.
3166         * c-common.def: New tree code.
3167         * c-common.h (tree_userdef_literal): New tree struct and accessors.
3168         * c-lex.c (interpret_float): Add suffix parm.
3169         (c_lex_with_flags): Build literal tokens.
3171 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3173         PR c++/50841
3174         Revert:
3175         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3177         PR c++/50810
3178         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3179         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3180         Wnarrowing for C++0x and C++98.
3181         * c.opt ([Wnarrowing]): Update.
3183 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3185         PR c++/50810
3186         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3187         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3188         Wnarrowing for C++0x and C++98.
3189         * c.opt ([Wnarrowing]): Update.
3191 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
3193         PR c++/45385
3194         * c-common.c (conversion_warning): Remove code looking for
3195         artificial operands.
3197 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3199         PR bootstrap/50760
3200         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3201         !NO_IMPLICIT_EXTERN_C.
3203 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
3205         * c-common.c (c_common_reswords): Add __bases,
3206         __direct_bases.
3207         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3209 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3211         PR c++/50757
3212         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3214 2011-10-15  Tom Tromey  <tromey@redhat.com>
3215             Dodji Seketeli  <dodji@redhat.com>
3217         * c.opt (fdebug-cpp): New option.
3218         * c-opts.c (c_common_handle_option): Handle the option.
3219         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3220         output stream in parameter. Factorized from ...
3221         (maybe_print_line): ... this. Dump location debug information when
3222         -fdebug-cpp is in effect.
3223         (print_line_1): New static function. Takes an output stream in
3224         parameter. Factorized from ...
3225         (print_line): ... here. Dump location information when -fdebug-cpp
3226         is in effect.
3227         (scan_translation_unit): Dump location information when
3228         -fdebug-cpp is in effect.
3230 2011-10-15  Tom Tromey  <tromey@redhat.com>
3231             Dodji Seketeli  <dodji@redhat.com>
3233         * c.opt (ftrack-macro-expansion): New option. Handle it with and
3234         without argument.
3235         * c-opts.c (c_common_handle_option)<case
3236         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3237         cases. Handle -ftrack-macro-expansion with and without argument.
3239 2011-10-15  Tom Tromey  <tromey@redhat.com>
3240             Dodji Seketeli  <dodji@redhat.com>
3242         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3243         (print_line, cb_define, do_line_change): Adjust to avoid touching
3244         the internals of struct line_map.  Use the public API instead.
3245         * c-pch.c (c_common_read_pch): Likewise.
3246         * c-lex.c (fe_file_change): Likewise.
3248 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3250         PR c++/17212
3251         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3253 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
3255         PR c++/33067
3256         * c-pretty-print.c (pp_c_floating_constant): Output
3257         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3259 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3261         * c-common.c (def_builtin_1): Delete old interface with two
3262         parallel arrays to hold standard builtin declarations, and replace
3263         it with a function based interface that can support creating
3264         builtins on the fly in the future.  Change all uses, and poison
3265         the old names.  Make sure 0 is not a legitimate builtin index.
3266         * c-omp.c (c_finish_omp_barrier): Ditto.
3267         (c_finish_omp_taskwait): Ditto.
3268         (c_finish_omp_flush): Ditto.
3270 2011-10-11  Tristan Gingold  <gingold@adacore.com>
3272         * c.opt: (fallow-parameterless-variadic-functions): New.
3274 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3276         PR c++/33255 - Support -Wunused-local-typedefs warning
3277         * c-common.h (struct c_language_function::local_typedefs): New
3278         field.
3279         (record_locally_defined_typedef, maybe_record_typedef_use)
3280         (maybe_warn_unused_local_typedefs): Declare new functions.
3281         * c-common.c (record_locally_defined_typedef)
3282         (maybe_record_typedef_use)
3283         (maybe_warn_unused_local_typedefs): Define new functions.
3284         * c.opt: Declare new -Wunused-local-typedefs flag.
3286 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3288         PR middle-end/50266
3289         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3290         computations.
3292 2011-09-05  Richard Guenther  <rguenther@suse.de>
3294         * c-common.c (complete_array_type): Use ssize_int (-1) instead
3295         of integer_minus_one_node for empty array upper bounds.
3297 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
3299         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3300         it's the first time it's being called on this main TU.
3302 2011-08-24  Richard Guenther  <rguenther@suse.de>
3304         PR c/49396
3305         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3307 2011-08-22  Gabriel Charette  <gchare@google.com>
3309         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3310         defined in cpp_init_builtins and c_cpp_builtins.
3312 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3314         * c-common.c (c_common_reswords): Add __builtin_complex.
3315         * c-common.h (RID_BUILTIN_COMPLEX): New.
3317 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3319         * c-common.c (c_common_reswords): Add _Noreturn.
3320         (keyword_is_function_specifier): Handle RID_NORETURN.
3321         * c-common.h (RID_NORETURN): New.
3323 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3325         * c-common.c (unsafe_conversion_p): New function. Check if it is
3326         unsafe to convert an expression to the type.
3327         (conversion_warning): Adjust, use unsafe_conversion_p.
3328         * c-common.h (unsafe_conversion_p): New function declaration.
3330 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3332         * c-common.h (c_finish_omp_atomic): Adjust prototype.
3333         (c_finish_omp_taskyield): New prototype.
3334         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3335         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3336         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
3337         or RHS1 have side-effects, evaluate those too in the right spot,
3338         if it is a decl and LHS is also a decl, error out if they
3339         aren't the same.
3340         (c_finish_omp_taskyield): New function.
3341         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3342         * c-pragma.c (omp_pragmas): Add taskyield.
3343         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3344         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3345         PRAGMA_OMP_CLAUSE_MERGEABLE.
3347 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
3349         * c-common.h (set_underlying_type): Remove parm name from
3350         declaration.
3352 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
3354         * c-pretty-print.h: Search c-common.h in c-family.
3356 2011-07-22  Jason Merrill  <jason@redhat.com>
3358         PR c++/49793
3359         * c.opt (Wnarrowing): New.
3361         PR c++/30112
3362         * c-common.h: Declare c_linkage_bindings.
3363         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3365         PR c++/49813
3366         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3367         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3368         as flag_isoc99 for 'restrict'.
3369         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3371 2011-07-21  Ian Lance Taylor  <iant@google.com>
3373         PR middle-end/49705
3374         * c-common.c (c_disable_warnings): New static function.
3375         (c_enable_warnings): New static function.
3376         (c_fully_fold_internal): Change local unused_p to bool.  Call
3377         c_disable_warnings and c_enable_warnings rather than change
3378         c_inhibit_evaluation_warnings.
3380 2011-07-20  Jason Merrill  <jason@redhat.com>
3382         PR c++/6709 (DR 743)
3383         PR c++/42603 (DR 950)
3384         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3385         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3386         (CPP_DECLTYPE): New.
3387         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3389 2011-07-19  Richard Guenther  <rguenther@suse.de>
3391         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3392         * c-omp.c (c_finish_omp_for): Likewise.
3394 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3396         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3397         body on the next line.
3399 2011-07-08  Jason Merrill  <jason@redhat.com>
3401         PR c++/45437
3402         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3404         PR c++/49673
3405         * c-common.c (c_apply_type_quals_to_decl): Don't check
3406         TYPE_NEEDS_CONSTRUCTING.
3408 2011-07-06  Richard Guenther  <rguenther@suse.de>
3410         * c-common.c (c_common_nodes_and_builtins):
3411         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3413 2011-07-05  Richard Guenther  <rguenther@suse.de>
3415         * c-common.c (c_common_nodes_and_builtins): Build all common
3416         tree nodes first.
3418 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3420         * c-common.h (c_tree_chain_next): New static inline function.
3422         * c-common.c (check_builtin_function_arguments): Handle
3423         BUILT_IN_ASSUME_ALIGNED.
3425 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3427         * c-common.c: Add sync_ or SYNC__ to builtin names.
3428         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3430 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3432         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3433         handler.
3434         (gen_pragma_handler): New union.
3435         (internal_pragma_handler): New type.
3436         (c_register_pragma_with_data)
3437         (c_register_pragma_with_expansion_and_data): New functions.
3439         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3440         (c_register_pragma, c_register_pragma_with_expansion)
3441         (c_invoke_pragma_handler): Changed to work with
3442         internal_pragma_handler.
3443         (c_register_pragma_with_data)
3444         (c_register_pragma_with_expansion_and_data): New functions.
3446 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3448         * c-common.c: Include common/common-target.h.
3449         (handle_section_attribute): Use
3450         targetm_common.have_named_sections.
3451         * c-cppbuiltin.c: Include common/common-target.h.
3452         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3454 2011-06-10  Richard Guenther  <rguenther@suse.de>
3456         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3457         to print a IDENTIFIER_NODE.
3459 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3460             Joseph Myers  <joseph@codesourcery.com>
3462         * c.opt (fbuilding-libgcc): New option.
3463         * c-cppbuiltin.c (c_cpp_builtins): Define
3464         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3466 2011-06-07  Jason Merrill  <jason@redhat.com>
3468         * c-common.c (max_tinst_depth): Lower default to 900.
3470         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3472 2011-06-07  Richard Guenther  <rguenther@suse.de>
3474         * c-common.c (c_common_nodes_and_builtins): Do not set
3475         size_type_node or call set_sizetype.
3477 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
3479         PR debug/49130
3480         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3481         type when using pointer comparison to compare types.
3483 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
3485         * c.opt: Add -Wdelete-non-virtual-dtor.
3486         * c-opts.c (c_common_handle_option): Include it in -Wall.
3488 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3490         PR bootstrap/49190
3492         Revert:
3493         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3495         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3496         not tree_common.
3498 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
3500         PR c++/49165
3501         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3502         C++ don't call c_common_truthvalue_conversion on void type arms.
3504 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3506         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3507         (stmt_list_stack): Define.
3508         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3509         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3511 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3513         * c-common.c (warning_candidate_p): Check for BLOCKs.
3515 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3517         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3518         not tree_common.
3520 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3522         * c-common.c (def_fn_type): Remove extra va_end.
3524 2011-05-23  Jason Merrill  <jason@redhat.com>
3526         PR c++/48106
3527         * c-common.c (c_common_get_narrower): New.
3528         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3530 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3532         * c-common.h (check_function_arguments): Tweak prototype of
3533         check_function_arguments.
3534         * c-common.c (check_function_arguments): Likewise.  Adjust
3535         calls to check_function_nonnull, check_function_format, and
3536         check_function_sentinel.
3537         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3538         separate attributes and typelist arguments.  Use
3539         FOREACH_FUNCTION_ARGS to iterate over argument types.
3541 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3543         * c-common.c (c_common_reswords): Reorder.
3544         * c-common.h (rid): Likewise.
3546 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3548         * c-common.c (def_fn_type): Don't call build_function_type, call
3549         build_function_type_array or build_varargs_function_type_array
3550         instead.
3551         (c_common_nodes_and_builtins): Likewise.
3553 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3555         * c-common.c (c_add_case_label): Omit the loc argument to
3556         build_case_label.
3557         * c-common.h (build_case_label): Remove.
3558         * c-semantics.c (build_case_label): Remove.
3560 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3562         * c-objc.h (objc_start_method_definition): Update prototype.
3563         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3565 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3567         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3568         TYPE_ARG_TYPES directly.
3569         (handle_nonnull_attribute): Likewise.
3570         (sync_resolve_params): Likewise.
3571         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3572         to check_format_string.
3573         (handle_format_attribute): Likewise.
3574         (check_format_string): Take a function type to examine instead of
3575         a type list.  Use a function_arg_iterator to step through argument
3576         types.
3578 2011-05-04  Richard Guenther  <rguenther@suse.de>
3580         * c-common.c (fix_string_type): Use size_int for index type bounds.
3581         (start_fname_decls): Do not pass NULL to build_int_cst.
3582         (c_init_attributes): Likewise.
3583         * c-lex.c (c_lex_with_flags): Likewise.
3585 2011-04-27  Jason Merrill  <jason@redhat.com>
3587         * c-common.c (make_tree_vector_from_list): New.
3588         * c-common.h: Declare it.
3590 2011-04-26  Richard Guenther  <rguenther@suse.de>
3592         PR preprocessor/48248
3593         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3594         for output size with -P.
3596 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3598         * c-common.c (struct c_common_resword): Add __underlying_type.
3599         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3601 2011-04-20  Jim Meyering  <meyering@redhat.com>
3603         * c-format.c (init_dollar_format_checking): Remove useless
3604         if-before-free.
3606 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3608         * c-objc.h (objc_get_interface_ivars): Removed.
3609         (objc_detect_field_duplicates): New.
3610         * stub-objc.c: Likewise.
3612 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3614         * stub-objc.c (objc_declare_protocols): Renamed to
3615         objc_declare_protocol.
3616         * c-objc.h: Likewise.
3618 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3620         * stub-objc.c (objc_declare_class): Updated argument name.
3622 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3624         * c-common.h (c_common_init_ts): Declare.
3625         * c-common.c (c_common_init_ts): Define.
3627 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3629         * c-objc.h (objc_build_message_expr): Updated prototype.
3630         * stub-objc.c (objc_build_message_expr): Likewise.
3632 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3634         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3635         of cgraph_node.
3637 2011-04-11  Richard Guenther  <rguenther@suse.de>
3639         * c-common.c (complete_array_type): Build a range type of
3640         proper type.
3642 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3644         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3645         (handle_type_generic_attribute): Likewise.
3647 2011-04-07  Jason Merrill  <jason@redhat.com>
3649         PR c++/48450
3650         * c-common.c (c_common_truthvalue_conversion): Don't ignore
3651         conversion from C++0x scoped enum.
3653 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3655         * c-target-def.h: New file.
3656         * c-target.def: New file.
3657         * c-target.h: New file.
3658         * c-common.c (targetcm): Don't define here.
3659         * c-common.h (default_handle_c_option): Declare.
3660         * c-format.c: Include c-target.h instead of target.h.
3661         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
3662         include tm.h.
3663         (default_handle_c_option): Move from targhooks.c.
3665 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3667         PR preprocessor/48248
3668         * c-ppoutput.c (print): Add src_file field.
3669         (init_pp_output): Initialize it.
3670         (maybe_print_line): Don't optimize by adding up to 8 newlines
3671         if map->to_file and print.src_file are different file.
3672         (print_line): Update print.src_file.
3674 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3676         * c-ada-spec.c (compare_comment): Use filename_cmp
3677         instead of strcmp for filename.
3679 2011-03-25  Jeff Law  <law@redhat.com>
3681         * c-common.c (def_fn_type): Add missing va_end.
3683 2011-03-25  Jason Merrill  <jason@redhat.com>
3685         * c.opt: Add -std=c++03.
3687 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3689         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3691 2011-03-17  Kai Tietz
3693         PR target/12171
3694         * c-pretty-print.c (pp_c_specifier_qualifier_list):
3695         Display allowed attributes for function pointer types.
3696         (pp_c_attributes_display): New function to display
3697         attributes having affects_type_identity flag set to true.
3698         * c-pretty-print.h (pp_c_attributes_display): New prototype.
3700         * c-common.c (c_common_attribute_table):
3701         Add new element.
3702         (c_common_format_attribute_table): Likewise.
3704 2011-03-18  Jason Merrill  <jason@redhat.com>
3706         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3707         * c-common.h: Don't declare it here.
3708         * c-common.c: Or define it here.
3709         * c-opts.c (c_common_handle_option): Or set it here.
3711         PR c++/35315
3712         * c-common.c (handle_transparent_union_attribute): Don't
3713         make a duplicate type in C++.
3715 2011-03-15  Jason Merrill  <jason@redhat.com>
3717         * c-common.c (max_constexpr_depth): New.
3718         * c-common.h: Declare it.
3719         * c-opts.c (c_common_handle_option): Set it.
3720         * c.opt (fconstexpr-depth): New option.
3722 2011-03-11  Jason Merrill  <jason@redhat.com>
3724         * c-common.c (attribute_takes_identifier_p): Add missing const.
3726         PR c++/46803
3727         * c-common.c (attribute_takes_identifier_p): Assume that an
3728         unknown attribute takes an identifier.
3730 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
3732         PR c/47786
3733         * c-common.c (c_type_hash): Call list_length instead of iterating
3734         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
3736 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3738         PR c/47809
3739         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3741 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
3743         * c.opt (fobjc-abi-version=) New.
3744         (fobjc-nilcheck): New.
3746 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
3748         PR c++/46890
3749         * c-common.h (keyword_is_decl_specifier): Declare.
3750         * c-common.c (keyword_is_decl_specifier): Define.
3751         (keyword_is_function_specifier): New function.
3753 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3755         PR c/47473
3756         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3757         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3758         REAL_TYPE.
3760 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
3762         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3764 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3766         PR pch/47430
3767         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3768         after init_c_lex if pch_file is set.
3770 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
3772         PR c++/43601
3773         * c.opt (-fkeep-inline-dllexport): New switch.
3775 2011-01-12  Richard Guenther  <rguenther@suse.de>
3777         PR middle-end/32511
3778         * c-common.c (handle_weak_attribute): Warn instead of error
3779         on declaring an inline function weak.
3781 2011-01-05  Tom Tromey  <tromey@redhat.com>
3783         * c-common.h (lvalue_error): Update.
3784         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
3785         not error.
3787 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3789         PR objc/47075
3790         * c-objc.h (objc_finish_message_expr): Added argument to
3791         prototype.
3793 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
3795         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3796         Use prototype_p.
3798 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3800         * c-objc.h (objc_maybe_warn_exceptions): New.
3801         * stub-objc.c (objc_maybe_warn_exceptions): New.
3803 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
3805         * c-common.h (readonly_error): Declare.
3806         * c-common.c (readonly_error): Define.
3808 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
3810         * c-common.h (invalid_indirection_error): Declare.
3811         * c-common.c (invalid_indirection_error): Define.
3813 2010-12-03  Richard Guenther  <rguenther@suse.de>
3815         PR c/46745
3816         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3817         (pp_c_unary_expression): Likewise.
3818         (pp_c_expression): Likewise.
3820 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3822         * c-common.h (objc_finish_function): New.
3823         (objc_non_volatilized_type): Removed.
3824         (objc_type_quals_match): Removed.
3825         * stub-objc.c (objc_finish_function): New.
3826         (objc_non_volatilized_type): Removed.
3827         (objc_type_quals_match): Removed.
3829 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
3831         * c-common.h (parse_optimize_options): Declare.
3832         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3833         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3835 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
3837         * c-opts.c (check_deps_environment_vars): Use getenv instead of
3838         GET_ENVIRONMENT.
3839         * c-pch.c (O_BINARY): Don't define here.
3840         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3842 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
3844         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3845         targetm.except_unwind_info.
3847 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3849         * c-opts.c (c_common_handle_option): Pass location to
3850         set_struct_debug_option.
3852 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3854         * c-common.c (visibility_options): Move from ../opts.c.
3855         * c-common.h (struct visibility_flags, visibility_options):
3856         Declare here.
3857         * c-opts.c (finish_options): Rename to c_finish_options.
3858         (c_common_init): Update call to finish_options.
3860 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
3862         PR objc/34033
3863         * c-lex.c (lex_string): Check that each string in an Objective-C
3864         string concat sequence starts with either one or zero '@', and
3865         that there are no spurious '@' signs at the end.
3867 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
3869         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3870         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3871         HANDLE_PRAGMA_VISIBILITY.
3872         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3873         HANDLE_PRAGMA_VISIBILITY): Don't define.
3874         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3876 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
3878         PR c++/16189
3879         PR c++/36888
3880         PR c++/45331
3881         * c-common.h (keyword_begins_type_specifier): Declare.
3882         (keyword_is_storage_class_specifier): Declare.
3883         (keyword_is_type_qualifier): Declare.
3884         * c-common.c (keyword_begins_type_specifier): New function.
3885         (keyword_is_storage_class_specifier): New function.
3886         (keyword_is_type_qualifier): Declare.
3888 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3890         PR c/46547
3891         * c-common.c (in_late_binary_op): Define.
3892         (c_common_truthvalue_conversion): Check in_late_binary_op before
3893         calling c_save_expr.
3894         * c-common.h (in_late_binary_op): Declare.
3896 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3898         * c-opts.c (c_common_handle_option): Update calls to
3899         set_struct_debug_option.
3901 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3903         * c-common.h (objc_declare_protocols): Added additional argument.
3904         * stub-objc.c (objc_declare_protocol): Same change.
3906 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
3908         PR c/33193
3909         * c-common.h (build_real_imag_expr): Declare.
3910         * c-semantics.c (build_real_imag_expr): Define.
3912 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3914         * c-opts.c (c_common_parse_file): Take no arguments.
3915         * c-common.h (c_common_parse_file): Update prototype.
3917 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
3919         PR c++/46401
3920         * c-common.c (warning_candidate_p): Don't track non-const calls
3921         or STRING_CSTs.
3923 2010-11-15  Ian Lance Taylor  <iant@google.com>
3925         * c-lex.c (init_c_lex): Set macro debug callbacks if
3926         flag_dump_go_spec is set.
3928 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3930         * c-common.h (objc_build_incr_expr_for_property_ref): New.
3931         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3933 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
3935         PR preprocessor/45038
3936         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3937         dialects.
3939 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3941         * c-common.h (c_family_lang_mask): Declare.
3942         * c-opts.c (c_family_lang_mask): Make extern.
3943         * c-pragma.c (handle_pragma_diagnostic): Use
3944         control_warning_option.
3946 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3948         * c-common.c (parse_optimize_options): Update call to
3949         decode_options.
3950         * c-common.h (c_common_handle_option): Update prototype.
3951         * c-opts.c (c_common_handle_option): Take location_t parameter and
3952         pass it to other functions.
3954 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3956         * c-opts.c (warning_as_error_callback): Remove.
3957         (c_common_initialize_diagnostics): Don't call
3958         register_warning_as_error_callback.
3959         (c_common_handle_option): Handle -Werror=normalized= here.
3961 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3963         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3964         in diagnostic.
3965         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3966         letter.
3967         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3968         Remove trailing '.' from diagnostics.
3969         * c.opt (Wwrite-strings_: Avoid '`' in help text.
3971 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3973         * c-common.c (parse_optimize_options): Pass global_dc to
3974         decode_options.
3975         * c-opts.c (c_common_handle_option): Pass &global_options to
3976         set_Wstrict_aliasing.
3977         * c.opt (v): Don't mark Common or document here.
3979 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
3981         PR target/44981
3982         * c-format.c (format_type): New type gcc_objc_string_format_type.
3983         (valid_stringptr_type_p): New.
3984         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
3985         (check_format_string): Pass expected type, use
3986         valid_stringptr_type_p (), check that the format string types are
3987         consistent with the format specification.
3988         (decode_format_attr): Warn if NSString is used outside objective-c.
3989         (format_types_orig): Add NSString.
3990         (format_name): New.
3991         (format_flags): New.
3992         (check_format_arg): Handle format strings requiring an external parser.
3993         first_target_format_type: New variable.
3994         (handle_format_attribute): Set up first_target_format_type, pass the
3995         expected format arg string type to check_format_string().
3996         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
3997         * stub-objc.c (objc_string_ref_type_p): New.
3998         (objc_check_format_arg): New.
4000 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4002         Fixed using the Objective-C 2.0 dot-syntax with class names.
4003         * c-common.h (objc_build_class_component_ref): New.
4004         * stub-objc.c (objc_build_class_component_ref): New.
4006 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4008         * c.opt (Wproperty-assign-default): New option.
4010 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4012         Implemented -fobjc-std=objc1 flag.
4013         * c.opt (fobjc-std=objc1): New option.
4015 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
4017         Implemented format and noreturn attributes for Objective-C methods.
4018         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4019         attribute for Objective-C methods.
4021 2010-10-31  Jason Merrill  <jason@redhat.com>
4023         * c-common.c (conversion_warning, warn_for_collisions_1): Use
4024         EXPR_LOC_OR_HERE.
4026 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4028         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4029         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4030         (objc_add_property_declaration): Removed arguments for copies and
4031         ivar.
4032         (objc_build_getter_call): Renamed to
4033         objc_maybe_build_component_ref.
4034         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4035         (objc_is_property_ref): New.
4036         * c-common.c (c_common_reswords): Removed copies and ivar.
4037         * stub-objc.c (objc_add_property_declaration): Removed arguments
4038         for copies and ivar.
4039         (objc_build_getter_call): Renamed to
4040         objc_maybe_build_component_ref.
4041         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4042         (objc_is_property_ref): New.
4044 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
4045             Matthew Gingell  <gingell@adacore.com>
4047         * c-ada-spec.c (separate_class_package): New function.
4048         (pp_ada_tree_identifier): Prefix references to C++ classes with the
4049         name of their enclosing package.
4050         (print_ada_declaration): Use separate_class_package.
4052 2010-10-27  Jason Merrill  <jason@redhat.com>
4054         * c-common.c (c_common_reswords): Add __is_literal_type.
4055         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4057         * c-common.c (check_case_value): Remove special C++ code.
4059 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4061         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4062         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
4063         and RID_LAST_PATTR.
4064         (objc_add_property_declaration): Added additional arguments.
4065         (objc_property_attribute_kind): Removed.
4066         (objc_set_property_attr): Removed.
4067         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4068         copy and nonatomic.
4069         * stub-objc.c (objc_add_property_declaration): Added additional
4070         arguments.
4071         (objc_set_property_attr): Removed.
4073 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4075         * c-common.h (objc_add_property_variable): Renamed to
4076         objc_add_property_declaration.  Added location argument.
4077         * stub-objc.c (objc_add_property_variable): Same change.
4078         
4079 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
4081         * c-common.h (objc_maybe_printable_name): New.
4082         * stub-objc.c (objc_maybe_printable_name): New.
4084 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4085         Andrew Pinski <pinskia@gmail.com>
4087         * c-common.h (c_common_mark_addressable_vec): Declare.
4088         * c-common.c (c_common_mark_addressable_vec): New function.
4090 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4092         * c-common.h (objc_set_method_type): Removed.
4093         (objc_add_method_declaration): Added boolean argument.
4094         (objc_start_method_definition): Same change.
4095         (objc_build_method_signature): Same change.
4096         * stub-objc.c (objc_set_method_type): Removed.
4097         (objc_add_method_declaration): Added boolean argument.
4098         (objc_start_method_definition): Same change.
4099         (objc_build_method_signature): Same change.
4101 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4103         * c-common.h (finish_file): Removed.
4104         (objc_write_global_declarations): New.
4105         * c-opts.c (c_common_parse_file): Do not call finish_file.
4106         * stub-objc.c (objc_write_global_declarations): New.
4108 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4110         Implemented parsing @synthesize and @dynamic for
4111         Objective-C/Objective-C++.
4112         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4113         (objc_add_synthesize_declaration): New.
4114         (objc_add_dynamic_declaration): New.
4115         * c-common.c (c_common_reswords): Add synthesize and dynamic.
4116         * stub-objc.c (objc_add_synthesize_declaration): New.
4117         (objc_add_dynamic_declaration): New.
4119 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4121         PR target/46041
4122         * c-cppbuiltin.c (mode_has_fma): Move function here from
4123         builtins.c.  Don't use the fma optab, instead just use the
4124         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4125         using -save-temps.
4127 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4129         Merge from 'apple/trunk' branch on FSF servers.
4131         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
4133         Radar 4330422
4134         * c-common.h (objc_non_volatilized_type): New declaration
4135         * stub-objc.c (objc_non_volatilized_type): New stub.
4137 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4139         Merge from 'apple/trunk' branch on FSF servers.
4141         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4143         Radar 4133425
4144         * c-common.h (objc_diagnose_private_ivar): New decl.
4145         * stub-objc.c (objc_diagnose_private_ivar): New stub.
4147 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4149         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4150         * c-common.h (enum rid): Add RID_AT_PACKAGE.
4151         (objc_ivar_visibility_kind): New enum.
4152         (objc_set_visibility): Adjust prototype to use visibility enum.
4153         * stub-objc.c (objc_set_visibility): Adjust stub to use
4154         visibility enum.
4156 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4158         * c-cppbuiltin.c (builtin_define_float_constants): Emit
4159         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4160         has the appropriate fma builtins.
4161         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4163 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4165         merge from FSF apple 'trunk' branch.
4166         2006 Fariborz Jahanian <fjahanian@apple.com>
4168         Radars 4436866, 4505126, 4506903, 4517826
4169         * c-common.c (c_common_resword): Define @property and its attributes.
4170         * c-common.h: Define property attribute enum entries.
4171         (OBJC_IS_PATTR_KEYWORD): New.
4172         (objc_property_attribute_kind): New enum.
4173         Declare objc_set_property_attr (), objc_add_property_variable (),
4174         objc_build_getter_call () and objc_build_setter_call ().
4175         * stub-objc.c (objc_set_property_attr): New stub.
4176         (objc_add_property_variable): Likewise.
4177         (objc_build_getter_call): Likewise.
4178         (objc_build_setter_call) Likewise.
4180 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
4182         merge from FSF apple 'trunk' branch.
4183         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4185         Radar 3803157 (method attributes)
4186         * c-common.c (handle_deprecated_attribute): Recognize
4187         objc methods as valid declarations.
4188         * c-common.h: Declare objc_method_decl ().
4189         * stub-objc.c (objc_method_decl): New stub.
4191 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4193         * c-common.c (parse_optimize_options): Call
4194         decode_cmdline_options_to_array_default_mask before
4195         decode_options.  Update arguments to decode_options.
4196         * c-common.h (c_common_init_options_struct): Declare.
4197         * c-opts.c (c_common_init_options_struct): New.  Split out from
4198         c_common_init_options.
4200 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4202         Implemented fast enumeration for Objective-C.
4203         * c-common.h (objc_finish_foreach_loop): New.
4204         * stub-objc.c (objc_finish_foreach_loop): New.
4206 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4208         * c-common.h (struct diagnostic_context): Don't declare here.
4209         (c_common_initialize_diagnostics): Declare using
4210         diagnostic_context typedef.
4211         * c-opts.c (c_common_handle_option): Pass global_dc to
4212         handle_generated_option.
4214 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4216         * c-opts.c (c_common_handle_option): Pass &global_options_set to
4217         handle_generated_option.
4219 2010-10-03  Ian Lance Taylor  <iant@google.com>
4221         * c.opt (-fplan9-extensions): New option.
4223 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4225         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4226         Remove.
4227         (c_cpp_builtins): Call functions from cppbuiltin.c instead
4228         of duplicating code.
4230 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
4232         * c-common.c: Add two new entries for @optional
4233         and @required keywords.
4235         merge from FSF 'apple/trunk' branch.
4236         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
4238         Radar 4386773
4239         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4240         objective-c keywords.
4241         (objc_set_method_opt): New declaration.
4242         * stub-objc.c (objc_set_method_opt): New stub.
4244 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4246         * c-common.c (handle_optimize_attribute): Pass &global_options to
4247         cl_optimization_save and cl_optimization_restore.
4248         * c-opts.c (c_common_handle_option): Pass &global_options to
4249         handle_generated_option.
4250         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4251         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4252         &global_options to cl_optimization_restore.
4254 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4256         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4257         Objective-C/Objective-C++ keywords.
4259 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4261         Merge from 'apple/trunk' branch on FSF servers.
4263         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
4265         Radar 4281748
4266         * c-common.h (objc_check_global_decl): New declaration.
4267         * stub-objc.c (objc_check_global_decl): New stub.
4269 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4271         * c.opt: Don't use VarExists.
4273 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4275         * c-common.c (c_cpp_error): Update names of diagnostic_context
4276         members.
4277         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4278         cl_optimization members.
4279         * c-opts.c (warning_as_error_callback, c_common_handle_option,
4280         sanitize_cpp_opts, finish_options): Update names of cpp_options
4281         members.
4283 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4285         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
4286         (objc_is_reserved_word): Removed.
4287         * c-common.c: Updated comments.
4288         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4289         objc_is_reserved_word.
4290         * stub-objc.c (objc_is_reserved_word): Removed.
4292 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4294         * c-common.h (objc_add_method_declaration): Adjust prototype to
4295         include attributes.
4296         (objc_start_method_definition): Likewise.
4297         (objc_build_keyword_decl): Likewise.
4298         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4299         (objc_start_method_definition): Likewise.
4300         (objc_build_keyword_decl): Likewise.
4302 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4304         * c-common.h (objc_start_class_interface): Adjust prototype.
4305         (objc_start_category_interface): Likewise.
4306         (objc_start_protocol): Likewise.
4307         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4308         (objc_start_class_interface): Likewise.
4309         (objc_start_category_interface): Likewise.
4311 2010-09-27  Ian Lance Taylor  <iant@google.com>
4313         * c-common.c (c_common_attribute_table): Add no_split_stack.
4314         (handle_no_split_stack_attribute): New static function.
4316 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4318         Merge from 'apple/trunk' branch on FSF servers.
4320         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
4322         Radar 4229905
4323         * c-common.h (objc_have_common_type): New declaration.
4324         * stub-objc.c (objc_have_common_type): New stub.
4326         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
4328         Radar 4154928
4329         * c-common.h (objc_common_type): New prototype.
4330         * stub-objc.c (objc_common_type): New stub.
4332 2010-09-24  Jan Hubicka  <jh@suse.cz>
4334         * c-common.c (handle_leaf_attribute): New function.
4335         (struct attribute_spec c_common_att): Add leaf.
4337 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4339         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4340         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4341         -dump, -dump=, -imacros, -imacros=, -include, -include=,
4342         -include-barrier, -include-directory, -include-directory=,
4343         -include-directory-after, -include-directory-after=,
4344         -include-prefix, -include-prefix=, -include-with-prefix,
4345         -include-with-prefix=, -include-with-prefix-after,
4346         -include-with-prefix-after=, -include-with-prefix-before,
4347         -include-with-prefix-before=, -no-integrated-cpp,
4348         -no-line-commands, -no-standard-includes, -no-warnings, -output,
4349         -output=, -pedantic, -pedantic-errors, -preprocess,
4350         -print-missing-file-dependencies, -trace-includes, -traditional,
4351         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4352         -user-dependencies, -verbose, -write-dependencies,
4353         -write-user-dependencies, no-integrated-cpp, traditional): New.
4355 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4357         PR objc/23710
4358         * c-common.h (objc_start_method_definition): Return bool instead
4359         of void.
4360         * stub-objc.c (objc_start_method_definition): Return bool instead
4361         of void.
4363 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4365         PR objc/25965
4366         * c-common.h (objc_get_interface_ivars): New declaration.
4367         * stub-objc.c (objc_get_interface_ivars): New stub.
4369 2010-09-15  Ian Lance Taylor  <iant@google.com>
4371         * c-common.c (parse_optimize_options): Do not capitalize warning
4372         messages.  Remove period at end of warning message.
4374 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4376         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4377         (handle_alias_attribute): ... here.
4378         (handle_ifunc_attribute): New.
4380 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4382         * c-common.h (do_warn_double_promotion): Declare.
4383         * c-common.c (do_warn_double_promotion): Define.
4385 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4387         * c.opt (Wdouble-promotion): New.
4389 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4391         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4392         fvtable-thunks, fxref): Mark no longer supported in help text.
4394 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4396         * c.opt (Wimport, fall-virtual, falt-external-templates,
4397         fdefault-inline, fenum-int-equiv, fexternal-templates,
4398         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4399         fname-mangling-version-, fnew-abi, fnonnull-objects,
4400         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4401         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4402         applicable.
4403         (fhandle-exceptions): Mark with Alias and Warn.
4404         * c-opts.c (c_common_handle_option): Don't handle options marked
4405         as ignored.
4407 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4409         * c.opt (Wcomments, Werror-implicit-function-declaration,
4410         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4411         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4412         aliases.
4413         * c-common.c (option_codes): Use OPT_Wcomment instead of
4414         OPT_Wcomments.
4415         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4416         Don't handle options marked as aliases.
4418 2010-08-25  Richard Guenther  <rguenther@suse.de>
4420         * c-common.c (c_common_get_alias_set): Remove special
4421         handling for pointers.
4423 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4425         * c-common.c: Use FOR_EACH_VEC_ELT.
4426         * c-gimplify.c: Likewise.
4427         * c-pragma.c: Likewise.
4429 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4431         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4432         RejectDriver.
4433         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4434         RejectDriver.
4435         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4436         instead of OPT_MDX and OPT_MMDX.
4438 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4440         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4442 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4444         * c.opt (MD, MMD): Change to MDX and MMDX.
4445         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4447 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4449         * c-opts.c (c_common_handle_option): Call handle_generated_option
4450         instead of handle_option.
4452 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4454         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4455         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4457 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4459         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4460         (pending_redefine_extname): Change type to a VEC.
4461         (add_to_renaming_pragma_list): Update for new type of
4462         pending_redefine_extname.
4463         (maybe_apply_renaming_pragma): Likewise.
4465 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4467         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4468         visited.
4469         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4470         decide whether a type has already been declared/seen.
4471         Do not go to the original type.
4472         (dump_nested_types): New parameter forward.
4473         Generate forward declaration if needed and mark type as visited.
4474         (print_ada_declaration): Call dump_nested_types if not already done.
4475         Mark types as visited.
4477 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4479         * c.opt (-print-pch-checksum): Remove option.
4480         * c-opts.c (c_common_handle_option): Don't handle
4481         OPT_print_pch_checksum.
4483 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4485         * c-common.h (c_common_handle_option): Update prototype and return
4486         value type.
4487         * c-opts.c (c_common_handle_option): Update prototype and return
4488         value type.  Update calls to handle_option and
4489         enable_warning_as_error.
4491 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4493         PR c/45079
4494         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4496 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4498         * c-common.h (c_common_missing_argument): Remove.
4499         * c-opts.c (c_common_missing_argument): Remove.
4500         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4501         idirafter, imacros, include, isysroot, isystem, iquote): Add
4502         MissingArgError.
4503         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4505 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4507         * c-common.h (c_common_option_lang_mask,
4508         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4509         New.
4510         (c_common_init_options): Update prototype.
4511         * c-opts.c (c_common_option_lang_mask): New.
4512         (c_common_initialize_diagnostics): Split out of
4513         c_common_init_options.
4514         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4515         New.
4516         (c_common_init_options): Update prototype.  Use decoded options in
4517         search for -lang-asm.
4519 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4521         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4522         * c-format.c: Likewise.
4524 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4526         * c-common.h: Include diagnostic-core.h. Error if already
4527         included.
4528         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4530 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4532         * c-common.c (IN_GCC_FRONTEND): Do not undef.
4533         Do not include expr.h
4534         (vector_mode_valid_p): Move here.
4536 2010-06-21  DJ Delorie  <dj@redhat.com>
4538         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4539         allow these pragmas anywhere.
4541 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4543         PR bootstrap/44509
4544         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4545         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4546         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4547         ggc_strdup instead of xstrdup.
4549 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4551         * c-cppbuiltin.c: Include cpp-id-data.h.
4552         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4553         (lazy_hex_fp_value): New function.
4554         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4556 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4558         * c-gimplify.c: Do not include tree-flow.h
4560 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4562         PR other/44034
4563         * c-common.c: Rename targetm member:
4564         targetm.enum_va_list -> targetm.enum_va_list_p
4566 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4568         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4570 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4572         * c-cppbuiltin.c: Do not include except.h.
4574 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4576         * c-common.c (warn_for_omitted_condop): New.
4577         * c-common.h (warn_for_omitted_condop): Add prototype.
4579 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4581         * c.opt (lang-objc): Remove.
4582         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4584 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4586         * c-opts.c: Include "tm_p.h".
4588 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4590         * c-common.c (parse_optimize_options): Update call to
4591         decode_options.
4593 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4595         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4596         new type of types_used_by_cur_var_decl.
4598 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
4600         PR bootstrap/44512
4601         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4602         for C++ standard compliance.
4604 2010-06-16  Jason Merrill  <jason@redhat.com>
4606         * c.opt: Add -Wnoexcept.
4608 2010-06-16  Richard Guenther  <rguenther@suse.de>
4610         PR c/44555
4611         * c-common.c (c_common_truthvalue_conversion): Remove
4612         premature and wrong optimization concering ADDR_EXPRs.
4614 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
4616         * c-ada-spec.c (dump_sloc): Remove column info.
4617         (is_simple_enum): New function.
4618         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4619         enum types when relevant.
4621 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4623         * c-common.c (conversion_warning): Warn at expression
4624         location.
4626 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4628         * c-opts.c (c_common_handle_option): Don't handle
4629         OPT_fshow_column.
4631 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4633         * c-pragma.c (push_alignment): Use typed GC allocation.
4634         (handle_pragma_push_options): Likewise.
4636         * c-common.c (parse_optimize_options): Likewise.
4638         * c-common.h (struct sorted_fields_type): Add variable_size GTY
4639         option.
4641 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4643         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4644         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4645         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4646         flag_signed_bitfields, warn_strict_null_sentinel,
4647         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4648         flag_gen_declaration, flag_no_gnu_keywords,
4649         flag_implement_inlines, flag_implicit_templates,
4650         flag_implicit_inline_templates, flag_optional_diags,
4651         flag_elide_constructors, flag_default_inline, flag_rtti,
4652         flag_conserve_space, flag_access_control, flag_check_new,
4653         flag_new_for_scope, flag_weak, flag_working_directory,
4654         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4655         flag_enforce_eh_specs, flag_threadsafe_statics,
4656         flag_pretty_templates): Remove.
4657         * c-common.h (flag_preprocess_only, flag_nil_receivers,
4658         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4659         flag_replace_objc_classes, flag_undef, flag_no_builtin,
4660         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4661         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4662         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4663         flag_no_gnu_keywords, flag_implement_inlines,
4664         flag_implicit_templates, flag_implicit_inline_templates,
4665         flag_optional_diags, flag_elide_constructors, flag_default_inline,
4666         flag_rtti, flag_conserve_space, flag_access_control,
4667         flag_check_new, flag_new_for_scope, flag_weak,
4668         flag_working_directory, flag_use_cxa_atexit,
4669         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4670         flag_threadsafe_statics, flag_pretty_templates,
4671         warn_strict_null_sentinel): Remove.
4672         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4673         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4674         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4675         fimplicit-inline-templates, fimplicit-templates,
4676         flax-vector-conversions, fms-extensions, fnil-receivers,
4677         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4678         frtti, fshort-double, fshort-enums, fshort-wchar,
4679         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4680         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4681         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4682         gen-decls, undef): Use Var.
4683         (fdefault-inline, foptional-diags): Document as doing nothing.
4684         * c-opts.c (c_common_handle_option): Remove cases for options now
4685         using Var.  Mark ignored options as such.
4687 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4689         * c-common.c: Moved to here from parent directory.
4690         * c-common.def: Likewise.
4691         * c-common.h: Likewise.
4692         * c-cppbuiltin.c: Likewise.
4693         * c-dump.c: Likewise.
4694         * c-format.c: Likewise.
4695         * c-format.h : Likewise.
4696         * c-gimplify.c: Likewise.
4697         * c-lex.c: Likewise.
4698         * c-omp.c: Likewise.
4699         * c.opt: Likewise.
4700         * c-opts.c: Likewise.
4701         * c-pch.c: Likewise.
4702         * c-ppoutput.c: Likewise.
4703         * c-pragma.c: Likewise.
4704         * c-pragma.h: Likewise.
4705         * c-pretty-print.c: Likewise.
4706         * c-pretty-print.h: Likewise.
4707         * c-semantics.c: Likewise.
4708         * stub-objc.c: Likewise.
4710         * c-common.c: Include gt-c-family-c-common.h.
4711         * c-pragma.c: Include gt-c-family-c-pragma.h.
4713 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4715 Copying and distribution of this file, with or without modification,
4716 are permitted in any medium without royalty provided the copyright
4717 notice and this notice are preserved.