2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
[official-gcc.git] / gcc / c-family / ChangeLog
blobcf43d39c0bda9dc1981a7c09741b4c29c52b13c0
1 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
3         * c-common.c: Don't include target-def.h.
5 2015-06-23  Marek Polacek  <polacek@redhat.com>
7         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
8         when comparing INTEGER_CSTs.
10 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
12         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
13         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
14         (dump_ada_template): Skip partially specialized types.
16 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
18         * c-common.c (scalar_to_vector): Use std::swap instead of manually
19         swapping.
21 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
24         * c-ada-spec.c: Likewise.
25         * c-cilkplus.c: Likewise.
26         * c-common.c: Likewise.
27         * c-common.h: Likewise.
28         * c-cppbuiltin.c: Likewise.
29         * c-dump.c: Likewise.
30         * c-format.c: Likewise.
31         * c-gimplify.c: Likewise.
32         * c-indentation.c: Likewise.
33         * c-lex.c: Likewise.
34         * c-omp.c: Likewise.
35         * c-opts.c: Likewise.
36         * c-pch.c: Likewise.
37         * c-ppoutput.c: Likewise.
38         * c-pragma.c: Likewise.
39         * c-pretty-print.c: Likewise.
40         * c-semantics.c: Likewise.
41         * c-ubsan.c: Likewise.
42         * cilk.c: Likewise.
43         * stub-objc.c: Likewise.
45 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
47         PR c++/65168
48         * c-common.c (c_common_truthvalue_conversion): Warn when
49         converting an address of a reference to a truth value.
51 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
53         * array-notation-common.c : Adjust include files.
54         * c-ada-spec.c : Likewise.
55         * c-cilkplus.c : Likewise.
56         * c-common.c : Likewise.
57         * c-common.h : Likewise.
58         * c-cppbuiltin.c : Likewise.
59         * c-dump.c : Likewise.
60         * c-format.c : Likewise.
61         * c-gimplify.c : Likewise.
62         * c-indentation.c : Likewise.
63         * c-lex.c : Likewise.
64         * c-omp.c : Likewise.
65         * c-opts.c : Likewise.
66         * c-pch.c : Likewise.
67         * c-ppoutput.c : Likewise.
68         * c-pragma.c : Likewise.
69         * c-pretty-print.c : Likewise.
70         * c-semantics.c : Likewise.
71         * c-ubsan.c : Likewise.
72         * cilk.c : Likewise.
73         * stub-objc.c : Likewise.
75 2015-06-08  Marek Polacek  <polacek@redhat.com>
77         PR c/66415
78         * c-format.c (location_from_offset): Return LOC if LINE is null.
80 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
82         * c-common.h (c_parse_final_cleanups): New prototype.
83         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
85 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
87         * array-notation-common.c: Adjust includes for restructured coretypes.h.
88         * c-ada-spec.c: Likewise.
89         * c-cilkplus.c: Likewise.
90         * c-common.c: Likewise.
91         * c-common.h: Likewise.
92         * c-cppbuiltin.c: Likewise.
93         * c-dump.c: Likewise.
94         * c-format.c: Likewise.
95         * c-gimplify.c: Likewise.
96         * c-indentation.c: Likewise.
97         * c-lex.c: Likewise.
98         * c-omp.c: Likewise.
99         * c-opts.c: Likewise.
100         * c-pch.c: Likewise.
101         * c-ppoutput.c: Likewise.
102         * c-pragma.c: Likewise.
103         * c-pretty-print.c: Likewise.
104         * c-semantics.c: Likewise.
105         * c-ubsan.c: Likewise.
106         * cilk.c: Likewise.
107         * stub-objc.c: Likewise.
109 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
111         PR c/66220:
112         * c-indentation.c (should_warn_for_misleading_indentation): Use
113         expand_location rather than expand_location_to_spelling_point.
114         Don't warn if the guarding statement is more indented than the
115         next/body stmts.
117 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
119         * c-indentation.c (warn_for_misleading_indentation): Bail out
120         immediately if -Wmisleading-indentation isn't enabled.
122 2015-06-01  Martin Liska  <mliska@suse.cz>
124         * c-format.c (check_format_arg):Use new type-based pool allocator.
125         (check_format_info_main) Likewise.
127 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
129         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
130         (has_nontrivial_methods): Likewise.
132 2015-05-25  Marek Polacek  <polacek@redhat.com>
134         * c-ubsan.c (ubsan_instrument_shift): Use type0.
136 2015-05-22  Marek Polacek  <polacek@redhat.com>
138         PR c/47043
139         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
141 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
143         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
144         STACK_GROWS_DOWNWARD.
146 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
148         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
149         STACK_GROWS_DOWNWARD rather than if it is defined.
151 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
152         
153         PR c/52952
154         * c-format.c (location_column_from_byte_offset): New.
155         (location_from_offset): New.
156         (struct format_wanted_type): Add offset_loc field.
157         (check_format_info): Move handling of location for extra arguments
158         closer to the point of warning.
159         (check_format_info_main): Pass the result of location_from_offset
160         to warning_at.
161         (format_type_warning): Pass the result of location_from_offset
162         to warning_at.
164 2015-05-20  Marek Polacek  <polacek@redhat.com>
166         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
168 2015-05-20  Marek Polacek  <polacek@redhat.com>
170         * c-ada-spec.c (dump_sloc): Use DECL_P.
172 2015-05-20  Marek Polacek  <polacek@redhat.com>
174         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
175         * c-common.c: Likewise.
177 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
179         * c-common.h (fe_file_change): Strengthen param from
180         const line_map * to const line_map_ordinary *.
181         (pp_file_change): Likewise.
182         * c-lex.c (fe_file_change): Likewise.
183         (cb_define): Use linemap_check_ordinary when invoking
184         SOURCE_LINE.
185         (cb_undef): Likewise.
186         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
187         invoking cb_file_change.
188         (c_finish_options): Likewise.
189         (push_command_line_include): Likewise.
190         (cb_file_change): Strengthen param "new_map" from
191         const line_map * to const line_map_ordinary *.
192         * c-ppoutput.c (cb_define): Likewise for local "map".
193         (pp_file_change): Likewise for param "map" and local "from".
195 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
197         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
199 2015-05-18  Tom de Vries  <tom@codesourcery.com>
201         * c-common.c (build_va_arg_1): New function.
202         (build_va_arg): Add address operator to va_list operand if necessary.
204 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
206         PR c/48956
207         * c-common.c (int_safely_convertible_to_real_p): Define.
208         (unsafe_conversion_p): Check conversions involving complex types.
209         (conversion_warning): Add new warning message for conversions which
210         discard imaginary component.
211         * c-common.h: (enum conversion_safety): Add new enumerator for such
212         conversions.
214 2015-05-14  Marek Polacek  <polacek@redhat.com>
216         PR c/66066
217         PR c/66127
218         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
219         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
220         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
221         use it.  If FOR_INT_CONST, require that all evaluated operands be
222         INTEGER_CSTs.
224 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
226         * c-common.h (warn_for_misleading_indentation): New prototype.
227         * c-indentation.c: New file.
228         * c.opt (Wmisleading-indentation): New option.
230 2015-05-12  Tom de Vries  <tom@codesourcery.com>
232         PR tree-optimization/66010
233         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
235 2015-05-09  Jason Merrill  <jason@redhat.com>
237         * c-opts.c (c_common_post_options): Also clear
238         cpp_opts->cpp_warn_cxx11_compat.
240         * c-common.h (enum cxx_dialect): Add cxx_unset.
241         * c-common.c (cxx_dialect): Initialize to cxx_unset.
242         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
244         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
245         (std=gnu++0x): Mark as Undocumented.
246         (std=gnu++1y): Add deprecated message.
248 2015-05-08  Jason Merrill  <jason@redhat.com>
250         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
251         * c-opts.c: Adjust.
253         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
255 2015-05-08  Marek Polacek  <polacek@redhat.com>
257         PR c/64918
258         * c.opt (Woverride-init-side-effects): New option.
260 2015-05-07  Marek Polacek  <polacek@redhat.com>
262         PR c/65179
263         * c-common.c (c_fully_fold_internal): Warn when left shifting a
264         negative value.
265         * c.opt (Wshift-negative-value): New option.
266         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
267         when -Wextra and C99/C++11 mode.
269 2015-05-07  Marek Polacek  <polacek@redhat.com>
270             Martin Uecker  <uecker@eecs.berkeley.edu>
272         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
273         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
275 2015-05-05  Jason Merrill  <jason@redhat.com>
277         * c.opt (Wterminate): New.
279 2015-04-30  Marek Polacek  <polacek@redhat.com>
281         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
282         require that the non-constant be of a boolean type.
284 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
286         * c-common.c (handle_section_attribute): Refactor to reduce
287         nesting and distinguish between error cases.
289 2015-04-29  Marek Polacek  <polacek@redhat.com>
291         PR c/64610
292         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
293         with 0/1.
295 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
297         * c-common.h (omp_clause_mask): Unconditionally define as a class.
298         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
299         HOST_BITS_PER_WIDE_INT.
301 2015-04-28  Tom de Vries  <tom@codesourcery.com>
303         PR tree-optimization/65887
304         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
306 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
307             Pierre-Marie de Rodat  <derodat@adacore.com>
309         * c-ada-spec.c (in_function): Delete.
310         (dump_generic_ada_node): Do not change in_function and remove the
311         redundant code dealing with it.
312         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
313         (print_ada_methods): Output the static member functions in a nested
314         package after the regular methods as well as associated renamings.
316 2015-04-24  Marek Polacek  <polacek@redhat.com>
318         PR c/65830
319         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
320         and OPT_Wshift_count_overflow.
322         PR c/63357
323         * c-common.c (warn_logical_operator): Warn if the operands have the
324         same expressions.
326 2015-04-24  Marek Polacek  <polacek@redhat.com>
328         PR c/61534
329         * c-common.c (warn_logical_operator): Bail if either operand comes
330         from a macro expansion.
332 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
334         PR target/55143
335         * c-common.c (c_default_pointer_mode): Add definition.
336         * c-common.h (c_default_pointer_mode): Add declaration.
338 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
340         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
341         on record_builtin_type argument.
343 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
345         PR c/65120
346         * c-common.c (warn_logical_not_parentheses): Don't warn for
347         !x == 0 or !x != 0.
349 2015-03-07  Marek Polacek  <polacek@redhat.com>
351         PR sanitizer/65280
352         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
353         before trying to figure out whether we have a flexible array member.
355 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
356             Jonathan Wakely  <jwakely.gcc@gmail.com>
358         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
360 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
362         PR ada/65319
363         * c-ada-spec.c (print_destructor): Remove obsolete code.
365 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
367         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
368         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
369         DECL_TEMPLATE_RESULT emulations.
370         (dump_ada_template)): Add guard for TYPE_METHODS.
372 2015-02-27  Marek Polacek  <polacek@redhat.com>
374         PR c/65040
375         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
377 2015-02-27  Kai Tietz  <ktietz@redhat.com>
379         PR c/35330
380         * c-pragma.c (handle_pragma_weak): Do not try to create
381         weak/alias of declarations not being function, or variable
382         declarations.
384 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
386         PR libgomp/64625
387         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
388         Remove macros.
389         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
391 2015-02-16  Marek Polacek  <polacek@redhat.com>
393         PR c/65066
394         * c-format.c (check_format_types): Handle null param.
396 2015-02-13  Marek Polacek  <polacek@redhat.com>
398         PR c/65040
399         * c-format.c (check_format_types): Don't warn about different
400         signedness if the original value is in the range of WANTED_TYPE.
402 2015-02-12  Jason Merrill  <jason@redhat.com>
404         PR c++/64956
405         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
406         to the current highest version.
407         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
409 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
411         PR c/64824
412         PR c/64868
413         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
414         instead of RDIV_EXPR.  Use build_binary_op instead of
415         build2_loc.
417 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
419         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
420         to pass input_location as first argument.
422 2015-01-23  Tom de Vries  <tom@codesourcery.com>
424         PR libgomp/64672
425         * c.opt (fopenacc): Mark as LTO option.
427 2015-01-23  Tom de Vries  <tom@codesourcery.com>
429         PR libgomp/64707
430         * c.opt (fopenmp): Mark as LTO option.
432 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
434         PR c/63307
435         * cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
436         (compare_decls): Fix up formatting.
438 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
440         PR c/63307
441         * cilk.c: Include vec.h.
442         (struct cilk_decls): New structure.
443         (wrapper_parm_cb): Split this function to...
444         (fill_decls_vec): ...this...
445         (create_parm_list): ...and this.
446         (compare_decls): New function.
447         (for_local_cb): Remove.
448         (wrapper_local_cb): Ditto.
449         (build_wrapper_type): For now first traverse and fill vector of
450         declarations then sort it and then deal with sorted vector.
451         (cilk_outline): Ditto.
452         (declare_one_free_variable): Ditto.
454 2015-01-21  Jason Merrill  <jason@redhat.com>
456         PR c++/64629
457         * c-format.c (check_format_arg): Call decl_constant_value.
459 2015-01-19  Martin Liska  <mliska@suse.cz>
461         * c-common.c (handle_noicf_attribute): New function.
463 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
464             Bernd Schmidt  <bernds@codesourcery.com>
465             James Norris  <jnorris@codesourcery.com>
466             Cesar Philippidis  <cesar@codesourcery.com>
467             Ilmir Usmanov  <i.usmanov@samsung.com>
468             Jakub Jelinek  <jakub@redhat.com>
470         * c.opt (fopenacc): New option.
471         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
472         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
473         New macros.
474         * c-common.h (c_finish_oacc_wait): New prototype.
475         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
476         (c_finish_oacc_wait): New function.
477         * c-pragma.c (oacc_pragmas): New variable.
478         (c_pp_lookup_pragma, init_pragma): Handle it.
479         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
480         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
481         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
482         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
483         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
484         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
485         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
486         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
487         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
488         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
489         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
490         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
491         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
492         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
493         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
494         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
495         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
496         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
497         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
498         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
499         PRAGMA_OACC_CLAUSE_WORKER.
501 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
503         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
504         for the new option fstack-protector_explicit.
505         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
506         (handle_stack_protect_attribute): New function.
508 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
510         * c.opt: New option -Warray-bounds=.
512 2015-01-09  Michael Collison  <michael.collison@linaro.org>
514         * array-notation-common.c: Include hash-set.h, machmode.h,
515         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
516         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
517         * c-ada-spec.c: Ditto.
518         * c-cilkplus.c: Ditto.
519         * c-common.c: Include input.h due to flattening of tree.h.
520         Define macro GCC_C_COMMON_C.
521         * c-common.h: Flatten tree.h header files into c-common.h.
522         Remove include of tree-core.h.
523         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
524         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
525         fold-const.h, wide-int.h, and inchash.h due to
526         flattening of tree.h.
527         * c-dump.c: Ditto.
528         * c-format.c: Flatten tree.h header files into c-common.h.
529         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
530         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
531         fold-const.h, wide-int.h, and inchash.h due to
532         flattening of tree.h.
533         * c-dump.c: Include hash-set.h, machmode.h,
534         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
535         fold-const.h, wide-int.h, and inchash.h due to
536         flattening of tree.h.
537         * c-format.c: Include hash-set.h, machmode.h,
538         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
539         fold-const.h, wide-int.h, inchash.h and real.h due to
540         flattening of tree.h.
541         * c-gimplify.c: Include hash-set.h, machmode.h,
542         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
543         fold-const.h, wide-int.h, and inchash.h due to
544         flattening of tree.h.
545         * cilk.c: Ditto.
546         * c-lex.c: Ditto.
547         * c-omp.c: Ditto.
548         * c-opts.c: Ditto.
549         * c-pch.c: Ditto.
550         * c-ppoutput.c: Ditto.
551         * c-pragma.c: Ditto.
552         * c-pretty-print.c: Ditto.
553         * c-semantics.c: Ditto.
554         * c-ubsan.c: Ditto.
555         * stub-objc.c: Ditto.
557 2015-01-08  Jason Merrill  <jason@redhat.com>
559         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
560         do_ubsan_in_current_function.
561         (ubsan_maybe_instrument_reference_or_call): Likewise.
562         * c-ubsan.h: Declare it.
564 2015-01-08  Mike Stump  <mikestump@comcast.net>
566         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
568 2015-01-07  Marek Polacek  <polacek@redhat.com>
570         PR c/64440
571         * c-common.c (c_fully_fold_internal): Warn for division and modulo
572         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
574 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
576         PR c++/31397
577         * c.opt (Wsuggest-override): New option.
579 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
581         Update copyright years.
583 2015-01-05  Marek Polacek  <polacek@redhat.com>
585         PR c/64423
586         * c-common.c (warn_array_subscript_with_type_char): Add location_t
587         parameter.  Use it.
588         * c-common.h (warn_array_subscript_with_type_char): Update
589         declaration.
591 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
593         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
594         Control macro with flag_sized_deallocation.
596 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
598         * c.opt (Wdiscarded-array-qualifiers): New option.
600 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
602         PR preprocessor/63831
603         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
604         and __has_cpp_attribute here.
605         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
606         c_common_has_attribute.
607         * c-common.h (c_common_has_attribute): New prototype.
608         * c-lex.c (init_c_lex): Set cb->has_attribute to
609         c_common_has_attribute instead of cb_has_attribute.
610         (get_token_no_padding): New function.
611         (cb_has_attribute): Renamed to ...
612         (c_common_has_attribute): ... this.  No longer static.  Use
613         get_token_no_padding, require ()s, don't build TREE_LIST
614         unnecessarily, fix up formatting, adjust diagnostics, call
615         init_attributes.
617 2014-12-15  Jason Merrill  <jason@redhat.com>
619         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
620         (-Wsized-deallocation): New.
621         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
622         to on in C++14 and up.
624 2014-12-11  Jason Merrill  <jason@redhat.com>
626         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
628         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
629         we aren't complaining about VLAs.
631 2014-12-06  Marek Polacek  <polacek@redhat.com>
633         PR tree-optimization/64183
634         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
635         shift-expression if it is integer_type_node.  Use types_compatible_p.
637 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
639         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
640         last argument from create_tmp_var_raw and create_tmp_var calls.
641         * cilk.c (gimplify_cilk_spawn): Likewise.
642         * c-omp.c (c_finish_omp_atomic): Likewise.
644 2014-11-28  Marek Polacek  <polacek@redhat.com>
646         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
647         instead of unsigned_type_node.
649 2014-11-28  Marek Polacek  <polacek@redhat.com>
651         PR c/63862
652         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
653         to op1_utype.
654         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
655         expression to unsigned_type_node.
657 2014-11-20  Mark Wielaard  <mjw@redhat.com>
659         PR debug/38757
660         * c-opts.c (set_std_c89): Set lang_hooks.name.
661         (set_std_c99): Likewise.
662         (set_std_c11): Likewise.
663         (set_std_cxx98): Likewise.
664         (set_std_cxx11): Likewise.
665         (set_std_cxx14): Likewise.
666         (set_std_cxx1z): Likewise.
668 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
670         PR target/63764
671         * c-common.h (convert_vector_to_pointer_for_subscript): Change
672         return type to bool.
673         * c-common.c: Include gimple-expr.h.
674         (convert_vector_to_pointer_for_subscript): Change return type to
675         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
676         and copy it into a TARGET_EXPR and use that instead of *vecp
677         directly.
679 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
681         Merger of git branch "gimple-classes-v2-option-3".
682         * ChangeLog.gimple-classes: New.
683         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
684         from being just a vec<gimple> to a vec<gbind *>.
686 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
688         PR sanitizer/63813
689         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
690         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
691         get_pointer_alignment for non-pointers.  Use ptype, or if it is
692         reference type, corresponding pointer type, as type of kind
693         argument.
694         (ubsan_maybe_instrument_reference,
695         ubsan_maybe_instrument_member_call): Adjust callers.
697 2014-11-15  Marek Polacek  <polacek@redhat.com>
699         PR middle-end/63884
700         * array-notation-common.c (is_sec_implicit_index_fn): Return false
701         for NULL fndecl.
702         (extract_array_notation_exprs): Return for NULL node.
704 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
706         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
707         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
709 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
711         PR c/59708
712         * c-common.c (check_builtin_function_arguments): Handle
713         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
715 2014-11-10  Andi Kleen  <ak@linux.intel.com>
717         PR c/60804
718         * c-common.h (check_no_cilk): Declare.
719         * cilk.c (get_error_location): New function.
720         (check_no_cilk): Dito.
722 2014-11-10  Andi Kleen  <ak@linux.intel.com>
724         * cilk.c (recognize_spawn): Use expression location
725         for error message.
727 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
729         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
731 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
733         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
734         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
735         (__cpp_range_based_for, __cpp_initializer_lists,
736         __cpp_delegating_constructors, __cpp_nsdmi,
737         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
738         for C++11; (__cpp_attribute_deprecated): Remove in favor of
739         __has_cpp_attribute.
740         * c-lex.c (cb_has_attribute): New callback CPP function;
741         (init_c_lex): Set has_attribute callback.
743 2014-11-04  Richard Biener  <rguenther@suse.de>
745         * c-common.c (shorten_compare): Do not shorten mixed
746         DFP and non-DFP compares.
748 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
750         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
751         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
752         Commentary and rearrangement of tests.
753         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
754         Commentary and rearrangement of tests.
755         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
756         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
758 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
760         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
761         enum from machine_mode.
763 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
765         * c-common.c: Adjust include files.
766         * c-gimplify.c: Ditto.
767         * cilk.c: Ditto.
768         * c-pragma.c: Ditto.
769         * c-ubsan.c: Ditto.
771 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
773         * c-gimplify.c: Adjust include files.
775 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
777         PR c++/53061
778         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
779         c_common_initialize_diagnostics.
780         * c-common.h: Likewise.
782 2014-10-24  Marek Polacek  <polacek@redhat.com>
784         PR c/56980
785         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
786         print "struct"/"union"/"enum" for typedefed names.
788 2014-10-23  Marek Polacek  <polacek@redhat.com>
790         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
791         in unsigned type.
793 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
794             Yury Gribov  <y.gribov@samsung.com>
796         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
797         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
798         instead of flag_sanitize_recover as bool flag.
800 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
802         * cilk.c: Revert previous change.
804 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
806         PR c/63307
807         * cilk.c: Include vec.h.
808         (struct cilk_decls): New structure.
809         (wrapper_parm_cb): Split this function to...
810         (fill_decls_vec): ...this...
811         (create_parm_list): ...and this.
812         (compare_decls): New function.
813         (for_local_cb): Remove.
814         (wrapper_local_cb): Ditto.
815         (build_wrapper_type): For now first traverse and fill vector of
816         declarations then sort it and then deal with sorted vector.
817         (cilk_outline): Ditto.
818         (declare_one_free_variable): Ditto.
820 2014-10-17  Marek Polacek  <polacek@redhat.com>
822         * c-opts.c (c_common_post_options): Set warn_implicit_int.
823         * c.opt (Wimplicit-int): Initialize to -1.
825 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
827         * c-pragma.c: Adjust include files.
828         * c-semantics.c: Likewise.
830 2014-10-16  DJ Delorie  <dj@redhat.com>
832         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
833         multiples of bytes.
835 2014-10-14  Jason Merrill  <jason@redhat.com>
837         PR c++/63455
838         * c-common.h (CPP_PREPARSED_EXPR): New.
839         (N_CP_TTYPES): Adjust.
841 2014-10-15  Marek Polacek  <polacek@redhat.com>
843         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
845 2014-10-14  DJ Delorie  <dj@redhat.com>
847         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
848         types, not just __int128.
849         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
850         types, not just __int128.
851         (cpp_atomic_builtins): Round pointer sizes up.
852         (type_suffix): Use type precision, not specific types.
853         * c-common.c (c_common_reswords): Remove __int128 special case.
854         (c_common_type_for_size): Check for all __intN types, not just
855         __int128.
856         (c_common_type_for_mode): Likewise.
857         (c_common_signed_or_unsigned_type): Likewise.
858         (c_build_bitfield_integer_type): Likewise.
859         (c_common_nodes_and_builtins): Likewise.
860         (keyword_begins_type_specifier): Likewise.
861         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
862         __intN variants.
864 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
866         * c-common.c: Use hash_table instead of hashtab.
868 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
870         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
871         C++11 section.
873 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
875         PR c++/54427
876         PR c++/57198
877         PR c++/58845
878         * c-common.c (warn_logical_operator): Punt for vectors.
880 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
882         Implement SD-6: SG10 Feature Test Recommendations
883         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
884         macros and the __has_header macro.
886 2014-09-30  Jason Merrill  <jason@redhat.com>
888         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
889         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
890         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
892         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
893         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
895         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
896         * c-common.c (c_common_reswords): Remove __is_convertible_to.
898 2014-09-24  Marek Polacek  <polacek@redhat.com>
900         PR c/61405
901         PR c/53874
902         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
904 2014-09-23  Andi Kleen  <ak@linux.intel.com>
906         * c-common.c (handle_no_reorder_attribute): New function.
907         (c_common_attribute_table): Add no_reorder attribute.
909 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
911         * c-cppbuiltin.c (c_cpp_builtins): Define
912         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
913         modes.
915 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
917         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
918         for supported floating-point modes.
920 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
922         * c.opt (Wpsabi): Use LangEnabledBy.
923         * c-opts.c (c_common_handle_option): Do not handle here.
925 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
927         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
928         macros for floating-point modes.
930 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
932         PR target/58757
933         * c-cppbuiltin.c (builtin_define_float_constants): Correct
934         __*_DENORM_MIN__ without denormals.
936 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
938         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
939         ubsan_instrument_vla, ubsan_instrument_return): Adjust
940         ubsan_create_data callers.
941         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
942         index is constant or BIT_AND_EXPR with constant mask and is
943         small enough for the bound.
944         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
945         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
947 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
949         * c.opt: Add CppReason to various flags.
950         (Wdate-time): Re-sort.
951         * c-common.c: Include c-common.h earlier.
952         (struct reason_option_codes_t): Delete.
953         (c_option_controlling_cpp_error): Prefix global type and struct
954         with cpp_.
956 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
958         * c.opt (Wnormalized): New.
959         (Wnormalized=): Use Enum and Reject Negative.
960         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
962 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
964         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
965         digits of floating-point modes if -fbuilding-libgcc.
967 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
969         * c-cppbuiltin.c (c_cpp_builtins): Also define
970         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
971         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
972         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
973         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
974         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
975         __LIBGCC_STACK_GROWS_DOWNWARD__,
976         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
977         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
978         __LIBGCC_DWARF_FRAME_REGISTERS__,
979         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
980         __LIBGCC_STACK_POINTER_REGNUM__ and
981         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
982         (builtin_define_with_value): Handle backslash-escaping in string
983         macro values.
985 2014-09-05  Richard Biener  <rguenther@suse.de>
987         PR middle-end/63148
988         * c-format.c (check_format_arg): Properly handle
989         effectively signed POINTER_PLUS_EXPR offset.
991 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
993         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
994         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
995         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
996         and Init.
997         * c-opts.c (c_common_handle_option): Do not handle here.
998         (sanitize_cpp_opts): Likewise.
999         * c-common.c (struct reason_option_codes_t): Handle
1000         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1002 2014-09-03  Marek Polacek  <polacek@redhat.com>
1004         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1006 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
1007             Balaji V. Iyer  <balaji.v.iyer@intel.com>
1008             Igor Zamyatin  <igor.zamyatin@intel.com>
1010         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1011         * c-common.c (c_common_reswords): Added _Cilk_for.
1012         * c-common.h (enum rid): Added RID_CILK_FOR.
1013         (cilk_for_number_of_iterations): Add declaration.
1014         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1015         CILK_FOR.
1016         * c-pragma.c (init_pragma): Register "grainsize" pragma.
1017         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1019 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1021         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1022         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1023         Wundef): Use CPP, Var and Init.
1024         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1026 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1028         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1029         * c-opts.c (c_common_handle_option): Do not handle here.
1031 2014-08-25  Jason Merrill  <jason@redhat.com>
1033         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1034         -std=c++14 and -std=gnu++14, rather than the reverse.
1035         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1036         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1037         * c-common.h (cxx_dialect): Remove cxx1y.
1039 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
1041         * c-common.h (enum cxx_dialect): Add cxx14.
1042         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1043         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1044         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1046 2014-08-22  Jason Merrill  <jason@redhat.com>
1048         * c.opt (std=gnu++17): Fix alias.
1050 2014-08-22  Marek Polacek  <polacek@redhat.com>
1052         PR c++/62199
1053         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
1054         check for vector types.  Drop LHS argument.
1055         * c-common.h (warn_logical_not_parentheses): Adjust.
1057 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1059         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1060         (Wmultichar): Likewise.
1061         (Wdate-time): Use C-family languages instead of Common. Use CPP
1062         and Var.
1063         * c-opts.c (c_common_handle_option): Do not handle the above
1064         options here.
1065         (sanitize_cpp_opts): Likewise.
1067 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1069         PR fortran/44054
1070         * c-opts.c: Include tree-diagnostics.h.
1071         (c_diagnostic_finalizer): New.
1072         (c_common_initialize_diagnostics): Use it.
1074 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1076         PR preprocessor/51303
1077         * c-common.c (struct reason_option_codes_t option_codes):
1078         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1080 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1082         PR c/60975
1083         PR c/53063
1084         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1085         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1086         (c_common_post_options): Call init_global_opts_from_cpp.
1087         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1089 2014-08-19  Marek Polacek  <polacek@redhat.com>
1091         PR c++/62153
1092         * c-common.c (maybe_warn_bool_compare): New function.
1093         * c-common.h (maybe_warn_bool_compare): Declare.
1094         * c.opt (Wbool-compare): New option.
1096 2014-08-19  Marek Polacek  <polacek@redhat.com>
1098         * c.opt (Wc99-c11-compat): New option.
1100 2014-08-19  Marek Polacek  <polacek@redhat.com>
1102         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1103         to warn_c90_c99_compat.
1104         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1105         to -1.
1107 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1108             Steven Bosscher  <steven@gcc.gnu.org>
1110         PR c/52952
1111         * c-format.c: Add extra_arg_loc and format_string_loc to struct
1112         format_check_results.
1113         (check_function_format): Use true and add comment for boolean
1114         argument.
1115         (finish_dollar_format_checking): Use explicit location when warning.
1116         (check_format_info): Likewise.
1117         (check_format_arg): Set extra_arg_loc and format_string_loc.
1118         (check_format_info_main): Use explicit location when warning.
1119         (check_format_types): Pass explicit location.
1120         (format_type_warning): Likewise.
1122 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1124         PR fortran/44054
1125         * c-format.c: Handle Fortran flags.
1127 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1129         PR other/61962
1130         * array-notation-common.c (find_rank): Added handling for other
1131         types of references.
1133 2014-08-10  Marek Polacek  <polacek@redhat.com>
1135         PR c/51849
1136         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1137         * c.opt (Wc90-c99-compat): Add option.
1139 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
1141         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1143 2014-08-03  Marek Polacek  <polacek@redhat.com>
1145         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
1146         (c_add_case_label): Pass loc to check_case_value.
1148 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1150         * cilk.c: Use hash_map instead of pointer_map.
1152 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1154         * c-gimplify.c: Use hash_set instead of pointer_set.
1156 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
1158         PR middle-end/61455
1159         * array-notation-common.c (extract_array_notation_exprs): Handling
1160         of DECL_EXPR added.
1162 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
1164         * c-common.h (min_align_of_type): Removed prototype.
1165         * c-common.c (min_align_of_type): Removed.
1166         * c-ubsan.h (ubsan_maybe_instrument_reference,
1167         ubsan_maybe_instrument_member_call): New prototypes.
1168         * c-ubsan.c: Include stor-layout.h and builtins.h.
1169         (ubsan_maybe_instrument_reference_or_call,
1170         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1171         functions.
1173 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
1175         PR c++/60517
1176         * c.opt (-Wreturn-local-addr): Move to common.opt.
1178 2014-07-30  Jason Merrill  <jason@redhat.com>
1180         PR c++/61659
1181         PR c++/61687
1182         Revert:
1183         * c.opt (-fuse-all-virtuals): New.
1185 2014-07-30  Tom Tromey  <tromey@redhat.com>
1187         PR c/59855
1188         * c.opt (Wdesignated-init): New option.
1189         * c-common.c (c_common_attribute_table): Add "designated_init".
1190         (handle_designated_init): New function.
1192 2014-07-24  Marek Polacek  <polacek@redhat.com>
1194         PR c/57653
1195         * c-opts.c (c_finish_options): If -imacros is in effect, return.
1197 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
1199         PR preprocessor/60723 - missing system-ness marks for macro tokens
1200         * c-ppoutput.c (struct print::prev_was_system_token): New data
1201         member.
1202         (init_pp_output): Initialize it.
1203         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1204         (do_line_change): Return a flag saying if a line marker was
1205         emitted or not.
1206         (scan_translation_unit): Detect if the system-ness of the token we
1207         are about to emit is different from the one of the previously
1208         emitted token.  If so, emit a line marker.  Avoid emitting useless
1209         adjacent line markers.  Avoid emitting line markers for tokens
1210         originating from the expansion of built-in macros.
1211         (scan_translation_unit_directives_only): Adjust.
1213 2014-07-15  Marek Polacek  <polacek@redhat.com>
1215         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1216         TYPE_MAX_VALUE is NULL.
1218 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
1220         PR middle-end/61294
1221         * c.opt (Wmemset-transposed-args): New warning.
1223 2014-07-10  Jason Merrill  <jason@redhat.com>
1225         PR c++/61659
1226         PR c++/61687
1227         * c.opt (-fuse-all-virtuals): New.
1229 2014-07-09  Richard Biener  <rguenther@suse.de>
1231         PR c-family/61741
1232         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1233         using unsigned arithmetic if overflow does not wrap instead of
1234         if overflow is undefined.
1236 2014-07-06  Marek Polacek  <polacek@redhat.com>
1238         PR c/6940
1239         * c.opt (Wsizeof-array-argument): New option.
1241 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
1243         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
1244         comments->count <= 1, as comments->entries might be NULL.
1246 2014-07-01  Marek Polacek  <polacek@redhat.com>
1248         * c.opt (Wint-conversion): New option.
1250 2014-07-01  Marek Polacek  <polacek@redhat.com>
1252         PR c/58286
1253         * c.opt (Wincompatible-pointer-types): New option.
1255 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
1257         PR c++/51400
1258         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1259         Do not discard TYPE_QUALS of type.
1261 2014-06-26  Jason Merrill  <jason@redhat.com>
1263         * c-common.h (enum cxx_dialect): Add cxx1z.
1264         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1265         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1267 2014-06-26  Teresa Johnson  <tejohnson@google.com>
1269         * c-common.h (get_dump_info): Declare.
1270         * c-gimplify.c (c_genericize): Use saved dump files.
1271         * c-opts.c (c_common_parse_file): Begin and end dumps
1272         once around parsing invocation.
1273         (get_dump_info): New function.
1275 2014-06-23  Marek Polacek  <polacek@redhat.com>
1276             Andrew MacLeod  <amacleod@redhat.com>
1278         PR c/61553
1279         * c-common.c (get_atomic_generic_size): Don't segfault if the
1280         type doesn't have a size.
1282 2014-06-20  Marek Polacek  <polacek@redhat.com>
1284         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1285         (ubsan_walk_array_refs_r): New function.
1286         (c_genericize): Instrument array bounds.
1287         * c-ubsan.c: Include "internal-fn.h".
1288         (ubsan_instrument_division): Mark instrumented arrays as having
1289         side effects.  Adjust ubsan_type_descriptor call.
1290         (ubsan_instrument_shift): Likewise.
1291         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1292         (ubsan_instrument_bounds): New function.
1293         (ubsan_array_ref_instrumented_p): New function.
1294         (ubsan_maybe_instrument_array_ref): New function.
1295         * c-ubsan.h (ubsan_instrument_bounds): Declare.
1296         (ubsan_array_ref_instrumented_p): Declare.
1297         (ubsan_maybe_instrument_array_ref): Declare.
1299 2014-06-20  Hale Wang  <hale.wang@arm.com>
1301         PR lto/61123
1302         * c.opt (fshort-enums): Add to LTO.
1303         * c.opt (fshort-wchar): Likewise.
1305 2014-06-16  Marek Polacek  <polacek@redhat.com>
1307         PR c/60439
1308         * c.opt (Wswitch-bool): Add Var.
1310 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
1312         PR middle-end/61486
1313         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1314         #pragma omp target teams or
1315         #pragma omp {,target }teams distribute simd.
1317 2014-06-12  Jason Merrill  <jason@redhat.com>
1319         * c.opt (Wabi=, fabi-compat-version): New.
1320         * c-opts.c (c_common_handle_option): Handle -Wabi=.
1321         (c_common_post_options): Handle flag_abi_compat_version default.
1322         Disallow -fabi-compat-version=1.
1323         * c-common.h (abi_version_crosses): New.
1325 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
1327         * c-common.c (handle_section_attribute): Update handling for
1328         section names that are no longer trees.
1330 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1332         PR fortran/60928
1333         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1334         (omp_pragmas): ... back here.
1336 2014-06-05  Marek Polacek  <polacek@redhat.com>
1338         PR c/49706
1339         * c-common.c (warn_logical_not_parentheses): New function.
1340         * c-common.h (warn_logical_not_parentheses): Declare.
1341         * c.opt (Wlogical-not-parentheses): New option.
1343 2014-06-04  Marek Polacek  <polacek@redhat.com>
1345         PR c/30020
1346         * c-common.c (check_case_bounds): Add location parameter.
1347         Use it.
1348         (c_add_case_label): Pass loc to check_case_bounds.
1350 2014-06-03  Marek Polacek  <polacek@redhat.com>
1352         PR c/60439
1353         * c.opt (Wswitch-bool): New option.
1355 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1357         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1358         Remove prototypes.
1359         (record_types_used_by_current_var_decl): Move prototype to where
1360         it belongs.
1362         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1363         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1364         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1366 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1368         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1369         * c-common.c (c_common_nodes_and_builtins): Don't initialize
1370         void_zero_node.
1371         * c-pretty-print.c (pp_c_void_constant): New function.
1372         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1373         (c_pretty_printer::expression): Handle VOID_CST.
1374         * cilk.c (extract_free_variables): Likewise.
1375         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1376         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1378 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1380         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1381         * c-pragma.c (push_alignment): Adjust.
1382         (handle_pragma_push_options): Likewise.
1384 2014-05-09  Marek Polacek  <polacek@redhat.com>
1386         PR c/50459
1387         * c-common.c (check_user_alignment): Return -1 if alignment is error
1388         node.
1389         (handle_aligned_attribute): Don't call default_conversion on
1390         FUNCTION_DECLs.
1391         (handle_vector_size_attribute): Likewise.
1392         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1393         (handle_sentinel_attribute): Call default_conversion and allow even
1394         integral types as an argument.
1396 2014-05-08  Marek Polacek  <polacek@redhat.com>
1398         PR c/61053
1399         * c-common.c (min_align_of_type): New function factored out from...
1400         (c_sizeof_or_alignof_type): ...here.
1401         * c-common.h (min_align_of_type): Declare.
1403 2014-05-08  Marek Polacek  <polacek@redhat.com>
1405         PR c/61077
1406         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1407         parameter type of main.
1409 2014-05-07  DJ Delorie  <dj@redhat.com>
1411         * c-cppbuiltin.c (print_bits_of_hex): New.
1412         (builtin_define_type_minmax): Print values using hex so as not to
1413         require a pre-computed list of string values.
1415 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1416             Mike Stump  <mikestump@comcast.net>
1417             Richard Sandiford  <rdsandiford@googlemail.com>
1419         * c-ada-spec.c: Include wide-int.h.
1420         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1421         (dump_generic_ada_node): Use wide-int interfaces.
1422         * c-common.c: Include wide-int-print.h.
1423         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1424         (pointer_int_sum): Use wide-int interfaces.
1425         (c_common_nodes_and_builtins): Use make_int_cst.
1426         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1427         (handle_alloc_size_attribute): Use wide-int interfaces.
1428         (get_nonnull_operand): Likewise.
1429         * c-format.c (get_constant): Use tree_fits_uhwi_p.
1430         * c-lex.c: Include wide-int.h.
1431         (narrowest_unsigned_type): Take a widest_int rather than two
1432         HOST_WIDE_INTs.
1433         (narrowest_signed_type): Likewise.
1434         (interpret_integer): Update accordingly.  Use wide-int interfaces.
1435         (lex_charconst): Use wide-int interfaces.
1436         * c-pretty-print.c: Include wide-int.h.
1437         (pp_c_integer_constant): Use wide-int interfaces.
1438         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1439         INT_CST_LT_UNSIGNED.
1441 2014-05-06  Richard Biener  <rguenther@suse.de>
1443         * c-opts.c (c_common_post_options): For -freestanding,
1444         -fno-hosted and -fno-builtin disable pattern recognition
1445         if not enabled explicitely.
1447 2014-05-02  Marek Polacek  <polacek@redhat.com>
1449         * c.opt (Wsizeof-pointer-memaccess): Describe option.
1451 2014-05-01  Marek Polacek  <polacek@redhat.com>
1453         PR c/43245
1454         * c.opt (Wdiscarded-qualifiers): Add.
1456 2014-04-30  Marek Polacek  <polacek@redhat.com>
1458         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
1459         INT_MIN / -1 sanitization only for integer types.
1461 2014-04-25  Marek Polacek  <polacek@redhat.com>
1463         PR c/18079
1464         * c-common.c (handle_noinline_attribute): Warn if the attribute
1465         conflicts with always_inline attribute.
1466         (handle_always_inline_attribute): Warn if the attribute conflicts
1467         with noinline attribute.
1469 2014-04-25  Marek Polacek  <polacek@redhat.com>
1471         PR c/60156
1472         * c-common.c (check_main_parameter_types): Warn about variadic main.
1474 2014-04-24  Mike Stump  <mikestump@comcast.net>
1476         * c.opt (Wshadow-ivar): Default to on.
1478 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
1480         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1482 2014-04-23  Marek Polacek  <polacek@redhat.com>
1484         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1486 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1488         PR sanitizer/60275
1489         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1490         if flag_sanitize_undefined_trap_on_error.
1491         (ubsan_instrument_division, ubsan_instrument_shift,
1492         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
1493         if !flag_sanitize_recover.
1495 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
1497         PR libstdc++/43622
1498         * c-common.c (registered_builtin_types): Make non-static.
1499         * c-common.h (registered_builtin_types): Declare.
1501 2014-04-14  Richard Biener  <rguenther@suse.de>
1502         Marc Glisse  <marc.glisse@inria.fr>
1504         PR c/60819
1505         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1506         apply may-alias the scalar pointer type when applicable.
1508 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1510         PR middle-end/60467
1511         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1512         as possible argument for Cilk_spawn.
1514 2014-04-11  Tobias Burnus  <burnus@net-b.de>
1516         PR c/60194
1517         * c.opt (Wformat-signedness): Add
1518         * c-format.c(check_format_types): Use it.
1520 2014-04-11  Jason Merrill  <jason@redhat.com>
1522         PR c++/57926
1523         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1524         default_conversion for an array argument.
1526 2014-04-08  Marek Polacek  <polacek@redhat.com>
1528         PR sanitizer/60745
1529         * c-ubsan.c: Include asan.h.
1530         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1532 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1534         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1536 2014-04-02  Marek Polacek  <polacek@redhat.com>
1538         * c-common.h (c_expand_expr): Remove declaration.
1540 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1542         PR c++/60689
1543         * c-common.c (add_atomic_size_parameter): When creating new
1544         params vector, push the size argument first.
1546 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
1548         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1549         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1550         ubsan_create_data callers.
1552 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
1554         PR debug/60603
1555         * c-opts.c (c_finish_options): Restore cb_file_change call to
1556         <built-in>.
1558 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
1560         PR middle-end/36282
1561         * c-pragma.c (apply_pragma_weak): Only look at
1562         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1563         DECL_ASSEMBLER_NAME_SET_P (decl).
1564         (maybe_apply_pending_pragma_weaks): Exit early if
1565         vec_safe_is_empty (pending_weaks) rather than only when
1566         !pending_weaks.
1567         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
1568         set assembler name back to NULL afterwards.
1570 2014-03-11  Jason Merrill  <jason@redhat.com>
1572         * c.opt: Add -std=gnu++14.
1574 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
1576         * c-opts.c (c_common_post_options): Don't override
1577         -ffp-contract=fast if unsafe-math-optimizations is on.
1579 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
1581     * c.opt: Enable LTO FE for fshort-double.
1583 2014-03-07  Jason Merrill  <jason@redhat.com>
1585         * c.opt: Add -std=c++14.
1587 2014-03-06  Marek Polacek  <polacek@redhat.com>
1589         PR c/60197
1590         * cilk.c (contains_cilk_spawn_stmt): New function.
1591         (contains_cilk_spawn_stmt_walker): Likewise.
1592         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1593         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1595 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
1597         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1598         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1599         even when flag_preprocess_only.
1601 2014-02-26  Jason Merrill  <jason@redhat.com>
1603         PR c++/59231
1604         PR c++/11586
1605         * c-common.c (shorten_compare): Don't check
1606         c_inhibit_evaluation_warnings.
1608 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
1610         PR c/37743
1611         * c-common.c (c_common_nodes_and_builtins): When initializing
1612         c_uint{16,32,64}_type_node, also set corresponding
1613         uint{16,32,64}_type_node to the same value.
1615         PR c++/60267
1616         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1617         for PRAGMA_IVDEP if flag_preprocess_only.
1619 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
1621         PR c/60101
1622         * c-common.c (merge_tlist): If copy is true, call new_tlist,
1623         if false, add ADD itself, rather than vice versa.
1624         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1625         copy.  For SAVE_EXPR, only call merge_tlist once.
1627 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
1629         PR middle-end/60092
1630         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1631         and tree_to_uhwi.
1632         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1633         functions.
1634         (c_common_attribute_table): Add alloc_align and assume_aligned
1635         attributes.
1637 2014-02-06  Marek Polacek  <polacek@redhat.com>
1639         PR c/60087
1640         * c-common.c (warn_for_sign_compare): Call warning_at with location
1641         instead of warning.
1643 2014-02-05  Marek Polacek  <polacek@redhat.com>
1645         PR c/53123
1646         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1647         statement.
1649 2014-02-04  Marek Polacek  <polacek@redhat.com>
1651         PR c/60036
1652         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1653         SAVE_EXPR.
1655 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
1657         PR c++/53017
1658         PR c++/59211
1659         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1660         handle_vector_size_attribute, handle_nonnull_attribute): Call
1661         default_conversion on the attribute argument.
1662         (handle_nonnull_attribute): Increment the argument number.
1664 2014-01-31  Marek Polacek  <polacek@redhat.com>
1666         PR c/59963
1667         * c-common.c (add_atomic_size_parameter): Pass vNULL to
1668         build_function_call_vec.
1669         (resolve_overloaded_builtin): Likewise.
1670         * c-common.h (build_function_call_vec): Adjust declaration.
1672 2014-01-30  Marek Polacek  <polacek@redhat.com>
1674         PR c/59940
1675         * c-common.h (unsafe_conversion_p): Adjust declaration.
1676         (warnings_for_convert_and_check): Likewise.
1677         (convert_and_check): Likewise.
1678         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
1679         expansion_point_location_if_in_system_header on it.
1680         (warnings_for_convert_and_check): Add location parameter.  Call
1681         expansion_point_location_if_in_system_header on it.  Use it.
1682         (convert_and_check): Add location parameter.  Use it.
1683         (conversion_warning): Likewise.
1684         (c_add_case_label): Adjust convert_and_check calls.
1685         (scalar_to_vector): Adjust unsafe_conversion_p calls.
1687 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1689         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1690         flag_cilkplus.
1691         * c-pragma.c (init_pragma): Likewise.
1692         * c.opt: Likewise.
1694 2014-01-23  Marek Polacek  <polacek@redhat.com>
1696         PR c/59846
1697         * c-common.c (shorten_compare): Add location_t parameter.
1698         * c-common.h (shorten_binary_op): Adjust declaration.
1700 2014-01-23  Marek Polacek  <polacek@redhat.com>
1702         PR c/58346
1703         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1704         * c-common.h: Declare it.
1706 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
1708         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1709         * c-ada-spec.c (dump_ads): Likewise.
1710         (cpp_check): Likewise.
1711         (dump_ada_specs): Likewise.
1713 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
1715         PR c++/49718
1716         * c-common.c (handle_no_instrument_function_attribute): Allow
1717         no_instrument_function attribute in class member
1718         definition/declaration.
1720 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1722         PR c/58943
1723         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1724         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
1725         being COMPOUND_EXPR.
1726         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1727         operand a SAVE_EXPR and second MODIFY_EXPR.
1729 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1731         PR target/58115
1732         * c-pch.c (c_common_write_pch): Call
1733         prepare_target_option_nodes_for_pch.
1735 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1737         Update copyright years
1739 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1741         * array-notation-common.c, c-cilkplus.c: Use the standard form for
1742         the copyright notice.
1744 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
1746         * c-ada-spec.c (print_constructor): New function.
1747         (print_destructor): Retrieve the origin of the destructor.
1748         (print_ada_declaration): Revamp handling of constructors/destructors.
1750 2013-12-23  Stuart Hastings <stuart@apple.com>
1751             Bill Maddox  <maddox@google.com>
1752             Jason Merrill  <jason@redhat.com>
1754         * c.opt: Add -fdeclone-ctor-dtor.
1755         * c-opts.c (c_common_post_options): Default to on iff -Os.
1757 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1759         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1760         attribute.
1761         * c-pragma.h (enum pragma_cilk_clause): Remove.
1762         (enum pragma_omp_clause):  Added the following fields:
1763         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1764         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1765         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1766         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1767         PRAGMA_CILK_CLAUSE_UNIFORM.
1769         
1770 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1772         * cilk.c (cilk_outline): Made this function non-static.
1773         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1774         (create_cilk_wrapper): Added a new parameter: a function pointer.
1775         (c_install_body_w_frame_cleanup): Remove
1776         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1777         * c-common.h (cilk_outline): New prototype.
1778         (gimplify_cilk_spawn): Removed two parameters.
1779         (cilk_install_body_with_frame_cleanup): New prototype.
1780         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1781         CILK_SPAWN_STMT case.
1783 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1785         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1787         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1788         (int_array_type_node): Remove.
1789         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1791 2013-12-05  Marek Polacek  <polacek@redhat.com>
1793         PR c/52023
1794         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1795         [ADJUST_FIELD_ALIGN].
1797 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1799         PR c/52023
1800         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1801         and check field alignment if set.
1802         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1803         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1805 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1806             Marek Polacek  <polacek@redhat.com>
1808         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1809         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1811 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1813         PR c/59309
1814         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1815         arguments.
1817 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1819         PR c/59280
1820         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1821         goto invalid.  If it is error_mark_node, don't issue further
1822         diagnostics.
1824 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1826         * c.opt (Wopenmp-simd): New.
1828 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1830         * c-ubsan.h (ubsan_instrument_return): New prototype.
1831         * c-ubsan.c (ubsan_instrument_return): New function.
1833 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1835         * c-common.c: Add required include files from gimple.h.
1836         * c-gimplify.c: Likewise
1837         * cilk.c: Likewise
1839 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1841         * c-common.c (unsafe_conversion_p): Remove use of
1842         EXPR_LOC_OR_HERE macro.
1843         (conversion_warning): Likewise.
1844         (warnings_for_convert_and_check): Likewise.
1845         (warn_for_collisions_1): Likewise.
1846         (shorten_compare): Likewise, and remove use of in_system_header
1847         macro, using the location from the former.
1848         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1849         (cb_def_pragma): Remove use of in_system_header macro.
1850         (lex_string): Likewise.
1851         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1853 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1854             Mike Stump  <mikestump@comcast.net>
1855             Richard Sandiford  <rdsandiford@googlemail.com>
1857         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1858         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1859         tree_fits_shwi_p or tree_fits_uhwi_p.
1860         (dump_generic_ada_node): Likewise.
1861         * c-format.c (check_format_arg): Likewise.
1862         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1864 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1866         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1868 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1870         PR c/53001
1871         * c-common.c (unsafe_conversion_p): Make this function
1872         return an enumeration with more detail.
1873         (conversion_warning): Use the new return type of
1874         unsafe_conversion_p to separately warn either about conversions
1875         that lower floating point number precision or about the other
1876         kinds of conversions.
1877         * c-common.h (enum conversion_safety): New enumeration.
1878         (unsafe_conversion_p): switching return type to
1879         conversion_safety enumeration.
1880         * c.opt: Adding new warning -Wfloat-conversion and
1881         enabling it with -Wconversion.
1883 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1885         * c-opts.c: Include plugin.h.
1886         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1888 2013-11-19  Marek Polacek  <polacek@redhat.com>
1890         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1891         call.
1892         (ubsan_instrument_shift): Likewise.
1893         (ubsan_instrument_vla): Likewise.
1895 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1897         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1898         cast to unsigned type.
1900 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1902         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1903         tree_low_cst.
1904         (complete_array_type): Update comment to refer to tree_to_[su]hwi
1905         rather than tree_low_cst.
1907 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1909         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1910         tree_to_uhwi throughout.
1912 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1914         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1915         tree_low_cst (..., 0) with tree_to_shwi throughout.
1917 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1919         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1920         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1922 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1924         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1925         host_integerp (..., 0) with tree_fits_shwi_p throughout.
1927 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1929         * c-cilkplus.c: New file.
1930         * c-common.c (readonly_error): Add location argument.
1931         * c-common.h (readonly_error): Same.
1932         (c_finish_cilk_clauses): Protoize.
1933         (c_check_cilk_loop): Same.
1934         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1935         Do not fail on error_mark_node.
1936         Abstract increment canonicalization to here...
1937         (c_omp_for_incr_canonicalize_ptr): New.
1938         c-pragma.c (init_pragma): Register "simd" pragma.
1939         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1940         (enum pragma_cilk_clause): New.
1942 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1944         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1945         wchar_type and host_integerp checks.
1947 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1949         * c-common.c: Likewise.
1950         * c-gimplify.c: Likewise.
1951         * cilk.c: Likewise.
1953 2013-11-14  Diego Novillo  <dnovillo@google.com>
1955         * c-common.c: Include fold-const.h.
1956         Include stor-layout.h.
1957         Include calls.h.
1958         Include stringpool.h.
1959         Include attribs.h.
1960         Include varasm.h.
1961         Include trans-mem.h.
1962         * c-cppbuiltin.c: Include stor-layout.h.
1963         Include stringpool.h.
1964         * c-format.c: Include stringpool.h.
1965         * c-lex.c: Include stringpool.h.
1966         Include stor-layout.h.
1967         * c-pragma.c: Include stringpool.h.
1968         Include attribs.h.
1969         Include varasm.h.
1970         Include gcc-symtab.h.
1971         * c-pretty-print.c: Include stor-layout.h.
1972         Include attribs.h.
1973         * cilk.c: Include stringpool.h.
1974         Include calls.h.
1976 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1978         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1979         * c-common.c (c_common_reswords): Add __auto_type.
1980         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1982 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1984         * c-common.c: Include gimplify.h.
1985         * c-gimplify.c: Likewise.
1986         * cilk.c: Likewise.
1987         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1988         * c-ubsan.c: Don't include gimple.h.
1990 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1992         * c-common.c (c_common_reswords): Add _Thread_local.
1994 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1996         * c-common.c (atomic_size_supported_p): New function.
1997         (resolve_overloaded_atomic_exchange)
1998         (resolve_overloaded_atomic_compare_exchange)
1999         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2000         Use it instead of comparing size with a local list of sizes.
2002 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
2003             Joseph Myers  <joseph@codesourcery.com>
2005         * c-common.h (enum rid): Add RID_ATOMIC.
2006         * c-common.c (c_common_reswords): Add _Atomic.
2007         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2008         (keyword_is_type_qualifier): Accept RID_ATOMIC.
2009         * c-format.c (check_format_types): Check for extra _Atomic
2010         qualifiers in format argument.
2011         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2012         (pp_c_type_qualifier_list): Mention _Atomic in comment.
2014 2013-11-06  Tobias Burnus  <burnus@net-b.de>
2016         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2018 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
2020         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2021         standards modes.
2022         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2023         to mean lack of IEEE 754 support.
2025 2013-11-05  Tobias Burnus  <burnus@net-b.de>
2027         * c.opt (-Wdate-time): New option
2028         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2030 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
2032         * c-cppbuiltin.c (cpp_iec_559_value): Test
2033         flag_excess_precision_cmdline not flag_excess_precision.
2035 2013-11-05  Tobias Burnus  <burnus@net-b.de>
2037         * c.opt (fopenmp-simd): New option.
2038         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2039         (omp_pragmas): ... this new struct.
2040         (c_pp_lookup_pragma): Also walk omp_pragmas.
2041         (init_pragma): Init pragmas for -fopenmp-simd.
2043 2013-11-04  Marek Polacek  <polacek@redhat.com>
2045         PR c++/58979
2046         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2048 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
2050         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2051         New functions.
2052         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2054 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2056         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2057         (dump_ada_specs): Adjust prototype of second callback.
2058         * c-ada-spec.c (cpp_check): New global variable.
2059         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2060         (print_generic_ada_decl): Likewise.
2061         (has_static_fields): Change return type to bool and add guard.
2062         (has_nontrivial_methods): New predicate.
2063         (is_tagged_type): Change return type to bool.
2064         (separate_class_package): Call has_nontrivial_methods.
2065         (pp_ada_tree_identifier): Minor tweaks.
2066         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2067         (dump_ada_array_domains): Likewise.
2068         (dump_ada_array_type): Likewise.
2069         (dump_template_types): Remove cpp_check parameter and do not pass it to
2070         dump_generic_ada_node.
2071         (dump_ada_template): Likewise.
2072         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2073         recursively.
2074         (print_ada_methods): Change return type to integer.  Remove cpp_check
2075         parameter and do not pass it down.
2076         (dump_nested_types): Remove cpp_check parameter and do not pass it to
2077         dump_generic_ada_node.
2078         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
2079         accessing methods.
2080         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2081         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
2082         value of print_ada_methods.
2083         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2084         Set cpp_check to it before invoking dump_ada_nodes.
2085         (dump_ada_specs): Likewise.
2087 2013-11-03  Marek Polacek  <polacek@redhat.com>
2089         * c-ubsan.c: Don't include hash-table.h.
2090         (ubsan_instrument_vla): New function.
2091         * c-ubsan.h: Declare it.
2093 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
2095         Automated part of renaming of symtab_node_base to symtab_node.
2097         Patch autogenerated by rename_symtab.py from
2098         https://github.com/davidmalcolm/gcc-refactoring-scripts
2099         revision 58bb219cc090b2f4516a9297d868c245495ee622
2101         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2102         symtab_node_base to symtab_node.
2104 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
2106         Implement C++14 digit separators.
2107         * c-lex.c (interpret_float): Remove digit separators from scratch string
2108         before building real literal.
2110 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
2112         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2114 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2116         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2117         fields.
2118         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2119         enabled.
2120         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2121         (insert_cilk_frame): New prototype.
2122         (cilk_init_builtins): Likewise.
2123         (gimplify_cilk_spawn): Likewise.
2124         (c_cilk_install_body_w_frame_cleanup): Likewise.
2125         (cilk_detect_spawn_and_unwrap): Likewise.
2126         (cilk_set_spawn_marker): Likewise.
2127         (build_cilk_sync): Likewise.
2128         (build_cilk_spawn): Likewise.
2129         * cilk.c: New file.
2131 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
2133         Patch autogenerated by refactor_symtab.py from
2134         https://github.com/davidmalcolm/gcc-refactoring-scripts
2135         revision 58bb219cc090b2f4516a9297d868c245495ee622
2137         * c-gimplify.c (c_genericize): Update for conversion of symtab types
2138         to a true class hierarchy.
2139         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2141 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
2143         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2145 2013-10-26  Jeff Law  <law@redhat.com>
2147         * c-common.c (c_define_builtins): Remove mudflap support.
2148         * c.opt: Ignore and warn for mudflap options.
2150 2013-10-24  Tobias Burnus  <burnus@net-b.de>
2152         PR other/33426
2153         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2154         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2156 2013-10-23  Jason Merrill  <jason@redhat.com>
2158         * c-format.c (gcc_cxxdiag_char_table): Add %X.
2160 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
2162         * c-common.h (omp_clause_mask::operator !=): New method.
2163         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2164         instead of if (mask & something) tests everywhere.
2166         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2167         201307 instead of 201107.
2168         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2169         (c_common_attribute_table): Add "omp declare target" and
2170         "omp declare simd" attributes.
2171         (handle_omp_declare_target_attribute,
2172         handle_omp_declare_simd_attribute): New functions.
2173         * c-omp.c: Include c-pragma.h.
2174         (c_finish_omp_taskgroup): New function.
2175         (c_finish_omp_atomic): Add swapped argument, if true,
2176         build the operation first with rhs, lhs arguments and use NOP_EXPR
2177         build_modify_expr.
2178         (c_finish_omp_for): Add code argument, pass it down to make_code.
2179         (c_omp_split_clauses): New function.
2180         (c_split_parallel_clauses): Removed.
2181         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2182         c_omp_declare_simd_clauses_to_decls): New functions.
2183         * c-common.h (omp_clause_mask): New type.
2184         (OMP_CLAUSE_MASK_1): Define.
2185         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2186         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2187         omp_clause_mask::operator |, omp_clause_mask::operator &,
2188         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2189         omp_clause_mask::operator ==): New methods.
2190         (enum c_omp_clause_split): New.
2191         (c_finish_omp_taskgroup): New prototype.
2192         (c_finish_omp_atomic): Add swapped argument.
2193         (c_finish_omp_for): Add code argument.
2194         (c_omp_split_clauses): New prototype.
2195         (c_split_parallel_clauses): Removed.
2196         (c_omp_declare_simd_clauses_to_numbers,
2197         c_omp_declare_simd_clauses_to_decls): New prototypes.
2198         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2199         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2200         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2201         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2202         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2203         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2204         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2205         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2206         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2207         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2208         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2209         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2210         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2211         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2212         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2213         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2214         PRAGMA_OMP_CLAUSE_UNIFORM.
2216 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
2218         PR tree-optimization/20318
2219         * c-common.c (handle_returns_nonnull_attribute): New function.
2220         (c_common_attribute_table): Add returns_nonnull.
2222 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
2224         PR c++/19476
2225         * c.opt (fcheck-new): Move to common.opt.
2227 2013-09-25  Marek Polacek  <polacek@redhat.com>
2228             Jakub Jelinek  <jakub@redhat.com>
2230         PR sanitizer/58413
2231         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2232         an expression if we can prove it is correct.
2233         (ubsan_instrument_division): Likewise.  Remove unnecessary
2234         check.
2236 2013-09-18  Marek Polacek  <polacek@redhat.com>
2238         PR sanitizer/58411
2239         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2240         Declare it.
2241         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2243 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
2245         PR target/48094
2246         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2247         fobjc-gc, freplace-objc-classes): Accept for LTO.
2249 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
2251         * c-target.def: New hook
2253 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
2255         PR c++/43452
2256         * c.opt (Wdelete-incomplete): Add.
2258 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2260         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2261         (vector_types_compatible_elements_p): New function.
2262         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2263         declaration.
2264         (vector_types_compatible_elements_p): Declare.
2266 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2268         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2269         a virtual member function.
2270         (pp_simple_type_specifier): Remove.
2271         (pp_c_type_specifier): Likewise.
2272         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2273         Rename from pp_c_type_specifier.  Adjust.
2274         (c_pretty_printer::c_pretty_printer): Do not assign to
2275         simple_type_specifier.
2277 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2279         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2280         member function.
2281         (c_pretty_printer::storage_class_specifier): Likewise.
2282         (c_pretty_printer::initializer): Likewise.
2283         (pp_declaration): Remove.
2284         (pp_declaration_specifiers): Likewise.
2285         (pp_abstract_declarator): Likewise.
2286         (pp_declarator): Likewise.
2287         (pp_type_id): Likewise.
2288         (pp_statement): Likewise.
2289         (pp_constant): Likewise.
2290         (pp_id_expression): Likewise.
2291         (pp_primary_expression): Likewise.
2292         (pp_unary_expression): Likewise.
2293         (pp_multiplicative_expression): Likewise.
2294         (pp_conditional_expression): Likewise.
2295         (pp_assignment_expression): Likewise.
2296         (pp_expression): Likewise.
2297         (pp_c_type_id): Likewise.
2298         (pp_c_storage_class_specifier): Likewise.
2299         * c-pretty-print.c (pp_c_type_cast): Tidy.
2300         (pp_c_pointer): Likewise.
2301         (pp_c_type_specifier): Likewise.
2302         (pp_c_parameter_type_list): Likewise.
2303         (pp_c_function_definition): Likewise.
2304         (pp_c_init_declarator): Likewise.
2305         (pp_c_initializer_list): Likewise.
2306         (pp_c_constructor_elts): Likewise.
2307         (c_pretty_printer::direct_abstract_declarator): Likewise.
2308         (c_pretty_printer::declaration_specifiers): Likewise.
2309         (c_pretty_printer::primary_expression): Likewise.
2310         (c_pretty_printer::postfix_expression): Likewise.
2311         (c_pretty_printer::type_id): Rename from pp_c_type_id.
2312         (c_pretty_printer::storage_class_specifier): Rename from
2313         pp_c_storage_class_specifier.
2314         (c_pretty_printer::initializer): Rename from pp_c_initializer.
2315         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2316         storage_class_specifier, initializer, offset_list, flags.
2318 2013-08-30  Marek Polacek  <polacek@redhat.com>
2320         * c-ubsan.c: New file.
2321         * c-ubsan.h: New file.
2323 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2325         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2326         member function.
2327         (c_pretty_printer::declaration_specifiers): Likewise.
2328         (c_pretty_printer::declarator): Likewise.
2329         (c_pretty_printer::abstract_declarator): Likewise.
2330         (c_pretty_printer::direct_abstract_declarator): Likewise.
2331         (c_pretty_printer::direct_declarator): Likewise.
2332         (c_pretty_printer::function_specifier): Likewise.
2333         (pp_declaration): Adjust.
2334         (pp_declaration_specifiers): Likewise.
2335         (pp_abstract_declarator): Likewise.
2336         (pp_direct_declarator): Likewise.
2337         (pp_function_specifier): Likewise.
2338         (pp_direct_abstract_declarator): Remove as unused.
2339         (pp_c_declaration): Remove.
2340         (pp_c_declaration_specifiers): Likewise.
2341         (pp_c_declarator): Likewise.
2342         (pp_c_direct_declarator): Likewise.
2343         (pp_c_function_specifier): Likewise.
2344         (pp_c_direct_abstract_declarator): Likewise.
2345         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2346         from pp_c_abstract_declarator.  Adjust.
2347         (c_pretty_printer::direct_abstract_declarator):  Rename from
2348         pp_c_direct_abstract_declarator.  Adjust.
2349         (c_pretty_printer::function_specifier): Rename from
2350         pp_c_function_specifier.  Adjust.
2351         (c_pretty_printer::declaration_specifiers): Rename from
2352         pp_c_declaration_specifiers.  Adjust.
2353         (c_pretty_printer::direct_declarator): Rename from
2354         pp_c_direct_declarator.  Adjust.
2355         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
2356         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
2357         (c_pretty_printer::c_pretty_printer): Do not assign to
2358         declaration, declaration_specifiers, declarator,
2359         direct_declarator, direct_abstract_declarator, function_specifier.
2361 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
2363         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2364         virtual member function.
2365         (c_pretty_printer::multiplicative_expression): Likewise.
2366         (c_pretty_printer::conditional_expression): Likewise.
2367         (c_pretty_printer::assignment_expression): Likewise.
2368         (c_pretty_printer::expression): Likewise.
2369         (pp_unary_expression): Adjust.
2370         (pp_multiplicative_expression): Likewise.
2371         (pp_assignment_expression): Likewise.
2372         (pp_conditional_expression): Likewise.
2373         (pp_expression): Likewise.
2374         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2375         from pp_c_unary_expression.  Adjust.
2376         (c_pretty_printer::multiplicative_expression): Rename from
2377         pp_c_multiplicative_expression.  Adjust.
2378         (c_pretty_printer::conditional_expression): Rename from
2379         pp_c_conditional_expression.  Adjust.
2380         (c_pretty_printer::assignment_expression): Rename from
2381         pp_c_assignment_expression.  Adjust.
2382         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
2383         (c_pretty_printer::c_pretty_printer): Do not assign to
2384         unary_expression, multiplicative_expression,
2385         conditional_expression, expression.
2387 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2389         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2390         virtual member function.
2391         (pp_postfix_expression): Adjust.
2392         (pp_c_postfix_expression): Remove.
2393         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2394         from pp_c_postfix_expression.  Adjust.
2395         (c_pretty_printer::c_pretty_printer): Do not assign to
2396         postfix_expression.
2398 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2400         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2401         virtua member function.
2402         (pp_primary_expression): Adjust.
2403         (pp_c_primary_expression): Remove.
2404         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2405         from pp_c_primary_expression.  Adjust.
2406         (pp_c_initializer_list): Use pp_primary_expression.
2407         (c_pretty_printer::c_pretty_printer): Do not assign to
2408         primary_expression.
2410 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2412         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2413         * c-pretty-print.c (M_): Remove.
2414         (c_pretty_printer::translate_string): Define.
2415         (pp_c_type_specifier): Use it.
2416         (pp_c_primary_expression): Likewise.
2417         (pp_c_expression): Likewise.
2419 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2421         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2422         virtual function.
2423         (pp_c_id_expression): Remove.
2424         (pp_id_expression): Adjust.
2425         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2426         pp_c_id_expression.  Adjust.
2427         (pp_c_postfix_expression): Use pp_id_expression.
2428         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2430 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2432         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2433         member function.
2434         (pp_constant): Adjust.
2435         (pp_c_constant): Remove.
2436         * c-pretty-print.c (c_pretty_printer::constant): Rename from
2437         pp_c_constant.  Adjust.
2438         (pp_c_constant)
2439         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2440         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2442 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2444         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2445         (c_pretty_printer::c_pretty_printer): Declare.
2446         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2447         c_pretty_printer_init.  Adjust.
2448         (print_c_tree): Do not call c_pretty_printer_init.
2449         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2451 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
2453         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2455 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2457         PR c++/58080
2458         * c-common.c (pointer_int_sum): Add bool parameter.
2459         * c-common.h (pointer_int_sum): Adjust declaration.
2461 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2463         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
2464         c_pretty_printer variable.
2466 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2468         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2469         (pp_base): Remove.
2470         (pp_c_base): Likewise.  Adjust users.
2471         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2472         (pp_c_whitespace): Do not call pp_base.
2473         (pp_c_left_paren): Likewise.
2474         (pp_c_right_paren): Likewise.
2475         (pp_c_left_brace): Likewise.
2476         (pp_c_right_brace): Likewise.
2477         (pp_c_left_bracket): Likewise.
2478         (pp_c_right_bracket): Likewise.
2479         (pp_c_dot): Likewise.
2480         (pp_c_ampersand): Likewise.
2481         (pp_c_star): Likewise.
2482         (pp_c_arrow): Likewise.
2483         (pp_c_semicolon): Likewise.
2484         (pp_c_complement): Likewise.
2485         (pp_c_exclamation): Likewise.
2486         (pp_c_direct_declarator): Likewise.
2487         (pp_c_ws_string): Likewise.
2488         (pp_c_identifier): Likewise.
2489         (pp_c_statement): Likewise.
2490         (print_c_tree): Likewise.
2492 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
2494         PR c++/58072
2495         * c-common.c (c_parse_error): Catch user-defined literal tokens and
2496         provide useful error strings.
2498 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2500         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2501         printer functions instead of pp_string or operators and punctuators.
2502         (dump_generic_ada_node): Likewise.
2503         * c-pretty-print.c (pp_c_type_specifier): Likewise.
2504         (pp_c_relational_expression): Likewise.
2505         (pp_c_logical_or_expression): Likewise.
2507 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2509         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2510         functions instead of pp_character.
2511         (pp_ada_tree_identifier): Likewise.
2512         (dump_ada_double_name): Likewise.
2513         (dump_ada_function_declaration): Likewise.
2514         (dump_ada_array_domains): Likewise.
2515         (dump_template_types): Likewise.
2516         (dump_generic_ada_node): Likewise.
2517         (print_ada_declaration): Likewise.
2518         (print_ada_struct_decl): Likewise.
2519         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2521 2013-07-23  Tom Tromey  <tromey@redhat.com>
2523         * c-common.h (enum rid) <RID_GENERIC>: New constant.
2524         * c-common.c (c_common_reswords): Add _Generic.
2526 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
2528         * c-common.c: Fix typos.
2529         * c-common.h: Likewise.
2531 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
2533         PR c++/55203
2534         * c-common.c (c_common_attribute_table): Add warn_unused.
2535         (handle_warn_unused_attribute): New.
2537 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
2539         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2540         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2542 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
2544         PR c++/57869
2545         * c.opt: Add Wconditionally-supported.
2547 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
2549         * array-notation-common.c (length_mismatch_in_expr_p): Delete
2550         unused variables l_length and l_node.
2552 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2554         PR c/57821
2555         * c-common.c (complete_array_type): Delay folding first index
2556         like other indices.  When folding, check for index overflow.
2558 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
2560         PR c++/57509
2561         * c-common.h (c_build_vec_perm_expr): New complain argument.
2562         * c-common.c (c_build_vec_perm_expr): Likewise.
2563         Use save_expr also in C++.
2565 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2567         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2568         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2569         * c-opts.c (c_common_post_options): Likewise.
2571 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2573         * array-notation-common.c (length_mismatch_in_expr): Changed the
2574         parameter type's from a dynamic array to a vec_tree.  Also removed
2575         the size parameters.
2576         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2577         the change above.
2579 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2581         * c-common.h (struct cilkplus_an_parts): New structure.
2582         (struct cilkplus_an_loop_parts): Likewise.
2583         (cilkplus_extract_an_triplets): New prototype.
2584         (fix_sec_implicit_args): Likewise.
2585         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2586         (fix_sec_implicit_args): Likewise.
2588 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2590         * array-notation-common.c (find_inv_trees): Removed an unwanted
2591         typecasting.
2592         * c-common.h (struct inv_list::additional_tcodes): Changed type from
2593         enum rid to enum tree_code.
2595 2013-06-11  Jan Hubicka  <jh@suse.cz>
2597         * c-common.c (handle_alias_ifunc_attribute): Do not set
2598         DECL_EXTERNAL for weakref variables.
2599         * c-pragma.c (handle_pragma_weak): Make sure aliases
2600         are not declared as external.
2602 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2604         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2605         function from c/c-array-notation.c.
2606         (is_cilkplus_reduce_builtin): Likewise.
2607         (find_rank): Likewise.
2608         (extract_array_notation_exprs): Likewise.
2609         (replace_array_notations): Likewise.
2610         (find_inv_trees): Likewise.
2611         (replace_inv_trees): Likewise.
2612         (contains_array_notation_expr): Likewise.
2613         (find_correct_array_notation_type): Likewise.
2614         * c-common.h (struct inv_list): Moved this struct from the file
2615         c/c-array-notation.c and added a new field called additional tcodes.
2616         (length_mismatch_in_expr_p): New prototype.
2617         (is_cilkplus_reduce_builtin): Likewise.
2618         (find_rank): Likewise.
2619         (extract_array_notation_exprs): Likewise.
2620         (replace_array_notation): Likewise.
2621         (find_inv_trees): Likewise.
2622         (replace_inv_trees): Likewise.
2623         (find_correct_array_notation_type): Likewise.
2625 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2627         * c-common.c (c_define_builtins): When cilkplus is enabled, the
2628         function array_notation_init_builtins is called.
2629         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2630         * c-common.def (ARRAY_NOTATION_REF): New tree.
2631         * c-common.h (build_array_notation_expr): New function declaration.
2632         (build_array_notation_ref): Likewise.
2633         (extract_sec_implicit_index_arg): New extern declaration.
2634         (is_sec_implicit_index_fn): Likewise.
2635         (ARRAY_NOTATION_CHECK): New define.
2636         (ARRAY_NOTATION_ARRAY): Likewise.
2637         (ARRAY_NOTATION_START): Likewise.
2638         (ARRAY_NOTATION_LENGTH): Likewise.
2639         (ARRAY_NOTATION_STRIDE): Likewise.
2640         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2641         ARRAY_NOTATION_REF.
2642         (pp_c_expression): Likewise.
2643         * c.opt (flag_enable_cilkplus): New flag.
2644         * array-notation-common.c: New file.
2646 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2648         PR c++/57274
2649         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2651 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
2653         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2654         vectors.
2656 2013-05-07  Han Shen  <shenhan@google.com>
2658         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2660 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2662         * c-common.c (check_user_alignment): Emit error for negative values.
2664 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2666         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2668 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2670         * c-cppbuiltin.c (c_cpp_builtins): Do not define
2671         __GXX_EXPERIMENTAL_CXX1Y__.
2673 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2674             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2676         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2677         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2678         to simply use OPT_Wpointer_arith.
2679         (c_sizeof_or_alignof_type): Likewise.
2681 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2683         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2685 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2687         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2688         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2689         specifiers.
2691 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
2693         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2695 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
2697         * c-common.c (pointer_int_sum): Remove dead code.
2699 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2701         PR middle-end/56524
2702         * c-common.c (handle_optimize_attribute): Don't call
2703         save_optabs_if_changed.
2705 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2707         PR middle-end/56461
2708         * c-pch.c (pch_init): Free target_validity at the end.
2710 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2712         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2714 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2715             Jakub Jelinek  <jakub@redhat.com>
2717         PR sanitizer/56454
2718         * c-common.c (handle_no_sanitize_address_attribute): New function.
2719         (c_common_attribute_table): Add no_sanitize_address attribute.
2720         (handle_no_address_safety_analysis_attribute): Add
2721         no_sanitize_address attribute, not no_address_safety_analysis
2722         attribute.
2724 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2726         PR target/52555
2727         * c-common.c (handle_optimize_attribute): Call
2728         save_optabs_if_changed.
2730 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
2731             Steven Bosscher  <steven@gcc.gnu.org>
2733         PR pch/54117
2734         * c-opts.c (c_common_post_options): If debug info is enabled
2735         and non-dwarf*, refuse to load PCH files and when writing PCH
2736         file warn.
2738 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
2740         PR middle-end/56167
2741         * c-common.c (handle_error_attribute): Fix condition.
2743 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
2745         PR c++/55742
2746         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2748 2013-01-18  Jason Merrill  <jason@redhat.com>
2750         PR target/54908
2751         * c.opt (-fextern-tls-init): New.
2752         * c-opts.c (c_common_post_options): Handle it.
2754 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
2756         PR c/48418
2757         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2758         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2759         and is either negative or bigger or equal to type precision
2760         of the first operand.
2762 2012-12-03  Marek Polacek  <polacek@redhat.com>
2764         PR c/55570
2765         * c-common.c (check_user_alignment): Swap order of tests,
2766         check TREE_CODE first.
2768 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2770         PR c++/52654
2771         * c-common.h (overflow_type): New enum.
2772         (build_userdef_literal): Add overflow_type argument.
2773         (tree_userdef_literal): Add overflow_type.
2774         (USERDEF_LITERAL_OVERFLOW): New access macro.
2775         * c-common.c (build_userdef_literal): Add overflow_type
2776         argument.
2777         * c-lex.c (c_lex_with_flags): Add overflow_type to
2778         build_userdef_literal calls.
2779         (interpret_integer, interpret_float): Add overflow_type argument.
2781 2012-11-28  Richard Biener  <rguenther@suse.de>
2783         PR c/35634
2784         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2785         here and use a type with proper overflow behavior for types that would
2786         need to be promoted for the arithmetic.
2788 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2790         PR sanitizer/55435
2791         * c-common.c (handle_no_address_safety_analysis_attribute): New
2792         function.
2793         (c_common_attribute_table): Add no_address_safety_analysis.
2795 2012-11-16  Simon Baldwin  <simonb@google.com>
2797         * c.opt: Add f[no-]canonical-system-headers.
2798         * c-opts.c (c_common_handle_option): Handle
2799         OPT_fcanonical_system_headers.
2801 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2803         PR c++/54413
2804         * c-opts.c (c_common_handle_option): Set new flags.
2805         * c.opt: Describe new flags.
2807 2012-11-09  Jason Merrill  <jason@redhat.com>
2809         * c.opt (Wabi-tag): New.
2811 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2813         PR 55139
2814         * c-common.c (get_atomic_generic_size): Mask with
2815         MEMMODEL_MASK
2817 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2819         PR c/53063
2820         * c.opt (Wformat): Make it Alias Wformat=1.
2821         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2822         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2823         LangEnabledBy.
2824         (Wformat=): RejectNegative. Use LangEnabledBy.
2825         (Wnonnull): Use LangEnabledBy.
2826         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2827         * c-format.c (set_Wformat): Delete.
2828         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2829         (maybe_read_dollar_number):  Likewise.
2830         (avoid_dollar_number):  Likewise.
2831         (finish_dollar_format_checking):  Likewise.
2832         (check_format_info):  Likewise.
2833         (check_format_info_main):  Likewise.
2834         (check_format_types):  Likewise.
2835         (format_type_warning):  Likewise.
2836         * c-common.c (int):  Likewise.
2837         (check_function_sentinel):  Likewise.
2838         * c-common.h (warn_format,set_Wformat): Do not declare here.
2840 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2842         PR c/53063
2843         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2844         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2845         Use LangEnabledBy.
2846         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2847         common.opt.
2848         (Wvariadic-macros): Init(1).
2849         * c-opts.c (c_common_handle_option): Do not handle them
2850         explicitly.
2851         (c_common_post_options): Likewise.
2852         (sanitize_cpp_opts): warn_unused_macros is now
2853         cpp_warn_unused_macros.
2854         (push_command_line_include): Likewise.
2855         * c-common.c (warn_unknown_pragmas): Do not define.
2856         * c-common.h (warn_unknown_pragmas): Do not declare.
2858 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2860         PR c/51294
2861         * c-common.c (conversion_warning): Handle conditional expressions.
2863 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2865         PR c++/54930
2866         * c.opt (Wreturn_local_addr): Define new option.
2868 2012-10-25  Jason Merrill  <jason@redhat.com>
2870         * c.opt (Wvirtual-move-assign): New.
2872         * c.opt (Winherited-variadic-ctor): New.
2874 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
2876         PR c++/54427
2877         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2879 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2881         * c-common.h (pch_cpp_save_state): Declare.
2882         * c-target.def (c_preinclude): New hook.
2883         * c-opts.c (done_preinclude): New.
2884         (push_command_line_include): Handle default preincluded header.
2885         (cb_file_change): Call pch_cpp_save_state when calling
2886         push_command_line_include.
2887         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2888         (pch_cpp_save_state): New.
2889         (pch_init): Call pch_cpp_save_state conditionally, instead of
2890         calling cpp_save_state.
2892 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2894         PR c/53063
2895         PR c/40989
2896         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2897         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2898         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2899         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2900         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2901         * c-opts.c (c_common_handle_option): Remove explicit handling from
2902         here.
2903         (c_common_post_options): Likewise.
2905 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2907         * c-ada-spec.c (LOCATION_COL): Delete.
2908         (compare_location): New function.
2909         (compare_node): Use it.
2910         (compare_comment): Likewise.
2912 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2914         PR c/53063
2915         PR c/40989
2916         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2917         * c-opts.c (c_common_handle_option): Do not set them here. Add
2918         comment.
2919         (c_common_post_options): Likewise.
2921 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2923         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2924         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2925         Remove POINTER_TYPE handling, add large unsigned handling and use
2926         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2928 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2930         PR c/54381
2931         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2932         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2933         locs and array of 3 trees instead of just single loc and single
2934         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2935         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2936         For *cmp* builtins that take two sources strings report warnings
2937         about first and second source, not about destination and source.
2939 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2941         PR c++/53055
2942         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2944 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2946         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2947         declaring something coming from another file.
2949 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2951         PR ada/54845
2952         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2954 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2956         PR c++/54194
2957         * c-common.c (warn_about_parentheses): Add location_t parameter;
2958         use EXPR_LOC_OR_LOC.
2959         * c-common.h: Update declaration.
2961 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2963         PR c++/54427
2964         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2965         more operations. Make error messages optional.
2966         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2967         (scalar_to_vector): Declare.
2969 2012-10-08  Jason Merrill  <jason@redhat.com>
2971         * c-common.c (c_common_reswords): Add thread_local.
2973 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2975         PR c++/53528 C++11 attribute support
2976         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2977         new functions.
2978         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2979         static function.
2980         (handle_aligned_attribute): In choose strictest alignment
2981         among many.  Use new check_cxx_fundamental_alignment_constraints.
2982         (handle_transparent_union_attribute): In c++11 attribute syntax,
2983         don't look through typedefs.
2985 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2987         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2988         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2989         out of dumpfile.h.
2991 2012-09-25  Dehao Chen  <dehao@google.com>
2993         PR middle-end/54645
2994         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2995         map when read in the pch.
2997 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2999         * c-ada-spec.c: Style fixes.
3001 2012-09-18 Thomas Quinot  <quinot@adacore.com>
3003         * c.opt (-fada-spec-parent): Define new command line switch.
3004         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3005         is specified, generate binding spec as a child of the specified unit.
3007 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
3008             Manuel López-Ibáñez  <manu@gcc.gnu.org>
3010         PR c++/53210
3011         * c.opt ([Winit-self]): Enabled by -Wall in C++.
3013 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
3015         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3016         for pointers, and add missing Convention C pragma.
3017         (print_ada_struct_decl): Add missing aliased keyword.
3018         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3020 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
3022         * c-common.c (sizeof_pointer_memaccess_warning): New function.
3023         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3024         * c-opts.c (c_common_handle_option): Enable it for -Wall.
3025         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3026         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3028 2012-08-10  Richard Guenther  <rguenther@suse.de>
3030         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3032 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
3034         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3035         instead of separate pp_newline and pp_flush.
3036         (print_c_tree): Likewise.
3038 2012-07-26  Richard Henderson  <rth@redhat.com>
3040         * c-common.c (handle_hot_attribute): Allow labels.
3041         (handle_cold_attribute): Likewise.
3043 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
3045         PR c++/28656
3046         * c-common.c (check_function_nonnull): Handle multiple nonnull
3047         attributes properly.
3049 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
3051         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3052         * c-ada-spec.c: Likewise.
3053         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3055 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
3057         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3058         Remove code conditional on it.
3060 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
3062         * c-gimplify.c: Do not include basic-block.h.
3063         * c-common.c: Do not include linfuncs.h.
3065 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
3067         * c-common.h: Include tree.h.
3069 2012-07-02  Jason Merrill  <jason@redhat.com>
3071         PR c++/53524
3072         * c-common.c (get_priority): Call default_conversion.
3074 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
3076         * c-pch.c (c_common_write_pch): Remove unused variables.
3078 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
3080         * cppspec.c: Moved from gcc/ to here.
3082 2012-06-27  Kai Tietz  <ktietz@redhat.com>
3084         PR preprocessor/37215
3085         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3087 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
3089         * c-common.h (c_common_print_pch_checksum): Remove.
3090         * c-pch.c: Do not include output.h.
3091         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3092         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3093         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3094         (struct c_pch_header): Remove.
3095         (get_ident): Update gpch version.
3096         (pch_init): Do not print executable_checksum to asm_out_file.
3097         Do not fail if there is no asm_out_file to read back from.  Set
3098         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3099         (c_common_write_pch): Verify that nothing was written to asm_out_file
3100         since pch_init was called.  Do not write a c_pch_header, and do not
3101         copy from asm_out_file to the PCH.
3102         (c_common_read_pch): Do not read a c_pch_header, and do not restore
3103         the content of asm_out_file from the PCH.
3104         (c_common_print_pch_checksum): Remove.
3105         * c-opts.c (c_common_init): Print out executable_checksum directly.
3107 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
3109         * c-target.def (objc_declare_unresolved_class_reference,
3110         objc_declare_class_definition): Add new hooks.
3112 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
3114         * c-lex.c: Do not include output.h.
3115         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3116         Remove uses of ASM_OUTPUT_IDENT.
3118 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
3120         PR c++/51033
3121         * c-common.h (c_build_vec_perm_expr): Move decl here.
3122         * c-common.c (c_build_vec_perm_expr): Move definition
3123         here.
3125 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
3127         * c.opt (fconserve-space): Turn into a no-op.
3129 2012-06-04  Sterling Augustine  <saugustine@google.com>
3131         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3132         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3133         both the start and end of the function.
3135 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3137         * c-common.c: Do not include output.h.
3138         * c-pragma.c: Likewise.
3140 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3142         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3143         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3144         (lang_decl_name): Handle namespace decls.
3146 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
3148         * c-ada-spec.c: Do not include output.h.
3149         * c-semantics.c: Likewise.
3151 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
3153         * c-common.c: Fix typo.
3155 2012-05-29  Michael Matz  <matz@suse.de>
3157         * c-common.h (c_expand_decl): Remove prototype.
3159 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3161         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3162         * c-opts.c (c_common_handle_option): Remove code handling
3163         warn_missing_braces.
3165 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
3167         PR c++/25137
3168         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3169         -Wmissing_braces.
3171 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
3173         PR c++/53322
3174         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3176 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3178         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3179         * c-opts.c (c_common_handle_option): Do not handle explicitly
3180         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3182 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
3184         PR preprocessor/7263
3185         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
3186         to cpp_classify_number.  For diagnostics, use the precise location
3187         instead of the global input_location.
3189 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3191         PR c++/11856
3192         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3194 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
3196         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3198 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3200         PR 53063
3201         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3202         Wreorder): Use LangEnabledBy.
3203         * c-opts.c (c_common_handle_option): Do not enable them
3204         explicitly. Call lang-specific generated functions.
3205         (c_common_post_options): Do not set them here.
3207 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3209         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3210         Wmissing-field-initializers,Wmissing-parameter-type,
3211         Wold-style-declaration,Woverride-init): Use EnabledBy.
3212         * c-opts.c (c_common_post_options): Do not set here explicitly.
3214 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3216         PR 53063
3217         * c-opts.c (c_common_handle_option): Use handle_generated_option
3218         to enable sub-options.
3220 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
3222         PR c++/53158
3223         * c-common.c (warnings_for_convert_and_check): Use warning_at.
3225 2012-05-10  Richard Guenther  <rguenther@suse.de>
3227         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3228         adjust commentary about TYPE_IS_SIZETYPE types.
3230 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3232         PR c++/53261
3233         * c-common.c (warn_logical_operator): Check that argument of
3234         integer_zerop is not NULL.
3236 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3238         PR c/43772
3239         * c-common.c (warn_logical_operator): Do not warn if either side
3240         is already true or false.
3242 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3244         PR c/51712
3245         * c-common.c (expr_original_type): New.
3246         (shorten_compare): Do not warn for enumeration types.
3248 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3250         * c.opt (fpermissive): Add Var(flag_permissive).
3252 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
3254         PR c++/51033
3255         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3256         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3258 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
3260         Add -Wvarargs option
3261         * c.opt (Wvarargs):  Define new option.
3263 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3265         * c-common.c (check_function_arguments): Replace
3266         Wmissing-format-attribute with Wsuggest-attribute=format.
3268 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3270         * c.opt (Wsuggest-attribute=format): New. Alias of
3271         Wmissing-format-attribute.
3272         * c-format.c (decode_format_type): Replace
3273         Wmissing-format-attribute with Wsuggest-attribute=format.
3274         (check_function_format): Likewise.
3276 2012-04-27  Ollie Wild  <aaw@google.com>
3278         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3279         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3280         * c.opt: Add Wliteral-suffix.
3282 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3284         PR c/44774
3285         * c.opt (Wpedantic): New.
3286         (pedantic): Alias Wpedantic.
3287         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3288         (c_common_post_options): Likewise.
3289         (sanitize_cpp_opts): Likewise.
3290         * c-lex.c (interpret_float): Likewise.
3291         * c-format.c (check_format_types): Likewise.
3292         * c-common.c (pointer_int_sum): Likewise.
3293         (c_sizeof_or_alignof_type): Likewise.
3294         (c_add_case_label): Likewise.
3295         (c_do_switch_warnings): Likewise.
3296         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3298 2012-04-15  Jason Merrill  <jason@redhat.com>
3300         PR c++/52818
3301         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3302         (C_STD_NAME): Distinguish between C++98 and C++11.
3304 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3306         PR target/52624
3307         * c-common.h (uint16_type_node): Rename into...
3308         (c_uint16_type_node): ...this.
3309         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3310         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3312 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3314         * c-common.c (warn_if_unused_value): Move definition to here.
3315         * c-common.h (warn_if_unused_value): Move declaration to here.
3317 2012-03-23  William Bader  <williambader@hotmail.com>
3319         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3321 2012-03-20  Jason Merrill  <jason@redhat.com>
3323         * c-common.h (enum cxx_dialect): Add cxx1y.
3324         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3325         test.
3326         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3327         * c-opts.c (c_common_post_options): Likewise.
3328         (set_std_cxx1y): New.
3329         (c_common_handle_option): Call it.
3330         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3332 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
3334         PR c++/14710
3335         * c.opt ([Wuseless-cast]): Add.
3337 2012-03-16  Richard Guenther  <rguenther@suse.de>
3339         * c-pretty-print.c (pp_c_initializer_list): Adjust.
3341 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3343         PR c++/44783
3344         * c.opt (ftemplate-backtrace-limit) Add.
3346 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3348         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3349         handling.
3350         * c-pragma.c (handle_pragma_extern_prefix): Remove.
3351         (init_pragma): Don't register extern_prefix.
3353 2012-03-12  Richard Guenther  <rguenther@suse.de>
3355         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3356         (builtin_type_for_size): Likewise.
3358 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
3360         PR c++/52215
3361         * c-common.c (sync_resolve_params): Don't decide whether to convert
3362         or not based on TYPE_SIZE comparison, convert whenever arg_type
3363         is unsigned INTEGER_TYPE.
3365 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
3367         PR c/52118
3368         * c.opt ([Wunused-local-typedefs]): Fix description.
3370 2012-01-24  Mike Stump  <mikestump@comcast.net>
3372         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3373         exactly.
3375 2012-01-18  Richard Guenther  <rguenther@suse.de>
3377         * c-opts.c (c_common_post_options): Reset LTO flags if
3378         we are about to generate a PCH.
3380 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
3382         PR c++/51777
3383         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3384         use pp_unsigned_wide_integer.
3386 2012-01-10  Richard Guenther  <rguenther@suse.de>
3388         PR middle-end/51806
3389         * c-opts.c (c_common_handle_option): Move -Werror handling
3390         to language independent code.
3392 2012-01-05  Richard Guenther  <rguenther@suse.de>
3394         PR middle-end/51764
3395         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3396         from common.opt.
3398 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
3400         PR c++/51316
3401         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3402         of array types with an unknown bound.
3404 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
3406         * c-common.c (flag_isoc99): Update comment to refer to C11.
3407         (flag_isoc1x): Change to flag_isoc11.
3408         * c-common.h (flag_isoc99): Update comment to refer to C11.
3409         (flag_isoc1x): Change to flag_isoc11.
3410         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3411         C11.
3412         * c-opts.c (set_std_c1x): Change to set_std_c11.
3413         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3414         Call set_std_c11.
3415         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3416         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3417         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
3418         standard.
3419         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3420         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
3421         (std=gnu1x): Make alias of std=gnu11.
3423 2011-12-19  Jason Merrill  <jason@redhat.com>
3425         PR c++/51228
3426         * c-common.c (handle_transparent_union_attribute): Check the first
3427         field if the type is complete.
3429 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
3431         PR libstdc++/51365
3432         * c-common.c (RID_IS_FINAL): Add.
3433         * c-common.h (RID_IS_FINAL): Add.
3435 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
3437         * c.opt (fgnu-runtime): Provide full description.
3438         (fnext-runtime): Likewise.
3439         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3441 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
3443         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
3444         predefines in one place.  Add LOCK_FREE predefines.
3445         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3446         new func.
3448 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
3450         PR c/51256
3451         * c-common.c (get_atomic_generic_size): Check for various error
3452         conditions
3453         (resolve_overloaded_atomic_exchange,
3454         resolve_overloaded_atomic_compare_exchange,
3455         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3456         error_mark_node for error conditions.
3458 2011-11-08  Richard Guenther  <rguenther@suse.de>
3460         PR middle-end/51010
3461         c-family/
3463 2011-11-07  Richard Henderson  <rth@redhat.com>
3464             Aldy Hernandez  <aldyh@redhat.com>
3465             Torvald Riegel  <triegel@redhat.com>
3467         Merged from transactional-memory.
3469         * c-common.c (handle_tm_wrap_attribute,
3470         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3471         (struct c_common_reswords): Added __transaction* keywords.
3472         (struct c_common_attribute_table): Added transaction* and tm_regparm
3473         attributes.
3474         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3475         masks.
3476         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3477         find_tm_attribute): Declare.
3479 2011-11-07  Jason Merrill  <jason@redhat.com>
3481         PR c++/35688
3482         * c-common.c, c-common.h: Revert yesterday's changes.
3484 2011-11-06  Jason Merrill  <jason@redhat.com>
3486         PR c++/35688
3487         * c-common.c (decl_has_visibility_attr): Split out from...
3488         (c_determine_visibility): ...here.
3489         * c-common.h: Declare it.
3491 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3493         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3494         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3495         type.
3496         (check_user_alignment): New.  Split out of
3497         handle_aligned_attribute.  Disallow integer constants with
3498         noninteger types.  Conditionally allow zero.
3499         (handle_aligned_attribute): Use check_user_alignment.
3500         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3502 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
3503             Richard Henderson  <rth@redhat.com>
3505         Merged from cxx-mem-model.
3507         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3508         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3509         parameters that are the same type size.
3510         (get_atomic_generic_size): New.  Find size of generic
3511         atomic function parameters and do typechecking.
3512         (add_atomic_size_parameter): New.  Insert size into parameter list.
3513         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3514         either __atomic_exchange_n or external library call.
3515         (resolve_overloaded_atomic_compare_exchange): Restructure
3516         __atomic_compare_exchange to either _n variant or external library call.
3517         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3518         __atomic_load_n or an external library call.
3519         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3520         __atomic_store_n or an external library call.
3521         (resolve_overloaded_builtin): Handle new __atomic builtins.
3523 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3525         PR c++/50608
3526         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3527         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
3528         <INDIRECT_REF>: Return the argument.
3529         <ARRAY_REF>: Remove special code for negative offset.
3530         Call fold_build_pointer_plus instead of size_binop.
3531         (fold_offsetof): Remove STOP_REF argument and adjust.
3532         * c-common.h (fold_offsetof_1): Declare.
3533         (fold_offsetof): Remove STOP_REF argument.
3535 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
3537         PR c++/50810
3538         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3539         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3540         Wnarrowing for C++0x and C++98.
3541         * c.opt ([Wnarrowing]): Update.
3543 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3545         PR c++/44277
3546         * c.opt: Add Wzero-as-null-pointer-constant.
3548 2011-10-31  Jason Merrill  <jason@redhat.com>
3550         * c.opt (-fdeduce-init-list): Off by default.
3552         PR c++/50920
3553         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3554         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3555         and -Wc++11-compat.
3556         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3558 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
3560         PR c++/30066
3561         * c.opt (fvisibility-inlines-hidden): Description change.
3563 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
3565         Implement C++11 user-defined literals.
3566         * c-common.c (build_userdef_literal): New.
3567         * c-common.def: New tree code.
3568         * c-common.h (tree_userdef_literal): New tree struct and accessors.
3569         * c-lex.c (interpret_float): Add suffix parm.
3570         (c_lex_with_flags): Build literal tokens.
3572 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3574         PR c++/50841
3575         Revert:
3576         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3578         PR c++/50810
3579         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3580         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3581         Wnarrowing for C++0x and C++98.
3582         * c.opt ([Wnarrowing]): Update.
3584 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3586         PR c++/50810
3587         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3588         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3589         Wnarrowing for C++0x and C++98.
3590         * c.opt ([Wnarrowing]): Update.
3592 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
3594         PR c++/45385
3595         * c-common.c (conversion_warning): Remove code looking for
3596         artificial operands.
3598 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3600         PR bootstrap/50760
3601         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3602         !NO_IMPLICIT_EXTERN_C.
3604 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
3606         * c-common.c (c_common_reswords): Add __bases,
3607         __direct_bases.
3608         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3610 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3612         PR c++/50757
3613         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3615 2011-10-15  Tom Tromey  <tromey@redhat.com>
3616             Dodji Seketeli  <dodji@redhat.com>
3618         * c.opt (fdebug-cpp): New option.
3619         * c-opts.c (c_common_handle_option): Handle the option.
3620         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3621         output stream in parameter. Factorized from ...
3622         (maybe_print_line): ... this. Dump location debug information when
3623         -fdebug-cpp is in effect.
3624         (print_line_1): New static function. Takes an output stream in
3625         parameter. Factorized from ...
3626         (print_line): ... here. Dump location information when -fdebug-cpp
3627         is in effect.
3628         (scan_translation_unit): Dump location information when
3629         -fdebug-cpp is in effect.
3631 2011-10-15  Tom Tromey  <tromey@redhat.com>
3632             Dodji Seketeli  <dodji@redhat.com>
3634         * c.opt (ftrack-macro-expansion): New option. Handle it with and
3635         without argument.
3636         * c-opts.c (c_common_handle_option)<case
3637         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3638         cases. Handle -ftrack-macro-expansion with and without argument.
3640 2011-10-15  Tom Tromey  <tromey@redhat.com>
3641             Dodji Seketeli  <dodji@redhat.com>
3643         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3644         (print_line, cb_define, do_line_change): Adjust to avoid touching
3645         the internals of struct line_map.  Use the public API instead.
3646         * c-pch.c (c_common_read_pch): Likewise.
3647         * c-lex.c (fe_file_change): Likewise.
3649 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3651         PR c++/17212
3652         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3654 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
3656         PR c++/33067
3657         * c-pretty-print.c (pp_c_floating_constant): Output
3658         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3660 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3662         * c-common.c (def_builtin_1): Delete old interface with two
3663         parallel arrays to hold standard builtin declarations, and replace
3664         it with a function based interface that can support creating
3665         builtins on the fly in the future.  Change all uses, and poison
3666         the old names.  Make sure 0 is not a legitimate builtin index.
3667         * c-omp.c (c_finish_omp_barrier): Ditto.
3668         (c_finish_omp_taskwait): Ditto.
3669         (c_finish_omp_flush): Ditto.
3671 2011-10-11  Tristan Gingold  <gingold@adacore.com>
3673         * c.opt: (fallow-parameterless-variadic-functions): New.
3675 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3677         PR c++/33255 - Support -Wunused-local-typedefs warning
3678         * c-common.h (struct c_language_function::local_typedefs): New
3679         field.
3680         (record_locally_defined_typedef, maybe_record_typedef_use)
3681         (maybe_warn_unused_local_typedefs): Declare new functions.
3682         * c-common.c (record_locally_defined_typedef)
3683         (maybe_record_typedef_use)
3684         (maybe_warn_unused_local_typedefs): Define new functions.
3685         * c.opt: Declare new -Wunused-local-typedefs flag.
3687 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3689         PR middle-end/50266
3690         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3691         computations.
3693 2011-09-05  Richard Guenther  <rguenther@suse.de>
3695         * c-common.c (complete_array_type): Use ssize_int (-1) instead
3696         of integer_minus_one_node for empty array upper bounds.
3698 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
3700         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3701         it's the first time it's being called on this main TU.
3703 2011-08-24  Richard Guenther  <rguenther@suse.de>
3705         PR c/49396
3706         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3708 2011-08-22  Gabriel Charette  <gchare@google.com>
3710         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3711         defined in cpp_init_builtins and c_cpp_builtins.
3713 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3715         * c-common.c (c_common_reswords): Add __builtin_complex.
3716         * c-common.h (RID_BUILTIN_COMPLEX): New.
3718 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3720         * c-common.c (c_common_reswords): Add _Noreturn.
3721         (keyword_is_function_specifier): Handle RID_NORETURN.
3722         * c-common.h (RID_NORETURN): New.
3724 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3726         * c-common.c (unsafe_conversion_p): New function. Check if it is
3727         unsafe to convert an expression to the type.
3728         (conversion_warning): Adjust, use unsafe_conversion_p.
3729         * c-common.h (unsafe_conversion_p): New function declaration.
3731 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3733         * c-common.h (c_finish_omp_atomic): Adjust prototype.
3734         (c_finish_omp_taskyield): New prototype.
3735         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3736         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3737         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
3738         or RHS1 have side-effects, evaluate those too in the right spot,
3739         if it is a decl and LHS is also a decl, error out if they
3740         aren't the same.
3741         (c_finish_omp_taskyield): New function.
3742         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3743         * c-pragma.c (omp_pragmas): Add taskyield.
3744         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3745         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3746         PRAGMA_OMP_CLAUSE_MERGEABLE.
3748 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
3750         * c-common.h (set_underlying_type): Remove parm name from
3751         declaration.
3753 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
3755         * c-pretty-print.h: Search c-common.h in c-family.
3757 2011-07-22  Jason Merrill  <jason@redhat.com>
3759         PR c++/49793
3760         * c.opt (Wnarrowing): New.
3762         PR c++/30112
3763         * c-common.h: Declare c_linkage_bindings.
3764         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3766         PR c++/49813
3767         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3768         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3769         as flag_isoc99 for 'restrict'.
3770         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3772 2011-07-21  Ian Lance Taylor  <iant@google.com>
3774         PR middle-end/49705
3775         * c-common.c (c_disable_warnings): New static function.
3776         (c_enable_warnings): New static function.
3777         (c_fully_fold_internal): Change local unused_p to bool.  Call
3778         c_disable_warnings and c_enable_warnings rather than change
3779         c_inhibit_evaluation_warnings.
3781 2011-07-20  Jason Merrill  <jason@redhat.com>
3783         PR c++/6709 (DR 743)
3784         PR c++/42603 (DR 950)
3785         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3786         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3787         (CPP_DECLTYPE): New.
3788         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3790 2011-07-19  Richard Guenther  <rguenther@suse.de>
3792         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3793         * c-omp.c (c_finish_omp_for): Likewise.
3795 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3797         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3798         body on the next line.
3800 2011-07-08  Jason Merrill  <jason@redhat.com>
3802         PR c++/45437
3803         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3805         PR c++/49673
3806         * c-common.c (c_apply_type_quals_to_decl): Don't check
3807         TYPE_NEEDS_CONSTRUCTING.
3809 2011-07-06  Richard Guenther  <rguenther@suse.de>
3811         * c-common.c (c_common_nodes_and_builtins):
3812         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3814 2011-07-05  Richard Guenther  <rguenther@suse.de>
3816         * c-common.c (c_common_nodes_and_builtins): Build all common
3817         tree nodes first.
3819 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3821         * c-common.h (c_tree_chain_next): New static inline function.
3823         * c-common.c (check_builtin_function_arguments): Handle
3824         BUILT_IN_ASSUME_ALIGNED.
3826 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3828         * c-common.c: Add sync_ or SYNC__ to builtin names.
3829         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3831 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3833         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3834         handler.
3835         (gen_pragma_handler): New union.
3836         (internal_pragma_handler): New type.
3837         (c_register_pragma_with_data)
3838         (c_register_pragma_with_expansion_and_data): New functions.
3840         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3841         (c_register_pragma, c_register_pragma_with_expansion)
3842         (c_invoke_pragma_handler): Changed to work with
3843         internal_pragma_handler.
3844         (c_register_pragma_with_data)
3845         (c_register_pragma_with_expansion_and_data): New functions.
3847 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3849         * c-common.c: Include common/common-target.h.
3850         (handle_section_attribute): Use
3851         targetm_common.have_named_sections.
3852         * c-cppbuiltin.c: Include common/common-target.h.
3853         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3855 2011-06-10  Richard Guenther  <rguenther@suse.de>
3857         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3858         to print a IDENTIFIER_NODE.
3860 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3861             Joseph Myers  <joseph@codesourcery.com>
3863         * c.opt (fbuilding-libgcc): New option.
3864         * c-cppbuiltin.c (c_cpp_builtins): Define
3865         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3867 2011-06-07  Jason Merrill  <jason@redhat.com>
3869         * c-common.c (max_tinst_depth): Lower default to 900.
3871         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3873 2011-06-07  Richard Guenther  <rguenther@suse.de>
3875         * c-common.c (c_common_nodes_and_builtins): Do not set
3876         size_type_node or call set_sizetype.
3878 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
3880         PR debug/49130
3881         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3882         type when using pointer comparison to compare types.
3884 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
3886         * c.opt: Add -Wdelete-non-virtual-dtor.
3887         * c-opts.c (c_common_handle_option): Include it in -Wall.
3889 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3891         PR bootstrap/49190
3893         Revert:
3894         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3896         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3897         not tree_common.
3899 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
3901         PR c++/49165
3902         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3903         C++ don't call c_common_truthvalue_conversion on void type arms.
3905 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3907         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3908         (stmt_list_stack): Define.
3909         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3910         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3912 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3914         * c-common.c (warning_candidate_p): Check for BLOCKs.
3916 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3918         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3919         not tree_common.
3921 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3923         * c-common.c (def_fn_type): Remove extra va_end.
3925 2011-05-23  Jason Merrill  <jason@redhat.com>
3927         PR c++/48106
3928         * c-common.c (c_common_get_narrower): New.
3929         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3931 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3933         * c-common.h (check_function_arguments): Tweak prototype of
3934         check_function_arguments.
3935         * c-common.c (check_function_arguments): Likewise.  Adjust
3936         calls to check_function_nonnull, check_function_format, and
3937         check_function_sentinel.
3938         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3939         separate attributes and typelist arguments.  Use
3940         FOREACH_FUNCTION_ARGS to iterate over argument types.
3942 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3944         * c-common.c (c_common_reswords): Reorder.
3945         * c-common.h (rid): Likewise.
3947 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3949         * c-common.c (def_fn_type): Don't call build_function_type, call
3950         build_function_type_array or build_varargs_function_type_array
3951         instead.
3952         (c_common_nodes_and_builtins): Likewise.
3954 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3956         * c-common.c (c_add_case_label): Omit the loc argument to
3957         build_case_label.
3958         * c-common.h (build_case_label): Remove.
3959         * c-semantics.c (build_case_label): Remove.
3961 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3963         * c-objc.h (objc_start_method_definition): Update prototype.
3964         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3966 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3968         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3969         TYPE_ARG_TYPES directly.
3970         (handle_nonnull_attribute): Likewise.
3971         (sync_resolve_params): Likewise.
3972         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3973         to check_format_string.
3974         (handle_format_attribute): Likewise.
3975         (check_format_string): Take a function type to examine instead of
3976         a type list.  Use a function_arg_iterator to step through argument
3977         types.
3979 2011-05-04  Richard Guenther  <rguenther@suse.de>
3981         * c-common.c (fix_string_type): Use size_int for index type bounds.
3982         (start_fname_decls): Do not pass NULL to build_int_cst.
3983         (c_init_attributes): Likewise.
3984         * c-lex.c (c_lex_with_flags): Likewise.
3986 2011-04-27  Jason Merrill  <jason@redhat.com>
3988         * c-common.c (make_tree_vector_from_list): New.
3989         * c-common.h: Declare it.
3991 2011-04-26  Richard Guenther  <rguenther@suse.de>
3993         PR preprocessor/48248
3994         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3995         for output size with -P.
3997 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3999         * c-common.c (struct c_common_resword): Add __underlying_type.
4000         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4002 2011-04-20  Jim Meyering  <meyering@redhat.com>
4004         * c-format.c (init_dollar_format_checking): Remove useless
4005         if-before-free.
4007 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4009         * c-objc.h (objc_get_interface_ivars): Removed.
4010         (objc_detect_field_duplicates): New.
4011         * stub-objc.c: Likewise.
4013 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4015         * stub-objc.c (objc_declare_protocols): Renamed to
4016         objc_declare_protocol.
4017         * c-objc.h: Likewise.
4019 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4021         * stub-objc.c (objc_declare_class): Updated argument name.
4023 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4025         * c-common.h (c_common_init_ts): Declare.
4026         * c-common.c (c_common_init_ts): Define.
4028 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4030         * c-objc.h (objc_build_message_expr): Updated prototype.
4031         * stub-objc.c (objc_build_message_expr): Likewise.
4033 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4035         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4036         of cgraph_node.
4038 2011-04-11  Richard Guenther  <rguenther@suse.de>
4040         * c-common.c (complete_array_type): Build a range type of
4041         proper type.
4043 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4045         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4046         (handle_type_generic_attribute): Likewise.
4048 2011-04-07  Jason Merrill  <jason@redhat.com>
4050         PR c++/48450
4051         * c-common.c (c_common_truthvalue_conversion): Don't ignore
4052         conversion from C++0x scoped enum.
4054 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4056         * c-target-def.h: New file.
4057         * c-target.def: New file.
4058         * c-target.h: New file.
4059         * c-common.c (targetcm): Don't define here.
4060         * c-common.h (default_handle_c_option): Declare.
4061         * c-format.c: Include c-target.h instead of target.h.
4062         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
4063         include tm.h.
4064         (default_handle_c_option): Move from targhooks.c.
4066 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4068         PR preprocessor/48248
4069         * c-ppoutput.c (print): Add src_file field.
4070         (init_pp_output): Initialize it.
4071         (maybe_print_line): Don't optimize by adding up to 8 newlines
4072         if map->to_file and print.src_file are different file.
4073         (print_line): Update print.src_file.
4075 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4077         * c-ada-spec.c (compare_comment): Use filename_cmp
4078         instead of strcmp for filename.
4080 2011-03-25  Jeff Law  <law@redhat.com>
4082         * c-common.c (def_fn_type): Add missing va_end.
4084 2011-03-25  Jason Merrill  <jason@redhat.com>
4086         * c.opt: Add -std=c++03.
4088 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
4090         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4092 2011-03-17  Kai Tietz
4094         PR target/12171
4095         * c-pretty-print.c (pp_c_specifier_qualifier_list):
4096         Display allowed attributes for function pointer types.
4097         (pp_c_attributes_display): New function to display
4098         attributes having affects_type_identity flag set to true.
4099         * c-pretty-print.h (pp_c_attributes_display): New prototype.
4101         * c-common.c (c_common_attribute_table):
4102         Add new element.
4103         (c_common_format_attribute_table): Likewise.
4105 2011-03-18  Jason Merrill  <jason@redhat.com>
4107         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4108         * c-common.h: Don't declare it here.
4109         * c-common.c: Or define it here.
4110         * c-opts.c (c_common_handle_option): Or set it here.
4112         PR c++/35315
4113         * c-common.c (handle_transparent_union_attribute): Don't
4114         make a duplicate type in C++.
4116 2011-03-15  Jason Merrill  <jason@redhat.com>
4118         * c-common.c (max_constexpr_depth): New.
4119         * c-common.h: Declare it.
4120         * c-opts.c (c_common_handle_option): Set it.
4121         * c.opt (fconstexpr-depth): New option.
4123 2011-03-11  Jason Merrill  <jason@redhat.com>
4125         * c-common.c (attribute_takes_identifier_p): Add missing const.
4127         PR c++/46803
4128         * c-common.c (attribute_takes_identifier_p): Assume that an
4129         unknown attribute takes an identifier.
4131 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
4133         PR c/47786
4134         * c-common.c (c_type_hash): Call list_length instead of iterating
4135         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
4137 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
4139         PR c/47809
4140         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4142 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
4144         * c.opt (fobjc-abi-version=) New.
4145         (fobjc-nilcheck): New.
4147 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
4149         PR c++/46890
4150         * c-common.h (keyword_is_decl_specifier): Declare.
4151         * c-common.c (keyword_is_decl_specifier): Define.
4152         (keyword_is_function_specifier): New function.
4154 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4156         PR c/47473
4157         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4158         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4159         REAL_TYPE.
4161 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
4163         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4165 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4167         PR pch/47430
4168         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4169         after init_c_lex if pch_file is set.
4171 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
4173         PR c++/43601
4174         * c.opt (-fkeep-inline-dllexport): New switch.
4176 2011-01-12  Richard Guenther  <rguenther@suse.de>
4178         PR middle-end/32511
4179         * c-common.c (handle_weak_attribute): Warn instead of error
4180         on declaring an inline function weak.
4182 2011-01-05  Tom Tromey  <tromey@redhat.com>
4184         * c-common.h (lvalue_error): Update.
4185         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
4186         not error.
4188 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4190         PR objc/47075
4191         * c-objc.h (objc_finish_message_expr): Added argument to
4192         prototype.
4194 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
4196         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4197         Use prototype_p.
4199 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4201         * c-objc.h (objc_maybe_warn_exceptions): New.
4202         * stub-objc.c (objc_maybe_warn_exceptions): New.
4204 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
4206         * c-common.h (readonly_error): Declare.
4207         * c-common.c (readonly_error): Define.
4209 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
4211         * c-common.h (invalid_indirection_error): Declare.
4212         * c-common.c (invalid_indirection_error): Define.
4214 2010-12-03  Richard Guenther  <rguenther@suse.de>
4216         PR c/46745
4217         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4218         (pp_c_unary_expression): Likewise.
4219         (pp_c_expression): Likewise.
4221 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4223         * c-common.h (objc_finish_function): New.
4224         (objc_non_volatilized_type): Removed.
4225         (objc_type_quals_match): Removed.
4226         * stub-objc.c (objc_finish_function): New.
4227         (objc_non_volatilized_type): Removed.
4228         (objc_type_quals_match): Removed.
4230 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
4232         * c-common.h (parse_optimize_options): Declare.
4233         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4234         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4236 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
4238         * c-opts.c (check_deps_environment_vars): Use getenv instead of
4239         GET_ENVIRONMENT.
4240         * c-pch.c (O_BINARY): Don't define here.
4241         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4243 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
4245         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4246         targetm.except_unwind_info.
4248 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4250         * c-opts.c (c_common_handle_option): Pass location to
4251         set_struct_debug_option.
4253 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4255         * c-common.c (visibility_options): Move from ../opts.c.
4256         * c-common.h (struct visibility_flags, visibility_options):
4257         Declare here.
4258         * c-opts.c (finish_options): Rename to c_finish_options.
4259         (c_common_init): Update call to finish_options.
4261 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
4263         PR objc/34033
4264         * c-lex.c (lex_string): Check that each string in an Objective-C
4265         string concat sequence starts with either one or zero '@', and
4266         that there are no spurious '@' signs at the end.
4268 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
4270         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4271         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4272         HANDLE_PRAGMA_VISIBILITY.
4273         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4274         HANDLE_PRAGMA_VISIBILITY): Don't define.
4275         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4277 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
4279         PR c++/16189
4280         PR c++/36888
4281         PR c++/45331
4282         * c-common.h (keyword_begins_type_specifier): Declare.
4283         (keyword_is_storage_class_specifier): Declare.
4284         (keyword_is_type_qualifier): Declare.
4285         * c-common.c (keyword_begins_type_specifier): New function.
4286         (keyword_is_storage_class_specifier): New function.
4287         (keyword_is_type_qualifier): Declare.
4289 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4291         PR c/46547
4292         * c-common.c (in_late_binary_op): Define.
4293         (c_common_truthvalue_conversion): Check in_late_binary_op before
4294         calling c_save_expr.
4295         * c-common.h (in_late_binary_op): Declare.
4297 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4299         * c-opts.c (c_common_handle_option): Update calls to
4300         set_struct_debug_option.
4302 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4304         * c-common.h (objc_declare_protocols): Added additional argument.
4305         * stub-objc.c (objc_declare_protocol): Same change.
4307 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
4309         PR c/33193
4310         * c-common.h (build_real_imag_expr): Declare.
4311         * c-semantics.c (build_real_imag_expr): Define.
4313 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
4315         * c-opts.c (c_common_parse_file): Take no arguments.
4316         * c-common.h (c_common_parse_file): Update prototype.
4318 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
4320         PR c++/46401
4321         * c-common.c (warning_candidate_p): Don't track non-const calls
4322         or STRING_CSTs.
4324 2010-11-15  Ian Lance Taylor  <iant@google.com>
4326         * c-lex.c (init_c_lex): Set macro debug callbacks if
4327         flag_dump_go_spec is set.
4329 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4331         * c-common.h (objc_build_incr_expr_for_property_ref): New.
4332         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4334 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
4336         PR preprocessor/45038
4337         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4338         dialects.
4340 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4342         * c-common.h (c_family_lang_mask): Declare.
4343         * c-opts.c (c_family_lang_mask): Make extern.
4344         * c-pragma.c (handle_pragma_diagnostic): Use
4345         control_warning_option.
4347 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4349         * c-common.c (parse_optimize_options): Update call to
4350         decode_options.
4351         * c-common.h (c_common_handle_option): Update prototype.
4352         * c-opts.c (c_common_handle_option): Take location_t parameter and
4353         pass it to other functions.
4355 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4357         * c-opts.c (warning_as_error_callback): Remove.
4358         (c_common_initialize_diagnostics): Don't call
4359         register_warning_as_error_callback.
4360         (c_common_handle_option): Handle -Werror=normalized= here.
4362 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4364         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4365         in diagnostic.
4366         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4367         letter.
4368         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4369         Remove trailing '.' from diagnostics.
4370         * c.opt (Wwrite-strings_: Avoid '`' in help text.
4372 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4374         * c-common.c (parse_optimize_options): Pass global_dc to
4375         decode_options.
4376         * c-opts.c (c_common_handle_option): Pass &global_options to
4377         set_Wstrict_aliasing.
4378         * c.opt (v): Don't mark Common or document here.
4380 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4382         PR target/44981
4383         * c-format.c (format_type): New type gcc_objc_string_format_type.
4384         (valid_stringptr_type_p): New.
4385         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4386         (check_format_string): Pass expected type, use
4387         valid_stringptr_type_p (), check that the format string types are
4388         consistent with the format specification.
4389         (decode_format_attr): Warn if NSString is used outside objective-c.
4390         (format_types_orig): Add NSString.
4391         (format_name): New.
4392         (format_flags): New.
4393         (check_format_arg): Handle format strings requiring an external parser.
4394         first_target_format_type: New variable.
4395         (handle_format_attribute): Set up first_target_format_type, pass the
4396         expected format arg string type to check_format_string().
4397         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
4398         * stub-objc.c (objc_string_ref_type_p): New.
4399         (objc_check_format_arg): New.
4401 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4403         Fixed using the Objective-C 2.0 dot-syntax with class names.
4404         * c-common.h (objc_build_class_component_ref): New.
4405         * stub-objc.c (objc_build_class_component_ref): New.
4407 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4409         * c.opt (Wproperty-assign-default): New option.
4411 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4413         Implemented -fobjc-std=objc1 flag.
4414         * c.opt (fobjc-std=objc1): New option.
4416 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
4418         Implemented format and noreturn attributes for Objective-C methods.
4419         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4420         attribute for Objective-C methods.
4422 2010-10-31  Jason Merrill  <jason@redhat.com>
4424         * c-common.c (conversion_warning, warn_for_collisions_1): Use
4425         EXPR_LOC_OR_HERE.
4427 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4429         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4430         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4431         (objc_add_property_declaration): Removed arguments for copies and
4432         ivar.
4433         (objc_build_getter_call): Renamed to
4434         objc_maybe_build_component_ref.
4435         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4436         (objc_is_property_ref): New.
4437         * c-common.c (c_common_reswords): Removed copies and ivar.
4438         * stub-objc.c (objc_add_property_declaration): Removed arguments
4439         for copies and ivar.
4440         (objc_build_getter_call): Renamed to
4441         objc_maybe_build_component_ref.
4442         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4443         (objc_is_property_ref): New.
4445 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
4446             Matthew Gingell  <gingell@adacore.com>
4448         * c-ada-spec.c (separate_class_package): New function.
4449         (pp_ada_tree_identifier): Prefix references to C++ classes with the
4450         name of their enclosing package.
4451         (print_ada_declaration): Use separate_class_package.
4453 2010-10-27  Jason Merrill  <jason@redhat.com>
4455         * c-common.c (c_common_reswords): Add __is_literal_type.
4456         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4458         * c-common.c (check_case_value): Remove special C++ code.
4460 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4462         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4463         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
4464         and RID_LAST_PATTR.
4465         (objc_add_property_declaration): Added additional arguments.
4466         (objc_property_attribute_kind): Removed.
4467         (objc_set_property_attr): Removed.
4468         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4469         copy and nonatomic.
4470         * stub-objc.c (objc_add_property_declaration): Added additional
4471         arguments.
4472         (objc_set_property_attr): Removed.
4474 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4476         * c-common.h (objc_add_property_variable): Renamed to
4477         objc_add_property_declaration.  Added location argument.
4478         * stub-objc.c (objc_add_property_variable): Same change.
4479         
4480 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
4482         * c-common.h (objc_maybe_printable_name): New.
4483         * stub-objc.c (objc_maybe_printable_name): New.
4485 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4486         Andrew Pinski <pinskia@gmail.com>
4488         * c-common.h (c_common_mark_addressable_vec): Declare.
4489         * c-common.c (c_common_mark_addressable_vec): New function.
4491 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4493         * c-common.h (objc_set_method_type): Removed.
4494         (objc_add_method_declaration): Added boolean argument.
4495         (objc_start_method_definition): Same change.
4496         (objc_build_method_signature): Same change.
4497         * stub-objc.c (objc_set_method_type): Removed.
4498         (objc_add_method_declaration): Added boolean argument.
4499         (objc_start_method_definition): Same change.
4500         (objc_build_method_signature): Same change.
4502 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4504         * c-common.h (finish_file): Removed.
4505         (objc_write_global_declarations): New.
4506         * c-opts.c (c_common_parse_file): Do not call finish_file.
4507         * stub-objc.c (objc_write_global_declarations): New.
4509 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4511         Implemented parsing @synthesize and @dynamic for
4512         Objective-C/Objective-C++.
4513         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4514         (objc_add_synthesize_declaration): New.
4515         (objc_add_dynamic_declaration): New.
4516         * c-common.c (c_common_reswords): Add synthesize and dynamic.
4517         * stub-objc.c (objc_add_synthesize_declaration): New.
4518         (objc_add_dynamic_declaration): New.
4520 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4522         PR target/46041
4523         * c-cppbuiltin.c (mode_has_fma): Move function here from
4524         builtins.c.  Don't use the fma optab, instead just use the
4525         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4526         using -save-temps.
4528 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4530         Merge from 'apple/trunk' branch on FSF servers.
4532         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
4534         Radar 4330422
4535         * c-common.h (objc_non_volatilized_type): New declaration
4536         * stub-objc.c (objc_non_volatilized_type): New stub.
4538 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4540         Merge from 'apple/trunk' branch on FSF servers.
4542         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4544         Radar 4133425
4545         * c-common.h (objc_diagnose_private_ivar): New decl.
4546         * stub-objc.c (objc_diagnose_private_ivar): New stub.
4548 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4550         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4551         * c-common.h (enum rid): Add RID_AT_PACKAGE.
4552         (objc_ivar_visibility_kind): New enum.
4553         (objc_set_visibility): Adjust prototype to use visibility enum.
4554         * stub-objc.c (objc_set_visibility): Adjust stub to use
4555         visibility enum.
4557 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4559         * c-cppbuiltin.c (builtin_define_float_constants): Emit
4560         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4561         has the appropriate fma builtins.
4562         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4564 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4566         merge from FSF apple 'trunk' branch.
4567         2006 Fariborz Jahanian <fjahanian@apple.com>
4569         Radars 4436866, 4505126, 4506903, 4517826
4570         * c-common.c (c_common_resword): Define @property and its attributes.
4571         * c-common.h: Define property attribute enum entries.
4572         (OBJC_IS_PATTR_KEYWORD): New.
4573         (objc_property_attribute_kind): New enum.
4574         Declare objc_set_property_attr (), objc_add_property_variable (),
4575         objc_build_getter_call () and objc_build_setter_call ().
4576         * stub-objc.c (objc_set_property_attr): New stub.
4577         (objc_add_property_variable): Likewise.
4578         (objc_build_getter_call): Likewise.
4579         (objc_build_setter_call) Likewise.
4581 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
4583         merge from FSF apple 'trunk' branch.
4584         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4586         Radar 3803157 (method attributes)
4587         * c-common.c (handle_deprecated_attribute): Recognize
4588         objc methods as valid declarations.
4589         * c-common.h: Declare objc_method_decl ().
4590         * stub-objc.c (objc_method_decl): New stub.
4592 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4594         * c-common.c (parse_optimize_options): Call
4595         decode_cmdline_options_to_array_default_mask before
4596         decode_options.  Update arguments to decode_options.
4597         * c-common.h (c_common_init_options_struct): Declare.
4598         * c-opts.c (c_common_init_options_struct): New.  Split out from
4599         c_common_init_options.
4601 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4603         Implemented fast enumeration for Objective-C.
4604         * c-common.h (objc_finish_foreach_loop): New.
4605         * stub-objc.c (objc_finish_foreach_loop): New.
4607 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4609         * c-common.h (struct diagnostic_context): Don't declare here.
4610         (c_common_initialize_diagnostics): Declare using
4611         diagnostic_context typedef.
4612         * c-opts.c (c_common_handle_option): Pass global_dc to
4613         handle_generated_option.
4615 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4617         * c-opts.c (c_common_handle_option): Pass &global_options_set to
4618         handle_generated_option.
4620 2010-10-03  Ian Lance Taylor  <iant@google.com>
4622         * c.opt (-fplan9-extensions): New option.
4624 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4626         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4627         Remove.
4628         (c_cpp_builtins): Call functions from cppbuiltin.c instead
4629         of duplicating code.
4631 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
4633         * c-common.c: Add two new entries for @optional
4634         and @required keywords.
4636         merge from FSF 'apple/trunk' branch.
4637         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
4639         Radar 4386773
4640         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4641         objective-c keywords.
4642         (objc_set_method_opt): New declaration.
4643         * stub-objc.c (objc_set_method_opt): New stub.
4645 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4647         * c-common.c (handle_optimize_attribute): Pass &global_options to
4648         cl_optimization_save and cl_optimization_restore.
4649         * c-opts.c (c_common_handle_option): Pass &global_options to
4650         handle_generated_option.
4651         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4652         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4653         &global_options to cl_optimization_restore.
4655 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4657         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4658         Objective-C/Objective-C++ keywords.
4660 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4662         Merge from 'apple/trunk' branch on FSF servers.
4664         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
4666         Radar 4281748
4667         * c-common.h (objc_check_global_decl): New declaration.
4668         * stub-objc.c (objc_check_global_decl): New stub.
4670 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4672         * c.opt: Don't use VarExists.
4674 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4676         * c-common.c (c_cpp_error): Update names of diagnostic_context
4677         members.
4678         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4679         cl_optimization members.
4680         * c-opts.c (warning_as_error_callback, c_common_handle_option,
4681         sanitize_cpp_opts, finish_options): Update names of cpp_options
4682         members.
4684 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4686         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
4687         (objc_is_reserved_word): Removed.
4688         * c-common.c: Updated comments.
4689         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4690         objc_is_reserved_word.
4691         * stub-objc.c (objc_is_reserved_word): Removed.
4693 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4695         * c-common.h (objc_add_method_declaration): Adjust prototype to
4696         include attributes.
4697         (objc_start_method_definition): Likewise.
4698         (objc_build_keyword_decl): Likewise.
4699         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4700         (objc_start_method_definition): Likewise.
4701         (objc_build_keyword_decl): Likewise.
4703 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4705         * c-common.h (objc_start_class_interface): Adjust prototype.
4706         (objc_start_category_interface): Likewise.
4707         (objc_start_protocol): Likewise.
4708         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4709         (objc_start_class_interface): Likewise.
4710         (objc_start_category_interface): Likewise.
4712 2010-09-27  Ian Lance Taylor  <iant@google.com>
4714         * c-common.c (c_common_attribute_table): Add no_split_stack.
4715         (handle_no_split_stack_attribute): New static function.
4717 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4719         Merge from 'apple/trunk' branch on FSF servers.
4721         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
4723         Radar 4229905
4724         * c-common.h (objc_have_common_type): New declaration.
4725         * stub-objc.c (objc_have_common_type): New stub.
4727         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
4729         Radar 4154928
4730         * c-common.h (objc_common_type): New prototype.
4731         * stub-objc.c (objc_common_type): New stub.
4733 2010-09-24  Jan Hubicka  <jh@suse.cz>
4735         * c-common.c (handle_leaf_attribute): New function.
4736         (struct attribute_spec c_common_att): Add leaf.
4738 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4740         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4741         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4742         -dump, -dump=, -imacros, -imacros=, -include, -include=,
4743         -include-barrier, -include-directory, -include-directory=,
4744         -include-directory-after, -include-directory-after=,
4745         -include-prefix, -include-prefix=, -include-with-prefix,
4746         -include-with-prefix=, -include-with-prefix-after,
4747         -include-with-prefix-after=, -include-with-prefix-before,
4748         -include-with-prefix-before=, -no-integrated-cpp,
4749         -no-line-commands, -no-standard-includes, -no-warnings, -output,
4750         -output=, -pedantic, -pedantic-errors, -preprocess,
4751         -print-missing-file-dependencies, -trace-includes, -traditional,
4752         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4753         -user-dependencies, -verbose, -write-dependencies,
4754         -write-user-dependencies, no-integrated-cpp, traditional): New.
4756 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4758         PR objc/23710
4759         * c-common.h (objc_start_method_definition): Return bool instead
4760         of void.
4761         * stub-objc.c (objc_start_method_definition): Return bool instead
4762         of void.
4764 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4766         PR objc/25965
4767         * c-common.h (objc_get_interface_ivars): New declaration.
4768         * stub-objc.c (objc_get_interface_ivars): New stub.
4770 2010-09-15  Ian Lance Taylor  <iant@google.com>
4772         * c-common.c (parse_optimize_options): Do not capitalize warning
4773         messages.  Remove period at end of warning message.
4775 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4777         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4778         (handle_alias_attribute): ... here.
4779         (handle_ifunc_attribute): New.
4781 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4783         * c-common.h (do_warn_double_promotion): Declare.
4784         * c-common.c (do_warn_double_promotion): Define.
4786 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4788         * c.opt (Wdouble-promotion): New.
4790 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4792         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4793         fvtable-thunks, fxref): Mark no longer supported in help text.
4795 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4797         * c.opt (Wimport, fall-virtual, falt-external-templates,
4798         fdefault-inline, fenum-int-equiv, fexternal-templates,
4799         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4800         fname-mangling-version-, fnew-abi, fnonnull-objects,
4801         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4802         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4803         applicable.
4804         (fhandle-exceptions): Mark with Alias and Warn.
4805         * c-opts.c (c_common_handle_option): Don't handle options marked
4806         as ignored.
4808 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4810         * c.opt (Wcomments, Werror-implicit-function-declaration,
4811         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4812         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4813         aliases.
4814         * c-common.c (option_codes): Use OPT_Wcomment instead of
4815         OPT_Wcomments.
4816         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4817         Don't handle options marked as aliases.
4819 2010-08-25  Richard Guenther  <rguenther@suse.de>
4821         * c-common.c (c_common_get_alias_set): Remove special
4822         handling for pointers.
4824 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4826         * c-common.c: Use FOR_EACH_VEC_ELT.
4827         * c-gimplify.c: Likewise.
4828         * c-pragma.c: Likewise.
4830 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4832         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4833         RejectDriver.
4834         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4835         RejectDriver.
4836         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4837         instead of OPT_MDX and OPT_MMDX.
4839 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4841         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4843 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4845         * c.opt (MD, MMD): Change to MDX and MMDX.
4846         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4848 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4850         * c-opts.c (c_common_handle_option): Call handle_generated_option
4851         instead of handle_option.
4853 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4855         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4856         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4858 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4860         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4861         (pending_redefine_extname): Change type to a VEC.
4862         (add_to_renaming_pragma_list): Update for new type of
4863         pending_redefine_extname.
4864         (maybe_apply_renaming_pragma): Likewise.
4866 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4868         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4869         visited.
4870         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4871         decide whether a type has already been declared/seen.
4872         Do not go to the original type.
4873         (dump_nested_types): New parameter forward.
4874         Generate forward declaration if needed and mark type as visited.
4875         (print_ada_declaration): Call dump_nested_types if not already done.
4876         Mark types as visited.
4878 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4880         * c.opt (-print-pch-checksum): Remove option.
4881         * c-opts.c (c_common_handle_option): Don't handle
4882         OPT_print_pch_checksum.
4884 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4886         * c-common.h (c_common_handle_option): Update prototype and return
4887         value type.
4888         * c-opts.c (c_common_handle_option): Update prototype and return
4889         value type.  Update calls to handle_option and
4890         enable_warning_as_error.
4892 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4894         PR c/45079
4895         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4897 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4899         * c-common.h (c_common_missing_argument): Remove.
4900         * c-opts.c (c_common_missing_argument): Remove.
4901         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4902         idirafter, imacros, include, isysroot, isystem, iquote): Add
4903         MissingArgError.
4904         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4906 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4908         * c-common.h (c_common_option_lang_mask,
4909         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4910         New.
4911         (c_common_init_options): Update prototype.
4912         * c-opts.c (c_common_option_lang_mask): New.
4913         (c_common_initialize_diagnostics): Split out of
4914         c_common_init_options.
4915         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4916         New.
4917         (c_common_init_options): Update prototype.  Use decoded options in
4918         search for -lang-asm.
4920 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4922         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4923         * c-format.c: Likewise.
4925 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4927         * c-common.h: Include diagnostic-core.h. Error if already
4928         included.
4929         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4931 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4933         * c-common.c (IN_GCC_FRONTEND): Do not undef.
4934         Do not include expr.h
4935         (vector_mode_valid_p): Move here.
4937 2010-06-21  DJ Delorie  <dj@redhat.com>
4939         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4940         allow these pragmas anywhere.
4942 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4944         PR bootstrap/44509
4945         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4946         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4947         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4948         ggc_strdup instead of xstrdup.
4950 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4952         * c-cppbuiltin.c: Include cpp-id-data.h.
4953         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4954         (lazy_hex_fp_value): New function.
4955         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4957 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4959         * c-gimplify.c: Do not include tree-flow.h
4961 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4963         PR other/44034
4964         * c-common.c: Rename targetm member:
4965         targetm.enum_va_list -> targetm.enum_va_list_p
4967 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4969         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4971 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4973         * c-cppbuiltin.c: Do not include except.h.
4975 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4977         * c-common.c (warn_for_omitted_condop): New.
4978         * c-common.h (warn_for_omitted_condop): Add prototype.
4980 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4982         * c.opt (lang-objc): Remove.
4983         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4985 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4987         * c-opts.c: Include "tm_p.h".
4989 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4991         * c-common.c (parse_optimize_options): Update call to
4992         decode_options.
4994 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4996         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4997         new type of types_used_by_cur_var_decl.
4999 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
5001         PR bootstrap/44512
5002         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5003         for C++ standard compliance.
5005 2010-06-16  Jason Merrill  <jason@redhat.com>
5007         * c.opt: Add -Wnoexcept.
5009 2010-06-16  Richard Guenther  <rguenther@suse.de>
5011         PR c/44555
5012         * c-common.c (c_common_truthvalue_conversion): Remove
5013         premature and wrong optimization concering ADDR_EXPRs.
5015 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
5017         * c-ada-spec.c (dump_sloc): Remove column info.
5018         (is_simple_enum): New function.
5019         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5020         enum types when relevant.
5022 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5024         * c-common.c (conversion_warning): Warn at expression
5025         location.
5027 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
5029         * c-opts.c (c_common_handle_option): Don't handle
5030         OPT_fshow_column.
5032 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5034         * c-pragma.c (push_alignment): Use typed GC allocation.
5035         (handle_pragma_push_options): Likewise.
5037         * c-common.c (parse_optimize_options): Likewise.
5039         * c-common.h (struct sorted_fields_type): Add variable_size GTY
5040         option.
5042 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
5044         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5045         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5046         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5047         flag_signed_bitfields, warn_strict_null_sentinel,
5048         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5049         flag_gen_declaration, flag_no_gnu_keywords,
5050         flag_implement_inlines, flag_implicit_templates,
5051         flag_implicit_inline_templates, flag_optional_diags,
5052         flag_elide_constructors, flag_default_inline, flag_rtti,
5053         flag_conserve_space, flag_access_control, flag_check_new,
5054         flag_new_for_scope, flag_weak, flag_working_directory,
5055         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5056         flag_enforce_eh_specs, flag_threadsafe_statics,
5057         flag_pretty_templates): Remove.
5058         * c-common.h (flag_preprocess_only, flag_nil_receivers,
5059         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5060         flag_replace_objc_classes, flag_undef, flag_no_builtin,
5061         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5062         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5063         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5064         flag_no_gnu_keywords, flag_implement_inlines,
5065         flag_implicit_templates, flag_implicit_inline_templates,
5066         flag_optional_diags, flag_elide_constructors, flag_default_inline,
5067         flag_rtti, flag_conserve_space, flag_access_control,
5068         flag_check_new, flag_new_for_scope, flag_weak,
5069         flag_working_directory, flag_use_cxa_atexit,
5070         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5071         flag_threadsafe_statics, flag_pretty_templates,
5072         warn_strict_null_sentinel): Remove.
5073         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5074         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5075         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5076         fimplicit-inline-templates, fimplicit-templates,
5077         flax-vector-conversions, fms-extensions, fnil-receivers,
5078         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5079         frtti, fshort-double, fshort-enums, fshort-wchar,
5080         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5081         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5082         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5083         gen-decls, undef): Use Var.
5084         (fdefault-inline, foptional-diags): Document as doing nothing.
5085         * c-opts.c (c_common_handle_option): Remove cases for options now
5086         using Var.  Mark ignored options as such.
5088 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
5090         * c-common.c: Moved to here from parent directory.
5091         * c-common.def: Likewise.
5092         * c-common.h: Likewise.
5093         * c-cppbuiltin.c: Likewise.
5094         * c-dump.c: Likewise.
5095         * c-format.c: Likewise.
5096         * c-format.h : Likewise.
5097         * c-gimplify.c: Likewise.
5098         * c-lex.c: Likewise.
5099         * c-omp.c: Likewise.
5100         * c.opt: Likewise.
5101         * c-opts.c: Likewise.
5102         * c-pch.c: Likewise.
5103         * c-ppoutput.c: Likewise.
5104         * c-pragma.c: Likewise.
5105         * c-pragma.h: Likewise.
5106         * c-pretty-print.c: Likewise.
5107         * c-pretty-print.h: Likewise.
5108         * c-semantics.c: Likewise.
5109         * stub-objc.c: Likewise.
5111         * c-common.c: Include gt-c-family-c-common.h.
5112         * c-pragma.c: Include gt-c-family-c-pragma.h.
5114 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5116 Copying and distribution of this file, with or without modification,
5117 are permitted in any medium without royalty provided the copyright
5118 notice and this notice are preserved.