PR libstdc++/65978
[official-gcc.git] / gcc / c-family / ChangeLog
blob8c2e93345ac2e414ebba0307c5d3afe2caeeaef0
1 2015-04-30  Marek Polacek  <polacek@redhat.com>
3         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4         require that the non-constant be of a boolean type.
6 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
8         * c-common.c (handle_section_attribute): Refactor to reduce
9         nesting and distinguish between error cases.
11 2015-04-29  Marek Polacek  <polacek@redhat.com>
13         PR c/64610
14         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
15         with 0/1.
17 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
19         * c-common.h (omp_clause_mask): Unconditionally define as a class.
20         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
21         HOST_BITS_PER_WIDE_INT.
23 2015-04-28  Tom de Vries  <tom@codesourcery.com>
25         PR tree-optimization/65887
26         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
28 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
29             Pierre-Marie de Rodat  <derodat@adacore.com>
31         * c-ada-spec.c (in_function): Delete.
32         (dump_generic_ada_node): Do not change in_function and remove the
33         redundant code dealing with it.
34         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
35         (print_ada_methods): Output the static member functions in a nested
36         package after the regular methods as well as associated renamings.
38 2015-04-24  Marek Polacek  <polacek@redhat.com>
40         PR c/65830
41         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
42         and OPT_Wshift_count_overflow.
44         PR c/63357
45         * c-common.c (warn_logical_operator): Warn if the operands have the
46         same expressions.
48 2015-04-24  Marek Polacek  <polacek@redhat.com>
50         PR c/61534
51         * c-common.c (warn_logical_operator): Bail if either operand comes
52         from a macro expansion.
54 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
56         PR target/55143
57         * c-common.c (c_default_pointer_mode): Add definition.
58         * c-common.h (c_default_pointer_mode): Add declaration.
60 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
62         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
63         on record_builtin_type argument.
65 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
67         PR c/65120
68         * c-common.c (warn_logical_not_parentheses): Don't warn for
69         !x == 0 or !x != 0.
71 2015-03-07  Marek Polacek  <polacek@redhat.com>
73         PR sanitizer/65280
74         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
75         before trying to figure out whether we have a flexible array member.
77 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
78             Jonathan Wakely  <jwakely.gcc@gmail.com>
80         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
82 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
84         PR ada/65319
85         * c-ada-spec.c (print_destructor): Remove obsolete code.
87 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
89         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
90         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
91         DECL_TEMPLATE_RESULT emulations.
92         (dump_ada_template)): Add guard for TYPE_METHODS.
94 2015-02-27  Marek Polacek  <polacek@redhat.com>
96         PR c/65040
97         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
99 2015-02-27  Kai Tietz  <ktietz@redhat.com>
101         PR c/35330
102         * c-pragma.c (handle_pragma_weak): Do not try to create
103         weak/alias of declarations not being function, or variable
104         declarations.
106 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
108         PR libgomp/64625
109         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
110         Remove macros.
111         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
113 2015-02-16  Marek Polacek  <polacek@redhat.com>
115         PR c/65066
116         * c-format.c (check_format_types): Handle null param.
118 2015-02-13  Marek Polacek  <polacek@redhat.com>
120         PR c/65040
121         * c-format.c (check_format_types): Don't warn about different
122         signedness if the original value is in the range of WANTED_TYPE.
124 2015-02-12  Jason Merrill  <jason@redhat.com>
126         PR c++/64956
127         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
128         to the current highest version.
129         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
131 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
133         PR c/64824
134         PR c/64868
135         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
136         instead of RDIV_EXPR.  Use build_binary_op instead of
137         build2_loc.
139 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
141         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
142         to pass input_location as first argument.
144 2015-01-23  Tom de Vries  <tom@codesourcery.com>
146         PR libgomp/64672
147         * c.opt (fopenacc): Mark as LTO option.
149 2015-01-23  Tom de Vries  <tom@codesourcery.com>
151         PR libgomp/64707
152         * c.opt (fopenmp): Mark as LTO option.
154 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
156         PR c/63307
157         * cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
158         (compare_decls): Fix up formatting.
160 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
162         PR c/63307
163         * cilk.c: Include vec.h.
164         (struct cilk_decls): New structure.
165         (wrapper_parm_cb): Split this function to...
166         (fill_decls_vec): ...this...
167         (create_parm_list): ...and this.
168         (compare_decls): New function.
169         (for_local_cb): Remove.
170         (wrapper_local_cb): Ditto.
171         (build_wrapper_type): For now first traverse and fill vector of
172         declarations then sort it and then deal with sorted vector.
173         (cilk_outline): Ditto.
174         (declare_one_free_variable): Ditto.
176 2015-01-21  Jason Merrill  <jason@redhat.com>
178         PR c++/64629
179         * c-format.c (check_format_arg): Call decl_constant_value.
181 2015-01-19  Martin Liska  <mliska@suse.cz>
183         * c-common.c (handle_noicf_attribute): New function.
185 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
186             Bernd Schmidt  <bernds@codesourcery.com>
187             James Norris  <jnorris@codesourcery.com>
188             Cesar Philippidis  <cesar@codesourcery.com>
189             Ilmir Usmanov  <i.usmanov@samsung.com>
190             Jakub Jelinek  <jakub@redhat.com>
192         * c.opt (fopenacc): New option.
193         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
194         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
195         New macros.
196         * c-common.h (c_finish_oacc_wait): New prototype.
197         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
198         (c_finish_oacc_wait): New function.
199         * c-pragma.c (oacc_pragmas): New variable.
200         (c_pp_lookup_pragma, init_pragma): Handle it.
201         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
202         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
203         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
204         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
205         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
206         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
207         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
208         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
209         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
210         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
211         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
212         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
213         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
214         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
215         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
216         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
217         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
218         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
219         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
220         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
221         PRAGMA_OACC_CLAUSE_WORKER.
223 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
225         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
226         for the new option fstack-protector_explicit.
227         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
228         (handle_stack_protect_attribute): New function.
230 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
232         * c.opt: New option -Warray-bounds=.
234 2015-01-09  Michael Collison  <michael.collison@linaro.org>
236         * array-notation-common.c: Include hash-set.h, machmode.h,
237         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
238         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
239         * c-ada-spec.c: Ditto.
240         * c-cilkplus.c: Ditto.
241         * c-common.c: Include input.h due to flattening of tree.h.
242         Define macro GCC_C_COMMON_C.
243         * c-common.h: Flatten tree.h header files into c-common.h.
244         Remove include of tree-core.h.
245         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
246         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
247         fold-const.h, wide-int.h, and inchash.h due to
248         flattening of tree.h.
249         * c-dump.c: Ditto.
250         * c-format.c: Flatten tree.h header files into c-common.h.
251         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
252         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
253         fold-const.h, wide-int.h, and inchash.h due to
254         flattening of tree.h.
255         * c-dump.c: Include hash-set.h, machmode.h,
256         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
257         fold-const.h, wide-int.h, and inchash.h due to
258         flattening of tree.h.
259         * c-format.c: Include hash-set.h, machmode.h,
260         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
261         fold-const.h, wide-int.h, inchash.h and real.h due to
262         flattening of tree.h.
263         * c-gimplify.c: Include hash-set.h, machmode.h,
264         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
265         fold-const.h, wide-int.h, and inchash.h due to
266         flattening of tree.h.
267         * cilk.c: Ditto.
268         * c-lex.c: Ditto.
269         * c-omp.c: Ditto.
270         * c-opts.c: Ditto.
271         * c-pch.c: Ditto.
272         * c-ppoutput.c: Ditto.
273         * c-pragma.c: Ditto.
274         * c-pretty-print.c: Ditto.
275         * c-semantics.c: Ditto.
276         * c-ubsan.c: Ditto.
277         * stub-objc.c: Ditto.
279 2015-01-08  Jason Merrill  <jason@redhat.com>
281         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
282         do_ubsan_in_current_function.
283         (ubsan_maybe_instrument_reference_or_call): Likewise.
284         * c-ubsan.h: Declare it.
286 2015-01-08  Mike Stump  <mikestump@comcast.net>
288         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
290 2015-01-07  Marek Polacek  <polacek@redhat.com>
292         PR c/64440
293         * c-common.c (c_fully_fold_internal): Warn for division and modulo
294         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
296 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
298         PR c++/31397
299         * c.opt (Wsuggest-override): New option.
301 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
303         Update copyright years.
305 2015-01-05  Marek Polacek  <polacek@redhat.com>
307         PR c/64423
308         * c-common.c (warn_array_subscript_with_type_char): Add location_t
309         parameter.  Use it.
310         * c-common.h (warn_array_subscript_with_type_char): Update
311         declaration.
313 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
315         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
316         Control macro with flag_sized_deallocation.
318 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
320         * c.opt (Wdiscarded-array-qualifiers): New option.
322 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
324         PR preprocessor/63831
325         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
326         and __has_cpp_attribute here.
327         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
328         c_common_has_attribute.
329         * c-common.h (c_common_has_attribute): New prototype.
330         * c-lex.c (init_c_lex): Set cb->has_attribute to
331         c_common_has_attribute instead of cb_has_attribute.
332         (get_token_no_padding): New function.
333         (cb_has_attribute): Renamed to ...
334         (c_common_has_attribute): ... this.  No longer static.  Use
335         get_token_no_padding, require ()s, don't build TREE_LIST
336         unnecessarily, fix up formatting, adjust diagnostics, call
337         init_attributes.
339 2014-12-15  Jason Merrill  <jason@redhat.com>
341         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
342         (-Wsized-deallocation): New.
343         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
344         to on in C++14 and up.
346 2014-12-11  Jason Merrill  <jason@redhat.com>
348         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
350         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
351         we aren't complaining about VLAs.
353 2014-12-06  Marek Polacek  <polacek@redhat.com>
355         PR tree-optimization/64183
356         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
357         shift-expression if it is integer_type_node.  Use types_compatible_p.
359 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
361         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
362         last argument from create_tmp_var_raw and create_tmp_var calls.
363         * cilk.c (gimplify_cilk_spawn): Likewise.
364         * c-omp.c (c_finish_omp_atomic): Likewise.
366 2014-11-28  Marek Polacek  <polacek@redhat.com>
368         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
369         instead of unsigned_type_node.
371 2014-11-28  Marek Polacek  <polacek@redhat.com>
373         PR c/63862
374         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
375         to op1_utype.
376         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
377         expression to unsigned_type_node.
379 2014-11-20  Mark Wielaard  <mjw@redhat.com>
381         PR debug/38757
382         * c-opts.c (set_std_c89): Set lang_hooks.name.
383         (set_std_c99): Likewise.
384         (set_std_c11): Likewise.
385         (set_std_cxx98): Likewise.
386         (set_std_cxx11): Likewise.
387         (set_std_cxx14): Likewise.
388         (set_std_cxx1z): Likewise.
390 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
392         PR target/63764
393         * c-common.h (convert_vector_to_pointer_for_subscript): Change
394         return type to bool.
395         * c-common.c: Include gimple-expr.h.
396         (convert_vector_to_pointer_for_subscript): Change return type to
397         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
398         and copy it into a TARGET_EXPR and use that instead of *vecp
399         directly.
401 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
403         Merger of git branch "gimple-classes-v2-option-3".
404         * ChangeLog.gimple-classes: New.
405         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
406         from being just a vec<gimple> to a vec<gbind *>.
408 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
410         PR sanitizer/63813
411         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
412         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
413         get_pointer_alignment for non-pointers.  Use ptype, or if it is
414         reference type, corresponding pointer type, as type of kind
415         argument.
416         (ubsan_maybe_instrument_reference,
417         ubsan_maybe_instrument_member_call): Adjust callers.
419 2014-11-15  Marek Polacek  <polacek@redhat.com>
421         PR middle-end/63884
422         * array-notation-common.c (is_sec_implicit_index_fn): Return false
423         for NULL fndecl.
424         (extract_array_notation_exprs): Return for NULL node.
426 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
428         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
429         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
431 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
433         PR c/59708
434         * c-common.c (check_builtin_function_arguments): Handle
435         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
437 2014-11-10  Andi Kleen  <ak@linux.intel.com>
439         PR c/60804
440         * c-common.h (check_no_cilk): Declare.
441         * cilk.c (get_error_location): New function.
442         (check_no_cilk): Dito.
444 2014-11-10  Andi Kleen  <ak@linux.intel.com>
446         * cilk.c (recognize_spawn): Use expression location
447         for error message.
449 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
451         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
453 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
455         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
456         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
457         (__cpp_range_based_for, __cpp_initializer_lists,
458         __cpp_delegating_constructors, __cpp_nsdmi,
459         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
460         for C++11; (__cpp_attribute_deprecated): Remove in favor of
461         __has_cpp_attribute.
462         * c-lex.c (cb_has_attribute): New callback CPP function;
463         (init_c_lex): Set has_attribute callback.
465 2014-11-04  Richard Biener  <rguenther@suse.de>
467         * c-common.c (shorten_compare): Do not shorten mixed
468         DFP and non-DFP compares.
470 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
472         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
473         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
474         Commentary and rearrangement of tests.
475         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
476         Commentary and rearrangement of tests.
477         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
478         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
480 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
482         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
483         enum from machine_mode.
485 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
487         * c-common.c: Adjust include files.
488         * c-gimplify.c: Ditto.
489         * cilk.c: Ditto.
490         * c-pragma.c: Ditto.
491         * c-ubsan.c: Ditto.
493 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
495         * c-gimplify.c: Adjust include files.
497 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
499         PR c++/53061
500         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
501         c_common_initialize_diagnostics.
502         * c-common.h: Likewise.
504 2014-10-24  Marek Polacek  <polacek@redhat.com>
506         PR c/56980
507         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
508         print "struct"/"union"/"enum" for typedefed names.
510 2014-10-23  Marek Polacek  <polacek@redhat.com>
512         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
513         in unsigned type.
515 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
516             Yury Gribov  <y.gribov@samsung.com>
518         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
519         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
520         instead of flag_sanitize_recover as bool flag.
522 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
524         * cilk.c: Revert previous change.
526 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
528         PR c/63307
529         * cilk.c: Include vec.h.
530         (struct cilk_decls): New structure.
531         (wrapper_parm_cb): Split this function to...
532         (fill_decls_vec): ...this...
533         (create_parm_list): ...and this.
534         (compare_decls): New function.
535         (for_local_cb): Remove.
536         (wrapper_local_cb): Ditto.
537         (build_wrapper_type): For now first traverse and fill vector of
538         declarations then sort it and then deal with sorted vector.
539         (cilk_outline): Ditto.
540         (declare_one_free_variable): Ditto.
542 2014-10-17  Marek Polacek  <polacek@redhat.com>
544         * c-opts.c (c_common_post_options): Set warn_implicit_int.
545         * c.opt (Wimplicit-int): Initialize to -1.
547 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
549         * c-pragma.c: Adjust include files.
550         * c-semantics.c: Likewise.
552 2014-10-16  DJ Delorie  <dj@redhat.com>
554         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
555         multiples of bytes.
557 2014-10-14  Jason Merrill  <jason@redhat.com>
559         PR c++/63455
560         * c-common.h (CPP_PREPARSED_EXPR): New.
561         (N_CP_TTYPES): Adjust.
563 2014-10-15  Marek Polacek  <polacek@redhat.com>
565         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
567 2014-10-14  DJ Delorie  <dj@redhat.com>
569         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
570         types, not just __int128.
571         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
572         types, not just __int128.
573         (cpp_atomic_builtins): Round pointer sizes up.
574         (type_suffix): Use type precision, not specific types.
575         * c-common.c (c_common_reswords): Remove __int128 special case.
576         (c_common_type_for_size): Check for all __intN types, not just
577         __int128.
578         (c_common_type_for_mode): Likewise.
579         (c_common_signed_or_unsigned_type): Likewise.
580         (c_build_bitfield_integer_type): Likewise.
581         (c_common_nodes_and_builtins): Likewise.
582         (keyword_begins_type_specifier): Likewise.
583         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
584         __intN variants.
586 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
588         * c-common.c: Use hash_table instead of hashtab.
590 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
592         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
593         C++11 section.
595 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
597         PR c++/54427
598         PR c++/57198
599         PR c++/58845
600         * c-common.c (warn_logical_operator): Punt for vectors.
602 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
604         Implement SD-6: SG10 Feature Test Recommendations
605         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
606         macros and the __has_header macro.
608 2014-09-30  Jason Merrill  <jason@redhat.com>
610         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
611         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
612         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
614         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
615         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
617         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
618         * c-common.c (c_common_reswords): Remove __is_convertible_to.
620 2014-09-24  Marek Polacek  <polacek@redhat.com>
622         PR c/61405
623         PR c/53874
624         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
626 2014-09-23  Andi Kleen  <ak@linux.intel.com>
628         * c-common.c (handle_no_reorder_attribute): New function.
629         (c_common_attribute_table): Add no_reorder attribute.
631 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
633         * c-cppbuiltin.c (c_cpp_builtins): Define
634         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
635         modes.
637 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
639         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
640         for supported floating-point modes.
642 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
644         * c.opt (Wpsabi): Use LangEnabledBy.
645         * c-opts.c (c_common_handle_option): Do not handle here.
647 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
649         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
650         macros for floating-point modes.
652 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
654         PR target/58757
655         * c-cppbuiltin.c (builtin_define_float_constants): Correct
656         __*_DENORM_MIN__ without denormals.
658 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
660         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
661         ubsan_instrument_vla, ubsan_instrument_return): Adjust
662         ubsan_create_data callers.
663         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
664         index is constant or BIT_AND_EXPR with constant mask and is
665         small enough for the bound.
666         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
667         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
669 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
671         * c.opt: Add CppReason to various flags.
672         (Wdate-time): Re-sort.
673         * c-common.c: Include c-common.h earlier.
674         (struct reason_option_codes_t): Delete.
675         (c_option_controlling_cpp_error): Prefix global type and struct
676         with cpp_.
678 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
680         * c.opt (Wnormalized): New.
681         (Wnormalized=): Use Enum and Reject Negative.
682         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
684 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
686         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
687         digits of floating-point modes if -fbuilding-libgcc.
689 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
691         * c-cppbuiltin.c (c_cpp_builtins): Also define
692         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
693         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
694         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
695         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
696         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
697         __LIBGCC_STACK_GROWS_DOWNWARD__,
698         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
699         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
700         __LIBGCC_DWARF_FRAME_REGISTERS__,
701         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
702         __LIBGCC_STACK_POINTER_REGNUM__ and
703         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
704         (builtin_define_with_value): Handle backslash-escaping in string
705         macro values.
707 2014-09-05  Richard Biener  <rguenther@suse.de>
709         PR middle-end/63148
710         * c-format.c (check_format_arg): Properly handle
711         effectively signed POINTER_PLUS_EXPR offset.
713 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
715         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
716         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
717         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
718         and Init.
719         * c-opts.c (c_common_handle_option): Do not handle here.
720         (sanitize_cpp_opts): Likewise.
721         * c-common.c (struct reason_option_codes_t): Handle
722         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
724 2014-09-03  Marek Polacek  <polacek@redhat.com>
726         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
728 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
729             Balaji V. Iyer  <balaji.v.iyer@intel.com>
730             Igor Zamyatin  <igor.zamyatin@intel.com>
732         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
733         * c-common.c (c_common_reswords): Added _Cilk_for.
734         * c-common.h (enum rid): Added RID_CILK_FOR.
735         (cilk_for_number_of_iterations): Add declaration.
736         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
737         CILK_FOR.
738         * c-pragma.c (init_pragma): Register "grainsize" pragma.
739         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
741 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
743         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
744         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
745         Wundef): Use CPP, Var and Init.
746         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
748 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
750         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
751         * c-opts.c (c_common_handle_option): Do not handle here.
753 2014-08-25  Jason Merrill  <jason@redhat.com>
755         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
756         -std=c++14 and -std=gnu++14, rather than the reverse.
757         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
758         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
759         * c-common.h (cxx_dialect): Remove cxx1y.
761 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
763         * c-common.h (enum cxx_dialect): Add cxx14.
764         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
765         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
766         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
768 2014-08-22  Jason Merrill  <jason@redhat.com>
770         * c.opt (std=gnu++17): Fix alias.
772 2014-08-22  Marek Polacek  <polacek@redhat.com>
774         PR c++/62199
775         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
776         check for vector types.  Drop LHS argument.
777         * c-common.h (warn_logical_not_parentheses): Adjust.
779 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
781         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
782         (Wmultichar): Likewise.
783         (Wdate-time): Use C-family languages instead of Common. Use CPP
784         and Var.
785         * c-opts.c (c_common_handle_option): Do not handle the above
786         options here.
787         (sanitize_cpp_opts): Likewise.
789 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
791         PR fortran/44054
792         * c-opts.c: Include tree-diagnostics.h.
793         (c_diagnostic_finalizer): New.
794         (c_common_initialize_diagnostics): Use it.
796 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
798         PR preprocessor/51303
799         * c-common.c (struct reason_option_codes_t option_codes):
800         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
802 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
804         PR c/60975
805         PR c/53063
806         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
807         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
808         (c_common_post_options): Call init_global_opts_from_cpp.
809         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
811 2014-08-19  Marek Polacek  <polacek@redhat.com>
813         PR c++/62153
814         * c-common.c (maybe_warn_bool_compare): New function.
815         * c-common.h (maybe_warn_bool_compare): Declare.
816         * c.opt (Wbool-compare): New option.
818 2014-08-19  Marek Polacek  <polacek@redhat.com>
820         * c.opt (Wc99-c11-compat): New option.
822 2014-08-19  Marek Polacek  <polacek@redhat.com>
824         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
825         to warn_c90_c99_compat.
826         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
827         to -1.
829 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
830             Steven Bosscher  <steven@gcc.gnu.org>
832         PR c/52952
833         * c-format.c: Add extra_arg_loc and format_string_loc to struct
834         format_check_results.
835         (check_function_format): Use true and add comment for boolean
836         argument.
837         (finish_dollar_format_checking): Use explicit location when warning.
838         (check_format_info): Likewise.
839         (check_format_arg): Set extra_arg_loc and format_string_loc.
840         (check_format_info_main): Use explicit location when warning.
841         (check_format_types): Pass explicit location.
842         (format_type_warning): Likewise.
844 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
846         PR fortran/44054
847         * c-format.c: Handle Fortran flags.
849 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
851         PR other/61962
852         * array-notation-common.c (find_rank): Added handling for other
853         types of references.
855 2014-08-10  Marek Polacek  <polacek@redhat.com>
857         PR c/51849
858         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
859         * c.opt (Wc90-c99-compat): Add option.
861 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
863         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
865 2014-08-03  Marek Polacek  <polacek@redhat.com>
867         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
868         (c_add_case_label): Pass loc to check_case_value.
870 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
872         * cilk.c: Use hash_map instead of pointer_map.
874 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
876         * c-gimplify.c: Use hash_set instead of pointer_set.
878 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
880         PR middle-end/61455
881         * array-notation-common.c (extract_array_notation_exprs): Handling
882         of DECL_EXPR added.
884 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
886         * c-common.h (min_align_of_type): Removed prototype.
887         * c-common.c (min_align_of_type): Removed.
888         * c-ubsan.h (ubsan_maybe_instrument_reference,
889         ubsan_maybe_instrument_member_call): New prototypes.
890         * c-ubsan.c: Include stor-layout.h and builtins.h.
891         (ubsan_maybe_instrument_reference_or_call,
892         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
893         functions.
895 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
897         PR c++/60517
898         * c.opt (-Wreturn-local-addr): Move to common.opt.
900 2014-07-30  Jason Merrill  <jason@redhat.com>
902         PR c++/61659
903         PR c++/61687
904         Revert:
905         * c.opt (-fuse-all-virtuals): New.
907 2014-07-30  Tom Tromey  <tromey@redhat.com>
909         PR c/59855
910         * c.opt (Wdesignated-init): New option.
911         * c-common.c (c_common_attribute_table): Add "designated_init".
912         (handle_designated_init): New function.
914 2014-07-24  Marek Polacek  <polacek@redhat.com>
916         PR c/57653
917         * c-opts.c (c_finish_options): If -imacros is in effect, return.
919 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
921         PR preprocessor/60723 - missing system-ness marks for macro tokens
922         * c-ppoutput.c (struct print::prev_was_system_token): New data
923         member.
924         (init_pp_output): Initialize it.
925         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
926         (do_line_change): Return a flag saying if a line marker was
927         emitted or not.
928         (scan_translation_unit): Detect if the system-ness of the token we
929         are about to emit is different from the one of the previously
930         emitted token.  If so, emit a line marker.  Avoid emitting useless
931         adjacent line markers.  Avoid emitting line markers for tokens
932         originating from the expansion of built-in macros.
933         (scan_translation_unit_directives_only): Adjust.
935 2014-07-15  Marek Polacek  <polacek@redhat.com>
937         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
938         TYPE_MAX_VALUE is NULL.
940 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
942         PR middle-end/61294
943         * c.opt (Wmemset-transposed-args): New warning.
945 2014-07-10  Jason Merrill  <jason@redhat.com>
947         PR c++/61659
948         PR c++/61687
949         * c.opt (-fuse-all-virtuals): New.
951 2014-07-09  Richard Biener  <rguenther@suse.de>
953         PR c-family/61741
954         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
955         using unsigned arithmetic if overflow does not wrap instead of
956         if overflow is undefined.
958 2014-07-06  Marek Polacek  <polacek@redhat.com>
960         PR c/6940
961         * c.opt (Wsizeof-array-argument): New option.
963 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
965         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
966         comments->count <= 1, as comments->entries might be NULL.
968 2014-07-01  Marek Polacek  <polacek@redhat.com>
970         * c.opt (Wint-conversion): New option.
972 2014-07-01  Marek Polacek  <polacek@redhat.com>
974         PR c/58286
975         * c.opt (Wincompatible-pointer-types): New option.
977 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
979         PR c++/51400
980         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
981         Do not discard TYPE_QUALS of type.
983 2014-06-26  Jason Merrill  <jason@redhat.com>
985         * c-common.h (enum cxx_dialect): Add cxx1z.
986         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
987         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
989 2014-06-26  Teresa Johnson  <tejohnson@google.com>
991         * c-common.h (get_dump_info): Declare.
992         * c-gimplify.c (c_genericize): Use saved dump files.
993         * c-opts.c (c_common_parse_file): Begin and end dumps
994         once around parsing invocation.
995         (get_dump_info): New function.
997 2014-06-23  Marek Polacek  <polacek@redhat.com>
998             Andrew MacLeod  <amacleod@redhat.com>
1000         PR c/61553
1001         * c-common.c (get_atomic_generic_size): Don't segfault if the
1002         type doesn't have a size.
1004 2014-06-20  Marek Polacek  <polacek@redhat.com>
1006         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1007         (ubsan_walk_array_refs_r): New function.
1008         (c_genericize): Instrument array bounds.
1009         * c-ubsan.c: Include "internal-fn.h".
1010         (ubsan_instrument_division): Mark instrumented arrays as having
1011         side effects.  Adjust ubsan_type_descriptor call.
1012         (ubsan_instrument_shift): Likewise.
1013         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1014         (ubsan_instrument_bounds): New function.
1015         (ubsan_array_ref_instrumented_p): New function.
1016         (ubsan_maybe_instrument_array_ref): New function.
1017         * c-ubsan.h (ubsan_instrument_bounds): Declare.
1018         (ubsan_array_ref_instrumented_p): Declare.
1019         (ubsan_maybe_instrument_array_ref): Declare.
1021 2014-06-20  Hale Wang  <hale.wang@arm.com>
1023         PR lto/61123
1024         * c.opt (fshort-enums): Add to LTO.
1025         * c.opt (fshort-wchar): Likewise.
1027 2014-06-16  Marek Polacek  <polacek@redhat.com>
1029         PR c/60439
1030         * c.opt (Wswitch-bool): Add Var.
1032 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
1034         PR middle-end/61486
1035         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1036         #pragma omp target teams or
1037         #pragma omp {,target }teams distribute simd.
1039 2014-06-12  Jason Merrill  <jason@redhat.com>
1041         * c.opt (Wabi=, fabi-compat-version): New.
1042         * c-opts.c (c_common_handle_option): Handle -Wabi=.
1043         (c_common_post_options): Handle flag_abi_compat_version default.
1044         Disallow -fabi-compat-version=1.
1045         * c-common.h (abi_version_crosses): New.
1047 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
1049         * c-common.c (handle_section_attribute): Update handling for
1050         section names that are no longer trees.
1052 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1054         PR fortran/60928
1055         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1056         (omp_pragmas): ... back here.
1058 2014-06-05  Marek Polacek  <polacek@redhat.com>
1060         PR c/49706
1061         * c-common.c (warn_logical_not_parentheses): New function.
1062         * c-common.h (warn_logical_not_parentheses): Declare.
1063         * c.opt (Wlogical-not-parentheses): New option.
1065 2014-06-04  Marek Polacek  <polacek@redhat.com>
1067         PR c/30020
1068         * c-common.c (check_case_bounds): Add location parameter.
1069         Use it.
1070         (c_add_case_label): Pass loc to check_case_bounds.
1072 2014-06-03  Marek Polacek  <polacek@redhat.com>
1074         PR c/60439
1075         * c.opt (Wswitch-bool): New option.
1077 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1079         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1080         Remove prototypes.
1081         (record_types_used_by_current_var_decl): Move prototype to where
1082         it belongs.
1084         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1085         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1086         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1088 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1090         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1091         * c-common.c (c_common_nodes_and_builtins): Don't initialize
1092         void_zero_node.
1093         * c-pretty-print.c (pp_c_void_constant): New function.
1094         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1095         (c_pretty_printer::expression): Handle VOID_CST.
1096         * cilk.c (extract_free_variables): Likewise.
1097         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1098         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1100 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1102         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1103         * c-pragma.c (push_alignment): Adjust.
1104         (handle_pragma_push_options): Likewise.
1106 2014-05-09  Marek Polacek  <polacek@redhat.com>
1108         PR c/50459
1109         * c-common.c (check_user_alignment): Return -1 if alignment is error
1110         node.
1111         (handle_aligned_attribute): Don't call default_conversion on
1112         FUNCTION_DECLs.
1113         (handle_vector_size_attribute): Likewise.
1114         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1115         (handle_sentinel_attribute): Call default_conversion and allow even
1116         integral types as an argument.
1118 2014-05-08  Marek Polacek  <polacek@redhat.com>
1120         PR c/61053
1121         * c-common.c (min_align_of_type): New function factored out from...
1122         (c_sizeof_or_alignof_type): ...here.
1123         * c-common.h (min_align_of_type): Declare.
1125 2014-05-08  Marek Polacek  <polacek@redhat.com>
1127         PR c/61077
1128         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1129         parameter type of main.
1131 2014-05-07  DJ Delorie  <dj@redhat.com>
1133         * c-cppbuiltin.c (print_bits_of_hex): New.
1134         (builtin_define_type_minmax): Print values using hex so as not to
1135         require a pre-computed list of string values.
1137 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1138             Mike Stump  <mikestump@comcast.net>
1139             Richard Sandiford  <rdsandiford@googlemail.com>
1141         * c-ada-spec.c: Include wide-int.h.
1142         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1143         (dump_generic_ada_node): Use wide-int interfaces.
1144         * c-common.c: Include wide-int-print.h.
1145         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1146         (pointer_int_sum): Use wide-int interfaces.
1147         (c_common_nodes_and_builtins): Use make_int_cst.
1148         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1149         (handle_alloc_size_attribute): Use wide-int interfaces.
1150         (get_nonnull_operand): Likewise.
1151         * c-format.c (get_constant): Use tree_fits_uhwi_p.
1152         * c-lex.c: Include wide-int.h.
1153         (narrowest_unsigned_type): Take a widest_int rather than two
1154         HOST_WIDE_INTs.
1155         (narrowest_signed_type): Likewise.
1156         (interpret_integer): Update accordingly.  Use wide-int interfaces.
1157         (lex_charconst): Use wide-int interfaces.
1158         * c-pretty-print.c: Include wide-int.h.
1159         (pp_c_integer_constant): Use wide-int interfaces.
1160         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1161         INT_CST_LT_UNSIGNED.
1163 2014-05-06  Richard Biener  <rguenther@suse.de>
1165         * c-opts.c (c_common_post_options): For -freestanding,
1166         -fno-hosted and -fno-builtin disable pattern recognition
1167         if not enabled explicitely.
1169 2014-05-02  Marek Polacek  <polacek@redhat.com>
1171         * c.opt (Wsizeof-pointer-memaccess): Describe option.
1173 2014-05-01  Marek Polacek  <polacek@redhat.com>
1175         PR c/43245
1176         * c.opt (Wdiscarded-qualifiers): Add.
1178 2014-04-30  Marek Polacek  <polacek@redhat.com>
1180         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
1181         INT_MIN / -1 sanitization only for integer types.
1183 2014-04-25  Marek Polacek  <polacek@redhat.com>
1185         PR c/18079
1186         * c-common.c (handle_noinline_attribute): Warn if the attribute
1187         conflicts with always_inline attribute.
1188         (handle_always_inline_attribute): Warn if the attribute conflicts
1189         with noinline attribute.
1191 2014-04-25  Marek Polacek  <polacek@redhat.com>
1193         PR c/60156
1194         * c-common.c (check_main_parameter_types): Warn about variadic main.
1196 2014-04-24  Mike Stump  <mikestump@comcast.net>
1198         * c.opt (Wshadow-ivar): Default to on.
1200 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
1202         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1204 2014-04-23  Marek Polacek  <polacek@redhat.com>
1206         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1208 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1210         PR sanitizer/60275
1211         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1212         if flag_sanitize_undefined_trap_on_error.
1213         (ubsan_instrument_division, ubsan_instrument_shift,
1214         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
1215         if !flag_sanitize_recover.
1217 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
1219         PR libstdc++/43622
1220         * c-common.c (registered_builtin_types): Make non-static.
1221         * c-common.h (registered_builtin_types): Declare.
1223 2014-04-14  Richard Biener  <rguenther@suse.de>
1224         Marc Glisse  <marc.glisse@inria.fr>
1226         PR c/60819
1227         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1228         apply may-alias the scalar pointer type when applicable.
1230 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1232         PR middle-end/60467
1233         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1234         as possible argument for Cilk_spawn.
1236 2014-04-11  Tobias Burnus  <burnus@net-b.de>
1238         PR c/60194
1239         * c.opt (Wformat-signedness): Add
1240         * c-format.c(check_format_types): Use it.
1242 2014-04-11  Jason Merrill  <jason@redhat.com>
1244         PR c++/57926
1245         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1246         default_conversion for an array argument.
1248 2014-04-08  Marek Polacek  <polacek@redhat.com>
1250         PR sanitizer/60745
1251         * c-ubsan.c: Include asan.h.
1252         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1254 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1256         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1258 2014-04-02  Marek Polacek  <polacek@redhat.com>
1260         * c-common.h (c_expand_expr): Remove declaration.
1262 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1264         PR c++/60689
1265         * c-common.c (add_atomic_size_parameter): When creating new
1266         params vector, push the size argument first.
1268 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
1270         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1271         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1272         ubsan_create_data callers.
1274 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
1276         PR debug/60603
1277         * c-opts.c (c_finish_options): Restore cb_file_change call to
1278         <built-in>.
1280 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
1282         PR middle-end/36282
1283         * c-pragma.c (apply_pragma_weak): Only look at
1284         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1285         DECL_ASSEMBLER_NAME_SET_P (decl).
1286         (maybe_apply_pending_pragma_weaks): Exit early if
1287         vec_safe_is_empty (pending_weaks) rather than only when
1288         !pending_weaks.
1289         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
1290         set assembler name back to NULL afterwards.
1292 2014-03-11  Jason Merrill  <jason@redhat.com>
1294         * c.opt: Add -std=gnu++14.
1296 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
1298         * c-opts.c (c_common_post_options): Don't override
1299         -ffp-contract=fast if unsafe-math-optimizations is on.
1301 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
1303     * c.opt: Enable LTO FE for fshort-double.
1305 2014-03-07  Jason Merrill  <jason@redhat.com>
1307         * c.opt: Add -std=c++14.
1309 2014-03-06  Marek Polacek  <polacek@redhat.com>
1311         PR c/60197
1312         * cilk.c (contains_cilk_spawn_stmt): New function.
1313         (contains_cilk_spawn_stmt_walker): Likewise.
1314         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1315         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1317 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
1319         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1320         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1321         even when flag_preprocess_only.
1323 2014-02-26  Jason Merrill  <jason@redhat.com>
1325         PR c++/59231
1326         PR c++/11586
1327         * c-common.c (shorten_compare): Don't check
1328         c_inhibit_evaluation_warnings.
1330 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
1332         PR c/37743
1333         * c-common.c (c_common_nodes_and_builtins): When initializing
1334         c_uint{16,32,64}_type_node, also set corresponding
1335         uint{16,32,64}_type_node to the same value.
1337         PR c++/60267
1338         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1339         for PRAGMA_IVDEP if flag_preprocess_only.
1341 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
1343         PR c/60101
1344         * c-common.c (merge_tlist): If copy is true, call new_tlist,
1345         if false, add ADD itself, rather than vice versa.
1346         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1347         copy.  For SAVE_EXPR, only call merge_tlist once.
1349 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
1351         PR middle-end/60092
1352         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1353         and tree_to_uhwi.
1354         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1355         functions.
1356         (c_common_attribute_table): Add alloc_align and assume_aligned
1357         attributes.
1359 2014-02-06  Marek Polacek  <polacek@redhat.com>
1361         PR c/60087
1362         * c-common.c (warn_for_sign_compare): Call warning_at with location
1363         instead of warning.
1365 2014-02-05  Marek Polacek  <polacek@redhat.com>
1367         PR c/53123
1368         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1369         statement.
1371 2014-02-04  Marek Polacek  <polacek@redhat.com>
1373         PR c/60036
1374         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1375         SAVE_EXPR.
1377 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
1379         PR c++/53017
1380         PR c++/59211
1381         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1382         handle_vector_size_attribute, handle_nonnull_attribute): Call
1383         default_conversion on the attribute argument.
1384         (handle_nonnull_attribute): Increment the argument number.
1386 2014-01-31  Marek Polacek  <polacek@redhat.com>
1388         PR c/59963
1389         * c-common.c (add_atomic_size_parameter): Pass vNULL to
1390         build_function_call_vec.
1391         (resolve_overloaded_builtin): Likewise.
1392         * c-common.h (build_function_call_vec): Adjust declaration.
1394 2014-01-30  Marek Polacek  <polacek@redhat.com>
1396         PR c/59940
1397         * c-common.h (unsafe_conversion_p): Adjust declaration.
1398         (warnings_for_convert_and_check): Likewise.
1399         (convert_and_check): Likewise.
1400         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
1401         expansion_point_location_if_in_system_header on it.
1402         (warnings_for_convert_and_check): Add location parameter.  Call
1403         expansion_point_location_if_in_system_header on it.  Use it.
1404         (convert_and_check): Add location parameter.  Use it.
1405         (conversion_warning): Likewise.
1406         (c_add_case_label): Adjust convert_and_check calls.
1407         (scalar_to_vector): Adjust unsafe_conversion_p calls.
1409 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1411         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1412         flag_cilkplus.
1413         * c-pragma.c (init_pragma): Likewise.
1414         * c.opt: Likewise.
1416 2014-01-23  Marek Polacek  <polacek@redhat.com>
1418         PR c/59846
1419         * c-common.c (shorten_compare): Add location_t parameter.
1420         * c-common.h (shorten_binary_op): Adjust declaration.
1422 2014-01-23  Marek Polacek  <polacek@redhat.com>
1424         PR c/58346
1425         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1426         * c-common.h: Declare it.
1428 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
1430         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1431         * c-ada-spec.c (dump_ads): Likewise.
1432         (cpp_check): Likewise.
1433         (dump_ada_specs): Likewise.
1435 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
1437         PR c++/49718
1438         * c-common.c (handle_no_instrument_function_attribute): Allow
1439         no_instrument_function attribute in class member
1440         definition/declaration.
1442 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1444         PR c/58943
1445         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1446         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
1447         being COMPOUND_EXPR.
1448         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1449         operand a SAVE_EXPR and second MODIFY_EXPR.
1451 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1453         PR target/58115
1454         * c-pch.c (c_common_write_pch): Call
1455         prepare_target_option_nodes_for_pch.
1457 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1459         Update copyright years
1461 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1463         * array-notation-common.c, c-cilkplus.c: Use the standard form for
1464         the copyright notice.
1466 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
1468         * c-ada-spec.c (print_constructor): New function.
1469         (print_destructor): Retrieve the origin of the destructor.
1470         (print_ada_declaration): Revamp handling of constructors/destructors.
1472 2013-12-23  Stuart Hastings <stuart@apple.com>
1473             Bill Maddox  <maddox@google.com>
1474             Jason Merrill  <jason@redhat.com>
1476         * c.opt: Add -fdeclone-ctor-dtor.
1477         * c-opts.c (c_common_post_options): Default to on iff -Os.
1479 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1481         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1482         attribute.
1483         * c-pragma.h (enum pragma_cilk_clause): Remove.
1484         (enum pragma_omp_clause):  Added the following fields:
1485         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1486         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1487         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1488         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1489         PRAGMA_CILK_CLAUSE_UNIFORM.
1491         
1492 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1494         * cilk.c (cilk_outline): Made this function non-static.
1495         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1496         (create_cilk_wrapper): Added a new parameter: a function pointer.
1497         (c_install_body_w_frame_cleanup): Remove
1498         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1499         * c-common.h (cilk_outline): New prototype.
1500         (gimplify_cilk_spawn): Removed two parameters.
1501         (cilk_install_body_with_frame_cleanup): New prototype.
1502         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1503         CILK_SPAWN_STMT case.
1505 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1507         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1509         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1510         (int_array_type_node): Remove.
1511         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1513 2013-12-05  Marek Polacek  <polacek@redhat.com>
1515         PR c/52023
1516         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1517         [ADJUST_FIELD_ALIGN].
1519 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1521         PR c/52023
1522         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1523         and check field alignment if set.
1524         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1525         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1527 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1528             Marek Polacek  <polacek@redhat.com>
1530         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1531         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1533 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1535         PR c/59309
1536         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1537         arguments.
1539 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1541         PR c/59280
1542         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1543         goto invalid.  If it is error_mark_node, don't issue further
1544         diagnostics.
1546 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1548         * c.opt (Wopenmp-simd): New.
1550 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1552         * c-ubsan.h (ubsan_instrument_return): New prototype.
1553         * c-ubsan.c (ubsan_instrument_return): New function.
1555 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1557         * c-common.c: Add required include files from gimple.h.
1558         * c-gimplify.c: Likewise
1559         * cilk.c: Likewise
1561 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1563         * c-common.c (unsafe_conversion_p): Remove use of
1564         EXPR_LOC_OR_HERE macro.
1565         (conversion_warning): Likewise.
1566         (warnings_for_convert_and_check): Likewise.
1567         (warn_for_collisions_1): Likewise.
1568         (shorten_compare): Likewise, and remove use of in_system_header
1569         macro, using the location from the former.
1570         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1571         (cb_def_pragma): Remove use of in_system_header macro.
1572         (lex_string): Likewise.
1573         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1575 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1576             Mike Stump  <mikestump@comcast.net>
1577             Richard Sandiford  <rdsandiford@googlemail.com>
1579         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1580         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1581         tree_fits_shwi_p or tree_fits_uhwi_p.
1582         (dump_generic_ada_node): Likewise.
1583         * c-format.c (check_format_arg): Likewise.
1584         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1586 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1588         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1590 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1592         PR c/53001
1593         * c-common.c (unsafe_conversion_p): Make this function
1594         return an enumeration with more detail.
1595         (conversion_warning): Use the new return type of
1596         unsafe_conversion_p to separately warn either about conversions
1597         that lower floating point number precision or about the other
1598         kinds of conversions.
1599         * c-common.h (enum conversion_safety): New enumeration.
1600         (unsafe_conversion_p): switching return type to
1601         conversion_safety enumeration.
1602         * c.opt: Adding new warning -Wfloat-conversion and
1603         enabling it with -Wconversion.
1605 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1607         * c-opts.c: Include plugin.h.
1608         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1610 2013-11-19  Marek Polacek  <polacek@redhat.com>
1612         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1613         call.
1614         (ubsan_instrument_shift): Likewise.
1615         (ubsan_instrument_vla): Likewise.
1617 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1619         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1620         cast to unsigned type.
1622 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1624         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1625         tree_low_cst.
1626         (complete_array_type): Update comment to refer to tree_to_[su]hwi
1627         rather than tree_low_cst.
1629 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1631         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1632         tree_to_uhwi throughout.
1634 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1636         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1637         tree_low_cst (..., 0) with tree_to_shwi throughout.
1639 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1641         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1642         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1644 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1646         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1647         host_integerp (..., 0) with tree_fits_shwi_p throughout.
1649 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1651         * c-cilkplus.c: New file.
1652         * c-common.c (readonly_error): Add location argument.
1653         * c-common.h (readonly_error): Same.
1654         (c_finish_cilk_clauses): Protoize.
1655         (c_check_cilk_loop): Same.
1656         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1657         Do not fail on error_mark_node.
1658         Abstract increment canonicalization to here...
1659         (c_omp_for_incr_canonicalize_ptr): New.
1660         c-pragma.c (init_pragma): Register "simd" pragma.
1661         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1662         (enum pragma_cilk_clause): New.
1664 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1666         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1667         wchar_type and host_integerp checks.
1669 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1671         * c-common.c: Likewise.
1672         * c-gimplify.c: Likewise.
1673         * cilk.c: Likewise.
1675 2013-11-14  Diego Novillo  <dnovillo@google.com>
1677         * c-common.c: Include fold-const.h.
1678         Include stor-layout.h.
1679         Include calls.h.
1680         Include stringpool.h.
1681         Include attribs.h.
1682         Include varasm.h.
1683         Include trans-mem.h.
1684         * c-cppbuiltin.c: Include stor-layout.h.
1685         Include stringpool.h.
1686         * c-format.c: Include stringpool.h.
1687         * c-lex.c: Include stringpool.h.
1688         Include stor-layout.h.
1689         * c-pragma.c: Include stringpool.h.
1690         Include attribs.h.
1691         Include varasm.h.
1692         Include gcc-symtab.h.
1693         * c-pretty-print.c: Include stor-layout.h.
1694         Include attribs.h.
1695         * cilk.c: Include stringpool.h.
1696         Include calls.h.
1698 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1700         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1701         * c-common.c (c_common_reswords): Add __auto_type.
1702         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1704 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1706         * c-common.c: Include gimplify.h.
1707         * c-gimplify.c: Likewise.
1708         * cilk.c: Likewise.
1709         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1710         * c-ubsan.c: Don't include gimple.h.
1712 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1714         * c-common.c (c_common_reswords): Add _Thread_local.
1716 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1718         * c-common.c (atomic_size_supported_p): New function.
1719         (resolve_overloaded_atomic_exchange)
1720         (resolve_overloaded_atomic_compare_exchange)
1721         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1722         Use it instead of comparing size with a local list of sizes.
1724 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
1725             Joseph Myers  <joseph@codesourcery.com>
1727         * c-common.h (enum rid): Add RID_ATOMIC.
1728         * c-common.c (c_common_reswords): Add _Atomic.
1729         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1730         (keyword_is_type_qualifier): Accept RID_ATOMIC.
1731         * c-format.c (check_format_types): Check for extra _Atomic
1732         qualifiers in format argument.
1733         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1734         (pp_c_type_qualifier_list): Mention _Atomic in comment.
1736 2013-11-06  Tobias Burnus  <burnus@net-b.de>
1738         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1740 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
1742         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1743         standards modes.
1744         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1745         to mean lack of IEEE 754 support.
1747 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1749         * c.opt (-Wdate-time): New option
1750         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1752 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
1754         * c-cppbuiltin.c (cpp_iec_559_value): Test
1755         flag_excess_precision_cmdline not flag_excess_precision.
1757 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1759         * c.opt (fopenmp-simd): New option.
1760         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1761         (omp_pragmas): ... this new struct.
1762         (c_pp_lookup_pragma): Also walk omp_pragmas.
1763         (init_pragma): Init pragmas for -fopenmp-simd.
1765 2013-11-04  Marek Polacek  <polacek@redhat.com>
1767         PR c++/58979
1768         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1770 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1772         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1773         New functions.
1774         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1776 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1778         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1779         (dump_ada_specs): Adjust prototype of second callback.
1780         * c-ada-spec.c (cpp_check): New global variable.
1781         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1782         (print_generic_ada_decl): Likewise.
1783         (has_static_fields): Change return type to bool and add guard.
1784         (has_nontrivial_methods): New predicate.
1785         (is_tagged_type): Change return type to bool.
1786         (separate_class_package): Call has_nontrivial_methods.
1787         (pp_ada_tree_identifier): Minor tweaks.
1788         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1789         (dump_ada_array_domains): Likewise.
1790         (dump_ada_array_type): Likewise.
1791         (dump_template_types): Remove cpp_check parameter and do not pass it to
1792         dump_generic_ada_node.
1793         (dump_ada_template): Likewise.
1794         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1795         recursively.
1796         (print_ada_methods): Change return type to integer.  Remove cpp_check
1797         parameter and do not pass it down.
1798         (dump_nested_types): Remove cpp_check parameter and do not pass it to
1799         dump_generic_ada_node.
1800         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
1801         accessing methods.
1802         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1803         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
1804         value of print_ada_methods.
1805         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1806         Set cpp_check to it before invoking dump_ada_nodes.
1807         (dump_ada_specs): Likewise.
1809 2013-11-03  Marek Polacek  <polacek@redhat.com>
1811         * c-ubsan.c: Don't include hash-table.h.
1812         (ubsan_instrument_vla): New function.
1813         * c-ubsan.h: Declare it.
1815 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1817         Automated part of renaming of symtab_node_base to symtab_node.
1819         Patch autogenerated by rename_symtab.py from
1820         https://github.com/davidmalcolm/gcc-refactoring-scripts
1821         revision 58bb219cc090b2f4516a9297d868c245495ee622
1823         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1824         symtab_node_base to symtab_node.
1826 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
1828         Implement C++14 digit separators.
1829         * c-lex.c (interpret_float): Remove digit separators from scratch string
1830         before building real literal.
1832 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
1834         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1836 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1838         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1839         fields.
1840         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1841         enabled.
1842         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1843         (insert_cilk_frame): New prototype.
1844         (cilk_init_builtins): Likewise.
1845         (gimplify_cilk_spawn): Likewise.
1846         (c_cilk_install_body_w_frame_cleanup): Likewise.
1847         (cilk_detect_spawn_and_unwrap): Likewise.
1848         (cilk_set_spawn_marker): Likewise.
1849         (build_cilk_sync): Likewise.
1850         (build_cilk_spawn): Likewise.
1851         * cilk.c: New file.
1853 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1855         Patch autogenerated by refactor_symtab.py from
1856         https://github.com/davidmalcolm/gcc-refactoring-scripts
1857         revision 58bb219cc090b2f4516a9297d868c245495ee622
1859         * c-gimplify.c (c_genericize): Update for conversion of symtab types
1860         to a true class hierarchy.
1861         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1863 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
1865         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1867 2013-10-26  Jeff Law  <law@redhat.com>
1869         * c-common.c (c_define_builtins): Remove mudflap support.
1870         * c.opt: Ignore and warn for mudflap options.
1872 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1874         PR other/33426
1875         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1876         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1878 2013-10-23  Jason Merrill  <jason@redhat.com>
1880         * c-format.c (gcc_cxxdiag_char_table): Add %X.
1882 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1884         * c-common.h (omp_clause_mask::operator !=): New method.
1885         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1886         instead of if (mask & something) tests everywhere.
1888         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1889         201307 instead of 201107.
1890         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1891         (c_common_attribute_table): Add "omp declare target" and
1892         "omp declare simd" attributes.
1893         (handle_omp_declare_target_attribute,
1894         handle_omp_declare_simd_attribute): New functions.
1895         * c-omp.c: Include c-pragma.h.
1896         (c_finish_omp_taskgroup): New function.
1897         (c_finish_omp_atomic): Add swapped argument, if true,
1898         build the operation first with rhs, lhs arguments and use NOP_EXPR
1899         build_modify_expr.
1900         (c_finish_omp_for): Add code argument, pass it down to make_code.
1901         (c_omp_split_clauses): New function.
1902         (c_split_parallel_clauses): Removed.
1903         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1904         c_omp_declare_simd_clauses_to_decls): New functions.
1905         * c-common.h (omp_clause_mask): New type.
1906         (OMP_CLAUSE_MASK_1): Define.
1907         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1908         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1909         omp_clause_mask::operator |, omp_clause_mask::operator &,
1910         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1911         omp_clause_mask::operator ==): New methods.
1912         (enum c_omp_clause_split): New.
1913         (c_finish_omp_taskgroup): New prototype.
1914         (c_finish_omp_atomic): Add swapped argument.
1915         (c_finish_omp_for): Add code argument.
1916         (c_omp_split_clauses): New prototype.
1917         (c_split_parallel_clauses): Removed.
1918         (c_omp_declare_simd_clauses_to_numbers,
1919         c_omp_declare_simd_clauses_to_decls): New prototypes.
1920         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1921         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1922         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1923         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1924         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1925         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1926         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1927         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1928         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1929         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1930         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1931         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1932         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1933         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1934         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1935         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1936         PRAGMA_OMP_CLAUSE_UNIFORM.
1938 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
1940         PR tree-optimization/20318
1941         * c-common.c (handle_returns_nonnull_attribute): New function.
1942         (c_common_attribute_table): Add returns_nonnull.
1944 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
1946         PR c++/19476
1947         * c.opt (fcheck-new): Move to common.opt.
1949 2013-09-25  Marek Polacek  <polacek@redhat.com>
1950             Jakub Jelinek  <jakub@redhat.com>
1952         PR sanitizer/58413
1953         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1954         an expression if we can prove it is correct.
1955         (ubsan_instrument_division): Likewise.  Remove unnecessary
1956         check.
1958 2013-09-18  Marek Polacek  <polacek@redhat.com>
1960         PR sanitizer/58411
1961         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1962         Declare it.
1963         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1965 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
1967         PR target/48094
1968         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1969         fobjc-gc, freplace-objc-classes): Accept for LTO.
1971 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
1973         * c-target.def: New hook
1975 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1977         PR c++/43452
1978         * c.opt (Wdelete-incomplete): Add.
1980 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1982         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1983         (vector_types_compatible_elements_p): New function.
1984         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1985         declaration.
1986         (vector_types_compatible_elements_p): Declare.
1988 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1990         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1991         a virtual member function.
1992         (pp_simple_type_specifier): Remove.
1993         (pp_c_type_specifier): Likewise.
1994         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1995         Rename from pp_c_type_specifier.  Adjust.
1996         (c_pretty_printer::c_pretty_printer): Do not assign to
1997         simple_type_specifier.
1999 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2001         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2002         member function.
2003         (c_pretty_printer::storage_class_specifier): Likewise.
2004         (c_pretty_printer::initializer): Likewise.
2005         (pp_declaration): Remove.
2006         (pp_declaration_specifiers): Likewise.
2007         (pp_abstract_declarator): Likewise.
2008         (pp_declarator): Likewise.
2009         (pp_type_id): Likewise.
2010         (pp_statement): Likewise.
2011         (pp_constant): Likewise.
2012         (pp_id_expression): Likewise.
2013         (pp_primary_expression): Likewise.
2014         (pp_unary_expression): Likewise.
2015         (pp_multiplicative_expression): Likewise.
2016         (pp_conditional_expression): Likewise.
2017         (pp_assignment_expression): Likewise.
2018         (pp_expression): Likewise.
2019         (pp_c_type_id): Likewise.
2020         (pp_c_storage_class_specifier): Likewise.
2021         * c-pretty-print.c (pp_c_type_cast): Tidy.
2022         (pp_c_pointer): Likewise.
2023         (pp_c_type_specifier): Likewise.
2024         (pp_c_parameter_type_list): Likewise.
2025         (pp_c_function_definition): Likewise.
2026         (pp_c_init_declarator): Likewise.
2027         (pp_c_initializer_list): Likewise.
2028         (pp_c_constructor_elts): Likewise.
2029         (c_pretty_printer::direct_abstract_declarator): Likewise.
2030         (c_pretty_printer::declaration_specifiers): Likewise.
2031         (c_pretty_printer::primary_expression): Likewise.
2032         (c_pretty_printer::postfix_expression): Likewise.
2033         (c_pretty_printer::type_id): Rename from pp_c_type_id.
2034         (c_pretty_printer::storage_class_specifier): Rename from
2035         pp_c_storage_class_specifier.
2036         (c_pretty_printer::initializer): Rename from pp_c_initializer.
2037         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2038         storage_class_specifier, initializer, offset_list, flags.
2040 2013-08-30  Marek Polacek  <polacek@redhat.com>
2042         * c-ubsan.c: New file.
2043         * c-ubsan.h: New file.
2045 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2047         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2048         member function.
2049         (c_pretty_printer::declaration_specifiers): Likewise.
2050         (c_pretty_printer::declarator): Likewise.
2051         (c_pretty_printer::abstract_declarator): Likewise.
2052         (c_pretty_printer::direct_abstract_declarator): Likewise.
2053         (c_pretty_printer::direct_declarator): Likewise.
2054         (c_pretty_printer::function_specifier): Likewise.
2055         (pp_declaration): Adjust.
2056         (pp_declaration_specifiers): Likewise.
2057         (pp_abstract_declarator): Likewise.
2058         (pp_direct_declarator): Likewise.
2059         (pp_function_specifier): Likewise.
2060         (pp_direct_abstract_declarator): Remove as unused.
2061         (pp_c_declaration): Remove.
2062         (pp_c_declaration_specifiers): Likewise.
2063         (pp_c_declarator): Likewise.
2064         (pp_c_direct_declarator): Likewise.
2065         (pp_c_function_specifier): Likewise.
2066         (pp_c_direct_abstract_declarator): Likewise.
2067         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2068         from pp_c_abstract_declarator.  Adjust.
2069         (c_pretty_printer::direct_abstract_declarator):  Rename from
2070         pp_c_direct_abstract_declarator.  Adjust.
2071         (c_pretty_printer::function_specifier): Rename from
2072         pp_c_function_specifier.  Adjust.
2073         (c_pretty_printer::declaration_specifiers): Rename from
2074         pp_c_declaration_specifiers.  Adjust.
2075         (c_pretty_printer::direct_declarator): Rename from
2076         pp_c_direct_declarator.  Adjust.
2077         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
2078         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
2079         (c_pretty_printer::c_pretty_printer): Do not assign to
2080         declaration, declaration_specifiers, declarator,
2081         direct_declarator, direct_abstract_declarator, function_specifier.
2083 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
2085         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2086         virtual member function.
2087         (c_pretty_printer::multiplicative_expression): Likewise.
2088         (c_pretty_printer::conditional_expression): Likewise.
2089         (c_pretty_printer::assignment_expression): Likewise.
2090         (c_pretty_printer::expression): Likewise.
2091         (pp_unary_expression): Adjust.
2092         (pp_multiplicative_expression): Likewise.
2093         (pp_assignment_expression): Likewise.
2094         (pp_conditional_expression): Likewise.
2095         (pp_expression): Likewise.
2096         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2097         from pp_c_unary_expression.  Adjust.
2098         (c_pretty_printer::multiplicative_expression): Rename from
2099         pp_c_multiplicative_expression.  Adjust.
2100         (c_pretty_printer::conditional_expression): Rename from
2101         pp_c_conditional_expression.  Adjust.
2102         (c_pretty_printer::assignment_expression): Rename from
2103         pp_c_assignment_expression.  Adjust.
2104         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
2105         (c_pretty_printer::c_pretty_printer): Do not assign to
2106         unary_expression, multiplicative_expression,
2107         conditional_expression, expression.
2109 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2111         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2112         virtual member function.
2113         (pp_postfix_expression): Adjust.
2114         (pp_c_postfix_expression): Remove.
2115         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2116         from pp_c_postfix_expression.  Adjust.
2117         (c_pretty_printer::c_pretty_printer): Do not assign to
2118         postfix_expression.
2120 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2122         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2123         virtua member function.
2124         (pp_primary_expression): Adjust.
2125         (pp_c_primary_expression): Remove.
2126         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2127         from pp_c_primary_expression.  Adjust.
2128         (pp_c_initializer_list): Use pp_primary_expression.
2129         (c_pretty_printer::c_pretty_printer): Do not assign to
2130         primary_expression.
2132 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2134         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2135         * c-pretty-print.c (M_): Remove.
2136         (c_pretty_printer::translate_string): Define.
2137         (pp_c_type_specifier): Use it.
2138         (pp_c_primary_expression): Likewise.
2139         (pp_c_expression): Likewise.
2141 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2143         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2144         virtual function.
2145         (pp_c_id_expression): Remove.
2146         (pp_id_expression): Adjust.
2147         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2148         pp_c_id_expression.  Adjust.
2149         (pp_c_postfix_expression): Use pp_id_expression.
2150         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2152 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2154         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2155         member function.
2156         (pp_constant): Adjust.
2157         (pp_c_constant): Remove.
2158         * c-pretty-print.c (c_pretty_printer::constant): Rename from
2159         pp_c_constant.  Adjust.
2160         (pp_c_constant)
2161         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2162         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2164 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2166         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2167         (c_pretty_printer::c_pretty_printer): Declare.
2168         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2169         c_pretty_printer_init.  Adjust.
2170         (print_c_tree): Do not call c_pretty_printer_init.
2171         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2173 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
2175         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2177 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2179         PR c++/58080
2180         * c-common.c (pointer_int_sum): Add bool parameter.
2181         * c-common.h (pointer_int_sum): Adjust declaration.
2183 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2185         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
2186         c_pretty_printer variable.
2188 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2190         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2191         (pp_base): Remove.
2192         (pp_c_base): Likewise.  Adjust users.
2193         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2194         (pp_c_whitespace): Do not call pp_base.
2195         (pp_c_left_paren): Likewise.
2196         (pp_c_right_paren): Likewise.
2197         (pp_c_left_brace): Likewise.
2198         (pp_c_right_brace): Likewise.
2199         (pp_c_left_bracket): Likewise.
2200         (pp_c_right_bracket): Likewise.
2201         (pp_c_dot): Likewise.
2202         (pp_c_ampersand): Likewise.
2203         (pp_c_star): Likewise.
2204         (pp_c_arrow): Likewise.
2205         (pp_c_semicolon): Likewise.
2206         (pp_c_complement): Likewise.
2207         (pp_c_exclamation): Likewise.
2208         (pp_c_direct_declarator): Likewise.
2209         (pp_c_ws_string): Likewise.
2210         (pp_c_identifier): Likewise.
2211         (pp_c_statement): Likewise.
2212         (print_c_tree): Likewise.
2214 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
2216         PR c++/58072
2217         * c-common.c (c_parse_error): Catch user-defined literal tokens and
2218         provide useful error strings.
2220 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2222         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2223         printer functions instead of pp_string or operators and punctuators.
2224         (dump_generic_ada_node): Likewise.
2225         * c-pretty-print.c (pp_c_type_specifier): Likewise.
2226         (pp_c_relational_expression): Likewise.
2227         (pp_c_logical_or_expression): Likewise.
2229 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2231         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2232         functions instead of pp_character.
2233         (pp_ada_tree_identifier): Likewise.
2234         (dump_ada_double_name): Likewise.
2235         (dump_ada_function_declaration): Likewise.
2236         (dump_ada_array_domains): Likewise.
2237         (dump_template_types): Likewise.
2238         (dump_generic_ada_node): Likewise.
2239         (print_ada_declaration): Likewise.
2240         (print_ada_struct_decl): Likewise.
2241         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2243 2013-07-23  Tom Tromey  <tromey@redhat.com>
2245         * c-common.h (enum rid) <RID_GENERIC>: New constant.
2246         * c-common.c (c_common_reswords): Add _Generic.
2248 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
2250         * c-common.c: Fix typos.
2251         * c-common.h: Likewise.
2253 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
2255         PR c++/55203
2256         * c-common.c (c_common_attribute_table): Add warn_unused.
2257         (handle_warn_unused_attribute): New.
2259 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
2261         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2262         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2264 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
2266         PR c++/57869
2267         * c.opt: Add Wconditionally-supported.
2269 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
2271         * array-notation-common.c (length_mismatch_in_expr_p): Delete
2272         unused variables l_length and l_node.
2274 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2276         PR c/57821
2277         * c-common.c (complete_array_type): Delay folding first index
2278         like other indices.  When folding, check for index overflow.
2280 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
2282         PR c++/57509
2283         * c-common.h (c_build_vec_perm_expr): New complain argument.
2284         * c-common.c (c_build_vec_perm_expr): Likewise.
2285         Use save_expr also in C++.
2287 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2289         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2290         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2291         * c-opts.c (c_common_post_options): Likewise.
2293 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2295         * array-notation-common.c (length_mismatch_in_expr): Changed the
2296         parameter type's from a dynamic array to a vec_tree.  Also removed
2297         the size parameters.
2298         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2299         the change above.
2301 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2303         * c-common.h (struct cilkplus_an_parts): New structure.
2304         (struct cilkplus_an_loop_parts): Likewise.
2305         (cilkplus_extract_an_triplets): New prototype.
2306         (fix_sec_implicit_args): Likewise.
2307         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2308         (fix_sec_implicit_args): Likewise.
2310 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2312         * array-notation-common.c (find_inv_trees): Removed an unwanted
2313         typecasting.
2314         * c-common.h (struct inv_list::additional_tcodes): Changed type from
2315         enum rid to enum tree_code.
2317 2013-06-11  Jan Hubicka  <jh@suse.cz>
2319         * c-common.c (handle_alias_ifunc_attribute): Do not set
2320         DECL_EXTERNAL for weakref variables.
2321         * c-pragma.c (handle_pragma_weak): Make sure aliases
2322         are not declared as external.
2324 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2326         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2327         function from c/c-array-notation.c.
2328         (is_cilkplus_reduce_builtin): Likewise.
2329         (find_rank): Likewise.
2330         (extract_array_notation_exprs): Likewise.
2331         (replace_array_notations): Likewise.
2332         (find_inv_trees): Likewise.
2333         (replace_inv_trees): Likewise.
2334         (contains_array_notation_expr): Likewise.
2335         (find_correct_array_notation_type): Likewise.
2336         * c-common.h (struct inv_list): Moved this struct from the file
2337         c/c-array-notation.c and added a new field called additional tcodes.
2338         (length_mismatch_in_expr_p): New prototype.
2339         (is_cilkplus_reduce_builtin): Likewise.
2340         (find_rank): Likewise.
2341         (extract_array_notation_exprs): Likewise.
2342         (replace_array_notation): Likewise.
2343         (find_inv_trees): Likewise.
2344         (replace_inv_trees): Likewise.
2345         (find_correct_array_notation_type): Likewise.
2347 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2349         * c-common.c (c_define_builtins): When cilkplus is enabled, the
2350         function array_notation_init_builtins is called.
2351         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2352         * c-common.def (ARRAY_NOTATION_REF): New tree.
2353         * c-common.h (build_array_notation_expr): New function declaration.
2354         (build_array_notation_ref): Likewise.
2355         (extract_sec_implicit_index_arg): New extern declaration.
2356         (is_sec_implicit_index_fn): Likewise.
2357         (ARRAY_NOTATION_CHECK): New define.
2358         (ARRAY_NOTATION_ARRAY): Likewise.
2359         (ARRAY_NOTATION_START): Likewise.
2360         (ARRAY_NOTATION_LENGTH): Likewise.
2361         (ARRAY_NOTATION_STRIDE): Likewise.
2362         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2363         ARRAY_NOTATION_REF.
2364         (pp_c_expression): Likewise.
2365         * c.opt (flag_enable_cilkplus): New flag.
2366         * array-notation-common.c: New file.
2368 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2370         PR c++/57274
2371         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2373 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
2375         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2376         vectors.
2378 2013-05-07  Han Shen  <shenhan@google.com>
2380         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2382 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2384         * c-common.c (check_user_alignment): Emit error for negative values.
2386 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2388         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2390 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2392         * c-cppbuiltin.c (c_cpp_builtins): Do not define
2393         __GXX_EXPERIMENTAL_CXX1Y__.
2395 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2396             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2398         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2399         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2400         to simply use OPT_Wpointer_arith.
2401         (c_sizeof_or_alignof_type): Likewise.
2403 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2405         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2407 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2409         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2410         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2411         specifiers.
2413 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
2415         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2417 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
2419         * c-common.c (pointer_int_sum): Remove dead code.
2421 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2423         PR middle-end/56524
2424         * c-common.c (handle_optimize_attribute): Don't call
2425         save_optabs_if_changed.
2427 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2429         PR middle-end/56461
2430         * c-pch.c (pch_init): Free target_validity at the end.
2432 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2434         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2436 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2437             Jakub Jelinek  <jakub@redhat.com>
2439         PR sanitizer/56454
2440         * c-common.c (handle_no_sanitize_address_attribute): New function.
2441         (c_common_attribute_table): Add no_sanitize_address attribute.
2442         (handle_no_address_safety_analysis_attribute): Add
2443         no_sanitize_address attribute, not no_address_safety_analysis
2444         attribute.
2446 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2448         PR target/52555
2449         * c-common.c (handle_optimize_attribute): Call
2450         save_optabs_if_changed.
2452 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
2453             Steven Bosscher  <steven@gcc.gnu.org>
2455         PR pch/54117
2456         * c-opts.c (c_common_post_options): If debug info is enabled
2457         and non-dwarf*, refuse to load PCH files and when writing PCH
2458         file warn.
2460 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
2462         PR middle-end/56167
2463         * c-common.c (handle_error_attribute): Fix condition.
2465 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
2467         PR c++/55742
2468         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2470 2013-01-18  Jason Merrill  <jason@redhat.com>
2472         PR target/54908
2473         * c.opt (-fextern-tls-init): New.
2474         * c-opts.c (c_common_post_options): Handle it.
2476 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
2478         PR c/48418
2479         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2480         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2481         and is either negative or bigger or equal to type precision
2482         of the first operand.
2484 2012-12-03  Marek Polacek  <polacek@redhat.com>
2486         PR c/55570
2487         * c-common.c (check_user_alignment): Swap order of tests,
2488         check TREE_CODE first.
2490 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2492         PR c++/52654
2493         * c-common.h (overflow_type): New enum.
2494         (build_userdef_literal): Add overflow_type argument.
2495         (tree_userdef_literal): Add overflow_type.
2496         (USERDEF_LITERAL_OVERFLOW): New access macro.
2497         * c-common.c (build_userdef_literal): Add overflow_type
2498         argument.
2499         * c-lex.c (c_lex_with_flags): Add overflow_type to
2500         build_userdef_literal calls.
2501         (interpret_integer, interpret_float): Add overflow_type argument.
2503 2012-11-28  Richard Biener  <rguenther@suse.de>
2505         PR c/35634
2506         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2507         here and use a type with proper overflow behavior for types that would
2508         need to be promoted for the arithmetic.
2510 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2512         PR sanitizer/55435
2513         * c-common.c (handle_no_address_safety_analysis_attribute): New
2514         function.
2515         (c_common_attribute_table): Add no_address_safety_analysis.
2517 2012-11-16  Simon Baldwin  <simonb@google.com>
2519         * c.opt: Add f[no-]canonical-system-headers.
2520         * c-opts.c (c_common_handle_option): Handle
2521         OPT_fcanonical_system_headers.
2523 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2525         PR c++/54413
2526         * c-opts.c (c_common_handle_option): Set new flags.
2527         * c.opt: Describe new flags.
2529 2012-11-09  Jason Merrill  <jason@redhat.com>
2531         * c.opt (Wabi-tag): New.
2533 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2535         PR 55139
2536         * c-common.c (get_atomic_generic_size): Mask with
2537         MEMMODEL_MASK
2539 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2541         PR c/53063
2542         * c.opt (Wformat): Make it Alias Wformat=1.
2543         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2544         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2545         LangEnabledBy.
2546         (Wformat=): RejectNegative. Use LangEnabledBy.
2547         (Wnonnull): Use LangEnabledBy.
2548         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2549         * c-format.c (set_Wformat): Delete.
2550         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2551         (maybe_read_dollar_number):  Likewise.
2552         (avoid_dollar_number):  Likewise.
2553         (finish_dollar_format_checking):  Likewise.
2554         (check_format_info):  Likewise.
2555         (check_format_info_main):  Likewise.
2556         (check_format_types):  Likewise.
2557         (format_type_warning):  Likewise.
2558         * c-common.c (int):  Likewise.
2559         (check_function_sentinel):  Likewise.
2560         * c-common.h (warn_format,set_Wformat): Do not declare here.
2562 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2564         PR c/53063
2565         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2566         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2567         Use LangEnabledBy.
2568         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2569         common.opt.
2570         (Wvariadic-macros): Init(1).
2571         * c-opts.c (c_common_handle_option): Do not handle them
2572         explicitly.
2573         (c_common_post_options): Likewise.
2574         (sanitize_cpp_opts): warn_unused_macros is now
2575         cpp_warn_unused_macros.
2576         (push_command_line_include): Likewise.
2577         * c-common.c (warn_unknown_pragmas): Do not define.
2578         * c-common.h (warn_unknown_pragmas): Do not declare.
2580 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2582         PR c/51294
2583         * c-common.c (conversion_warning): Handle conditional expressions.
2585 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2587         PR c++/54930
2588         * c.opt (Wreturn_local_addr): Define new option.
2590 2012-10-25  Jason Merrill  <jason@redhat.com>
2592         * c.opt (Wvirtual-move-assign): New.
2594         * c.opt (Winherited-variadic-ctor): New.
2596 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
2598         PR c++/54427
2599         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2601 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2603         * c-common.h (pch_cpp_save_state): Declare.
2604         * c-target.def (c_preinclude): New hook.
2605         * c-opts.c (done_preinclude): New.
2606         (push_command_line_include): Handle default preincluded header.
2607         (cb_file_change): Call pch_cpp_save_state when calling
2608         push_command_line_include.
2609         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2610         (pch_cpp_save_state): New.
2611         (pch_init): Call pch_cpp_save_state conditionally, instead of
2612         calling cpp_save_state.
2614 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2616         PR c/53063
2617         PR c/40989
2618         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2619         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2620         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2621         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2622         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2623         * c-opts.c (c_common_handle_option): Remove explicit handling from
2624         here.
2625         (c_common_post_options): Likewise.
2627 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2629         * c-ada-spec.c (LOCATION_COL): Delete.
2630         (compare_location): New function.
2631         (compare_node): Use it.
2632         (compare_comment): Likewise.
2634 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2636         PR c/53063
2637         PR c/40989
2638         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2639         * c-opts.c (c_common_handle_option): Do not set them here. Add
2640         comment.
2641         (c_common_post_options): Likewise.
2643 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2645         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2646         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2647         Remove POINTER_TYPE handling, add large unsigned handling and use
2648         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2650 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2652         PR c/54381
2653         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2654         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2655         locs and array of 3 trees instead of just single loc and single
2656         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2657         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2658         For *cmp* builtins that take two sources strings report warnings
2659         about first and second source, not about destination and source.
2661 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2663         PR c++/53055
2664         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2666 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2668         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2669         declaring something coming from another file.
2671 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2673         PR ada/54845
2674         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2676 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2678         PR c++/54194
2679         * c-common.c (warn_about_parentheses): Add location_t parameter;
2680         use EXPR_LOC_OR_LOC.
2681         * c-common.h: Update declaration.
2683 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2685         PR c++/54427
2686         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2687         more operations. Make error messages optional.
2688         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2689         (scalar_to_vector): Declare.
2691 2012-10-08  Jason Merrill  <jason@redhat.com>
2693         * c-common.c (c_common_reswords): Add thread_local.
2695 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2697         PR c++/53528 C++11 attribute support
2698         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2699         new functions.
2700         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2701         static function.
2702         (handle_aligned_attribute): In choose strictest alignment
2703         among many.  Use new check_cxx_fundamental_alignment_constraints.
2704         (handle_transparent_union_attribute): In c++11 attribute syntax,
2705         don't look through typedefs.
2707 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2709         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2710         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2711         out of dumpfile.h.
2713 2012-09-25  Dehao Chen  <dehao@google.com>
2715         PR middle-end/54645
2716         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2717         map when read in the pch.
2719 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2721         * c-ada-spec.c: Style fixes.
2723 2012-09-18 Thomas Quinot  <quinot@adacore.com>
2725         * c.opt (-fada-spec-parent): Define new command line switch.
2726         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2727         is specified, generate binding spec as a child of the specified unit.
2729 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
2730             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2732         PR c++/53210
2733         * c.opt ([Winit-self]): Enabled by -Wall in C++.
2735 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
2737         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2738         for pointers, and add missing Convention C pragma.
2739         (print_ada_struct_decl): Add missing aliased keyword.
2740         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2742 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2744         * c-common.c (sizeof_pointer_memaccess_warning): New function.
2745         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2746         * c-opts.c (c_common_handle_option): Enable it for -Wall.
2747         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2748         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2750 2012-08-10  Richard Guenther  <rguenther@suse.de>
2752         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2754 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
2756         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2757         instead of separate pp_newline and pp_flush.
2758         (print_c_tree): Likewise.
2760 2012-07-26  Richard Henderson  <rth@redhat.com>
2762         * c-common.c (handle_hot_attribute): Allow labels.
2763         (handle_cold_attribute): Likewise.
2765 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
2767         PR c++/28656
2768         * c-common.c (check_function_nonnull): Handle multiple nonnull
2769         attributes properly.
2771 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2773         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2774         * c-ada-spec.c: Likewise.
2775         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2777 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
2779         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2780         Remove code conditional on it.
2782 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
2784         * c-gimplify.c: Do not include basic-block.h.
2785         * c-common.c: Do not include linfuncs.h.
2787 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2789         * c-common.h: Include tree.h.
2791 2012-07-02  Jason Merrill  <jason@redhat.com>
2793         PR c++/53524
2794         * c-common.c (get_priority): Call default_conversion.
2796 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
2798         * c-pch.c (c_common_write_pch): Remove unused variables.
2800 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2802         * cppspec.c: Moved from gcc/ to here.
2804 2012-06-27  Kai Tietz  <ktietz@redhat.com>
2806         PR preprocessor/37215
2807         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2809 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2811         * c-common.h (c_common_print_pch_checksum): Remove.
2812         * c-pch.c: Do not include output.h.
2813         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2814         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2815         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2816         (struct c_pch_header): Remove.
2817         (get_ident): Update gpch version.
2818         (pch_init): Do not print executable_checksum to asm_out_file.
2819         Do not fail if there is no asm_out_file to read back from.  Set
2820         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2821         (c_common_write_pch): Verify that nothing was written to asm_out_file
2822         since pch_init was called.  Do not write a c_pch_header, and do not
2823         copy from asm_out_file to the PCH.
2824         (c_common_read_pch): Do not read a c_pch_header, and do not restore
2825         the content of asm_out_file from the PCH.
2826         (c_common_print_pch_checksum): Remove.
2827         * c-opts.c (c_common_init): Print out executable_checksum directly.
2829 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2831         * c-target.def (objc_declare_unresolved_class_reference,
2832         objc_declare_class_definition): Add new hooks.
2834 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2836         * c-lex.c: Do not include output.h.
2837         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2838         Remove uses of ASM_OUTPUT_IDENT.
2840 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
2842         PR c++/51033
2843         * c-common.h (c_build_vec_perm_expr): Move decl here.
2844         * c-common.c (c_build_vec_perm_expr): Move definition
2845         here.
2847 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
2849         * c.opt (fconserve-space): Turn into a no-op.
2851 2012-06-04  Sterling Augustine  <saugustine@google.com>
2853         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2854         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2855         both the start and end of the function.
2857 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2859         * c-common.c: Do not include output.h.
2860         * c-pragma.c: Likewise.
2862 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2864         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2865         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2866         (lang_decl_name): Handle namespace decls.
2868 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
2870         * c-ada-spec.c: Do not include output.h.
2871         * c-semantics.c: Likewise.
2873 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2875         * c-common.c: Fix typo.
2877 2012-05-29  Michael Matz  <matz@suse.de>
2879         * c-common.h (c_expand_decl): Remove prototype.
2881 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2883         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2884         * c-opts.c (c_common_handle_option): Remove code handling
2885         warn_missing_braces.
2887 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
2889         PR c++/25137
2890         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2891         -Wmissing_braces.
2893 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
2895         PR c++/53322
2896         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2898 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2900         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2901         * c-opts.c (c_common_handle_option): Do not handle explicitly
2902         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2904 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
2906         PR preprocessor/7263
2907         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
2908         to cpp_classify_number.  For diagnostics, use the precise location
2909         instead of the global input_location.
2911 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
2913         PR c++/11856
2914         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2916 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
2918         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2920 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2922         PR 53063
2923         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2924         Wreorder): Use LangEnabledBy.
2925         * c-opts.c (c_common_handle_option): Do not enable them
2926         explicitly. Call lang-specific generated functions.
2927         (c_common_post_options): Do not set them here.
2929 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2931         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2932         Wmissing-field-initializers,Wmissing-parameter-type,
2933         Wold-style-declaration,Woverride-init): Use EnabledBy.
2934         * c-opts.c (c_common_post_options): Do not set here explicitly.
2936 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2938         PR 53063
2939         * c-opts.c (c_common_handle_option): Use handle_generated_option
2940         to enable sub-options.
2942 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
2944         PR c++/53158
2945         * c-common.c (warnings_for_convert_and_check): Use warning_at.
2947 2012-05-10  Richard Guenther  <rguenther@suse.de>
2949         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2950         adjust commentary about TYPE_IS_SIZETYPE types.
2952 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2954         PR c++/53261
2955         * c-common.c (warn_logical_operator): Check that argument of
2956         integer_zerop is not NULL.
2958 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2960         PR c/43772
2961         * c-common.c (warn_logical_operator): Do not warn if either side
2962         is already true or false.
2964 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2966         PR c/51712
2967         * c-common.c (expr_original_type): New.
2968         (shorten_compare): Do not warn for enumeration types.
2970 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2972         * c.opt (fpermissive): Add Var(flag_permissive).
2974 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
2976         PR c++/51033
2977         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2978         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2980 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
2982         Add -Wvarargs option
2983         * c.opt (Wvarargs):  Define new option.
2985 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2987         * c-common.c (check_function_arguments): Replace
2988         Wmissing-format-attribute with Wsuggest-attribute=format.
2990 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2992         * c.opt (Wsuggest-attribute=format): New. Alias of
2993         Wmissing-format-attribute.
2994         * c-format.c (decode_format_type): Replace
2995         Wmissing-format-attribute with Wsuggest-attribute=format.
2996         (check_function_format): Likewise.
2998 2012-04-27  Ollie Wild  <aaw@google.com>
3000         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3001         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3002         * c.opt: Add Wliteral-suffix.
3004 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3006         PR c/44774
3007         * c.opt (Wpedantic): New.
3008         (pedantic): Alias Wpedantic.
3009         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3010         (c_common_post_options): Likewise.
3011         (sanitize_cpp_opts): Likewise.
3012         * c-lex.c (interpret_float): Likewise.
3013         * c-format.c (check_format_types): Likewise.
3014         * c-common.c (pointer_int_sum): Likewise.
3015         (c_sizeof_or_alignof_type): Likewise.
3016         (c_add_case_label): Likewise.
3017         (c_do_switch_warnings): Likewise.
3018         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3020 2012-04-15  Jason Merrill  <jason@redhat.com>
3022         PR c++/52818
3023         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3024         (C_STD_NAME): Distinguish between C++98 and C++11.
3026 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3028         PR target/52624
3029         * c-common.h (uint16_type_node): Rename into...
3030         (c_uint16_type_node): ...this.
3031         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3032         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3034 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3036         * c-common.c (warn_if_unused_value): Move definition to here.
3037         * c-common.h (warn_if_unused_value): Move declaration to here.
3039 2012-03-23  William Bader  <williambader@hotmail.com>
3041         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3043 2012-03-20  Jason Merrill  <jason@redhat.com>
3045         * c-common.h (enum cxx_dialect): Add cxx1y.
3046         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3047         test.
3048         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3049         * c-opts.c (c_common_post_options): Likewise.
3050         (set_std_cxx1y): New.
3051         (c_common_handle_option): Call it.
3052         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3054 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
3056         PR c++/14710
3057         * c.opt ([Wuseless-cast]): Add.
3059 2012-03-16  Richard Guenther  <rguenther@suse.de>
3061         * c-pretty-print.c (pp_c_initializer_list): Adjust.
3063 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3065         PR c++/44783
3066         * c.opt (ftemplate-backtrace-limit) Add.
3068 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3070         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3071         handling.
3072         * c-pragma.c (handle_pragma_extern_prefix): Remove.
3073         (init_pragma): Don't register extern_prefix.
3075 2012-03-12  Richard Guenther  <rguenther@suse.de>
3077         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3078         (builtin_type_for_size): Likewise.
3080 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
3082         PR c++/52215
3083         * c-common.c (sync_resolve_params): Don't decide whether to convert
3084         or not based on TYPE_SIZE comparison, convert whenever arg_type
3085         is unsigned INTEGER_TYPE.
3087 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
3089         PR c/52118
3090         * c.opt ([Wunused-local-typedefs]): Fix description.
3092 2012-01-24  Mike Stump  <mikestump@comcast.net>
3094         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3095         exactly.
3097 2012-01-18  Richard Guenther  <rguenther@suse.de>
3099         * c-opts.c (c_common_post_options): Reset LTO flags if
3100         we are about to generate a PCH.
3102 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
3104         PR c++/51777
3105         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3106         use pp_unsigned_wide_integer.
3108 2012-01-10  Richard Guenther  <rguenther@suse.de>
3110         PR middle-end/51806
3111         * c-opts.c (c_common_handle_option): Move -Werror handling
3112         to language independent code.
3114 2012-01-05  Richard Guenther  <rguenther@suse.de>
3116         PR middle-end/51764
3117         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3118         from common.opt.
3120 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
3122         PR c++/51316
3123         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3124         of array types with an unknown bound.
3126 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
3128         * c-common.c (flag_isoc99): Update comment to refer to C11.
3129         (flag_isoc1x): Change to flag_isoc11.
3130         * c-common.h (flag_isoc99): Update comment to refer to C11.
3131         (flag_isoc1x): Change to flag_isoc11.
3132         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3133         C11.
3134         * c-opts.c (set_std_c1x): Change to set_std_c11.
3135         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3136         Call set_std_c11.
3137         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3138         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3139         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
3140         standard.
3141         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3142         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
3143         (std=gnu1x): Make alias of std=gnu11.
3145 2011-12-19  Jason Merrill  <jason@redhat.com>
3147         PR c++/51228
3148         * c-common.c (handle_transparent_union_attribute): Check the first
3149         field if the type is complete.
3151 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
3153         PR libstdc++/51365
3154         * c-common.c (RID_IS_FINAL): Add.
3155         * c-common.h (RID_IS_FINAL): Add.
3157 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
3159         * c.opt (fgnu-runtime): Provide full description.
3160         (fnext-runtime): Likewise.
3161         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3163 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
3165         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
3166         predefines in one place.  Add LOCK_FREE predefines.
3167         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3168         new func.
3170 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
3172         PR c/51256
3173         * c-common.c (get_atomic_generic_size): Check for various error
3174         conditions
3175         (resolve_overloaded_atomic_exchange,
3176         resolve_overloaded_atomic_compare_exchange,
3177         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3178         error_mark_node for error conditions.
3180 2011-11-08  Richard Guenther  <rguenther@suse.de>
3182         PR middle-end/51010
3183         c-family/
3185 2011-11-07  Richard Henderson  <rth@redhat.com>
3186             Aldy Hernandez  <aldyh@redhat.com>
3187             Torvald Riegel  <triegel@redhat.com>
3189         Merged from transactional-memory.
3191         * c-common.c (handle_tm_wrap_attribute,
3192         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3193         (struct c_common_reswords): Added __transaction* keywords.
3194         (struct c_common_attribute_table): Added transaction* and tm_regparm
3195         attributes.
3196         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3197         masks.
3198         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3199         find_tm_attribute): Declare.
3201 2011-11-07  Jason Merrill  <jason@redhat.com>
3203         PR c++/35688
3204         * c-common.c, c-common.h: Revert yesterday's changes.
3206 2011-11-06  Jason Merrill  <jason@redhat.com>
3208         PR c++/35688
3209         * c-common.c (decl_has_visibility_attr): Split out from...
3210         (c_determine_visibility): ...here.
3211         * c-common.h: Declare it.
3213 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3215         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3216         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3217         type.
3218         (check_user_alignment): New.  Split out of
3219         handle_aligned_attribute.  Disallow integer constants with
3220         noninteger types.  Conditionally allow zero.
3221         (handle_aligned_attribute): Use check_user_alignment.
3222         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3224 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
3225             Richard Henderson  <rth@redhat.com>
3227         Merged from cxx-mem-model.
3229         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3230         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3231         parameters that are the same type size.
3232         (get_atomic_generic_size): New.  Find size of generic
3233         atomic function parameters and do typechecking.
3234         (add_atomic_size_parameter): New.  Insert size into parameter list.
3235         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3236         either __atomic_exchange_n or external library call.
3237         (resolve_overloaded_atomic_compare_exchange): Restructure
3238         __atomic_compare_exchange to either _n variant or external library call.
3239         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3240         __atomic_load_n or an external library call.
3241         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3242         __atomic_store_n or an external library call.
3243         (resolve_overloaded_builtin): Handle new __atomic builtins.
3245 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3247         PR c++/50608
3248         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3249         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
3250         <INDIRECT_REF>: Return the argument.
3251         <ARRAY_REF>: Remove special code for negative offset.
3252         Call fold_build_pointer_plus instead of size_binop.
3253         (fold_offsetof): Remove STOP_REF argument and adjust.
3254         * c-common.h (fold_offsetof_1): Declare.
3255         (fold_offsetof): Remove STOP_REF argument.
3257 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
3259         PR c++/50810
3260         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3261         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3262         Wnarrowing for C++0x and C++98.
3263         * c.opt ([Wnarrowing]): Update.
3265 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3267         PR c++/44277
3268         * c.opt: Add Wzero-as-null-pointer-constant.
3270 2011-10-31  Jason Merrill  <jason@redhat.com>
3272         * c.opt (-fdeduce-init-list): Off by default.
3274         PR c++/50920
3275         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3276         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3277         and -Wc++11-compat.
3278         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3280 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
3282         PR c++/30066
3283         * c.opt (fvisibility-inlines-hidden): Description change.
3285 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
3287         Implement C++11 user-defined literals.
3288         * c-common.c (build_userdef_literal): New.
3289         * c-common.def: New tree code.
3290         * c-common.h (tree_userdef_literal): New tree struct and accessors.
3291         * c-lex.c (interpret_float): Add suffix parm.
3292         (c_lex_with_flags): Build literal tokens.
3294 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3296         PR c++/50841
3297         Revert:
3298         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3300         PR c++/50810
3301         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3302         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3303         Wnarrowing for C++0x and C++98.
3304         * c.opt ([Wnarrowing]): Update.
3306 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3308         PR c++/50810
3309         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3310         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3311         Wnarrowing for C++0x and C++98.
3312         * c.opt ([Wnarrowing]): Update.
3314 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
3316         PR c++/45385
3317         * c-common.c (conversion_warning): Remove code looking for
3318         artificial operands.
3320 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3322         PR bootstrap/50760
3323         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3324         !NO_IMPLICIT_EXTERN_C.
3326 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
3328         * c-common.c (c_common_reswords): Add __bases,
3329         __direct_bases.
3330         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3332 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3334         PR c++/50757
3335         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3337 2011-10-15  Tom Tromey  <tromey@redhat.com>
3338             Dodji Seketeli  <dodji@redhat.com>
3340         * c.opt (fdebug-cpp): New option.
3341         * c-opts.c (c_common_handle_option): Handle the option.
3342         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3343         output stream in parameter. Factorized from ...
3344         (maybe_print_line): ... this. Dump location debug information when
3345         -fdebug-cpp is in effect.
3346         (print_line_1): New static function. Takes an output stream in
3347         parameter. Factorized from ...
3348         (print_line): ... here. Dump location information when -fdebug-cpp
3349         is in effect.
3350         (scan_translation_unit): Dump location information when
3351         -fdebug-cpp is in effect.
3353 2011-10-15  Tom Tromey  <tromey@redhat.com>
3354             Dodji Seketeli  <dodji@redhat.com>
3356         * c.opt (ftrack-macro-expansion): New option. Handle it with and
3357         without argument.
3358         * c-opts.c (c_common_handle_option)<case
3359         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3360         cases. Handle -ftrack-macro-expansion with and without argument.
3362 2011-10-15  Tom Tromey  <tromey@redhat.com>
3363             Dodji Seketeli  <dodji@redhat.com>
3365         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3366         (print_line, cb_define, do_line_change): Adjust to avoid touching
3367         the internals of struct line_map.  Use the public API instead.
3368         * c-pch.c (c_common_read_pch): Likewise.
3369         * c-lex.c (fe_file_change): Likewise.
3371 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3373         PR c++/17212
3374         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3376 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
3378         PR c++/33067
3379         * c-pretty-print.c (pp_c_floating_constant): Output
3380         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3382 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3384         * c-common.c (def_builtin_1): Delete old interface with two
3385         parallel arrays to hold standard builtin declarations, and replace
3386         it with a function based interface that can support creating
3387         builtins on the fly in the future.  Change all uses, and poison
3388         the old names.  Make sure 0 is not a legitimate builtin index.
3389         * c-omp.c (c_finish_omp_barrier): Ditto.
3390         (c_finish_omp_taskwait): Ditto.
3391         (c_finish_omp_flush): Ditto.
3393 2011-10-11  Tristan Gingold  <gingold@adacore.com>
3395         * c.opt: (fallow-parameterless-variadic-functions): New.
3397 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3399         PR c++/33255 - Support -Wunused-local-typedefs warning
3400         * c-common.h (struct c_language_function::local_typedefs): New
3401         field.
3402         (record_locally_defined_typedef, maybe_record_typedef_use)
3403         (maybe_warn_unused_local_typedefs): Declare new functions.
3404         * c-common.c (record_locally_defined_typedef)
3405         (maybe_record_typedef_use)
3406         (maybe_warn_unused_local_typedefs): Define new functions.
3407         * c.opt: Declare new -Wunused-local-typedefs flag.
3409 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3411         PR middle-end/50266
3412         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3413         computations.
3415 2011-09-05  Richard Guenther  <rguenther@suse.de>
3417         * c-common.c (complete_array_type): Use ssize_int (-1) instead
3418         of integer_minus_one_node for empty array upper bounds.
3420 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
3422         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3423         it's the first time it's being called on this main TU.
3425 2011-08-24  Richard Guenther  <rguenther@suse.de>
3427         PR c/49396
3428         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3430 2011-08-22  Gabriel Charette  <gchare@google.com>
3432         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3433         defined in cpp_init_builtins and c_cpp_builtins.
3435 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3437         * c-common.c (c_common_reswords): Add __builtin_complex.
3438         * c-common.h (RID_BUILTIN_COMPLEX): New.
3440 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3442         * c-common.c (c_common_reswords): Add _Noreturn.
3443         (keyword_is_function_specifier): Handle RID_NORETURN.
3444         * c-common.h (RID_NORETURN): New.
3446 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3448         * c-common.c (unsafe_conversion_p): New function. Check if it is
3449         unsafe to convert an expression to the type.
3450         (conversion_warning): Adjust, use unsafe_conversion_p.
3451         * c-common.h (unsafe_conversion_p): New function declaration.
3453 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3455         * c-common.h (c_finish_omp_atomic): Adjust prototype.
3456         (c_finish_omp_taskyield): New prototype.
3457         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3458         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3459         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
3460         or RHS1 have side-effects, evaluate those too in the right spot,
3461         if it is a decl and LHS is also a decl, error out if they
3462         aren't the same.
3463         (c_finish_omp_taskyield): New function.
3464         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3465         * c-pragma.c (omp_pragmas): Add taskyield.
3466         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3467         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3468         PRAGMA_OMP_CLAUSE_MERGEABLE.
3470 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
3472         * c-common.h (set_underlying_type): Remove parm name from
3473         declaration.
3475 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
3477         * c-pretty-print.h: Search c-common.h in c-family.
3479 2011-07-22  Jason Merrill  <jason@redhat.com>
3481         PR c++/49793
3482         * c.opt (Wnarrowing): New.
3484         PR c++/30112
3485         * c-common.h: Declare c_linkage_bindings.
3486         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3488         PR c++/49813
3489         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3490         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3491         as flag_isoc99 for 'restrict'.
3492         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3494 2011-07-21  Ian Lance Taylor  <iant@google.com>
3496         PR middle-end/49705
3497         * c-common.c (c_disable_warnings): New static function.
3498         (c_enable_warnings): New static function.
3499         (c_fully_fold_internal): Change local unused_p to bool.  Call
3500         c_disable_warnings and c_enable_warnings rather than change
3501         c_inhibit_evaluation_warnings.
3503 2011-07-20  Jason Merrill  <jason@redhat.com>
3505         PR c++/6709 (DR 743)
3506         PR c++/42603 (DR 950)
3507         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3508         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3509         (CPP_DECLTYPE): New.
3510         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3512 2011-07-19  Richard Guenther  <rguenther@suse.de>
3514         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3515         * c-omp.c (c_finish_omp_for): Likewise.
3517 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3519         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3520         body on the next line.
3522 2011-07-08  Jason Merrill  <jason@redhat.com>
3524         PR c++/45437
3525         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3527         PR c++/49673
3528         * c-common.c (c_apply_type_quals_to_decl): Don't check
3529         TYPE_NEEDS_CONSTRUCTING.
3531 2011-07-06  Richard Guenther  <rguenther@suse.de>
3533         * c-common.c (c_common_nodes_and_builtins):
3534         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3536 2011-07-05  Richard Guenther  <rguenther@suse.de>
3538         * c-common.c (c_common_nodes_and_builtins): Build all common
3539         tree nodes first.
3541 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3543         * c-common.h (c_tree_chain_next): New static inline function.
3545         * c-common.c (check_builtin_function_arguments): Handle
3546         BUILT_IN_ASSUME_ALIGNED.
3548 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3550         * c-common.c: Add sync_ or SYNC__ to builtin names.
3551         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3553 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3555         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3556         handler.
3557         (gen_pragma_handler): New union.
3558         (internal_pragma_handler): New type.
3559         (c_register_pragma_with_data)
3560         (c_register_pragma_with_expansion_and_data): New functions.
3562         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3563         (c_register_pragma, c_register_pragma_with_expansion)
3564         (c_invoke_pragma_handler): Changed to work with
3565         internal_pragma_handler.
3566         (c_register_pragma_with_data)
3567         (c_register_pragma_with_expansion_and_data): New functions.
3569 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3571         * c-common.c: Include common/common-target.h.
3572         (handle_section_attribute): Use
3573         targetm_common.have_named_sections.
3574         * c-cppbuiltin.c: Include common/common-target.h.
3575         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3577 2011-06-10  Richard Guenther  <rguenther@suse.de>
3579         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3580         to print a IDENTIFIER_NODE.
3582 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3583             Joseph Myers  <joseph@codesourcery.com>
3585         * c.opt (fbuilding-libgcc): New option.
3586         * c-cppbuiltin.c (c_cpp_builtins): Define
3587         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3589 2011-06-07  Jason Merrill  <jason@redhat.com>
3591         * c-common.c (max_tinst_depth): Lower default to 900.
3593         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3595 2011-06-07  Richard Guenther  <rguenther@suse.de>
3597         * c-common.c (c_common_nodes_and_builtins): Do not set
3598         size_type_node or call set_sizetype.
3600 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
3602         PR debug/49130
3603         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3604         type when using pointer comparison to compare types.
3606 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
3608         * c.opt: Add -Wdelete-non-virtual-dtor.
3609         * c-opts.c (c_common_handle_option): Include it in -Wall.
3611 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3613         PR bootstrap/49190
3615         Revert:
3616         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3618         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3619         not tree_common.
3621 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
3623         PR c++/49165
3624         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3625         C++ don't call c_common_truthvalue_conversion on void type arms.
3627 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3629         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3630         (stmt_list_stack): Define.
3631         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3632         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3634 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3636         * c-common.c (warning_candidate_p): Check for BLOCKs.
3638 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3640         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3641         not tree_common.
3643 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3645         * c-common.c (def_fn_type): Remove extra va_end.
3647 2011-05-23  Jason Merrill  <jason@redhat.com>
3649         PR c++/48106
3650         * c-common.c (c_common_get_narrower): New.
3651         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3653 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3655         * c-common.h (check_function_arguments): Tweak prototype of
3656         check_function_arguments.
3657         * c-common.c (check_function_arguments): Likewise.  Adjust
3658         calls to check_function_nonnull, check_function_format, and
3659         check_function_sentinel.
3660         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3661         separate attributes and typelist arguments.  Use
3662         FOREACH_FUNCTION_ARGS to iterate over argument types.
3664 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3666         * c-common.c (c_common_reswords): Reorder.
3667         * c-common.h (rid): Likewise.
3669 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3671         * c-common.c (def_fn_type): Don't call build_function_type, call
3672         build_function_type_array or build_varargs_function_type_array
3673         instead.
3674         (c_common_nodes_and_builtins): Likewise.
3676 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3678         * c-common.c (c_add_case_label): Omit the loc argument to
3679         build_case_label.
3680         * c-common.h (build_case_label): Remove.
3681         * c-semantics.c (build_case_label): Remove.
3683 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3685         * c-objc.h (objc_start_method_definition): Update prototype.
3686         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3688 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3690         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3691         TYPE_ARG_TYPES directly.
3692         (handle_nonnull_attribute): Likewise.
3693         (sync_resolve_params): Likewise.
3694         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3695         to check_format_string.
3696         (handle_format_attribute): Likewise.
3697         (check_format_string): Take a function type to examine instead of
3698         a type list.  Use a function_arg_iterator to step through argument
3699         types.
3701 2011-05-04  Richard Guenther  <rguenther@suse.de>
3703         * c-common.c (fix_string_type): Use size_int for index type bounds.
3704         (start_fname_decls): Do not pass NULL to build_int_cst.
3705         (c_init_attributes): Likewise.
3706         * c-lex.c (c_lex_with_flags): Likewise.
3708 2011-04-27  Jason Merrill  <jason@redhat.com>
3710         * c-common.c (make_tree_vector_from_list): New.
3711         * c-common.h: Declare it.
3713 2011-04-26  Richard Guenther  <rguenther@suse.de>
3715         PR preprocessor/48248
3716         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3717         for output size with -P.
3719 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3721         * c-common.c (struct c_common_resword): Add __underlying_type.
3722         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3724 2011-04-20  Jim Meyering  <meyering@redhat.com>
3726         * c-format.c (init_dollar_format_checking): Remove useless
3727         if-before-free.
3729 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3731         * c-objc.h (objc_get_interface_ivars): Removed.
3732         (objc_detect_field_duplicates): New.
3733         * stub-objc.c: Likewise.
3735 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3737         * stub-objc.c (objc_declare_protocols): Renamed to
3738         objc_declare_protocol.
3739         * c-objc.h: Likewise.
3741 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3743         * stub-objc.c (objc_declare_class): Updated argument name.
3745 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3747         * c-common.h (c_common_init_ts): Declare.
3748         * c-common.c (c_common_init_ts): Define.
3750 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3752         * c-objc.h (objc_build_message_expr): Updated prototype.
3753         * stub-objc.c (objc_build_message_expr): Likewise.
3755 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3757         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3758         of cgraph_node.
3760 2011-04-11  Richard Guenther  <rguenther@suse.de>
3762         * c-common.c (complete_array_type): Build a range type of
3763         proper type.
3765 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3767         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3768         (handle_type_generic_attribute): Likewise.
3770 2011-04-07  Jason Merrill  <jason@redhat.com>
3772         PR c++/48450
3773         * c-common.c (c_common_truthvalue_conversion): Don't ignore
3774         conversion from C++0x scoped enum.
3776 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3778         * c-target-def.h: New file.
3779         * c-target.def: New file.
3780         * c-target.h: New file.
3781         * c-common.c (targetcm): Don't define here.
3782         * c-common.h (default_handle_c_option): Declare.
3783         * c-format.c: Include c-target.h instead of target.h.
3784         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
3785         include tm.h.
3786         (default_handle_c_option): Move from targhooks.c.
3788 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3790         PR preprocessor/48248
3791         * c-ppoutput.c (print): Add src_file field.
3792         (init_pp_output): Initialize it.
3793         (maybe_print_line): Don't optimize by adding up to 8 newlines
3794         if map->to_file and print.src_file are different file.
3795         (print_line): Update print.src_file.
3797 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3799         * c-ada-spec.c (compare_comment): Use filename_cmp
3800         instead of strcmp for filename.
3802 2011-03-25  Jeff Law  <law@redhat.com>
3804         * c-common.c (def_fn_type): Add missing va_end.
3806 2011-03-25  Jason Merrill  <jason@redhat.com>
3808         * c.opt: Add -std=c++03.
3810 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3812         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3814 2011-03-17  Kai Tietz
3816         PR target/12171
3817         * c-pretty-print.c (pp_c_specifier_qualifier_list):
3818         Display allowed attributes for function pointer types.
3819         (pp_c_attributes_display): New function to display
3820         attributes having affects_type_identity flag set to true.
3821         * c-pretty-print.h (pp_c_attributes_display): New prototype.
3823         * c-common.c (c_common_attribute_table):
3824         Add new element.
3825         (c_common_format_attribute_table): Likewise.
3827 2011-03-18  Jason Merrill  <jason@redhat.com>
3829         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3830         * c-common.h: Don't declare it here.
3831         * c-common.c: Or define it here.
3832         * c-opts.c (c_common_handle_option): Or set it here.
3834         PR c++/35315
3835         * c-common.c (handle_transparent_union_attribute): Don't
3836         make a duplicate type in C++.
3838 2011-03-15  Jason Merrill  <jason@redhat.com>
3840         * c-common.c (max_constexpr_depth): New.
3841         * c-common.h: Declare it.
3842         * c-opts.c (c_common_handle_option): Set it.
3843         * c.opt (fconstexpr-depth): New option.
3845 2011-03-11  Jason Merrill  <jason@redhat.com>
3847         * c-common.c (attribute_takes_identifier_p): Add missing const.
3849         PR c++/46803
3850         * c-common.c (attribute_takes_identifier_p): Assume that an
3851         unknown attribute takes an identifier.
3853 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
3855         PR c/47786
3856         * c-common.c (c_type_hash): Call list_length instead of iterating
3857         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
3859 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3861         PR c/47809
3862         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3864 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
3866         * c.opt (fobjc-abi-version=) New.
3867         (fobjc-nilcheck): New.
3869 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
3871         PR c++/46890
3872         * c-common.h (keyword_is_decl_specifier): Declare.
3873         * c-common.c (keyword_is_decl_specifier): Define.
3874         (keyword_is_function_specifier): New function.
3876 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3878         PR c/47473
3879         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3880         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3881         REAL_TYPE.
3883 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
3885         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3887 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3889         PR pch/47430
3890         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3891         after init_c_lex if pch_file is set.
3893 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
3895         PR c++/43601
3896         * c.opt (-fkeep-inline-dllexport): New switch.
3898 2011-01-12  Richard Guenther  <rguenther@suse.de>
3900         PR middle-end/32511
3901         * c-common.c (handle_weak_attribute): Warn instead of error
3902         on declaring an inline function weak.
3904 2011-01-05  Tom Tromey  <tromey@redhat.com>
3906         * c-common.h (lvalue_error): Update.
3907         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
3908         not error.
3910 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3912         PR objc/47075
3913         * c-objc.h (objc_finish_message_expr): Added argument to
3914         prototype.
3916 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
3918         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3919         Use prototype_p.
3921 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3923         * c-objc.h (objc_maybe_warn_exceptions): New.
3924         * stub-objc.c (objc_maybe_warn_exceptions): New.
3926 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
3928         * c-common.h (readonly_error): Declare.
3929         * c-common.c (readonly_error): Define.
3931 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
3933         * c-common.h (invalid_indirection_error): Declare.
3934         * c-common.c (invalid_indirection_error): Define.
3936 2010-12-03  Richard Guenther  <rguenther@suse.de>
3938         PR c/46745
3939         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3940         (pp_c_unary_expression): Likewise.
3941         (pp_c_expression): Likewise.
3943 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3945         * c-common.h (objc_finish_function): New.
3946         (objc_non_volatilized_type): Removed.
3947         (objc_type_quals_match): Removed.
3948         * stub-objc.c (objc_finish_function): New.
3949         (objc_non_volatilized_type): Removed.
3950         (objc_type_quals_match): Removed.
3952 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
3954         * c-common.h (parse_optimize_options): Declare.
3955         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3956         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3958 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
3960         * c-opts.c (check_deps_environment_vars): Use getenv instead of
3961         GET_ENVIRONMENT.
3962         * c-pch.c (O_BINARY): Don't define here.
3963         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3965 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
3967         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3968         targetm.except_unwind_info.
3970 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3972         * c-opts.c (c_common_handle_option): Pass location to
3973         set_struct_debug_option.
3975 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3977         * c-common.c (visibility_options): Move from ../opts.c.
3978         * c-common.h (struct visibility_flags, visibility_options):
3979         Declare here.
3980         * c-opts.c (finish_options): Rename to c_finish_options.
3981         (c_common_init): Update call to finish_options.
3983 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
3985         PR objc/34033
3986         * c-lex.c (lex_string): Check that each string in an Objective-C
3987         string concat sequence starts with either one or zero '@', and
3988         that there are no spurious '@' signs at the end.
3990 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
3992         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3993         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3994         HANDLE_PRAGMA_VISIBILITY.
3995         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3996         HANDLE_PRAGMA_VISIBILITY): Don't define.
3997         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3999 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
4001         PR c++/16189
4002         PR c++/36888
4003         PR c++/45331
4004         * c-common.h (keyword_begins_type_specifier): Declare.
4005         (keyword_is_storage_class_specifier): Declare.
4006         (keyword_is_type_qualifier): Declare.
4007         * c-common.c (keyword_begins_type_specifier): New function.
4008         (keyword_is_storage_class_specifier): New function.
4009         (keyword_is_type_qualifier): Declare.
4011 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4013         PR c/46547
4014         * c-common.c (in_late_binary_op): Define.
4015         (c_common_truthvalue_conversion): Check in_late_binary_op before
4016         calling c_save_expr.
4017         * c-common.h (in_late_binary_op): Declare.
4019 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4021         * c-opts.c (c_common_handle_option): Update calls to
4022         set_struct_debug_option.
4024 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4026         * c-common.h (objc_declare_protocols): Added additional argument.
4027         * stub-objc.c (objc_declare_protocol): Same change.
4029 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
4031         PR c/33193
4032         * c-common.h (build_real_imag_expr): Declare.
4033         * c-semantics.c (build_real_imag_expr): Define.
4035 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
4037         * c-opts.c (c_common_parse_file): Take no arguments.
4038         * c-common.h (c_common_parse_file): Update prototype.
4040 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
4042         PR c++/46401
4043         * c-common.c (warning_candidate_p): Don't track non-const calls
4044         or STRING_CSTs.
4046 2010-11-15  Ian Lance Taylor  <iant@google.com>
4048         * c-lex.c (init_c_lex): Set macro debug callbacks if
4049         flag_dump_go_spec is set.
4051 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4053         * c-common.h (objc_build_incr_expr_for_property_ref): New.
4054         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4056 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
4058         PR preprocessor/45038
4059         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4060         dialects.
4062 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4064         * c-common.h (c_family_lang_mask): Declare.
4065         * c-opts.c (c_family_lang_mask): Make extern.
4066         * c-pragma.c (handle_pragma_diagnostic): Use
4067         control_warning_option.
4069 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4071         * c-common.c (parse_optimize_options): Update call to
4072         decode_options.
4073         * c-common.h (c_common_handle_option): Update prototype.
4074         * c-opts.c (c_common_handle_option): Take location_t parameter and
4075         pass it to other functions.
4077 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4079         * c-opts.c (warning_as_error_callback): Remove.
4080         (c_common_initialize_diagnostics): Don't call
4081         register_warning_as_error_callback.
4082         (c_common_handle_option): Handle -Werror=normalized= here.
4084 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4086         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4087         in diagnostic.
4088         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4089         letter.
4090         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4091         Remove trailing '.' from diagnostics.
4092         * c.opt (Wwrite-strings_: Avoid '`' in help text.
4094 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4096         * c-common.c (parse_optimize_options): Pass global_dc to
4097         decode_options.
4098         * c-opts.c (c_common_handle_option): Pass &global_options to
4099         set_Wstrict_aliasing.
4100         * c.opt (v): Don't mark Common or document here.
4102 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4104         PR target/44981
4105         * c-format.c (format_type): New type gcc_objc_string_format_type.
4106         (valid_stringptr_type_p): New.
4107         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4108         (check_format_string): Pass expected type, use
4109         valid_stringptr_type_p (), check that the format string types are
4110         consistent with the format specification.
4111         (decode_format_attr): Warn if NSString is used outside objective-c.
4112         (format_types_orig): Add NSString.
4113         (format_name): New.
4114         (format_flags): New.
4115         (check_format_arg): Handle format strings requiring an external parser.
4116         first_target_format_type: New variable.
4117         (handle_format_attribute): Set up first_target_format_type, pass the
4118         expected format arg string type to check_format_string().
4119         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
4120         * stub-objc.c (objc_string_ref_type_p): New.
4121         (objc_check_format_arg): New.
4123 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4125         Fixed using the Objective-C 2.0 dot-syntax with class names.
4126         * c-common.h (objc_build_class_component_ref): New.
4127         * stub-objc.c (objc_build_class_component_ref): New.
4129 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4131         * c.opt (Wproperty-assign-default): New option.
4133 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4135         Implemented -fobjc-std=objc1 flag.
4136         * c.opt (fobjc-std=objc1): New option.
4138 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
4140         Implemented format and noreturn attributes for Objective-C methods.
4141         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4142         attribute for Objective-C methods.
4144 2010-10-31  Jason Merrill  <jason@redhat.com>
4146         * c-common.c (conversion_warning, warn_for_collisions_1): Use
4147         EXPR_LOC_OR_HERE.
4149 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4151         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4152         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4153         (objc_add_property_declaration): Removed arguments for copies and
4154         ivar.
4155         (objc_build_getter_call): Renamed to
4156         objc_maybe_build_component_ref.
4157         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4158         (objc_is_property_ref): New.
4159         * c-common.c (c_common_reswords): Removed copies and ivar.
4160         * stub-objc.c (objc_add_property_declaration): Removed arguments
4161         for copies and ivar.
4162         (objc_build_getter_call): Renamed to
4163         objc_maybe_build_component_ref.
4164         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4165         (objc_is_property_ref): New.
4167 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
4168             Matthew Gingell  <gingell@adacore.com>
4170         * c-ada-spec.c (separate_class_package): New function.
4171         (pp_ada_tree_identifier): Prefix references to C++ classes with the
4172         name of their enclosing package.
4173         (print_ada_declaration): Use separate_class_package.
4175 2010-10-27  Jason Merrill  <jason@redhat.com>
4177         * c-common.c (c_common_reswords): Add __is_literal_type.
4178         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4180         * c-common.c (check_case_value): Remove special C++ code.
4182 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4184         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4185         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
4186         and RID_LAST_PATTR.
4187         (objc_add_property_declaration): Added additional arguments.
4188         (objc_property_attribute_kind): Removed.
4189         (objc_set_property_attr): Removed.
4190         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4191         copy and nonatomic.
4192         * stub-objc.c (objc_add_property_declaration): Added additional
4193         arguments.
4194         (objc_set_property_attr): Removed.
4196 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4198         * c-common.h (objc_add_property_variable): Renamed to
4199         objc_add_property_declaration.  Added location argument.
4200         * stub-objc.c (objc_add_property_variable): Same change.
4201         
4202 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
4204         * c-common.h (objc_maybe_printable_name): New.
4205         * stub-objc.c (objc_maybe_printable_name): New.
4207 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4208         Andrew Pinski <pinskia@gmail.com>
4210         * c-common.h (c_common_mark_addressable_vec): Declare.
4211         * c-common.c (c_common_mark_addressable_vec): New function.
4213 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4215         * c-common.h (objc_set_method_type): Removed.
4216         (objc_add_method_declaration): Added boolean argument.
4217         (objc_start_method_definition): Same change.
4218         (objc_build_method_signature): Same change.
4219         * stub-objc.c (objc_set_method_type): Removed.
4220         (objc_add_method_declaration): Added boolean argument.
4221         (objc_start_method_definition): Same change.
4222         (objc_build_method_signature): Same change.
4224 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4226         * c-common.h (finish_file): Removed.
4227         (objc_write_global_declarations): New.
4228         * c-opts.c (c_common_parse_file): Do not call finish_file.
4229         * stub-objc.c (objc_write_global_declarations): New.
4231 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4233         Implemented parsing @synthesize and @dynamic for
4234         Objective-C/Objective-C++.
4235         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4236         (objc_add_synthesize_declaration): New.
4237         (objc_add_dynamic_declaration): New.
4238         * c-common.c (c_common_reswords): Add synthesize and dynamic.
4239         * stub-objc.c (objc_add_synthesize_declaration): New.
4240         (objc_add_dynamic_declaration): New.
4242 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4244         PR target/46041
4245         * c-cppbuiltin.c (mode_has_fma): Move function here from
4246         builtins.c.  Don't use the fma optab, instead just use the
4247         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4248         using -save-temps.
4250 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4252         Merge from 'apple/trunk' branch on FSF servers.
4254         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
4256         Radar 4330422
4257         * c-common.h (objc_non_volatilized_type): New declaration
4258         * stub-objc.c (objc_non_volatilized_type): New stub.
4260 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4262         Merge from 'apple/trunk' branch on FSF servers.
4264         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4266         Radar 4133425
4267         * c-common.h (objc_diagnose_private_ivar): New decl.
4268         * stub-objc.c (objc_diagnose_private_ivar): New stub.
4270 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4272         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4273         * c-common.h (enum rid): Add RID_AT_PACKAGE.
4274         (objc_ivar_visibility_kind): New enum.
4275         (objc_set_visibility): Adjust prototype to use visibility enum.
4276         * stub-objc.c (objc_set_visibility): Adjust stub to use
4277         visibility enum.
4279 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4281         * c-cppbuiltin.c (builtin_define_float_constants): Emit
4282         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4283         has the appropriate fma builtins.
4284         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4286 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4288         merge from FSF apple 'trunk' branch.
4289         2006 Fariborz Jahanian <fjahanian@apple.com>
4291         Radars 4436866, 4505126, 4506903, 4517826
4292         * c-common.c (c_common_resword): Define @property and its attributes.
4293         * c-common.h: Define property attribute enum entries.
4294         (OBJC_IS_PATTR_KEYWORD): New.
4295         (objc_property_attribute_kind): New enum.
4296         Declare objc_set_property_attr (), objc_add_property_variable (),
4297         objc_build_getter_call () and objc_build_setter_call ().
4298         * stub-objc.c (objc_set_property_attr): New stub.
4299         (objc_add_property_variable): Likewise.
4300         (objc_build_getter_call): Likewise.
4301         (objc_build_setter_call) Likewise.
4303 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
4305         merge from FSF apple 'trunk' branch.
4306         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4308         Radar 3803157 (method attributes)
4309         * c-common.c (handle_deprecated_attribute): Recognize
4310         objc methods as valid declarations.
4311         * c-common.h: Declare objc_method_decl ().
4312         * stub-objc.c (objc_method_decl): New stub.
4314 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4316         * c-common.c (parse_optimize_options): Call
4317         decode_cmdline_options_to_array_default_mask before
4318         decode_options.  Update arguments to decode_options.
4319         * c-common.h (c_common_init_options_struct): Declare.
4320         * c-opts.c (c_common_init_options_struct): New.  Split out from
4321         c_common_init_options.
4323 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4325         Implemented fast enumeration for Objective-C.
4326         * c-common.h (objc_finish_foreach_loop): New.
4327         * stub-objc.c (objc_finish_foreach_loop): New.
4329 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4331         * c-common.h (struct diagnostic_context): Don't declare here.
4332         (c_common_initialize_diagnostics): Declare using
4333         diagnostic_context typedef.
4334         * c-opts.c (c_common_handle_option): Pass global_dc to
4335         handle_generated_option.
4337 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4339         * c-opts.c (c_common_handle_option): Pass &global_options_set to
4340         handle_generated_option.
4342 2010-10-03  Ian Lance Taylor  <iant@google.com>
4344         * c.opt (-fplan9-extensions): New option.
4346 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4348         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4349         Remove.
4350         (c_cpp_builtins): Call functions from cppbuiltin.c instead
4351         of duplicating code.
4353 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
4355         * c-common.c: Add two new entries for @optional
4356         and @required keywords.
4358         merge from FSF 'apple/trunk' branch.
4359         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
4361         Radar 4386773
4362         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4363         objective-c keywords.
4364         (objc_set_method_opt): New declaration.
4365         * stub-objc.c (objc_set_method_opt): New stub.
4367 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4369         * c-common.c (handle_optimize_attribute): Pass &global_options to
4370         cl_optimization_save and cl_optimization_restore.
4371         * c-opts.c (c_common_handle_option): Pass &global_options to
4372         handle_generated_option.
4373         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4374         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4375         &global_options to cl_optimization_restore.
4377 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4379         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4380         Objective-C/Objective-C++ keywords.
4382 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4384         Merge from 'apple/trunk' branch on FSF servers.
4386         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
4388         Radar 4281748
4389         * c-common.h (objc_check_global_decl): New declaration.
4390         * stub-objc.c (objc_check_global_decl): New stub.
4392 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4394         * c.opt: Don't use VarExists.
4396 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4398         * c-common.c (c_cpp_error): Update names of diagnostic_context
4399         members.
4400         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4401         cl_optimization members.
4402         * c-opts.c (warning_as_error_callback, c_common_handle_option,
4403         sanitize_cpp_opts, finish_options): Update names of cpp_options
4404         members.
4406 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4408         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
4409         (objc_is_reserved_word): Removed.
4410         * c-common.c: Updated comments.
4411         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4412         objc_is_reserved_word.
4413         * stub-objc.c (objc_is_reserved_word): Removed.
4415 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4417         * c-common.h (objc_add_method_declaration): Adjust prototype to
4418         include attributes.
4419         (objc_start_method_definition): Likewise.
4420         (objc_build_keyword_decl): Likewise.
4421         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4422         (objc_start_method_definition): Likewise.
4423         (objc_build_keyword_decl): Likewise.
4425 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4427         * c-common.h (objc_start_class_interface): Adjust prototype.
4428         (objc_start_category_interface): Likewise.
4429         (objc_start_protocol): Likewise.
4430         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4431         (objc_start_class_interface): Likewise.
4432         (objc_start_category_interface): Likewise.
4434 2010-09-27  Ian Lance Taylor  <iant@google.com>
4436         * c-common.c (c_common_attribute_table): Add no_split_stack.
4437         (handle_no_split_stack_attribute): New static function.
4439 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4441         Merge from 'apple/trunk' branch on FSF servers.
4443         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
4445         Radar 4229905
4446         * c-common.h (objc_have_common_type): New declaration.
4447         * stub-objc.c (objc_have_common_type): New stub.
4449         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
4451         Radar 4154928
4452         * c-common.h (objc_common_type): New prototype.
4453         * stub-objc.c (objc_common_type): New stub.
4455 2010-09-24  Jan Hubicka  <jh@suse.cz>
4457         * c-common.c (handle_leaf_attribute): New function.
4458         (struct attribute_spec c_common_att): Add leaf.
4460 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4462         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4463         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4464         -dump, -dump=, -imacros, -imacros=, -include, -include=,
4465         -include-barrier, -include-directory, -include-directory=,
4466         -include-directory-after, -include-directory-after=,
4467         -include-prefix, -include-prefix=, -include-with-prefix,
4468         -include-with-prefix=, -include-with-prefix-after,
4469         -include-with-prefix-after=, -include-with-prefix-before,
4470         -include-with-prefix-before=, -no-integrated-cpp,
4471         -no-line-commands, -no-standard-includes, -no-warnings, -output,
4472         -output=, -pedantic, -pedantic-errors, -preprocess,
4473         -print-missing-file-dependencies, -trace-includes, -traditional,
4474         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4475         -user-dependencies, -verbose, -write-dependencies,
4476         -write-user-dependencies, no-integrated-cpp, traditional): New.
4478 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4480         PR objc/23710
4481         * c-common.h (objc_start_method_definition): Return bool instead
4482         of void.
4483         * stub-objc.c (objc_start_method_definition): Return bool instead
4484         of void.
4486 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4488         PR objc/25965
4489         * c-common.h (objc_get_interface_ivars): New declaration.
4490         * stub-objc.c (objc_get_interface_ivars): New stub.
4492 2010-09-15  Ian Lance Taylor  <iant@google.com>
4494         * c-common.c (parse_optimize_options): Do not capitalize warning
4495         messages.  Remove period at end of warning message.
4497 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4499         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4500         (handle_alias_attribute): ... here.
4501         (handle_ifunc_attribute): New.
4503 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4505         * c-common.h (do_warn_double_promotion): Declare.
4506         * c-common.c (do_warn_double_promotion): Define.
4508 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4510         * c.opt (Wdouble-promotion): New.
4512 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4514         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4515         fvtable-thunks, fxref): Mark no longer supported in help text.
4517 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4519         * c.opt (Wimport, fall-virtual, falt-external-templates,
4520         fdefault-inline, fenum-int-equiv, fexternal-templates,
4521         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4522         fname-mangling-version-, fnew-abi, fnonnull-objects,
4523         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4524         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4525         applicable.
4526         (fhandle-exceptions): Mark with Alias and Warn.
4527         * c-opts.c (c_common_handle_option): Don't handle options marked
4528         as ignored.
4530 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4532         * c.opt (Wcomments, Werror-implicit-function-declaration,
4533         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4534         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4535         aliases.
4536         * c-common.c (option_codes): Use OPT_Wcomment instead of
4537         OPT_Wcomments.
4538         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4539         Don't handle options marked as aliases.
4541 2010-08-25  Richard Guenther  <rguenther@suse.de>
4543         * c-common.c (c_common_get_alias_set): Remove special
4544         handling for pointers.
4546 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4548         * c-common.c: Use FOR_EACH_VEC_ELT.
4549         * c-gimplify.c: Likewise.
4550         * c-pragma.c: Likewise.
4552 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4554         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4555         RejectDriver.
4556         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4557         RejectDriver.
4558         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4559         instead of OPT_MDX and OPT_MMDX.
4561 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4563         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4565 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4567         * c.opt (MD, MMD): Change to MDX and MMDX.
4568         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4570 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4572         * c-opts.c (c_common_handle_option): Call handle_generated_option
4573         instead of handle_option.
4575 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4577         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4578         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4580 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4582         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4583         (pending_redefine_extname): Change type to a VEC.
4584         (add_to_renaming_pragma_list): Update for new type of
4585         pending_redefine_extname.
4586         (maybe_apply_renaming_pragma): Likewise.
4588 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4590         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4591         visited.
4592         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4593         decide whether a type has already been declared/seen.
4594         Do not go to the original type.
4595         (dump_nested_types): New parameter forward.
4596         Generate forward declaration if needed and mark type as visited.
4597         (print_ada_declaration): Call dump_nested_types if not already done.
4598         Mark types as visited.
4600 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4602         * c.opt (-print-pch-checksum): Remove option.
4603         * c-opts.c (c_common_handle_option): Don't handle
4604         OPT_print_pch_checksum.
4606 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4608         * c-common.h (c_common_handle_option): Update prototype and return
4609         value type.
4610         * c-opts.c (c_common_handle_option): Update prototype and return
4611         value type.  Update calls to handle_option and
4612         enable_warning_as_error.
4614 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4616         PR c/45079
4617         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4619 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4621         * c-common.h (c_common_missing_argument): Remove.
4622         * c-opts.c (c_common_missing_argument): Remove.
4623         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4624         idirafter, imacros, include, isysroot, isystem, iquote): Add
4625         MissingArgError.
4626         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4628 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4630         * c-common.h (c_common_option_lang_mask,
4631         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4632         New.
4633         (c_common_init_options): Update prototype.
4634         * c-opts.c (c_common_option_lang_mask): New.
4635         (c_common_initialize_diagnostics): Split out of
4636         c_common_init_options.
4637         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4638         New.
4639         (c_common_init_options): Update prototype.  Use decoded options in
4640         search for -lang-asm.
4642 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4644         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4645         * c-format.c: Likewise.
4647 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4649         * c-common.h: Include diagnostic-core.h. Error if already
4650         included.
4651         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4653 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4655         * c-common.c (IN_GCC_FRONTEND): Do not undef.
4656         Do not include expr.h
4657         (vector_mode_valid_p): Move here.
4659 2010-06-21  DJ Delorie  <dj@redhat.com>
4661         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4662         allow these pragmas anywhere.
4664 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4666         PR bootstrap/44509
4667         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4668         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4669         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4670         ggc_strdup instead of xstrdup.
4672 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4674         * c-cppbuiltin.c: Include cpp-id-data.h.
4675         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4676         (lazy_hex_fp_value): New function.
4677         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4679 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4681         * c-gimplify.c: Do not include tree-flow.h
4683 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4685         PR other/44034
4686         * c-common.c: Rename targetm member:
4687         targetm.enum_va_list -> targetm.enum_va_list_p
4689 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4691         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4693 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4695         * c-cppbuiltin.c: Do not include except.h.
4697 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4699         * c-common.c (warn_for_omitted_condop): New.
4700         * c-common.h (warn_for_omitted_condop): Add prototype.
4702 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4704         * c.opt (lang-objc): Remove.
4705         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4707 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4709         * c-opts.c: Include "tm_p.h".
4711 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4713         * c-common.c (parse_optimize_options): Update call to
4714         decode_options.
4716 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4718         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4719         new type of types_used_by_cur_var_decl.
4721 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
4723         PR bootstrap/44512
4724         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4725         for C++ standard compliance.
4727 2010-06-16  Jason Merrill  <jason@redhat.com>
4729         * c.opt: Add -Wnoexcept.
4731 2010-06-16  Richard Guenther  <rguenther@suse.de>
4733         PR c/44555
4734         * c-common.c (c_common_truthvalue_conversion): Remove
4735         premature and wrong optimization concering ADDR_EXPRs.
4737 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
4739         * c-ada-spec.c (dump_sloc): Remove column info.
4740         (is_simple_enum): New function.
4741         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4742         enum types when relevant.
4744 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4746         * c-common.c (conversion_warning): Warn at expression
4747         location.
4749 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4751         * c-opts.c (c_common_handle_option): Don't handle
4752         OPT_fshow_column.
4754 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4756         * c-pragma.c (push_alignment): Use typed GC allocation.
4757         (handle_pragma_push_options): Likewise.
4759         * c-common.c (parse_optimize_options): Likewise.
4761         * c-common.h (struct sorted_fields_type): Add variable_size GTY
4762         option.
4764 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4766         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4767         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4768         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4769         flag_signed_bitfields, warn_strict_null_sentinel,
4770         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4771         flag_gen_declaration, flag_no_gnu_keywords,
4772         flag_implement_inlines, flag_implicit_templates,
4773         flag_implicit_inline_templates, flag_optional_diags,
4774         flag_elide_constructors, flag_default_inline, flag_rtti,
4775         flag_conserve_space, flag_access_control, flag_check_new,
4776         flag_new_for_scope, flag_weak, flag_working_directory,
4777         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4778         flag_enforce_eh_specs, flag_threadsafe_statics,
4779         flag_pretty_templates): Remove.
4780         * c-common.h (flag_preprocess_only, flag_nil_receivers,
4781         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4782         flag_replace_objc_classes, flag_undef, flag_no_builtin,
4783         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4784         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4785         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4786         flag_no_gnu_keywords, flag_implement_inlines,
4787         flag_implicit_templates, flag_implicit_inline_templates,
4788         flag_optional_diags, flag_elide_constructors, flag_default_inline,
4789         flag_rtti, flag_conserve_space, flag_access_control,
4790         flag_check_new, flag_new_for_scope, flag_weak,
4791         flag_working_directory, flag_use_cxa_atexit,
4792         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4793         flag_threadsafe_statics, flag_pretty_templates,
4794         warn_strict_null_sentinel): Remove.
4795         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4796         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4797         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4798         fimplicit-inline-templates, fimplicit-templates,
4799         flax-vector-conversions, fms-extensions, fnil-receivers,
4800         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4801         frtti, fshort-double, fshort-enums, fshort-wchar,
4802         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4803         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4804         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4805         gen-decls, undef): Use Var.
4806         (fdefault-inline, foptional-diags): Document as doing nothing.
4807         * c-opts.c (c_common_handle_option): Remove cases for options now
4808         using Var.  Mark ignored options as such.
4810 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4812         * c-common.c: Moved to here from parent directory.
4813         * c-common.def: Likewise.
4814         * c-common.h: Likewise.
4815         * c-cppbuiltin.c: Likewise.
4816         * c-dump.c: Likewise.
4817         * c-format.c: Likewise.
4818         * c-format.h : Likewise.
4819         * c-gimplify.c: Likewise.
4820         * c-lex.c: Likewise.
4821         * c-omp.c: Likewise.
4822         * c.opt: Likewise.
4823         * c-opts.c: Likewise.
4824         * c-pch.c: Likewise.
4825         * c-ppoutput.c: Likewise.
4826         * c-pragma.c: Likewise.
4827         * c-pragma.h: Likewise.
4828         * c-pretty-print.c: Likewise.
4829         * c-pretty-print.h: Likewise.
4830         * c-semantics.c: Likewise.
4831         * stub-objc.c: Likewise.
4833         * c-common.c: Include gt-c-family-c-common.h.
4834         * c-pragma.c: Include gt-c-family-c-pragma.h.
4836 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4838 Copying and distribution of this file, with or without modification,
4839 are permitted in any medium without royalty provided the copyright
4840 notice and this notice are preserved.